mbsinit: Don't crash for a NULL argument.
[pspp] / ChangeLog
1 2011-02-13  Bruno Haible  <bruno@clisp.org>
2
3         mbsinit: Don't crash for a NULL argument.
4         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6
7 2011-02-13  Bruno Haible  <bruno@clisp.org>
8
9         Don't interfere with a program's definition of __attribute__.
10         * lib/stdio.in.h (__attribute__): Remove definition.
11         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15         * lib/string.in.h (__attribute__): Remove definition.
16         Reported by Paul Eggert.
17
18 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19
20         stdlib: don't get in the way of non-GCC __attribute__
21         See thread starting at
22         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23         Revert previous stdlib change, installing the following instead:
24         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25         to get in the way of a non-GCC compiler that supports __attribute__.
26         (_GL_ATTRIBUTE_RETURN): New macro.
27         (_Exit): Use it instead of __attribute__.
28
29 2011-02-12  Bruno Haible  <bruno@clisp.org>
30
31         quotearg test: Avoid test failure on mingw.
32         * tests/test-quotearg.sh: Convert the locale identifier from native
33         Windows syntax to Unix syntax.
34
35 2011-02-12  Bruno Haible  <bruno@clisp.org>
36
37         setlocale: Prefer gnulib's override over libintl's override.
38         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
39         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40         GNULIB_defined_setlocale is set.
41
42 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43
44         stdlib: support non-GCC __attribute__
45
46         Fix a serious and tricky problem encountered when attempting to
47         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
48         5.5, but it crashed due to memory corruption on Solaris 10 with
49         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
50         bits that are otherwise zero.  This tagging is optional inside
51         Emacs but is preferred and is used when __attribute__ ((__aligned
52         (8))) works, as it does with both recent-enough GCC and with Sun C
53         5.11.  However, Sun C 5.11 is not GCC and does not #define
54         __GNUC__ and __GNUC_MINOR__.
55
56         When I added the getloadavg module to Emacs, it brought in
57         stdlib.in.h, which contained this fragment:
58
59            #ifndef __attribute__
60            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
61            #  define __attribute__(Spec)   /* empty */
62            # endif
63            #endif
64
65         When files that include <stdlib.h> were compiled with Sun C 5.11,
66         the above code disabled __attribute__ ((__aligned (8))), which
67         caused variables to not be properly aligned, which eventually led
68         to the pointer corruption mentioned above.  (This was a bit hard
69         to diagnose, unfortunately.)
70
71         Several "#define __attribute__(X) /* empty */" code snippets need
72         to be eradicated from Gnulib to work with non-GCC compilers that
73         support __attribute__.  The Autoconf way to do this is to test for
74         each kind of attribute that we want support for, and selectively
75         enable that in source code.
76
77         Fix this problem just for stdlib.h, by adding a test for the
78         __noreturn__ attribute, and change stdlib.in.h to use that test
79         when needed.  This technique can be easily generalized to the
80         other *.in.h files and attributes, and a similar technique can be
81         used for *.h and *.c files.  This patch is enough to solve the
82         problem for Emacs + getloadavg, and I thought I'd publish it for
83         feedback before undertaking further, similar fixes in other
84         modules.
85
86         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
87         because it's not needed for stdlib.h.  It merely substitutes the
88         value directly into stdlib.h.  We may well need to #define it, or
89         similar symbols, for other modules, but it's nice to also have an
90         option to not #define it for applications like Emacs that do not
91         need it.
92
93         * lib/stdlib.in.h (__attribute__): Do not #define.
94         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
95         be defined only if the _Exit module is also used.
96         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
97         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
98         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
99         platforms.
100         * modules/_Exit (Files): Add m4/attribute.m4.
101         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
102         * m4/attribute.m4: New file.
103
104 2011-02-12  Bruno Haible  <bruno@clisp.org>
105
106         wcsrtombs: Work around bug on native Windows.
107         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
108         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
109         instead of len.
110         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
111
112 2011-02-12  Bruno Haible  <bruno@clisp.org>
113
114         mbsrtowcs: Work around bug on native Windows.
115         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
116         against mingw bug.
117         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
118
119 2011-02-12  Bruno Haible  <bruno@clisp.org>
120
121         Avoid setlocale bugs in tests.
122         * modules/btowc (Dependencies): Add setlocale.
123         * modules/c-strcase (Dependencies): Likewise.
124         * modules/mbmemcasecmp (Dependencies): Likewise.
125         * modules/mbmemcasecoll (Dependencies): Likewise.
126         * modules/mbrtowc (Dependencies): Likewise.
127         * modules/mbscasecmp (Dependencies): Likewise.
128         * modules/mbscasestr (Dependencies): Likewise.
129         * modules/mbschr (Dependencies): Likewise.
130         * modules/mbscspn (Dependencies): Likewise.
131         * modules/mbsinit (Dependencies): Likewise.
132         * modules/mbsncasecmp (Dependencies): Likewise.
133         * modules/mbsnrtowcs (Dependencies): Likewise.
134         * modules/mbspbrk (Dependencies): Likewise.
135         * modules/mbspcasecmp (Dependencies): Likewise.
136         * modules/mbsrchr (Dependencies): Likewise.
137         * modules/mbsrtowcs (Dependencies): Likewise.
138         * modules/mbsspn (Dependencies): Likewise.
139         * modules/mbsstr (Dependencies): Likewise.
140         * modules/nl_langinfo (Dependencies): Likewise.
141         * modules/quotearg (Dependencies): Likewise.
142         * modules/unicase/locale-language (Dependencies): Likewise.
143         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
144         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
145         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
146         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
147         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
148         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
149         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
150         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
151         * modules/vasnprintf-posix (Dependencies): Likewise.
152         * modules/wcrtomb (Dependencies): Likewise.
153         * modules/wcsnrtombs (Dependencies): Likewise.
154         * modules/wcsrtombs (Dependencies): Likewise.
155
156 2011-02-12  Bruno Haible  <bruno@clisp.org>
157
158         setlocale: Workaround native Windows bug.
159         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
160         succeeds but sets LC_CTYPE to "C", report a failure.
161         * tests/test-setlocale2.sh: New file.
162         * tests/test-setlocale2.c: New file.
163         * modules/setlocale-tests (Files): Add the new files.
164         (Makefile.am): Enable test-setlocale2.sh test.
165         * doc/posix-functions/setlocale.texi: Mention workaround.
166
167 2011-02-11  Bruno Haible  <bruno@clisp.org>
168
169         Tests for module 'setlocale'.
170         * modules/setlocale-tests: New file.
171         * tests/test-setlocale1.sh: New file.
172         * tests/test-setlocale1.c: New file.
173
174         New module 'setlocale'.
175         * lib/locale.in.h (setlocale): New declaration.
176         * lib/setlocale.c: New file, based on
177         gettext/gettext-runtime/intl/setlocale.c.
178         * m4/setlocale.m4: New file.
179         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
180         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
181         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
182         REPLACE_SETLOCALE.
183         * modules/setlocale: New file.
184         * tests/test-locale-c++.cc: Test the declaration of setlocale.
185         * doc/posix-functions/setlocale.texi: Mention the new module.
186
187 2011-02-11  Bruno Haible  <bruno@clisp.org>
188
189         Prepare for locale dependent tests on mingw.
190         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
191         because it has the wrong locale encoding.
192         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
193         French_France.1252 instead of "fr".
194         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
195         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
196         because it has the wrong locale encoding.
197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
198         native Windows, try Turkish_Turkey.65001.
199         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
200         Chinese_China.54936.
201
202         Prepare for locale dependent tests on mingw.
203         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
204         differently.
205         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
206         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
207         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
208         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
209
210 2011-02-11  Eric Blake  <eblake@redhat.com>
211
212         strptime: avoid compiler warnings
213         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
214         compiler warnings about dead code.
215         Reported by Matthias Bolte.
216
217 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
218
219         doc: update users.txt
220         * users.txt: Add rcs.
221
222 2011-02-10  John W. Eaton  <jwe@gnu.org>
223
224         doc: update users.txt
225         * users.txt: Add octave.
226
227 2011-02-10  Jim Meyering  <meyering@redhat.com>
228
229         doc: update users.txt
230         * users.txt: Add iwhd.
231
232 2011-02-09  Bruno Haible  <bruno@clisp.org>
233
234         gnulib-tool: Make copyright notice adjustment more robust.
235         * gnulib-tool (func_import): In sed_transform_main_lib_file,
236         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
237         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
238         License".
239         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
240
241 2011-02-06  Bruno Haible  <bruno@clisp.org>
242
243         New module 'towctrans'.
244         * modules/towctrans: New file.
245         * lib/wctype.in.h (towctrans): New declaration.
246         * lib/towctrans.c: New file.
247         * lib/towctrans-impl.h: New file.
248         * m4/towctrans.m4: New file.
249         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
250         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
251         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
252         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
253         * doc/posix-functions/towctrans.texi: Mention the new module.
254
255 2011-02-06  Bruno Haible  <bruno@clisp.org>
256
257         New module 'wctrans'.
258         * modules/wctrans: New file.
259         * lib/wctype.in.h (wctrans): New declaration.
260         * lib/wctrans.c: New file.
261         * lib/wctrans-impl.h: New file.
262         * m4/wctrans.m4: New file.
263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
265         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
266         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
267         * doc/posix-functions/wctrans.texi: Mention the new module.
268
269 2011-02-06  Bruno Haible  <bruno@clisp.org>
270
271         New module 'iswctype'.
272         * modules/iswctype: New file.
273         * lib/wctype.in.h (iswctype): New declaration.
274         * lib/iswctype.c: New file.
275         * lib/iswctype-impl.h: New file.
276         * m4/iswctype.m4: New file.
277         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
278         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
279         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
280         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
281         * doc/posix-functions/iswctype.texi: Mention the new module and the
282         HP-UX 11.00 problem.
283
284 2011-02-06  Bruno Haible  <bruno@clisp.org>
285
286         New module 'wctype'.
287         * modules/wctype: Change to represent the wctype() substitute.
288         * lib/wctype.in.h (wctype): New declaration.
289         * lib/wctype.c: New file.
290         * lib/wctype-impl.h: New file.
291         * m4/wctype.m4: New file.
292         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
293         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
294         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
295         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
296         * doc/posix-functions/wctype.texi: Mention the new module and the
297         HP-UX 11.00 problem.
298
299 2011-02-06  Bruno Haible  <bruno@clisp.org>
300
301         wctype-h: Ensure wctype_t and wctrans_t are defined.
302         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
303         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
304         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
305         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
306         HAVE_WCTRANS_T.
307         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
308
309 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
310
311         flock: fix license typo
312
313         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
314         omitted.
315
316 2011-02-08  Bruno Haible  <bruno@clisp.org>
317
318         Split large sed scripts, for HP-UX sed.
319         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
320         to avoid HP-UX limit of 99 commands, in the near future.
321         * modules/stdlib (Makefile.am): Likewise.
322         * modules/unistd (Makefile.am): Likewise.
323         * modules/wchar (Makefile.am): Likewise.
324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
325         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
327
328 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
329             Bruno Haible  <bruno@clisp.org>
330
331         stdlib: improve random_r modularization
332         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
333         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
334         you also need the random_r module to get this material right.
335         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
336         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
337         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
338
339 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
340
341         stdlib: don't depend on stdint
342         * lib/stdlib.in.h: Don't include <stdint.h> merely because
343         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
344         be independent of whether stdint.h is needed.
345         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
346         here, instead of ...
347         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
348         struct random_data should be using the random_r module, not just
349         the stdlib module (which wouldn't make sense: what package needs
350         just struct random_data without also needing random_r?).
351         * modules/stdlib (Depends-on): Remove stdint.
352
353         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
354         See the thread rooted at
355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
356         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
357         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
358         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
359         __VMS)); previously it was always included (via fcntl--.h).
360         (getloadavg): Do not use c_strtod.  Instead, approximate it by
361         hand; this is good enough for load averages.  Also, do not use
362         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
363         flags directly if available and don't bother otherwise.  (Packages
364         that need the extra reliability should use the modules that define
365         these flags on older platforms that lack them.)
366         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
367         fcntl-safer.
368
369 2011-02-08  Jim Meyering  <meyering@redhat.com>
370
371         di-set.h, ino-map.h: add multiple-inclusion guard
372         Technically, the guard is required only for ino-map.h, due to its
373         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
374         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
375         * lib/ino-map.h: Likewise.
376
377 2011-02-06  Bruno Haible  <bruno@clisp.org>
378
379         iswblank: Ensure declaration on glibc systems.
380         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
381         * modules/iswblank (Dependencies): Add 'extensions'.
382         * doc/posix-functions/iswblank.texi: Document the glibc problem.
383
384 2011-02-06  Bruno Haible  <bruno@clisp.org>
385
386         New module 'iswblank'.
387         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
388         * modules/iswblank: New file.
389         * modules/wctype-h (Files): Remove lib/iswblank.c.
390         (Makefile.am): Substitute GNULIB_ISWBLANK.
391         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
392         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
393         (gl_WCTYPE_H_DEFAULTS): New macro.
394         (gl_WCTYPE_H): Require it. Remove iswblank related code.
395         * modules/iswblank-tests: New file.
396         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
397         * tests/test-wctype-h.c (main): Remove iswblank tests.
398         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
399         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
400         of 'wctype-h'.
401         * NEWS: Mention the change.
402         * modules/mbchar (Depends-on): Add iswblank.
403
404 2011-02-08  Bruno Haible  <bruno@clisp.org>
405
406         di-set tests: Refactor.
407         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
408         unnecessary includes.
409         (ASSERT): Remove macro.
410         (main): Make C90 compliant by avoiding variable declaration after
411         statement.
412         * modules/di-set-tests (Files): Add tests/macros.h.
413
414 2011-02-08  Bruno Haible  <bruno@clisp.org>
415
416         ino-map tests: Refactor.
417         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
418         unnecessary includes.
419         (ASSERT): Remove macro.
420         (main): Make C90 compliant by avoiding variable declaration after
421         statement.
422         * modules/ino-map-tests (Files): Add tests/macros.h.
423
424 2011-02-08  Jim Meyering  <meyering@redhat.com>
425
426         di-set: add "const" to a cast
427         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
428         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
429
430 2011-02-06  Bruno Haible  <bruno@clisp.org>
431
432         Rename module 'wctype' to 'wctype-h'.
433         * modules/wctype-h: Renamed from modules/wctype.
434         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
435         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
436         (Files, Depends-on, Makefile.am): Update.
437         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
438         (Files, Makefile.am): Update.
439         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
440         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
441         * doc/posix-headers/wctype.texi: Update.
442         * doc/posix-functions/iswalnum.texi: Update.
443         * doc/posix-functions/iswalpha.texi: Update.
444         * doc/posix-functions/iswblank.texi: Update.
445         * doc/posix-functions/iswcntrl.texi: Update.
446         * doc/posix-functions/iswdigit.texi: Update.
447         * doc/posix-functions/iswgraph.texi: Update.
448         * doc/posix-functions/iswlower.texi: Update.
449         * doc/posix-functions/iswprint.texi: Update.
450         * doc/posix-functions/iswpunct.texi: Update.
451         * doc/posix-functions/iswspace.texi: Update.
452         * doc/posix-functions/iswupper.texi: Update.
453         * doc/posix-functions/iswxdigit.texi: Update.
454         * doc/posix-functions/towlower.texi: Update.
455         * doc/posix-functions/towupper.texi: Update.
456         * NEWS: Mention the change.
457         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
458         * modules/mbchar (Dependencies): Likewise.
459         * modules/mbswidth (Dependencies): Likewise.
460         * modules/quotearg (Dependencies): Likewise.
461         * modules/regex (Dependencies): Likewise.
462         * modules/wcscasecmp (Dependencies): Likewise.
463         * modules/wcsncasecmp (Dependencies): Likewise.
464         * modules/wcwidth (Dependencies): Likewise.
465
466 2011-02-06  Bruno Haible  <bruno@clisp.org>
467
468         New module 'wcswidth'.
469         * modules/wcswidth: New file.
470         * lib/wchar.in.h (wcswidth): New declaration.
471         * lib/wcswidth.c: New file.
472         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
473         * m4/wcswidth.m4: New file.
474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
476         REPLACE_WCSWIDTH.
477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
478         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
479         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
480         * doc/posix-functions/wcswidth.texi: Mention the new module.
481
482 2011-02-06  Bruno Haible  <bruno@clisp.org>
483
484         New module 'wcstok'.
485         * modules/wcstok: New file.
486         * lib/wchar.in.h (wcstok): New declaration.
487         * lib/wcstok.c: New file.
488         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
489         * m4/wcstok.m4: New file.
490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
493         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
494         * doc/posix-functions/wcstok.texi: Mention the new module.
495
496 2011-02-06  Bruno Haible  <bruno@clisp.org>
497
498         New module 'wcsstr'.
499         * modules/wcsstr: New file.
500         * lib/wchar.in.h (wcsstr): New declaration.
501         * lib/wcsstr.c: New file.
502         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
503         * m4/wcsstr.m4: New file.
504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
507         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
508         * doc/posix-functions/wcsstr.texi: Mention the new module.
509
510 2011-02-06  Bruno Haible  <bruno@clisp.org>
511
512         New module 'wcspbrk'.
513         * modules/wcspbrk: New file.
514         * lib/wchar.in.h (wcspbrk): New declaration.
515         * lib/wcspbrk.c: New file.
516         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
517         * m4/wcspbrk.m4: New file.
518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
521         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
522         * doc/posix-functions/wcspbrk.texi: Mention the new module.
523
524 2011-02-06  Bruno Haible  <bruno@clisp.org>
525
526         New module 'wcsspn'.
527         * modules/wcsspn: New file.
528         * lib/wchar.in.h (wcsspn): New declaration.
529         * lib/wcsspn.c: New file.
530         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
531         * m4/wcsspn.m4: New file.
532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
535         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
536         * doc/posix-functions/wcsspn.texi: Mention the new module.
537
538 2011-02-06  Bruno Haible  <bruno@clisp.org>
539
540         New module 'wcscspn'.
541         * modules/wcscspn: New file.
542         * lib/wchar.in.h (wcscspn): New declaration.
543         * lib/wcscspn.c: New file.
544         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
545         * m4/wcscspn.m4: New file.
546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
549         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
550         * doc/posix-functions/wcscspn.texi: Mention the new module.
551
552 2011-02-06  Bruno Haible  <bruno@clisp.org>
553
554         New module 'wcsrchr'.
555         * modules/wcsrchr: New file.
556         * lib/wchar.in.h (wcsrchr): New declaration.
557         * lib/wcsrchr.c: New file.
558         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
559         * m4/wcsrchr.m4: New file.
560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
563         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
564         * doc/posix-functions/wcsrchr.texi: Mention the new module.
565
566 2011-02-06  Bruno Haible  <bruno@clisp.org>
567
568         New module 'wcschr'.
569         * modules/wcschr: New file.
570         * lib/wchar.in.h (wcschr): New declaration.
571         * lib/wcschr.c: New file.
572         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
573         * m4/wcschr.m4: New file.
574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
577         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
578         * doc/posix-functions/wcschr.texi: Mention the new module.
579
580 2011-02-06  Bruno Haible  <bruno@clisp.org>
581
582         New module 'wcsdup'.
583         * modules/wcsdup: New file.
584         * lib/wchar.in.h (wcsdup): New declaration.
585         * lib/wcsdup.c: New file.
586         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
587         * m4/wcsdup.m4: New file.
588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
591         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
592         * doc/posix-functions/wcsdup.texi: Mention the new module.
593
594 2011-02-06  Bruno Haible  <bruno@clisp.org>
595
596         New module 'wcsxfrm'.
597         * modules/wcsxfrm: New file.
598         * lib/wchar.in.h (wcsxfrm): New declaration.
599         * lib/wcsxfrm.c: New file.
600         * lib/wcsxfrm-impl.h: New file.
601         * m4/wcsxfrm.m4: New file.
602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
605         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
606         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
607
608 2011-02-06  Bruno Haible  <bruno@clisp.org>
609
610         New module 'wcscoll'.
611         * modules/wcscoll: New file.
612         * lib/wchar.in.h (wcscoll): New declaration.
613         * lib/wcscoll.c: New file.
614         * lib/wcscoll-impl.h: New file.
615         * m4/wcscoll.m4: New file.
616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
619         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
620         * doc/posix-functions/wcscoll.texi: Mention the new module.
621
622 2011-02-06  Bruno Haible  <bruno@clisp.org>
623
624         New module 'wcsncasecmp'.
625         * modules/wcsncasecmp: New file.
626         * lib/wchar.in.h (wcsncasecmp): New declaration.
627         * lib/wcsncasecmp.c: New file.
628         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
629         * m4/wcsncasecmp.m4: New file.
630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
633         HAVE_WCSNCASECMP.
634         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
635         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
636
637 2011-02-06  Bruno Haible  <bruno@clisp.org>
638
639         New module 'wcscasecmp'.
640         * modules/wcscasecmp: New file.
641         * lib/wchar.in.h (wcscasecmp): New declaration.
642         * lib/wcscasecmp.c: New file.
643         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
644         * m4/wcscasecmp.m4: New file.
645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
648         HAVE_WCSCASECMP.
649         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
650         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
651
652 2011-02-05  Bruno Haible  <bruno@clisp.org>
653
654         New module 'wcsncmp'.
655         * modules/wcsncmp: New file.
656         * lib/wchar.in.h (wcsncmp): New declaration.
657         * lib/wcsncmp.c: New file.
658         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
659         * m4/wcsncmp.m4: New file.
660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
663         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
664         * doc/posix-functions/wcsncmp.texi: Mention the new module.
665
666 2011-02-05  Bruno Haible  <bruno@clisp.org>
667
668         New module 'wcscmp'.
669         * modules/wcscmp: New file.
670         * lib/wchar.in.h (wcscmp): New declaration.
671         * lib/wcscmp.c: New file.
672         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
673         * m4/wcscmp.m4: New file.
674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
677         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
678         * doc/posix-functions/wcscmp.texi: Mention the new module.
679
680 2011-02-05  Bruno Haible  <bruno@clisp.org>
681
682         New module 'wcsncat'.
683         * modules/wcsncat: New file.
684         * lib/wchar.in.h (wcsncat): New declaration.
685         * lib/wcsncat.c: New file.
686         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
687         * m4/wcsncat.m4: New file.
688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
691         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
692         * doc/posix-functions/wcsncat.texi: Mention the new module.
693
694 2011-02-05  Bruno Haible  <bruno@clisp.org>
695
696         New module 'wcscat'.
697         * modules/wcscat: New file.
698         * lib/wchar.in.h (wcscat): New declaration.
699         * lib/wcscat.c: New file.
700         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
701         * m4/wcscat.m4: New file.
702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
705         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
706         * doc/posix-functions/wcscat.texi: Mention the new module.
707
708 2011-02-05  Bruno Haible  <bruno@clisp.org>
709
710         New module 'wcpncpy'.
711         * modules/wcpncpy: New file.
712         * lib/wchar.in.h (wcpncpy): New declaration.
713         * lib/wcpncpy.c: New file.
714         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
715         * m4/wcpncpy.m4: New file.
716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
718         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
719         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
720         * doc/posix-functions/wcpncpy.texi: Mention the new module.
721
722 2011-02-05  Bruno Haible  <bruno@clisp.org>
723
724         New module 'wcsncpy'.
725         * modules/wcsncpy: New file.
726         * lib/wchar.in.h (wcsncpy): New declaration.
727         * lib/wcsncpy.c: New file.
728         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
729         * m4/wcsncpy.m4: New file.
730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
733         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
734         * doc/posix-functions/wcsncpy.texi: Mention the new module.
735
736 2011-02-05  Bruno Haible  <bruno@clisp.org>
737
738         New module 'wcpcpy'.
739         * modules/wcpcpy: New file.
740         * lib/wchar.in.h (wcpcpy): New declaration.
741         * lib/wcpcpy.c: New file.
742         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
743         * m4/wcpcpy.m4: New file.
744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
746         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
747         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
748         * doc/posix-functions/wcpcpy.texi: Mention the new module.
749
750 2011-02-05  Bruno Haible  <bruno@clisp.org>
751
752         New module 'wcscpy'.
753         * modules/wcscpy: New file.
754         * lib/wchar.in.h (wcscpy): New declaration.
755         * lib/wcscpy.c: New file.
756         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
757         * m4/wcscpy.m4: New file.
758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
761         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
762         * doc/posix-functions/wcscpy.texi: Mention the new module.
763
764 2011-02-05  Bruno Haible  <bruno@clisp.org>
765
766         New module 'wcsnlen'.
767         * modules/wcsnlen: New file.
768         * lib/wchar.in.h (wcsnlen): New declaration.
769         * lib/wcsnlen.c: New file.
770         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
771         * m4/wcsnlen.m4: New file.
772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
775         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
776         * doc/posix-functions/wcsnlen.texi: Mention the new module.
777
778 2011-02-05  Bruno Haible  <bruno@clisp.org>
779
780         New module 'wcslen'.
781         * modules/wcslen: New file.
782         * lib/wchar.in.h (wcslen): New declaration.
783         * lib/wcslen.c: New file.
784         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
785         * m4/wcslen.m4: New file.
786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
789         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
790         * doc/posix-functions/wcslen.texi: Mention the new module.
791
792 2011-02-05  Bruno Haible  <bruno@clisp.org>
793
794         New module 'wmemset'.
795         * modules/wmemset: New file.
796         * lib/wchar.in.h (wmemset): New declaration.
797         * lib/wmemset.c: New file.
798         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
799         * m4/wmemset.m4: New file.
800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
802         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
803         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
804         * doc/posix-functions/wmemset.texi: Mention the new module.
805
806 2011-02-05  Bruno Haible  <bruno@clisp.org>
807
808         New module 'wmemmove'.
809         * modules/wmemmove: New file.
810         * lib/wchar.in.h (wmemmove): New declaration.
811         * lib/wmemmove.c: New file.
812         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
813         * m4/wmemmove.m4: New file.
814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
816         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
817         HAVE_WMEMMOVE.
818         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
819         * doc/posix-functions/wmemmove.texi: Mention the new module.
820
821 2011-02-05  Bruno Haible  <bruno@clisp.org>
822
823         New module 'wmemcpy'.
824         * modules/wmemcpy: New file.
825         * lib/wchar.in.h (wmemcpy): New declaration.
826         * lib/wmemcpy.c: New file.
827         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
828         * m4/wmemcpy.m4: New file.
829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
831         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
832         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
833         * doc/posix-functions/wmemcpy.texi: Mention the new module.
834
835 2011-02-05  Bruno Haible  <bruno@clisp.org>
836
837         New module 'wmemcmp'.
838         * modules/wmemcmp: New file.
839         * lib/wchar.in.h (wmemcmp): New declaration.
840         * lib/wmemcmp.c: New file.
841         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
842         * m4/wmemcmp.m4: New file.
843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
845         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
846         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
847         * doc/posix-functions/wmemcmp.texi: Mention the new module.
848
849 2011-02-07  Jim Meyering  <meyering@redhat.com>
850
851         di-set, ino-map: new modules, from coreutils
852         * lib/di-set.c: New file.
853         * lib/di-set.h: Likewise.
854         * lib/ino-map.c: Likewise.
855         * lib/ino-map.h: Likewise.
856         * modules/di-set: Likewise.
857         * modules/di-set-tests: Likewise.
858         * modules/ino-map: Likewise.
859         * modules/ino-map-tests: Likewise.
860         * tests/test-di-set.c: Likewise.
861         * tests/test-ino-map.c: Likewise.
862
863 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
864
865         getloadavg: merge minor changes from Emacs
866
867         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
868         (getloadavg): Use memset, not bzero.
869
870         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
871         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
872         clash (bug#86).
873
874 2010-11-14  Bruno Haible  <bruno@clisp.org>
875
876         Allow multiple gnulib generated replacements to coexist.
877         * lib/getopt.in.h (struct option): Avoid identical redefinition.
878         * lib/inttypes.in.h (imaxdiv_t): Likewise.
879         * lib/langinfo.in.h (nl_item): Likewise.
880         * lib/math.in.h (_NaN, NAN): Likewise.
881         * lib/netdb.in.h (struct addrinfo): Likewise.
882         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
883         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
884         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
885         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
886         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
887         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
888         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
889         pthread_mutexattr_init, pthread_mutexattr_settype,
890         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
891         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
892         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
893         pthread_spin_trylock, pthread_spin_unlock): Likewise.
894         * lib/sched.in.h (struct sched_param): Likewise.
895         * lib/se-selinux.in.h (security_class_t, security_context_t,
896         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
897         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
898         lsetfilecon, fsetfilecon, security_check_context,
899         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
900         Likewise.
901         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
902         Likewise.
903         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
904         _gl_function_taking_int_returning_void_t, union sigval,
905         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
906         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
907         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
908         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
909         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
910         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
911         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
912         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
913         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
914         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
915         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
916         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
917         socklen_t, rpl_fd_isset): Likewise.
918         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
919         * lib/sys_time.in.h (struct timeval): Likewise.
920         * lib/sys_times.in.h (struct tms): Likewise.
921         * lib/sys_utsname.in.h (struct utsname):
922         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
923         * lib/unistd.in.h (getpagesize): Likewise.
924         * lib/wchar.in.h (mbstate_t): Likewise.
925         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
926         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
927         towlower, towupper): Likewise.
928         Reported by Sam Steingold <sds@gnu.org>.
929
930 2011-02-05  Eric Blake  <eblake@redhat.com>
931
932         unsetenv: work around Haiku issues
933         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
934         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
935
936 2010-12-30  Bruce Korb  <bkorb@gnu.org>
937
938         libposix: avoid calling error() within libposix
939         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
940         is defined.
941
942 2011-02-05  Eric Blake  <eblake@redhat.com>
943
944         strerror_r-posix: port to cygwin
945         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
946         implementation.
947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
948         * tests/test-strerror_r.c (main): Fix test.
949         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
950         issue.
951
952 2011-02-05  Bruno Haible  <bruno@clisp.org>
953
954         New module 'wmemchr'.
955         * modules/wmemchr: New file.
956         * lib/wchar.in.h (wmemchr): New declaration.
957         * lib/wmemchr.c: New file.
958         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
959         * m4/wmemchr.m4: New file.
960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
962         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
963         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
964         * doc/posix-functions/wmemchr.texi: Mention the new module.
965
966 2011-02-04  Eric Blake  <eblake@redhat.com>
967
968         fdopendir: detect FreeBSD bug
969         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
970         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
971
972 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
973
974         stdbool: do not define HAVE_STDBOOL_H
975         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
976         AC_HEADER_STDBOOL.  All uses changed.  Do not define
977         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
978         imported from the latest Autoconf git.  It was motivated by Emacs,
979         which uses gnulib but does not need HAVE_STDBOOL_H.
980
981 2011-02-04  Bruno Haible  <bruno@clisp.org>
982
983         wcsnrtombs: Prepare for new module wwcsnrtombs.
984         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
985         * lib/wcsnrtombs.c: Include it.
986         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
987
988         wcsrtombs: Prepare for new module wwcsrtombs.
989         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
990         * lib/wcsrtombs.c: Include it.
991         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
992
993         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
994         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
995         * lib/mbsnrtowcs.c: Include it.
996         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
997
998         mbsrtowcs: Prepare for new module mbsrtowwcs.
999         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
1000         * lib/mbsrtowcs.c: Include it.
1001         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
1002
1003 2011-02-04  Bruno Haible  <bruno@clisp.org>
1004
1005         vasnprintf: Reduce use of malloc for small format strings.
1006         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
1007         (arguments): Add room for the first 7 arguments.
1008         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
1009         (char_directives, u8_directives, u16_directives, u32_directives): Add
1010         room for the first 7 directives.
1011         * lib/printf-parse.c: Include <string.h>.
1012         (PRINTF_PARSE): Change memory handling code so that it uses the first
1013         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
1014         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
1015         Reported by Pádraig Brady <P@draigbrady.com>.
1016
1017 2011-01-31  Eric Blake  <eblake@redhat.com>
1018
1019         dup2: work around Haiku bug
1020         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
1021         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
1022         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1023         * tests/test-dup2.c (main): Enhance test.
1024
1025 2011-01-31  Simon Josefsson  <simon@josefsson.org>
1026
1027         doc: off_t is not available in eglibc 2.11.2 stdio.h.
1028         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
1029         declared by eglibc 2.11.2.
1030         * lib/stdio.in.h: Likewise.
1031
1032 2011-01-31  Eric Blake  <eblake@redhat.com>
1033
1034         ignore-value: add missing test dependency
1035         * tests/test-ignore-value.c: Revert previous change; stdio.h
1036         provides off_t.
1037         * modules/ignore-value-tests (Depends-on): Add missing dependency.
1038
1039 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         mktime: clarify long_int width checking
1042         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
1043         the top level, to make it clearer that the assumption about
1044         long_int width is being checked.  See
1045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
1046
1047 2011-01-30  Simon Josefsson  <simon@josefsson.org>
1048
1049         ignore-value: Fix self-test.
1050         * tests/test-ignore-value.c: Include sys/types.h for off_t.
1051
1052 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1053
1054         TYPE_MAXIMUM: avoid theoretically undefined behavior
1055         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
1056         negative number, which the C Standard says has undefined behavior.
1057         In practice this is not a problem, but might as well do it by the book.
1058         Reported by Rich Felker and Eric Blake; see
1059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
1060         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
1061         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1063         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
1064         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1065         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
1066
1067         mktime: #undef mktime before #defining it
1068         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
1069
1070         mktime: systematically normalize tm_isdst comparisons
1071         * lib/mktime.c (isdst_differ): New function.
1072         (__mktime_internal): Use it systematically for all isdst comparisons.
1073         This completes the fix for libc BZ #6723, and removes the need for
1074         normalizing tm_isdst.  See
1075         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
1076         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
1077
1078         mktime: fix some integer overflow issues and sidestep the rest
1079
1080         This was prompted by a bug report by Benjamin Lindner for MinGW
1081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
1082         His bug is due to signed integer overflow (0 - INT_MIN), and I
1083         I scanned through mktime.c looking for other integer overflow
1084         problems, fixing all the bugs I found.
1085
1086         Although the C Standard says the resulting code is still not safe
1087         in the presence of integer overflow, in practice it should be good
1088         enough for all real-world two's-complement implementations, except
1089         for debugging environments that deliberately trap on integer
1090         overflow (e.g., gcc -ftrapv).
1091
1092         * lib/mktime.c (WRAPV): New macro.
1093         (SHR): Also check that long_int and time_t shift right in the
1094         usual way, before using the fast-but-unportable method.
1095         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
1096         used.  The code already assumed two's complement, so there's
1097         no need to test for alternatives.  All uses removed.
1098         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
1099         the C standard.  Problem reported by Rich Felker in
1100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
1101         (twos_complement_arithmetic): Also check long_int and time_t.
1102         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1103         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1104         (__mktime_internal): Avoid integer overflow with unary subtraction
1105         in two instances where -1 - X is an adequate replacement for -X,
1106         since the calculations are approximate.
1107
1108 2011-01-29  Eric Blake  <eblake@redhat.com>
1109
1110         mktime: avoid infinite loop
1111         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1112         type; behavior is still undefined but portable to all known targets.
1113         Reported by Rich Felker.
1114
1115 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1116
1117         rename, unlink, same-inode: Relicense.
1118         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1119         * modules/unlink (License): Likewise.
1120         * modules/same-inode (License): Likewise.
1121
1122 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         mktime: avoid problems on NetBSD 5 / i386
1125         * lib/mktime.c (long_int): New type.  This works around a problem
1126         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1127         but time_t is 64 bits, and where I expect the existing code is
1128         wrong in some cases.
1129         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1130         (ydhms_diff): Bring back the compile-time check for wide-enough
1131         year and yday.
1132
1133         mktime: fix misspelling in comment
1134         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1135         This merges all recent glibc changes of importance.
1136
1137 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1138
1139         move-if-change: cope with concurrent mv of identical file.
1140         * build-aux/move-if-change (CMPPROG): Accept environment
1141         variable as an override for `cmp'.
1142         (usage): Document CMPPROG.
1143         Adjust comparison to drop stdout.  Cope with failure of mv if
1144         the target file exists and is identical to the source, for
1145         parallel builds.
1146         Report from H.J. Lu against binutils in PR binutils/12283.
1147
1148 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1149
1150         * users.txt: Mention sharutils.
1151
1152 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1153
1154         * users.txt: Mention OATH Toolkit.
1155
1156 2011-01-27  Bruno Haible  <bruno@clisp.org>
1157
1158         Prepare for supporting FreeBSD 10.
1159         * build-aux/config.libpath: Remove handling of freebsd1*.
1160
1161 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1162
1163         Prepare for supporting FreeBSD 10.
1164         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1165         match FreeBSD 10.0.
1166
1167 2011-01-27  Bruno Haible  <bruno@clisp.org>
1168
1169         vma-iter, get-rusage-as: Add OpenBSD support.
1170         * modules/vma-iter (configure.ac): Test for mquery.
1171         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1172         * lib/vma-iter.c: Include <sys/mman.h>.
1173         (vma_iterate): Add an implementation based on mquery().
1174         * lib/resource-ext.h (get_rusage_as): Update comments.
1175         * lib/get-rusage-as.c: Likewise.
1176         * lib/get-rusage-data.c: Likewise.
1177
1178 2011-01-26  Karl Berry  <karl@gnu.org>
1179
1180         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
1181         variables to make it easier to override the makeinfo program used.
1182
1183 2011-01-26  Eric Blake  <eblake@redhat.com>
1184
1185         fcntl: work around Haiku F_DUPFD bugs
1186         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
1187         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
1188         cloexec bit on duplication.
1189         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
1190
1191 2011-01-26  Bruno Haible  <bruno@clisp.org>
1192
1193         Enable memory leak tests on AIX.
1194         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
1195         * tests/test-fprintf-posix3.c (main): Likewise.
1196
1197 2011-01-26  Bruno Haible  <bruno@clisp.org>
1198
1199         Tests for module 'get-rusage-data'.
1200         * modules/get-rusage-data-tests: New file.
1201         * tests/test-get-rusage-data.c: New file.
1202
1203         New module 'get-rusage-data'.
1204         * lib/resource-ext.h (get_rusage_data): New declaration.
1205         * lib/get-rusage-data.c: New file.
1206         * modules/get-rusage-data: New file.
1207
1208 2011-01-25  Bruno Haible  <bruno@clisp.org>
1209
1210         get-rusage-as: Allow for easier testing.
1211         * lib/resource-ext.h (get_rusage_as): Add comment.
1212         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
1213         (main): New function for interactive testing.
1214
1215 2011-01-25  Bruno Haible  <bruno@clisp.org>
1216
1217         vma-iter: Treat Haiku like BeOS.
1218         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
1219         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
1220
1221 2011-01-25  Eric Blake  <eblake@redhat.com>
1222
1223         c-stack: fix regression on cygwin when libsigsegv is present
1224         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
1225
1226 2011-01-24  Bruno Haible  <bruno@clisp.org>
1227
1228         vma-iter: Avoid empty intervals.
1229         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
1230         on an empty interval.
1231
1232 2011-01-24  Jim Meyering  <meyering@redhat.com>
1233
1234         u64: remove unnecessary #include
1235         * lib/u64.h: Don't include <stddef.h>.  It was not used.
1236
1237 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         Allow the user to avoid the GNULIB_TEST_* macros.
1240         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
1241
1242 2011-01-23  Bruno Haible  <bruno@clisp.org>
1243
1244         New module 'vma-iter'.
1245         * lib/vma-iter.h: New file.
1246         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
1247         * modules/vma-iter: New file.
1248         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
1249         for get_rusage_as_via_iterator.
1250         (vma_iterate_callback): New function.
1251         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
1252         * modules/get-rusage-as (Depends-on): Add vma-iter.
1253
1254 2011-01-23  Bruno Haible  <bruno@clisp.org>
1255
1256         uninorm: Tweak includes.
1257         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
1258         Reported by Jim Meyering.
1259
1260 2011-01-23  Bruno Haible  <bruno@clisp.org>
1261
1262         get-rusage-as: Improve on NetBSD.
1263         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
1264         /proc, like on FreeBSD.
1265
1266 2011-01-23  Jim Meyering  <meyering@redhat.com>
1267
1268         xreadlink.h: remove unnecessary #include
1269         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
1270
1271         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
1272         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
1273
1274 2011-01-23  Bruno Haible  <bruno@clisp.org>
1275
1276         get-rusage-as: Fix bug.
1277         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
1278         original limit when aborting the first loop.
1279
1280 2011-01-23  Bruno Haible  <bruno@clisp.org>
1281
1282         wctype: Ensure valid C syntax.
1283         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
1284         unconditionally, instead of gl_NEXT_HEADERS conditionally.
1285
1286 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1287
1288         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
1289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
1290         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
1291         as they are needed only for configure's test case.
1292         This removes two unnecessary symbols from config.h.
1293
1294         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
1295         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
1296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
1297         AC_CHECK_HEADERS_ONCE on a header that we also invoke
1298         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
1299         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
1300         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
1301         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1302         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1303         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1306         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1308         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1309         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1310         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1311         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1312
1313 2011-01-21  Eric Blake  <eblake@redhat.com>
1314
1315         maintainer-makefile: work with older git for submodule check
1316         * top/maint.mk (public-submodule-commit): Rewrite to avoid
1317         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
1318         Reported by Matthias Bolte.
1319
1320         bootstrap: minor portability fixes
1321         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
1322         (usage): Omit leading capital and trailing . on help phrases, per
1323         GNU Coding Standards.
1324         (check_versions, top level): Prefix messages with script name.
1325
1326 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
1327
1328         bootstrap: support --no-git option
1329         * build-aux/bootstrap: Add --no-git option, to be used when
1330         --gnulib-srcdir points to the exact desired checkout.
1331
1332 2011-01-21  Eric Blake  <eblake@redhat.com>
1333
1334         strerror_r-posix: work with glibc 2.13
1335         * lib/strerror_r.c (strerror_r): Fix return type.
1336
1337 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1338             Bruno Haible  <bruno@clisp.org>
1339
1340         uN_strstr: New unit tests.
1341         * modules/unistr/u8-strstr-tests: New file.
1342         * modules/unistr/u16-strstr-tests: New file.
1343         * modules/unistr/u32-strstr-tests: New file.
1344         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
1345         * tests/unistr/test-u8-strstr.c: New file.
1346         * tests/unistr/test-u16-strstr.c: New file.
1347         * tests/unistr/test-u32-strstr.c: New file.
1348
1349 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1350             Bruno Haible  <bruno@clisp.org>
1351
1352         Make uN_strstr functions O(n) worst-case.
1353         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
1354         16-bit and 32-bit unit cases, use the unibyte algorithm from
1355         lib/mbsstr.c.
1356         * lib/unistr/u8-strstr.c: Include <string.h>.
1357         (UNIT_IS_UINT8_T): New macro.
1358         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
1359         (U_STRLEN, U_STRNLEN): New macros.
1360         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
1361         (U_STRLEN, U_STRNLEN): New macros.
1362         * modules/unistr/u8-strstr (Depends-on): Add strstr.
1363         (configure.ac): Update required libunistring version.
1364         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
1365         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
1366         malloca.
1367         (configure.ac): Update required libunistring version.
1368         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
1369         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
1370         malloca.
1371         (configure.ac): Update required libunistring version.
1372
1373 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1374             Bruno Haible  <bruno@clisp.org>
1375
1376         Prepare for faster uN_strstr functions.
1377         * lib/str-kmp.h: Support definable UNITs.
1378         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
1379         needle_len argument.
1380         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
1381         * lib/mbscasestr.c (mbscasestr): Likewise.
1382
1383 2011-01-21  Pádraig Brady <P@draigBrady.com>
1384
1385         malloca-tests: make faster by unsetting MALLOC_PERTURB_
1386         * tests/test-malloca.c (main): Unset the environment variable
1387         to greatly speed up the test.
1388         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
1389         * modules/malloca-tests: Depend on unsetenv.
1390
1391 2011-01-21  Pádraig Brady <P@draigBrady.com>
1392
1393         ignore-value: remove stdint dependency
1394         * lib/ignore-value.h: Remove <stdint.h>
1395         * modules/ignore-value: Remove stdint dependency.
1396
1397 2011-01-21  Jim Meyering  <meyering@redhat.com>
1398
1399         maint.mk: adjust variable name to be consistent with other gl_ vars
1400         * top/maint.mk (gl_public_submodule_commit): Rename the variable
1401         to be lower case.
1402
1403 2011-01-20  Jim Meyering  <meyering@redhat.com>
1404
1405         maint.mk: make "check" depend on public-submodule-commit by default
1406         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
1407
1408 2011-01-20  Bruno Haible  <bruno@clisp.org>
1409
1410         mbfile, mbiter: Complete change from 2008-12-21.
1411         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
1412         * m4/mbiter.m4 (gl_MBITER): Likewise.
1413
1414 2011-01-20  Jim Meyering  <meyering@redhat.com>
1415
1416         init.sh: insert space between each function name and "()"
1417         * tests/init.sh: Make it a little easier to see that a function's
1418         name is "warn_", and not "warn" when looking at the first part of
1419         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
1420
1421 2011-01-20  Jim Meyering  <meyering@redhat.com>
1422
1423         mountlist: clean up code formatting
1424         * lib/mountlist.c (read_file_system_list): Split a long line,
1425         correct bracing style, use NULL in place of "(struct statfs *)0",
1426         don't parenthesize return value, add spaces around "=" and after
1427         ";-in-for-stmt".
1428
1429 2011-01-14  Markus Duft <mduft@gentoo.org>
1430
1431         mountlist: add support for Interix
1432         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
1433         Apply statvfs to all entries of /dev/fs.
1434         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
1435         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
1436
1437 2011-01-20  Jim Meyering  <meyering@redhat.com>
1438
1439         maint.mk: improve the public-submodule-commit rule
1440         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
1441         to suppress printing of its commands... unless V=1.
1442         Add git submodule's --quiet option to suppress printing of e.g.,
1443         "Entering gnulib" output.
1444         "cd" into $(srcdir) before running git submodule.
1445
1446 2011-01-20  Bruno Haible  <bruno@clisp.org>
1447
1448         include_next: Fix bug introduced on 2011-01-18.
1449         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
1450         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
1451         ac_cv_header_... variable if the second argument is not 'check'.
1452         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
1453         gl_NEXT_HEADERS_INTERNAL.
1454
1455 2011-01-20  Bruno Haible  <bruno@clisp.org>
1456
1457         Allow the user to avoid the GNULIB_TEST_* macros.
1458         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
1459         Suggested by Paul Eggert.
1460
1461 2011-01-14  Jim Meyering  <meyering@redhat.com>
1462
1463         bootstrap: avoid failure when there is no .gitmodules file
1464         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
1465         has been assigned to, even when its value is the empty string.
1466         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
1467         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
1468         Reported by John W. Eaton <jwe@gnu.org>.
1469
1470 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1471
1472         assume <ctype.h>, ..., <time.h> exist
1473         For years gnulib has been assuming the existence of the headers
1474         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
1475         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
1476         them, since they don't appear to be needed.
1477         * README (Portability guidelines): Document this.
1478         * lib/flock.c: Assume <fcntl.h> exists.
1479         * lib/regex_internal.h: Assume <locale.h> exists.
1480         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
1481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
1482         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
1483         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
1484         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
1485         * m4/regex.m4 (gl_REGEX): Likewise.
1486         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
1487         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
1488         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
1489         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
1490         * tests/test-argp.c: Likewise.
1491         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
1492
1493         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
1494         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1495         AA_APPLE_UNIVERSAL_BUILD.  See
1496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1497         * NEWS: Document this.
1498
1499 2011-01-19  Eric Blake  <eblake@redhat.com>
1500
1501         c-stack: assume stack overflow if SA_SIGINFO unsupported
1502         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1503         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1504         sigaction will work.
1505         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1506         behavior match Linux.
1507         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1508
1509         stdbool-tests: accomodate Haiku
1510         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1511
1512         binary-io: fix O_TEXT on Haiku
1513         * modules/binary-io (Depends-on): Add fcntl-h.
1514         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1515         than blindly undefining O_TEXT.
1516         Reported by Scott McCreary.
1517
1518 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         include_next: do not check for standard headers like stddef.h
1521
1522         I found this problem when modifying Emacs to use gnulib.
1523         I noticed that it added HAVE_STDDEF_H to config.h, even though
1524         gnulib always assumes <stddef.h> exists as per README and this
1525         symbol is unnecessary.
1526         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1527         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1528         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1529         faster for headers like stddef.h that are known to exist.
1530         (gl_CHECK_NEXT_HEADERS): Use it.
1531         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1532         rather than gl_CHECK_NEXT_HEADERS.
1533         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1534         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1535
1536 2011-01-18  Eric Blake  <eblake@redhat.com>
1537
1538         ansi-c++-opt: skip C++ dependency style if C++ is unused
1539         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1540         tests when we know C++ compilation is not desired.
1541         Reported by Scott McCreary.
1542
1543 2011-01-18  Bruno Haible  <bruno@clisp.org>
1544
1545         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1546         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1547         (main): Perform test also when getrlimit and setrlimit don't exist or
1548         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1549         limiting the address space size using setrlimit, compare the address
1550         space size before and after the the test.
1551         * tests/test-dprintf-posix2.c: Likewise.
1552         * tests/test-fprintf-posix3.sh: Update skip messages.
1553         * tests/test-dprintf-posix2.sh: Likewise.
1554         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1555         * modules/dprintf-posix-tests (Depends-on): Likewise.
1556         Reported by Bruce Korb <bkorb@gnu.org> and
1557         Gary V. Vaughan <gary@gnu.org>.
1558
1559 2011-01-18  Bruno Haible  <bruno@clisp.org>
1560
1561         get-rusage-as: Improvement for Cygwin.
1562         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1563         areas that are merely reserved.
1564
1565 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1566
1567         strftime: remove dependencies on multibyte modules
1568
1569         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1570         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1571         only if __osf__ is defined, and I suspect OSF doesn't need these
1572         other modules.  If my guess is wrong, we'll need to come up with a
1573         variant of strftime that doesn't need the multibyte modules.
1574
1575         I discovered this problem when attempting modify Emacs to use the
1576         strftime module.  With the previous gnulib, this caused Emacs to
1577         need 31 new files, ranging from lib/config.charset to
1578         m4/wint_t.m4.  This was overkill and I expect would be offputting
1579         to the Emacs maintainers.  After this change, only 6 new files are
1580         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1581         stdbool.m4, and tm_gmtoff.m4.
1582
1583         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1584         Suggested by Bruno Haible in
1585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1586         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1587         and do not check for wchar.h.
1588         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1589         (Depends-on): Remove mbrlen, mbsinit, wchar.
1590
1591 2011-01-18  Bruno Haible  <bruno@clisp.org>
1592
1593         Tests for module 'get-rusage-as'.
1594         * modules/get-rusage-as-tests: New file.
1595         * tests/test-get-rusage-as.c: New file.
1596
1597         New module 'get-rusage-as'.
1598         * modules/get-rusage-as: New file.
1599         * lib/resource-ext.h: New file.
1600         * lib/get-rusage-as.c: New file.
1601
1602 2011-01-17  Eric Blake  <eblake@redhat.com>
1603
1604         sigaction: relax license from LGPLv3+ to LGPLv2+
1605         * modules/sigaction (License): Relax to LGPLv2+.
1606
1607 2011-01-14  Bruno Haible  <bruno@clisp.org>
1608
1609         filemode: Make function declarations usable in C++ mode.
1610         * lib/filemode.h: Enclose function declarations in extern "C" block.
1611         Reported by John W. Eaton <jwe@gnu.org>.
1612
1613 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1614
1615         save-cwd: no longer include "xgetcwd.h"
1616         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1617         This avoids a compilation failure in projects that use save-cwd
1618         without also using the xgetcwd module.
1619
1620 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1623         This is so that a program like Emacs, which needs only dtoastr,
1624         does not have to bother with distributing and compiling ftoastr
1625         and ldtoastr.
1626         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1627         * modules/dtoastr, modules/ldtoastr: New files.
1628         * modules/ftoastr: Now works just for 'float'.
1629         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1630         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1631         dtoastr.c, ldtoastr.c.
1632
1633 2011-01-11  Jim Meyering  <meyering@redhat.com>
1634
1635         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1636         There is no need to work around the lack of the fchdir function,
1637         since gnulib can now provide a replacement when required.
1638         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1639         * modules/save-cwd (Depends-on): Add fchdir.
1640
1641 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         openat, save-cwd: avoid xmalloc
1644
1645         This removes a direct (but undocumented) dependency of openat on
1646         xalloc, along with an indirect dependency via save-cwd.  It also
1647         removes a dependency of save-cwd on xgetcwd, and thereby
1648         indirectly on xalloc.  This change causes the openat substitute
1649         to fall back on save_cwd when memory is tight, and for save_cwd to
1650         fail instead of dying when memory is tight, but that's good enough.
1651         Problem and initial idea for fix reported by Bastien Roucaries in
1652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
1653
1654         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1655         xalloc.h (for xmalloc).
1656         (openat_proc_name): Use malloc, not xmalloc.
1657         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1658         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1659
1660         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1661         This avoids heap allocation for file names whose lengths are in
1662         the range 512..1023, with the upper bound increasing to at most
1663         4031 depending on the platform's PATH_MAX.  (We do not want
1664         pathmax.h here as it might supply a non-constant PATH_MAX.)
1665         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1666         Perhaps they should be moved to malloca.h?
1667         (OPENAT_BUFFER_SIZE): Use them.
1668
1669 2011-01-10  Bruno Haible  <bruno@clisp.org>
1670
1671         doc: Update users.txt.
1672         * users.txt: Add recutils.
1673
1674 2011-01-09  Karl Berry  <karl@gnu.org>
1675
1676         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1677
1678         * doc/configmake.texi: New file.
1679         * doc/gnulib.texi: Include it.
1680         * modules/configmake: Move documentation from here.
1681
1682 2011-01-09  Bruno Haible  <bruno@clisp.org>
1683
1684         Update to Unicode 6.0.0.
1685         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1686         (get_lbp): Update for Unicode 6.0.0.
1687         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1688         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1689         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1690         U+11001, U+11038..U+11046. Remove U+06DE.
1691         (uc_width): Fix bounds of planes.
1692         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1693         lib/uniwidth/width.c.
1694         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1695         trailing whitespace removed.
1696         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1697         without comments, but with the original copyright notice.
1698         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1699         * lib/unicase/ignorable.h: Likewise.
1700         * lib/unicase/tocasefold.h: Likewise.
1701         * lib/unicase/tolower.h: Likewise.
1702         * lib/unicase/totitle.h: Likewise.
1703         * lib/unicase/toupper.h: Likewise.
1704         * lib/unictype/bidi_of.h: Likewise.
1705         * lib/unictype/blocks.h: Likewise.
1706         * lib/unictype/categ_C.h: Likewise.
1707         * lib/unictype/categ_Cn.h: Likewise.
1708         * lib/unictype/categ_L.h: Likewise.
1709         * lib/unictype/categ_Ll.h: Likewise.
1710         * lib/unictype/categ_Lm.h: Likewise.
1711         * lib/unictype/categ_Lo.h: Likewise.
1712         * lib/unictype/categ_Lu.h: Likewise.
1713         * lib/unictype/categ_M.h: Likewise.
1714         * lib/unictype/categ_Mc.h: Likewise.
1715         * lib/unictype/categ_Me.h: Likewise.
1716         * lib/unictype/categ_Mn.h: Likewise.
1717         * lib/unictype/categ_N.h: Likewise.
1718         * lib/unictype/categ_Nd.h: Likewise.
1719         * lib/unictype/categ_No.h: Likewise.
1720         * lib/unictype/categ_P.h: Likewise.
1721         * lib/unictype/categ_Po.h: Likewise.
1722         * lib/unictype/categ_S.h: Likewise.
1723         * lib/unictype/categ_Sc.h: Likewise.
1724         * lib/unictype/categ_Sk.h: Likewise.
1725         * lib/unictype/categ_Sm.h: Likewise.
1726         * lib/unictype/categ_So.h: Likewise.
1727         * lib/unictype/categ_of.h: Likewise.
1728         * lib/unictype/combining.h: Likewise.
1729         * lib/unictype/ctype_alnum.h: Likewise.
1730         * lib/unictype/ctype_alpha.h: Likewise.
1731         * lib/unictype/ctype_graph.h: Likewise.
1732         * lib/unictype/ctype_lower.h: Likewise.
1733         * lib/unictype/ctype_print.h: Likewise.
1734         * lib/unictype/ctype_punct.h: Likewise.
1735         * lib/unictype/ctype_upper.h: Likewise.
1736         * lib/unictype/decdigit.h: Likewise.
1737         * lib/unictype/digit.h: Likewise.
1738         * lib/unictype/numeric.h: Likewise.
1739         * lib/unictype/pr_alphabetic.h: Likewise.
1740         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1741         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1742         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1743         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1744         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1745         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1746         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1747         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1748         * lib/unictype/pr_case_ignorable.h: Likewise.
1749         * lib/unictype/pr_cased.h: Likewise.
1750         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1751         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1752         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1753         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1754         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1755         * lib/unictype/pr_combining.h: Likewise.
1756         * lib/unictype/pr_composite.h: Likewise.
1757         * lib/unictype/pr_currency_symbol.h: Likewise.
1758         * lib/unictype/pr_decimal_digit.h: Likewise.
1759         * lib/unictype/pr_deprecated.h: Likewise.
1760         * lib/unictype/pr_format_control.h: Likewise.
1761         * lib/unictype/pr_grapheme_base.h: Likewise.
1762         * lib/unictype/pr_grapheme_extend.h: Likewise.
1763         * lib/unictype/pr_grapheme_link.h: Likewise.
1764         * lib/unictype/pr_id_continue.h: Likewise.
1765         * lib/unictype/pr_id_start.h: Likewise.
1766         * lib/unictype/pr_ideographic.h: Likewise.
1767         * lib/unictype/pr_lowercase.h: Likewise.
1768         * lib/unictype/pr_math.h: Likewise.
1769         * lib/unictype/pr_numeric.h: Likewise.
1770         * lib/unictype/pr_other_alphabetic.h: Likewise.
1771         * lib/unictype/pr_other_id_continue.h: Likewise.
1772         * lib/unictype/pr_other_math.h: Likewise.
1773         * lib/unictype/pr_punctuation.h: Likewise.
1774         * lib/unictype/pr_sentence_terminal.h: Likewise.
1775         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1776         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1777         * lib/unictype/pr_unified_ideograph.h: Likewise.
1778         * lib/unictype/pr_uppercase.h: Likewise.
1779         * lib/unictype/pr_xid_continue.h: Likewise.
1780         * lib/unictype/pr_xid_start.h: Likewise.
1781         * lib/unictype/scripts.h: Likewise.
1782         * lib/unictype/scripts_byname.gperf: Likewise.
1783         * lib/unictype/sy_java_ident.h: Likewise.
1784         * lib/unigbrk/gbrkprop.h: Likewise.
1785         * lib/unilbrk/lbrkprop1.h: Likewise.
1786         * lib/unilbrk/lbrkprop2.h: Likewise.
1787         * lib/uninorm/decomposition-table2.h: Likewise.
1788         * lib/uniwbrk/wbrkprop.h: Likewise.
1789         * tests/unicase/test-cased.c: Likewise.
1790         * tests/unicase/test-ignorable.c: Likewise.
1791         * tests/unicase/test-uc_tolower.c: Likewise.
1792         * tests/unicase/test-uc_totitle.c: Likewise.
1793         * tests/unicase/test-uc_toupper.c: Likewise.
1794         * tests/unictype/test-categ_C.c: Likewise.
1795         * tests/unictype/test-categ_Cn.c: Likewise.
1796         * tests/unictype/test-categ_L.c: Likewise.
1797         * tests/unictype/test-categ_Ll.c: Likewise.
1798         * tests/unictype/test-categ_Lm.c: Likewise.
1799         * tests/unictype/test-categ_Lo.c: Likewise.
1800         * tests/unictype/test-categ_Lu.c: Likewise.
1801         * tests/unictype/test-categ_M.c: Likewise.
1802         * tests/unictype/test-categ_Mc.c: Likewise.
1803         * tests/unictype/test-categ_Me.c: Likewise.
1804         * tests/unictype/test-categ_Mn.c: Likewise.
1805         * tests/unictype/test-categ_N.c: Likewise.
1806         * tests/unictype/test-categ_Nd.c: Likewise.
1807         * tests/unictype/test-categ_No.c: Likewise.
1808         * tests/unictype/test-categ_P.c: Likewise.
1809         * tests/unictype/test-categ_Po.c: Likewise.
1810         * tests/unictype/test-categ_S.c: Likewise.
1811         * tests/unictype/test-categ_Sc.c: Likewise.
1812         * tests/unictype/test-categ_Sk.c: Likewise.
1813         * tests/unictype/test-categ_Sm.c: Likewise.
1814         * tests/unictype/test-categ_So.c: Likewise.
1815         * tests/unictype/test-ctype_alnum.c: Likewise.
1816         * tests/unictype/test-ctype_alpha.c: Likewise.
1817         * tests/unictype/test-ctype_graph.c: Likewise.
1818         * tests/unictype/test-ctype_lower.c: Likewise.
1819         * tests/unictype/test-ctype_print.c: Likewise.
1820         * tests/unictype/test-ctype_punct.c: Likewise.
1821         * tests/unictype/test-ctype_upper.c: Likewise.
1822         * tests/unictype/test-decdigit.h: Likewise.
1823         * tests/unictype/test-digit.h: Likewise.
1824         * tests/unictype/test-numeric.h: Likewise.
1825         * tests/unictype/test-pr_alphabetic.c: Likewise.
1826         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1827         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1828         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1829         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1830         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1831         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1832         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1833         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1834         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1835         * tests/unictype/test-pr_cased.c: Likewise.
1836         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1837         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1838         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1839         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1840         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1841         * tests/unictype/test-pr_combining.c: Likewise.
1842         * tests/unictype/test-pr_composite.c: Likewise.
1843         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1844         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1845         * tests/unictype/test-pr_deprecated.c: Likewise.
1846         * tests/unictype/test-pr_format_control.c: Likewise.
1847         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1848         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1849         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1850         * tests/unictype/test-pr_id_continue.c: Likewise.
1851         * tests/unictype/test-pr_id_start.c: Likewise.
1852         * tests/unictype/test-pr_ideographic.c: Likewise.
1853         * tests/unictype/test-pr_lowercase.c: Likewise.
1854         * tests/unictype/test-pr_math.c: Likewise.
1855         * tests/unictype/test-pr_numeric.c: Likewise.
1856         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1857         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1858         * tests/unictype/test-pr_other_math.c: Likewise.
1859         * tests/unictype/test-pr_punctuation.c: Likewise.
1860         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1861         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1862         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1863         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1864         * tests/unictype/test-pr_uppercase.c: Likewise.
1865         * tests/unictype/test-pr_xid_continue.c: Likewise.
1866         * tests/unictype/test-pr_xid_start.c: Likewise.
1867         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1868         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1869         changes.
1870         * lib/unictype/categ_Cc.h: Likewise.
1871         * lib/unictype/categ_Cf.h: Likewise.
1872         * lib/unictype/categ_Co.h: Likewise.
1873         * lib/unictype/categ_Cs.h: Likewise.
1874         * lib/unictype/categ_Lt.h: Likewise.
1875         * lib/unictype/categ_Nl.h: Likewise.
1876         * lib/unictype/categ_Pc.h: Likewise.
1877         * lib/unictype/categ_Pd.h: Likewise.
1878         * lib/unictype/categ_Pe.h: Likewise.
1879         * lib/unictype/categ_Pf.h: Likewise.
1880         * lib/unictype/categ_Pi.h: Likewise.
1881         * lib/unictype/categ_Ps.h: Likewise.
1882         * lib/unictype/categ_Z.h: Likewise.
1883         * lib/unictype/categ_Zl.h: Likewise.
1884         * lib/unictype/categ_Zp.h: Likewise.
1885         * lib/unictype/categ_Zs.h: Likewise.
1886         * lib/unictype/ctype_blank.h: Likewise.
1887         * lib/unictype/ctype_cntrl.h: Likewise.
1888         * lib/unictype/ctype_digit.h: Likewise.
1889         * lib/unictype/ctype_space.h: Likewise.
1890         * lib/unictype/ctype_xdigit.h: Likewise.
1891         * lib/unictype/mirror.h: Likewise.
1892         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1893         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1894         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1895         * lib/unictype/pr_bidi_control.h: Likewise.
1896         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1897         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1898         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1899         * lib/unictype/pr_bidi_pdf.h: Likewise.
1900         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1901         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1902         * lib/unictype/pr_dash.h: Likewise.
1903         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1904         * lib/unictype/pr_diacritic.h: Likewise.
1905         * lib/unictype/pr_extender.h: Likewise.
1906         * lib/unictype/pr_hex_digit.h: Likewise.
1907         * lib/unictype/pr_hyphen.h: Likewise.
1908         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1909         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1910         * lib/unictype/pr_ignorable_control.h: Likewise.
1911         * lib/unictype/pr_iso_control.h: Likewise.
1912         * lib/unictype/pr_join_control.h: Likewise.
1913         * lib/unictype/pr_left_of_pair.h: Likewise.
1914         * lib/unictype/pr_line_separator.h: Likewise.
1915         * lib/unictype/pr_logical_order_exception.h: Likewise.
1916         * lib/unictype/pr_non_break.h: Likewise.
1917         * lib/unictype/pr_not_a_character.h: Likewise.
1918         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1919         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1920         * lib/unictype/pr_other_id_start.h: Likewise.
1921         * lib/unictype/pr_other_lowercase.h: Likewise.
1922         * lib/unictype/pr_other_uppercase.h: Likewise.
1923         * lib/unictype/pr_paired_punctuation.h: Likewise.
1924         * lib/unictype/pr_paragraph_separator.h: Likewise.
1925         * lib/unictype/pr_pattern_syntax.h: Likewise.
1926         * lib/unictype/pr_pattern_white_space.h: Likewise.
1927         * lib/unictype/pr_private_use.h: Likewise.
1928         * lib/unictype/pr_quotation_mark.h: Likewise.
1929         * lib/unictype/pr_radical.h: Likewise.
1930         * lib/unictype/pr_soft_dotted.h: Likewise.
1931         * lib/unictype/pr_space.h: Likewise.
1932         * lib/unictype/pr_titlecase.h: Likewise.
1933         * lib/unictype/pr_variation_selector.h: Likewise.
1934         * lib/unictype/pr_white_space.h: Likewise.
1935         * lib/unictype/pr_zero_width.h: Likewise.
1936         * lib/unictype/sy_c_ident.h: Likewise.
1937         * lib/unictype/sy_c_whitespace.h: Likewise.
1938         * lib/unictype/sy_java_whitespace.h: Likewise.
1939         * lib/uninorm/composition-table.gperf: Likewise.
1940         * lib/uninorm/decomposition-table1.h: Likewise.
1941         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
1942         LB8.
1943         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1944         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1945         * modules/unictype/*: Bump version number of expected libunistring
1946         version.
1947
1948 2011-01-09  Bruno Haible  <bruno@clisp.org>
1949
1950         Update to Unicode 5.2.0.
1951         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
1952         trailing whitespace removed.
1953
1954 2011-01-09  Bruno Haible  <bruno@clisp.org>
1955
1956         New Unicode character properties, from Unicode 5.2.0.
1957         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
1958         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
1959         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
1960         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
1961         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
1962         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
1963         uc_is_property_cased, uc_is_property_case_ignorable,
1964         uc_is_property_changes_when_lowercased,
1965         uc_is_property_changes_when_uppercased,
1966         uc_is_property_changes_when_titlecased,
1967         uc_is_property_changes_when_casefolded,
1968         uc_is_property_changes_when_casemapped): New declarations.
1969         * lib/unictype/pr_byname.gperf: Add the new properties.
1970         * modules/unictype/property-byname (Depends-on): Depend on the new
1971         properties modules.
1972         * modules/unictype/property-all (Depends-on): Likewise.
1973         * MODULES.html.sh (Unicode string functions): Add
1974         unictype/property-case-ignorable, unictype/property-cased,
1975         unictype/property-changes-when-casefolded,
1976         unictype/property-changes-when-casemapped,
1977         unictype/property-changes-when-lowercased,
1978         unictype/property-changes-when-titlecased,
1979         unictype/property-changes-when-uppercased.
1980
1981         New module 'unictype/property-changes-when-casemapped'.
1982         * modules/unictype/property-changes-when-casemapped: New file.
1983         * lib/unictype/pr_changes_when_casemapped.c: New file.
1984         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1985         generated by gen-uni-tables.
1986         * modules/unictype/property-changes-when-casemapped-tests: New file.
1987         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1988         automatically generated by gen-uni-tables.
1989
1990         New module 'unictype/property-changes-when-casefolded'.
1991         * modules/unictype/property-changes-when-casefolded: New file.
1992         * lib/unictype/pr_changes_when_casefolded.c: New file.
1993         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1994         generated by gen-uni-tables.
1995         * modules/unictype/property-changes-when-casefolded-tests: New file.
1996         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1997         automatically generated by gen-uni-tables.
1998
1999         New module 'unictype/property-changes-when-titlecased'.
2000         * modules/unictype/property-changes-when-titlecased: New file.
2001         * lib/unictype/pr_changes_when_titlecased.c: New file.
2002         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
2003         generated by gen-uni-tables.
2004         * modules/unictype/property-changes-when-titlecased-tests: New file.
2005         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
2006         automatically generated by gen-uni-tables.
2007
2008         New module 'unictype/property-changes-when-uppercased'.
2009         * modules/unictype/property-changes-when-uppercased: New file.
2010         * lib/unictype/pr_changes_when_uppercased.c: New file.
2011         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
2012         generated by gen-uni-tables.
2013         * modules/unictype/property-changes-when-uppercased-tests: New file.
2014         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
2015         automatically generated by gen-uni-tables.
2016
2017         New module 'unictype/property-changes-when-lowercased'.
2018         * modules/unictype/property-changes-when-lowercased: New file.
2019         * lib/unictype/pr_changes_when_lowercased.c: New file.
2020         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
2021         generated by gen-uni-tables.
2022         * modules/unictype/property-changes-when-lowercased-tests: New file.
2023         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
2024         automatically generated by gen-uni-tables.
2025
2026         New module 'unictype/property-case-ignorable'.
2027         * modules/unictype/property-case-ignorable: New file.
2028         * lib/unictype/pr_case_ignorable.c: New file.
2029         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
2030         by gen-uni-tables.
2031         * modules/unictype/property-case-ignorable-tests: New file.
2032         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
2033         generated by gen-uni-tables.
2034
2035         New module 'unictype/property-cased'.
2036         * modules/unictype/property-cased: New file.
2037         * lib/unictype/pr_cased.c: New file.
2038         * lib/unictype/pr_cased.h: New file, automatically generated by
2039         gen-uni-tables.
2040         * modules/unictype/property-cased-tests: New file.
2041         * tests/unictype/test-pr_cased.c: New file, automatically generated by
2042         gen-uni-tables.
2043
2044 2011-01-09  Bruno Haible  <bruno@clisp.org>
2045
2046         Update to Unicode 5.2.0.
2047         * lib/gen-uni-tables.c (output_predicate, output_category,
2048         output_combclass, output_bidi_category, output_decimal_digit_test,
2049         output_decimal_digit, output_digit_test, output_digit,
2050         output_numeric_test, output_numeric, output_mirror, output_scripts,
2051         output_scripts_byname, output_blocks, output_ident_category): Fix
2052         comment header.
2053         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
2054         get_wbp.
2055         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
2056         items.
2057         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
2058         Changes_When_Lowercased, Changes_When_Uppercased,
2059         Changes_When_Titlecased, Changes_When_Casefolded,
2060         Changes_When_Casemapped.
2061         (is_property_alphabetic, is_property_default_ignorable_code_point):
2062         Update for Unicode 5.2.0.
2063         (is_property_cased, is_property_case_ignorable,
2064         is_property_changes_when_lowercased,
2065         is_property_changes_when_uppercased,
2066         is_property_changes_when_titlecased,
2067         is_property_changes_when_casefolded,
2068         is_property_changes_when_casemapped): New functions.
2069         (output_properties): Output also the properties cased, case_ignorable,
2070         changes_when_lowercased, changes_when_uppercased,
2071         changes_when_titlecased, changes_when_casefolded,
2072         changes_when_casemapped.
2073         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
2074         Unicode TR#11 revision 17 -> 19.
2075         (LBP_CP): New enumeration value.
2076         (LBP_*): Adjust values accordingly.
2077         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2078         TR#14 revision 22 -> 24.
2079         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
2080         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
2081         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2082         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
2083         is_WBP_MIDLETTER.
2084         (output_composition_tables): Allow for 24 bits instead of 16 bits in
2085         the code1 and code2 of each composition rule.
2086         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
2087         * lib/unicase/ignorable.h: Likewise.
2088         * lib/unicase/tocasefold.h: Likewise.
2089         * lib/unicase/tolower.h: Likewise.
2090         * lib/unicase/totitle.h: Likewise.
2091         * lib/unicase/toupper.h: Likewise.
2092         * lib/unictype/bidi_of.h: Likewise.
2093         * lib/unictype/blocks.h: Likewise.
2094         * lib/unictype/categ_C.h: Likewise.
2095         * lib/unictype/categ_Cf.h: Likewise.
2096         * lib/unictype/categ_Cn.h: Likewise.
2097         * lib/unictype/categ_L.h: Likewise.
2098         * lib/unictype/categ_Ll.h: Likewise.
2099         * lib/unictype/categ_Lm.h: Likewise.
2100         * lib/unictype/categ_Lo.h: Likewise.
2101         * lib/unictype/categ_Lu.h: Likewise.
2102         * lib/unictype/categ_M.h: Likewise.
2103         * lib/unictype/categ_Mc.h: Likewise.
2104         * lib/unictype/categ_Mn.h: Likewise.
2105         * lib/unictype/categ_N.h: Likewise.
2106         * lib/unictype/categ_Nd.h: Likewise.
2107         * lib/unictype/categ_Nl.h: Likewise.
2108         * lib/unictype/categ_No.h: Likewise.
2109         * lib/unictype/categ_P.h: Likewise.
2110         * lib/unictype/categ_Pd.h: Likewise.
2111         * lib/unictype/categ_Po.h: Likewise.
2112         * lib/unictype/categ_S.h: Likewise.
2113         * lib/unictype/categ_Sc.h: Likewise.
2114         * lib/unictype/categ_So.h: Likewise.
2115         * lib/unictype/categ_of.h: Likewise.
2116         * lib/unictype/combining.h: Likewise.
2117         * lib/unictype/ctype_alnum.h: Likewise.
2118         * lib/unictype/ctype_alpha.h: Likewise.
2119         * lib/unictype/ctype_graph.h: Likewise.
2120         * lib/unictype/ctype_lower.h: Likewise.
2121         * lib/unictype/ctype_print.h: Likewise.
2122         * lib/unictype/ctype_punct.h: Likewise.
2123         * lib/unictype/ctype_upper.h: Likewise.
2124         * lib/unictype/decdigit.h: Likewise.
2125         * lib/unictype/digit.h: Likewise.
2126         * lib/unictype/numeric.h: Likewise.
2127         * lib/unictype/pr_alphabetic.h: Likewise.
2128         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2129         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2130         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2131         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2132         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2133         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2134         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2135         * lib/unictype/pr_combining.h: Likewise.
2136         * lib/unictype/pr_composite.h: Likewise.
2137         * lib/unictype/pr_currency_symbol.h: Likewise.
2138         * lib/unictype/pr_dash.h: Likewise.
2139         * lib/unictype/pr_decimal_digit.h: Likewise.
2140         * lib/unictype/pr_deprecated.h: Likewise.
2141         * lib/unictype/pr_diacritic.h: Likewise.
2142         * lib/unictype/pr_extender.h: Likewise.
2143         * lib/unictype/pr_grapheme_base.h: Likewise.
2144         * lib/unictype/pr_grapheme_extend.h: Likewise.
2145         * lib/unictype/pr_grapheme_link.h: Likewise.
2146         * lib/unictype/pr_id_continue.h: Likewise.
2147         * lib/unictype/pr_id_start.h: Likewise.
2148         * lib/unictype/pr_ideographic.h: Likewise.
2149         * lib/unictype/pr_ignorable_control.h: Likewise.
2150         * lib/unictype/pr_logical_order_exception.h: Likewise.
2151         * lib/unictype/pr_lowercase.h: Likewise.
2152         * lib/unictype/pr_numeric.h: Likewise.
2153         * lib/unictype/pr_other_alphabetic.h: Likewise.
2154         * lib/unictype/pr_punctuation.h: Likewise.
2155         * lib/unictype/pr_sentence_terminal.h: Likewise.
2156         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2157         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2158         * lib/unictype/pr_unified_ideograph.h: Likewise.
2159         * lib/unictype/pr_uppercase.h: Likewise.
2160         * lib/unictype/pr_xid_continue.h: Likewise.
2161         * lib/unictype/pr_xid_start.h: Likewise.
2162         * lib/unictype/pr_zero_width.h: Likewise.
2163         * lib/unictype/scripts.h: Likewise.
2164         * lib/unictype/scripts_byname.gperf: Likewise.
2165         * lib/unictype/sy_java_ident.h: Likewise.
2166         * lib/unigbrk/gbrkprop.h: Likewise.
2167         * lib/unilbrk/lbrkprop1.h: Likewise.
2168         * lib/unilbrk/lbrkprop2.h: Likewise.
2169         * lib/unilbrk/lbrktables.h: Likewise.
2170         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2171         LBP_CP. Implement rule LB30.
2172         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2173         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2174         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2175         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2176         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
2177         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
2178         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
2179         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
2180         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
2181         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
2182         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
2183         bits instead of 16 bits in the code1 and code2 of each composition
2184         rule.
2185         (uc_composition): Update for Unicode 5.2.0.
2186         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
2187         * lib/uninorm/decomposition-table2.h: Likewise.
2188         * lib/uniwbrk/wbrkprop.h: Likewise.
2189         * tests/unicase/test-cased.c: Likewise.
2190         * tests/unicase/test-ignorable.c: Likewise.
2191         * tests/unicase/test-uc_tolower.c: Likewise.
2192         * tests/unicase/test-uc_totitle.c: Likewise.
2193         * tests/unicase/test-uc_toupper.c: Likewise.
2194         * tests/unictype/test-categ_C.c: Likewise.
2195         * tests/unictype/test-categ_Cf.c: Likewise.
2196         * tests/unictype/test-categ_Cn.c: Likewise.
2197         * tests/unictype/test-categ_L.c: Likewise.
2198         * tests/unictype/test-categ_Ll.c: Likewise.
2199         * tests/unictype/test-categ_Lm.c: Likewise.
2200         * tests/unictype/test-categ_Lo.c: Likewise.
2201         * tests/unictype/test-categ_Lu.c: Likewise.
2202         * tests/unictype/test-categ_M.c: Likewise.
2203         * tests/unictype/test-categ_Mc.c: Likewise.
2204         * tests/unictype/test-categ_Mn.c: Likewise.
2205         * tests/unictype/test-categ_N.c: Likewise.
2206         * tests/unictype/test-categ_Nd.c: Likewise.
2207         * tests/unictype/test-categ_Nl.c: Likewise.
2208         * tests/unictype/test-categ_No.c: Likewise.
2209         * tests/unictype/test-categ_P.c: Likewise.
2210         * tests/unictype/test-categ_Pd.c: Likewise.
2211         * tests/unictype/test-categ_Po.c: Likewise.
2212         * tests/unictype/test-categ_S.c: Likewise.
2213         * tests/unictype/test-categ_Sc.c: Likewise.
2214         * tests/unictype/test-categ_So.c: Likewise.
2215         * tests/unictype/test-ctype_alnum.c: Likewise.
2216         * tests/unictype/test-ctype_alpha.c: Likewise.
2217         * tests/unictype/test-ctype_graph.c: Likewise.
2218         * tests/unictype/test-ctype_lower.c: Likewise.
2219         * tests/unictype/test-ctype_print.c: Likewise.
2220         * tests/unictype/test-ctype_punct.c: Likewise.
2221         * tests/unictype/test-ctype_upper.c: Likewise.
2222         * tests/unictype/test-decdigit.h: Likewise.
2223         * tests/unictype/test-digit.h: Likewise.
2224         * tests/unictype/test-numeric.h: Likewise.
2225         * tests/unictype/test-pr_alphabetic.c: Likewise.
2226         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2227         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2228         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2229         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2230         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2231         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2232         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2233         * tests/unictype/test-pr_combining.c: Likewise.
2234         * tests/unictype/test-pr_composite.c: Likewise.
2235         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2236         * tests/unictype/test-pr_dash.c: Likewise.
2237         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2238         * tests/unictype/test-pr_deprecated.c: Likewise.
2239         * tests/unictype/test-pr_diacritic.c: Likewise.
2240         * tests/unictype/test-pr_extender.c: Likewise.
2241         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2242         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2243         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2244         * tests/unictype/test-pr_id_continue.c: Likewise.
2245         * tests/unictype/test-pr_id_start.c: Likewise.
2246         * tests/unictype/test-pr_ideographic.c: Likewise.
2247         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2248         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2249         * tests/unictype/test-pr_lowercase.c: Likewise.
2250         * tests/unictype/test-pr_numeric.c: Likewise.
2251         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2252         * tests/unictype/test-pr_punctuation.c: Likewise.
2253         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2254         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2255         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2256         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2257         * tests/unictype/test-pr_uppercase.c: Likewise.
2258         * tests/unictype/test-pr_xid_continue.c: Likewise.
2259         * tests/unictype/test-pr_xid_start.c: Likewise.
2260         * tests/unictype/test-pr_zero_width.c: Likewise.
2261         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2262         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
2263         changed behaviour: line breaking is now disallowed between a letter
2264         or '=' and '('.
2265         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2266         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2267         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2268         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
2269         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2270         lib/uniwidth/width.c.
2271         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
2272         without comments, but with the original copyright notice.
2273         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2274         changes.
2275         * lib/unictype/categ_Cc.h: Likewise.
2276         * lib/unictype/categ_Co.h: Likewise.
2277         * lib/unictype/categ_Cs.h: Likewise.
2278         * lib/unictype/categ_Lt.h: Likewise.
2279         * lib/unictype/categ_Me.h: Likewise.
2280         * lib/unictype/categ_Pc.h: Likewise.
2281         * lib/unictype/categ_Pe.h: Likewise.
2282         * lib/unictype/categ_Pf.h: Likewise.
2283         * lib/unictype/categ_Pi.h: Likewise.
2284         * lib/unictype/categ_Ps.h: Likewise.
2285         * lib/unictype/categ_Sk.h: Likewise.
2286         * lib/unictype/categ_Sm.h: Likewise.
2287         * lib/unictype/categ_Z.h: Likewise.
2288         * lib/unictype/categ_Zl.h: Likewise.
2289         * lib/unictype/categ_Zp.h: Likewise.
2290         * lib/unictype/categ_Zs.h: Likewise.
2291         * lib/unictype/ctype_blank.h: Likewise.
2292         * lib/unictype/ctype_cntrl.h: Likewise.
2293         * lib/unictype/ctype_digit.h: Likewise.
2294         * lib/unictype/ctype_space.h: Likewise.
2295         * lib/unictype/ctype_xdigit.h: Likewise.
2296         * lib/unictype/mirror.h: Likewise.
2297         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2298         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2299         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2300         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2301         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2302         * lib/unictype/pr_bidi_control.h: Likewise.
2303         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2304         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2305         * lib/unictype/pr_bidi_pdf.h: Likewise.
2306         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2307         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2308         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2309         * lib/unictype/pr_format_control.h: Likewise.
2310         * lib/unictype/pr_hex_digit.h: Likewise.
2311         * lib/unictype/pr_hyphen.h: Likewise.
2312         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2313         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2314         * lib/unictype/pr_iso_control.h: Likewise.
2315         * lib/unictype/pr_join_control.h: Likewise.
2316         * lib/unictype/pr_left_of_pair.h: Likewise.
2317         * lib/unictype/pr_line_separator.h: Likewise.
2318         * lib/unictype/pr_math.h: Likewise.
2319         * lib/unictype/pr_non_break.h: Likewise.
2320         * lib/unictype/pr_not_a_character.h: Likewise.
2321         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2322         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2323         * lib/unictype/pr_other_id_continue.h: Likewise.
2324         * lib/unictype/pr_other_id_start.h: Likewise.
2325         * lib/unictype/pr_other_lowercase.h: Likewise.
2326         * lib/unictype/pr_other_math.h: Likewise.
2327         * lib/unictype/pr_other_uppercase.h: Likewise.
2328         * lib/unictype/pr_paired_punctuation.h: Likewise.
2329         * lib/unictype/pr_paragraph_separator.h: Likewise.
2330         * lib/unictype/pr_pattern_syntax.h: Likewise.
2331         * lib/unictype/pr_pattern_white_space.h: Likewise.
2332         * lib/unictype/pr_private_use.h: Likewise.
2333         * lib/unictype/pr_quotation_mark.h: Likewise.
2334         * lib/unictype/pr_radical.h: Likewise.
2335         * lib/unictype/pr_soft_dotted.h: Likewise.
2336         * lib/unictype/pr_space.h: Likewise.
2337         * lib/unictype/pr_titlecase.h: Likewise.
2338         * lib/unictype/pr_variation_selector.h: Likewise.
2339         * lib/unictype/pr_white_space.h: Likewise.
2340         * lib/unictype/sy_c_ident.h: Likewise.
2341         * lib/unictype/sy_c_whitespace.h: Likewise.
2342         * lib/unictype/sy_java_whitespace.h: Likewise.
2343         * modules/uni*/*: Bump version number of expected libunistring version.
2344         Reported by Simon Josefsson.
2345
2346 2011-01-09  Karl Heuer  <kwzh@gnu.org>
2347
2348         useless-if-before-free: fix typo in --help and make the internal,
2349         automatic version date update process work once again.
2350         --help output contained a NUL character instead of the
2351         backslash-zero that was intended.  Also, the "must lie within
2352         the first 8 lines" line is on line 9, and hence not getting
2353         automatically updated.
2354         * build-aux/useless-if-before-free: Fix the former by adding a
2355         backslash, and the latter by condensing the three lines of what-it-does
2356         to a single line, leaving one line of slack for the future.
2357
2358 2011-01-09  Bruno Haible  <bruno@clisp.org>
2359
2360         uniwidth/width: Fix width of U+1D173..U+1D17A.
2361         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
2362         symbolic_width, output_width_property_test): New functions.
2363         (main): Invoke output_nonspacing_property, output_width_property_test.
2364         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
2365         U+1D173..U+1D17A.
2366         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
2367         1.
2368         * modules/uniwidth/*: Bump version number of expected libunistring
2369         version.
2370         * modules/unilbrk/*: Likewise.
2371
2372 2011-01-08  Bruno Haible  <bruno@clisp.org>
2373
2374         uninorm tests: Preserve copyright of Unicode data file.
2375         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
2376         Mention modifications.
2377
2378 2011-01-08  Bruno Haible  <bruno@clisp.org>
2379
2380         gen-uni-tables: Prepare for Unicode 5.2.0.
2381         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
2382         (debug_output_lbp, output_lbp): Update.
2383
2384 2011-01-08  Bruno Haible  <bruno@clisp.org>
2385
2386         unilbrk: Clarify gen-uni-tables.c code.
2387         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
2388         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
2389         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
2390
2391 2011-01-07  Bruno Haible  <bruno@clisp.org>
2392
2393         strtod: Restore errno when successfully parsing Infinity or NaN.
2394         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
2395         restore the original errno.
2396
2397 2011-01-07  Bruno Haible  <bruno@clisp.org>
2398
2399         remove test: Avoid failure on HP-UX 11.
2400         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
2401
2402 2011-01-07  Bruno Haible  <bruno@clisp.org>
2403
2404         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
2405         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
2406         error code.
2407
2408 2011-01-07  Pádraig Brady <P@draigBrady.com>
2409
2410         ignore-value: fixup comments, and add Eric Blake
2411         as an author since he rewrote the macros.
2412         * lib/ignore-value.h (ignore_value):  State that
2413         we now support aggregates.  Also specify exactly
2414         when the GCC warn_unused_result feature was added.
2415
2416 2011-01-06  Eric Blake  <eblake@redhat.com>
2417
2418         ignore-value: support aggregate types
2419         * lib/ignore-value.h (ignore_value): Provide separate gcc
2420         definition.
2421         * modules/ignore-value-tests: New test module.
2422         * tests/test-ignore-value.c: New test.
2423
2424         maint.mk: improve sc_prohibit_strcmp regex
2425         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
2426         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
2427         definition of STRNEQ.
2428
2429         signal: work around Haiku issue with SIGBUS
2430         * lib/siglist.h: Add comment.
2431         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
2432         strsignal's favoring of SIGSEGV.
2433         * tests/test-signal.c (main): Avoid test failure.
2434         * doc/posix-headers/signal.texi (signal.h): Document the issue.
2435         Reported by Scott McCreary.
2436
2437         maint.mk: add pre-release check to ensure submodule commits are public
2438         * top/maint.mk (public-submodule-commit): New rule.
2439         (submodule-checks): New variable.
2440         (alpha beta stable): Depend on the variable.
2441
2442 2011-01-05  Pádraig Brady <P@draigBrady.com>
2443         and Jim Meyering  <meyering@redhat.com>
2444
2445         ignore-value: make ignore_value more generic; deprecate ignore_ptr
2446         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
2447         (ATTRIBUTE_DEPRECATED): Define.
2448         (_ignore_case): New function.
2449         (ignore_value): New macro, to replace the old function.
2450         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
2451         * modules/ignore-value (Depends-on): Add stdint.
2452
2453 2011-01-04  Eric Blake  <eblake@redhat.com>
2454
2455         doc: regenerate INSTALL
2456         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
2457         @firstparagraphindent support, now that autoconf dropped it.
2458         (INSTALL_PRELUDE): Reinstate old macro.
2459         * doc/install.texi: Resync from autoconf.
2460         * doc/INSTALL: Reflect recent autoconf update.
2461         * doc/INSTALL.ISO: Likewise.
2462         * doc/INSTALL.UTF-8: Likewise.
2463         Reported by Karl Berry.
2464
2465 2011-01-04  Bruce Korb  <address@hidden>
2466
2467         git-version-gen: avoid a sub-shell
2468         * build-aux/git-version-gen: Redirect stderr in `...` via
2469         "exec 2>...", rather than via an added sub-shell.
2470
2471 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
2472
2473         git-version-gen: use (...) rather than sh -c '...'
2474         * build-aux/git-version-gen: Rather than hard-coding a shell's name
2475         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
2476
2477 2011-01-03  Jim Meyering  <meyering@redhat.com>
2478
2479         git-version-gen: convert leading TABs to spaces
2480         * build-aux/git-version-gen: Expand leading TABs.
2481
2482         git-version-gen: handle failed "git rev-list"
2483         * build-aux/git-version-gen: Rather than leaking a "fatal" error
2484         from git and proceeding as if it had succeeded but printed no SHA1
2485         checksums, suppress the diagnostic and handle the failure.
2486         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
2487
2488         git-version-gen: include command name in one more diagnostic
2489         * build-aux/git-version-gen: When the required .tarball-version file
2490         was missing or unreadable, you might see the diagnostic from "cat",
2491         but no trace of the name of the invoking script.  Now, you still see
2492         the diagnostic from cat, but also get one from "git-version-gen: ".
2493         Inspired by a patch from Bruce Korb.
2494
2495         update-copyright: adjust test to match changed code
2496         * tests/test-update-copyright.sh: Change test's expected output
2497         to match new actual output.
2498
2499 2011-01-02  Bruno Haible  <bruno@clisp.org>
2500
2501         getlogin_r: Avoid test failure on HP-UX 11.
2502         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2503         ERANGE when the second argument is zero.
2504         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2505         portability problem.
2506
2507 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2508
2509         * build-aux/update-copyright: doc Simon's changes
2510
2511 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2512
2513         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2514         environment variable.
2515
2516 2011-01-02  Bruno Haible  <bruno@clisp.org>
2517
2518         unigbrk: Avoid gcc warnings.
2519         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2520         unused variable.
2521         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2522         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2523         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2524         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2525         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2526         Change type of first argument to 'const char *'.
2527         (main): Remove unused variable.
2528         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2529         type of first argument to 'const char *'.
2530         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2531         Likewise.
2532         (main): Change type of variable 's'.
2533         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2534         to 'int'.
2535
2536 2011-01-02  Bruno Haible  <bruno@clisp.org>
2537
2538         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2539         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2540         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2541         bug.
2542         * lib/pwrite.c: Undo 2010-12-31 patch.
2543         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2544
2545 2011-01-02  Bruno Haible  <bruno@clisp.org>
2546
2547         pread: Fix test whether it works.
2548         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2549
2550 2011-01-02  Bruno Haible  <bruno@clisp.org>
2551
2552         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2553         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2554         ends in "6". Don't require a specific month name. Try also the locale
2555         names found on HP-UX 11 and Solaris 7.
2556
2557 2011-01-02  Bruno Haible  <bruno@clisp.org>
2558
2559         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2560         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2561         C linkage.
2562         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2563
2564 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2565
2566         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2567         for consistency, since the "cluster" term is not used elsewhere.
2568         * lib/unigbrk.in.h: Update name.
2569         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2570         * lib/unigbrk/u16-grapheme-next.c: Update name.
2571         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2572         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2573         * lib/unigbrk/u32-grapheme-next.c: Update name.
2574         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2575         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2576         * lib/unigbrk/u8-grapheme-next.c: Update name.
2577         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2578         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2579         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2580         Suggested by Bruno Haible.
2581
2582 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2583
2584         Remove module 'u8-grapheme-len' as too redundant with
2585         'u8-grapheme-next'.
2586         * modules/unigbrk/u8-grapheme-len: Delete file.
2587         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2588         * lib/unigbrk.in.h: Remove prototype for deleted function.
2589         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2590         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2591
2592         Remove module 'u16-grapheme-len' as too redundant with
2593         'u16-grapheme-next'.
2594         * modules/unigbrk/u16-grapheme-len: Delete file.
2595         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2596         * lib/unigbrk.in.h: Remove prototype for deleted function.
2597         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2598         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2599
2600         Remove module 'u32-grapheme-len' as too redundant with
2601         'u32-grapheme-next'.
2602         * modules/unigbrk/u32-grapheme-len: Delete file.
2603         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2604         * lib/unigbrk.in.h: Remove prototype for deleted function.
2605         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2606         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2607
2608         Suggested by Bruno Haible.
2609
2610 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2611
2612         * unigbrk.in.h: Fix typo: "ben" => "been".
2613         Reported by Bruno Haible.
2614
2615 2011-01-01  Jim Meyering  <meyering@redhat.com>
2616
2617         maint: update almost all copyright ranges to include 2011
2618         Run the new "make update-copyright" rule.
2619
2620 2011-01-01  Jim Meyering  <meyering@redhat.com>
2621
2622         maint: update-copyright: exempt doc/INSTALL*
2623         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2624         since they are generated.  Suggested by Bruno Haible.
2625
2626 2011-01-01  Jim Meyering  <meyering@redhat.com>
2627
2628         maint: refine the update-copyright rule
2629         * Makefile (update-copyright): Also exclude any file that includes
2630         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2631         code that merely generates the comment.
2632
2633 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2634
2635         New module 'u8-grapheme-len'.
2636         * modules/unigbrk/u8-grapheme-len: New file.
2637         * modules/unigbrk/u8-grapheme-len-tests: New file.
2638         * lib/unigbrk.in.h: Add prototype for new function.
2639         * lib/unigbrk/u8-grapheme-len.c: New file.
2640         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2641
2642         New module 'u16-grapheme-len'.
2643         * modules/unigbrk/u16-grapheme-len: New file.
2644         * modules/unigbrk/u16-grapheme-len-tests: New file.
2645         * lib/unigbrk.in.h: Add prototype for new function.
2646         * lib/unigbrk/u16-grapheme-len.c: New file.
2647         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2648
2649         New module 'u32-grapheme-len'.
2650         * modules/unigbrk/u32-grapheme-len: New file.
2651         * modules/unigbrk/u32-grapheme-len-tests: New file.
2652         * lib/unigbrk.in.h: Add prototype for new function.
2653         * lib/unigbrk/u32-grapheme-len.c: New file.
2654         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2655
2656         New module 'u8-grapheme-next'.
2657         * modules/unigbrk/u8-grapheme-next: New file.
2658         * modules/unigbrk/u8-grapheme-next-tests: New file.
2659         * lib/unigbrk.in.h: Add prototype for new function.
2660         * lib/unigbrk/u8-grapheme-next.c: New file.
2661         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2662
2663         New module 'u16-grapheme-next'.
2664         * modules/unigbrk/u16-grapheme-next: New file.
2665         * modules/unigbrk/u16-grapheme-next-tests: New file.
2666         * lib/unigbrk.in.h: Add prototype for new function.
2667         * lib/unigbrk/u16-grapheme-next.c: New file.
2668         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2669
2670         New module 'u32-grapheme-next'.
2671         * modules/unigbrk/u32-grapheme-next: New file.
2672         * modules/unigbrk/u32-grapheme-next-tests: New file.
2673         * lib/unigbrk.in.h: Add prototype for new function.
2674         * lib/unigbrk/u32-grapheme-next.c: New file.
2675         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2676
2677         New module 'u8-grapheme-prev'.
2678         * modules/unigbrk/u8-grapheme-prev: New file.
2679         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2680         * lib/unigbrk.in.h: Add prototype for new function.
2681         * lib/unigbrk/u8-grapheme-prev.c: New file.
2682         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2683
2684         New module 'u16-grapheme-prev'.
2685         * modules/unigbrk/u16-grapheme-prev: New file.
2686         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2687         * lib/unigbrk.in.h: Add prototype for new function.
2688         * lib/unigbrk/u16-grapheme-prev.c: New file.
2689         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2690
2691         New module 'u32-grapheme-prev'.
2692         * modules/unigbrk/u32-grapheme-prev: New file.
2693         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2694         * lib/unigbrk.in.h: Add prototype for new function.
2695         * lib/unigbrk/u32-grapheme-prev.c: New file.
2696         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2697
2698         New module 'u8-grapheme-breaks'.
2699         * modules/unigbrk/u8-grapheme-breaks: New file.
2700         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2701         * lib/unigbrk.in.h: Add prototype for new function.
2702         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2703         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2704
2705         New module 'u16-grapheme-breaks'.
2706         * modules/unigbrk/u16-grapheme-breaks: New file.
2707         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2708         * lib/unigbrk.in.h: Add prototype for new function.
2709         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2710         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2711
2712         New module 'u32-grapheme-breaks'.
2713         * modules/unigbrk/u32-grapheme-breaks: New file.
2714         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2715         * lib/unigbrk.in.h: Add prototype for new function.
2716         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2717         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2718
2719         New module 'ulc-grapheme-breaks'.
2720         * modules/unigbrk/ulc-grapheme-breaks: New file.
2721         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2722         * m4/locale-ar.m4: New file.
2723         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2724         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2725         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2726
2727 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2728
2729         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2730         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2731         modified how this file was generated before I initially submitted
2732         the module, but failed to regenerate it.  This meant that several
2733         of the level2 entries were wrong.
2734         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2735         Remove the division-by-2 that is folded into the table now that
2736         gbrkprop.h has been regenerated properly.  Now -1 entries are
2737         handled correctly.
2738
2739         New module 'unigbrk/uc-gbrk-prop-tests'.
2740         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2741         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2742         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2743         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2744
2745 2011-01-01  Bruno Haible  <bruno@clisp.org>
2746
2747         Avoid use of hexadecimal escapes.
2748         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2749         instead of hexadecimal escapes.
2750
2751 2011-01-01  Jim Meyering  <meyering@redhat.com>
2752
2753         maint: new rule to update copyright year ranges
2754         * Makefile (update-copyright): New rule.
2755
2756         maint: indent with TABs in Makefile
2757         * Makefile: Expand leading sequences of spaces to TABs
2758
2759         version-etc: update the copyright year it reports
2760         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2761
2762 2010-12-31  Bruno Haible  <bruno@clisp.org>
2763
2764         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2765         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2766         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2767         zero.
2768
2769 2010-12-31  Bruno Haible  <bruno@clisp.org>
2770
2771         pwrite: Work around HP-UX 11.11 bug.
2772         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2773         works and set REPLACE_PWRITE if not.
2774         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2775         function.
2776         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2777
2778 2010-12-31  Bruno Haible  <bruno@clisp.org>
2779
2780         pread: Work around HP-UX 11 bugs.
2781         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2782         and set REPLACE_PREAD if not.
2783         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2784
2785 2010-12-31  Eric Blake  <eblake@redhat.com>
2786
2787         nl_langinfo: fix YESEXPR on Irix 6.5
2788         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2789         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2790         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2791         it.
2792
2793 2010-12-31  Bruno Haible  <bruno@clisp.org>
2794
2795         iconv: Document HP-UX 11 bug.
2796         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2797
2798 2010-12-31  Bruno Haible  <bruno@clisp.org>
2799
2800         ldexpl: Fix link error on HP-UX 11.
2801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2802         LDEXPL_LIBM, using $ISNANL_LIBM.
2803
2804 2010-12-31  Eric Blake  <eblake@redhat.com>
2805
2806         ftello: avoid compilation failure with SunStudio c89
2807         * lib/ftello.c (ftello): Use lseek, not llseek.
2808
2809         tests: avoid failing coreutils tests on cygwin
2810         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2811         (create_exe_shims_): Return 0 when skipping.
2812
2813 2010-12-31  Bruno Haible  <bruno@clisp.org>
2814
2815         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2816         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2817
2818 2010-12-31  Bruno Haible  <bruno@clisp.org>
2819
2820         waitpid: Fix link error in C++ mode.
2821         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2822
2823 2010-12-31  Bruno Haible  <bruno@clisp.org>
2824
2825         isnan: Use GCC built-ins when possible.
2826         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2827         __builtin_isnan.
2828         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2829         (isnan): Define using GCC built-ins for GCC >= 4.0.
2830
2831 2010-12-31  Bruno Haible  <bruno@clisp.org>
2832
2833         isnand: Fix mistake.
2834         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2835         __builtin_isnand.
2836
2837 2010-12-31  Bruno Haible  <bruno@clisp.org>
2838
2839         open: Avoid C++ error on HP-UX 11.
2840         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2841
2842 2010-12-31  Bruno Haible  <bruno@clisp.org>
2843
2844         time_r: Add missing declarations on HP-UX 11.
2845         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2846         instead of HAVE_LOCALTIME_R.
2847         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2848         HAVE_LOCALTIME_R always.
2849         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2850         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2851         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2852         HAVE_LOCALTIME_R.
2853         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2854         * doc/posix-functions/localtime_r.texi: Likewise.
2855
2856 2010-12-29  Eric Blake  <eblake@redhat.com>
2857
2858         mountlist: tweak previous commit
2859         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2860         Reported by Paul Eggert.
2861
2862         mountlist: fix local drive detection on cygwin
2863         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2864         that works for cygwin.
2865
2866 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2867
2868         ftoastr, snprintf: ftoastr + snprintf module
2869         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2870         since the snprintf module now should be good enough here.
2871         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2872         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2873         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2874         GNULIB_SNPRINTF only for the test directory, and the latter
2875         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2876         seems to suffice by itself.
2877
2878 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2879
2880         alloca: one step towards thread-safety
2881         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2882         need for a static variable.  All callers changed.  This does not
2883         make the alloca replacement thread-safe, but it's one step.
2884
2885         tests: minor indenting change
2886         * tests/init.sh: Sync from coreutils housekeeping patch
2887         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2888         to keep lines within 80 columns.
2889
2890 2010-12-28  Jim Meyering  <meyering@redhat.com>
2891
2892         regex: don't infloop on persistent failing calloc
2893         * lib/regexec.c (build_trtable): Return failure indication upon
2894         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2895         In glibc, this was fixed for version 2.13:
2896         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2897
2898 2010-12-28  Bruno Haible  <bruno@clisp.org>
2899             Paul Eggert <eggert@cs.ucla.edu>
2900
2901         linkat: Make implementation robust against system behaviour variations.
2902         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2903         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2904         way, and to -2 if it needs a generic runtime test.
2905         * lib/linkat.c (solaris_optimized_link_immediate,
2906         solaris_optimized_link_follow): New functions.
2907         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2908         (check_same_link): Use it.
2909
2910 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2911
2912         New module 'unigbrk/base'.
2913         * modules/unigbrk/base: New file.
2914         * lib/unigbrk.in.h: New file.
2915
2916         New module 'unigbrk/uc-gbrk-prop'.
2917         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2918         * modules/unigbrk/uc-gbrk-prop: New file.
2919         * lib/unigbrk/gbrkprop.h: New file.
2920         * lib/unigbrk/uc-gbrk-prop.c: New file.
2921
2922         New module 'unigbrk/uc-is-grapheme-break'.
2923         * modules/unigbrk/uc-is-grapheme-break: New file.
2924         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2925         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2926         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2927         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2928         * tests/unigbrk/GraphemeBreakTest.txt: New file.
2929
2930         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
2931
2932 2010-12-27  Bruno Haible  <bruno@clisp.org>
2933
2934         linkat test: Avoid failure on Solaris 11 2010-11.
2935         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
2936
2937 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         utimens: work around glibc rounding bug on more platforms
2940         * lib/utimens.c (fdutimens): Work around rounding bug even if
2941         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
2942         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
2943
2944 2010-12-27  Bruno Haible  <bruno@clisp.org>
2945
2946         select tests: Improve comments.
2947         * tests/test-select.c (do_select): Add comments.
2948
2949 2010-12-27  Bruno Haible  <bruno@clisp.org>
2950
2951         select tests: Safer way of handling timeout.
2952         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
2953         at every invocation.
2954
2955 2010-12-27  Bruno Haible  <bruno@clisp.org>
2956
2957         select tests: Use 'bool' where appropriate.
2958         * tests/test-select.c (connect_to_socket): Change argument type to
2959         'bool'.
2960
2961 2010-12-27  Bruno Haible  <bruno@clisp.org>
2962
2963         select tests: Use existing modules.
2964         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
2965         (configure.ac): Don't test for unistd.h.
2966         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
2967         declared in <unistd.h>.
2968
2969 2010-12-27  Bruno Haible  <bruno@clisp.org>
2970
2971         mbrtowc: Work around a Solaris 7 bug.
2972         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2973         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2974         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2975         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2976         MBRTOWC_NULL_ARG1_BUG.
2977         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2978         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2979         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2980         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2981
2982 2010-12-27  Jim Meyering  <meyering@redhat.com>
2983
2984         read-file.c: tweak syntax
2985         * lib/read-file.c (fread_file): Remove space after "*" in function
2986         definitions.
2987
2988 2010-12-27  Bruno Haible  <bruno@clisp.org>
2989
2990         times test: Avoid gcc warnings on OSF/1.
2991         * tests/test-times.c (main): Cast printf arguments from clock_t to
2992         'long int'.
2993
2994 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2995
2996         utimens: work around glibc rounding bug on older Linux kernels
2997         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2998         on Linux with a glibc whose utimes might not work, then work
2999         around a longstanding glibc bug involving rounding rather than
3000         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
3001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3002
3003 2010-12-26  Bruno Haible  <bruno@clisp.org>
3004
3005         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
3006         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
3007         _GL_CXXALIAS_SYS.
3008         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3009
3010 2010-12-26  Bruno Haible  <bruno@clisp.org>
3011
3012         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
3013         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
3014         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3015         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
3016         looking for the declaration.
3017         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3018         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
3019         problem.
3020         * doc/posix-functions/inet_pton.texi: Likewise.
3021
3022 2010-12-26  Bruno Haible  <bruno@clisp.org>
3023
3024         arpa_inet: Use the common idioms with C++ support.
3025         * lib/arpa_inet.in.h: Include c++defs.h.
3026         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
3027         support.
3028         * modules/arpa_inet (Depends-on): Add c++defs.
3029         (Makefile.am): Substitute the contents of c++defs.h.
3030         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
3031         * modules/arpa_inet-c++-tests: New file.
3032         * tests/test-arpa_inet-c++.cc: New file.
3033
3034 2010-12-25  Bruno Haible  <bruno@clisp.org>
3035
3036         Fix more C++ link errors on Solaris 8.
3037         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
3038         $(LIB_EACCESS).
3039         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
3040         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
3041         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
3042         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
3043         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
3044
3045 2010-12-25  Bruno Haible  <bruno@clisp.org>
3046
3047         printf-posix: Fix link error when a non-GCC compiler is used.
3048         * lib/stdio.in.h (printf): When not using GCC, override printf
3049         correctly.
3050         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3051
3052 2010-12-25  Bruno Haible  <bruno@clisp.org>
3053
3054         strerror_r-posix: Update doc.
3055         * doc/posix-functions/strerror_r.texi: Update doc about the return
3056         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
3057
3058 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3059
3060         utimens: simplify the logic of the previous change
3061         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
3062         This should not affect whether the test succeeds or fails.
3063
3064         utimens: configure better on hosts with NFS clock skew
3065         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
3066         uses the clock of the local host.  It might use the clock of the
3067         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3069
3070 2010-12-25  Bruno Haible  <bruno@clisp.org>
3071
3072         ptsname test: Avoid failure on Solaris.
3073         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
3074         open a pseudo-terminal; don't use BSD-style ptys.
3075         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
3076
3077 2010-12-25  Bruno Haible  <bruno@clisp.org>
3078
3079         ptsname: Avoid ERANGE failure on some systems.
3080         * lib/ptsname.c (buffer): Increase size.
3081
3082 2010-12-25  Bruno Haible  <bruno@clisp.org>
3083
3084         rename, renameat: Avoid test failures at NFS mounted locations.
3085         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
3086         so that subsequent mkdir calls succeed.
3087
3088 2010-12-25  Bruno Haible  <bruno@clisp.org>
3089
3090         iswblank: Fix C++ link error on Solaris 8.
3091         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
3092         _GL_FUNCDECL_SYS.
3093
3094 2010-12-25  Bruno Haible  <bruno@clisp.org>
3095
3096         unistd: Fix C++ link error on Solaris 8.
3097         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
3098
3099 2010-12-25  Bruno Haible  <bruno@clisp.org>
3100
3101         readlink doc: Mention an old glibc bug.
3102         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3103
3104 2010-12-25  Bruno Haible  <bruno@clisp.org>
3105
3106         fcntl-h: Fix for use of C++ on glibc systems.
3107         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3108         also on glibc systems in C++ mode.
3109         Reported by Gary V. Vaughan <gary@gnu.org>.
3110
3111 2010-12-25  Bruno Haible  <bruno@clisp.org>
3112
3113         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3114         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3115
3116 2010-12-25  Bruno Haible  <bruno@clisp.org>
3117
3118         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3119         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3120         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3121         test whether truncl works according to ISO C 99 with IEC 60559.
3122         * m4/truncl-ieee.m4: New file.
3123         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3124         m4/signbit.m4.
3125         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3126
3127 2010-12-25  Bruno Haible  <bruno@clisp.org>
3128
3129         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3130         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3131         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3132         test whether ceill works according to ISO C 99 with IEC 60559.
3133         * m4/ceill-ieee.m4: New file.
3134         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3135         m4/signbit.m4.
3136         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3137
3138 2010-12-25  Bruno Haible  <bruno@clisp.org>
3139
3140         Ensure all prerequisites of <wchar.h> are included.
3141         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3142         before <wchar.h>.
3143         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3144         gl_MBRLEN_NUL_RETVAL): Likewise.
3145         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3146         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3147         AC_FUNC_MBRTOWC): Likewise.
3148         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3149         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3150         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3151         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3152         Likewise.
3153         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3154         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3155         (gl_WCHAR_H): Improve comments.
3156         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3157
3158 2010-12-25  Bruno Haible  <bruno@clisp.org>
3159
3160         strtok_r: Fix C syntax error in autoconf macro.
3161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3162         characters in test program.
3163
3164 2010-12-24  Bruno Haible  <bruno@clisp.org>
3165
3166         ceil, trunc, round: Fix gcc warnings.
3167         * lib/ceil.c (MIN): Undefine before redefining.
3168         * lib/trunc.c (MIN): Likewise.
3169         * lib/round.c (MIN): Likewise.
3170         Include <math.h> first.
3171
3172 2010-12-24  Bruno Haible  <bruno@clisp.org>
3173
3174         select tests: Avoid failures on OSF/1 5.1.
3175         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3176         failure of closing the last socket; it may fail with ECONNRESET.
3177
3178 2010-12-24  Eric Blake  <eblake@redhat.com>
3179
3180         stdint: avoid HP-UX 10.20 preprocessor bug
3181         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
3182         than #if.
3183         * tests/test-floor2.c (main): Likewise.
3184         Reported by Peter O'Gorman.
3185
3186         pipe: make obsoletion transition easier
3187         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
3188         * modules/pipe (Files): Include revived file.
3189         (Include): Drop reference, to mirror getdate's behavior.
3190
3191 2010-12-24  Bruno Haible  <bruno@clisp.org>
3192
3193         sys_socket: Hide mismatch of declarations on NonStop Kernel.
3194         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
3195         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
3196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3197
3198 2010-12-24  Bruno Haible  <bruno@clisp.org>
3199
3200         gethostname: Ensure declaration on NonStop Kernel.
3201         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
3202         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3203
3204 2010-12-24  Bruno Haible  <bruno@clisp.org>
3205
3206         sys_select: Ensure all necessary types on NonStop Kernel.
3207         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
3208         include <sys/time.h>.
3209         * doc/posix-headers/sys_select.texi: Mention that it's missing on
3210         NonStop Kernel.
3211         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3212
3213 2010-12-24  Bruno Haible  <bruno@clisp.org>
3214
3215         sys_select: Remove unneeded include.
3216         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
3217         have <sys/select.h>.
3218
3219 2010-12-24  Bruno Haible  <bruno@clisp.org>
3220
3221         gethostname: Provide a fallback for HOST_NAME_MAX.
3222         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
3223         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
3224         instead.
3225         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3226
3227 2010-12-24  Bruno Haible  <bruno@clisp.org>
3228
3229         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
3230         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
3231         (SA_RESTART): Likewise.
3232         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3233
3234 2010-12-24  Bruno Haible  <bruno@clisp.org>
3235
3236         signal: Define NSIG.
3237         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
3238         * tests/test-signal.c (nsig): New variable.
3239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3240
3241 2010-12-24  Bruno Haible  <bruno@clisp.org>
3242
3243         rename, renameat: Avoid test failures on OSF/1 5.1.
3244         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
3245         alternative error codes.
3246         * tests/test-renameat.c (main): Likewise.
3247
3248 2010-12-24  Bruno Haible  <bruno@clisp.org>
3249
3250         *printf: Detect large precisions bug on Solaris 10/SPARC.
3251         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
3252         by Paul Eggert.
3253         * tests/test-snprintf-posix.h (test_function): Add this test code here
3254         too.
3255         * tests/test-sprintf-posix.h (test_function): Likewise.
3256         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3257         * tests/test-vasprintf-posix.c (test_function): Likewise.
3258         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
3259         around by gnulib.
3260         * doc/posix-functions/printf.texi: Likewise.
3261         * doc/posix-functions/snprintf.texi: Likewise.
3262         * doc/posix-functions/sprintf.texi: Likewise.
3263         * doc/posix-functions/vfprintf.texi: Likewise.
3264         * doc/posix-functions/vprintf.texi: Likewise.
3265         * doc/posix-functions/vsnprintf.texi: Likewise.
3266         * doc/posix-functions/vsprintf.texi: Likewise.
3267         * doc/posix-functions/dprintf.texi: Undo last commit.
3268         * doc/posix-functions/vdprintf.texi: Likewise.
3269
3270 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         tests: port test-fdutimensat.c to Solaris 8
3273         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
3274         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
3275         On Solaris 8, it fails with errno == ENOSYS, because there is no
3276         futimens (so it can't use the fd), and there is no lutimens (so it
3277         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
3278
3279         vsnprintf: make more consistent with snprintf; doc fixes
3280
3281         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
3282         the byte count return problem was promoted from the snprintf-posix
3283         to the snprintf module.
3284         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3285         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
3286         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
3287         * tests/test-snprintf.c (main): Check the byte count returned.
3288         * tests/test-vsnprintf.c (main): Likewise.
3289
3290 2010-12-23  Eric Blake  <eblake@redhat.com>
3291
3292         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
3293         * modules/sigpipe (License): Relax license.
3294
3295 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3296
3297         doc: document Solaris printf bug with large float precisions
3298         * doc/posix-functions/dprintf.texi (dprintf):
3299         * doc/posix-functions/fprintf.texi (fprintf):
3300         * doc/posix-functions/printf.texi (printf):
3301         * doc/posix-functions/snprintf.texi (snprintf):
3302         * doc/posix-functions/sprintf.texi (sprintf):
3303         * doc/posix-functions/vdprintf.texi (vdprintf):
3304         * doc/posix-functions/vfprintf.texi (vfprintf):
3305         * doc/posix-functions/vprintf.texi (vprintf):
3306         * doc/posix-functions/vsnprintf.texi (vsnprintf):
3307         * doc/posix-functions/vsprintf.texi (vsprintf):
3308         Mention that these functions mishandle large floating point
3309         precisions on Solaris 10.  The same bug is also present in Solaris
3310         8, and I assume earlier.  This causes "cd gnulib-tests; make
3311         check" to fail on Solaris 8 (and I assume, later) when building
3312         the latest coreutils, in test-vasprintf-posix's call to
3313         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
3314         the wide flavors (e.g., wprintf) so this patch just updates the
3315         documentation for the narrow ones.
3316
3317         test-posixtm.c: add two tests
3318         * tests/test-posixtm.c: Add two tests, to highlight the
3319         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
3320         around this bug; this is merely to document it.
3321
3322 2010-12-22  Bruno Haible  <bruno@clisp.org>
3323
3324         getlogin_r: Work around portability problem on OSF/1.
3325         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
3326         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
3327         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
3328         test for a truncated result.
3329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
3330         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
3331         * modules/getlogin_r (Depends-on): Add memchr.
3332         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
3333
3334 2010-12-22  Bruno Haible  <bruno@clisp.org>
3335
3336         ptsname: Avoid test failure on OSF/1 5.1.
3337         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
3338         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
3339         (same_slave): New function.
3340         (main): Use it to compare ptsname's result with the expected file name.
3341
3342 2010-12-22  Bruno Haible  <bruno@clisp.org>
3343
3344         Port extended stdio modules to HP NonStop Kernel.
3345         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
3346         macros.
3347         * lib/fbufmode.c: Update comments.
3348         * lib/fflush.c: Likewise.
3349         * lib/fpurge.c: Likewise.
3350         * lib/freadable.c: Likewise.
3351         * lib/freadahead.c: Likewise.
3352         * lib/freading.c: Likewise.
3353         * lib/freadptr.c: Likewise.
3354         * lib/freadseek.c: Likewise.
3355         * lib/fseeko.c: Likewise.
3356         * lib/fseterr.c: Likewise.
3357         * lib/fwritable.c: Likewise.
3358         * lib/fwriting.c: Likewise.
3359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3360
3361 2010-12-22  Bruno Haible  <bruno@clisp.org>
3362
3363         ttyname_r: Work around bug on OSF/1 5.1.
3364         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
3365         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
3366         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
3367         present.
3368         * lib/ttyname_r.c (ttyname_r): Update comments.
3369
3370 2010-12-22  Bruno Haible  <bruno@clisp.org>
3371
3372         round: Implement result sign according to IEEE 754.
3373         * lib/round.c (MIN, MINUS_ZERO): New macros.
3374         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
3375         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
3376         * tests/test-round-ieee.c (main): Likewise.
3377         * tests/test-roundl-ieee.c (main): Likewise.
3378
3379         trunc: Implement result sign according to IEEE 754.
3380         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
3381         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
3382         * tests/test-trunc2.c: Include minus-zero.h.
3383         (MINUS_ZERO): New macro.
3384         (trunc_reference): Keep in sync with lib/trunc.c.
3385         * tests/test-truncf2.c: Include minus-zero.h.
3386         (MINUS_ZERO): New macro.
3387         (truncf_reference): Keep in sync with lib/trunc.c.
3388         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
3389         * tests/test-trunc-ieee.c (main): Likewise.
3390         * tests/test-truncl-ieee.c (main): Likewise.
3391
3392         ceil: Implement result sign according to IEEE 754.
3393         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
3394         (FUNC): Return -0.0 for -1 < x < 0.
3395         * tests/test-ceil2.c: Include minus-zero.h.
3396         (MINUS_ZERO): New macro.
3397         (ceil_reference): Keep in sync with lib/ceil.c.
3398         * tests/test-ceilf2.c: Include minus-zero.h.
3399         (MINUS_ZERO): New macro.
3400         (ceilf_reference): Keep in sync with lib/ceil.c.
3401         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
3402         * tests/test-ceil-ieee.c (main): Likewise.
3403         * tests/test-ceill-ieee.c (main): Likewise.
3404
3405         floor: Implement result sign according to IEEE 754.
3406         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
3407         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
3408         * tests/test-floorf2.c (floorf_reference): Likewise.
3409         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
3410         * tests/test-floor-ieee.c (main): Likewise.
3411         * tests/test-floorl-ieee.c (main): Likewise.
3412
3413 2010-12-22  Bruno Haible  <bruno@clisp.org>
3414
3415         getaddrinfo: Update doc.
3416         * doc/posix-functions/gai_strerror.texi: Return type is also different
3417         on AIX and HP-UX.
3418
3419 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         getaddrinfo, inet_ntop: Update doc for Solaris.
3422         * doc/posix-functions/gai_strerror.texi: Return type is also an
3423         issue on Solaris 9 and earlier.
3424         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
3425         on Solaris 10 and earlier.
3426
3427 2010-12-21  Bruno Haible  <bruno@clisp.org>
3428
3429         New module 'roundl-ieee'.
3430         * modules/roundl-ieee: New file.
3431         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
3432         test whether roundl works according to ISO C 99 with IEC 60559.
3433         * m4/roundl-ieee.m4: New file.
3434         * modules/roundl-ieee-tests: New file.
3435         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
3436         * tests/test-roundl.c (main): Remove signbit tests.
3437         * modules/roundl-tests (Depends-on): Remove signbit.
3438         * doc/posix-functions/roundl.texi: Mention the new module.
3439
3440 2010-12-21  Bruno Haible  <bruno@clisp.org>
3441
3442         New module 'truncl-ieee'.
3443         * modules/truncl-ieee: New file.
3444         * modules/truncl-ieee-tests: New file.
3445         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
3446         * tests/test-truncl.c (main): Remove signbit tests.
3447         * modules/truncl-tests (Depends-on): Remove signbit.
3448         * doc/posix-functions/truncl.texi: Mention the new module.
3449
3450 2010-12-21  Bruno Haible  <bruno@clisp.org>
3451
3452         New module 'ceill-ieee'.
3453         * modules/ceill-ieee: New file.
3454         * modules/ceill-ieee-tests: New file.
3455         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
3456         * tests/test-ceill.c (main): Remove signbit tests.
3457         * modules/ceill-tests (Depends-on): Remove signbit.
3458         * doc/posix-functions/ceill.texi: Mention the new module.
3459
3460 2010-12-21  Bruno Haible  <bruno@clisp.org>
3461
3462         New module 'floorl-ieee'.
3463         * modules/floorl-ieee: New file.
3464         * modules/floorl-ieee-tests: New file.
3465         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
3466         * tests/test-floorl.c (main): Remove signbit tests.
3467         * modules/floorl-tests (Depends-on): Remove signbit.
3468         * doc/posix-functions/floorl.texi: Mention the new module.
3469
3470 2010-12-21  Bruno Haible  <bruno@clisp.org>
3471
3472         New module 'round-ieee'.
3473         * modules/round-ieee: New file.
3474         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
3475         whether round works according to ISO C 99 with IEC 60559.
3476         * m4/round-ieee.m4: New file.
3477         * modules/round-ieee-tests: New file.
3478         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
3479         * tests/test-round1.c (main): Remove signbit tests.
3480         * modules/round-tests (Depends-on): Remove 'signbit'.
3481         * doc/posix-functions/round.texi: Mention the new module.
3482
3483 2010-12-21  Bruno Haible  <bruno@clisp.org>
3484
3485         New module 'trunc-ieee'.
3486         * modules/trunc-ieee: New file.
3487         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
3488         whether trunc works according to ISO C 99 with IEC 60559.
3489         * m4/trunc-ieee.m4: New file.
3490         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
3491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
3492         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
3493         * modules/trunc-ieee-tests: New file.
3494         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
3495         * tests/test-trunc1.c (main): Remove signbit tests.
3496         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3497         * doc/posix-functions/trunc.texi: Mention the new module.
3498
3499 2010-12-21  Bruno Haible  <bruno@clisp.org>
3500
3501         New module 'ceil-ieee'.
3502         * modules/ceil-ieee: New file.
3503         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3504         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3505         ISO C 99 with IEC 60559.
3506         * m4/ceil-ieee.m4: New file.
3507         * modules/ceil (Files): Add lib/ceil.c.
3508         (Depends-on): Add 'float'.
3509         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3510         * lib/math.in.h (ceil): New declaration.
3511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3512         REPLACE_CEIL.
3513         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3514         * modules/ceil-ieee-tests: New file.
3515         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3516         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3517         * doc/posix-functions/ceil.texi: Mention the new module.
3518
3519 2010-12-21  Bruno Haible  <bruno@clisp.org>
3520
3521         New module 'floor-ieee'.
3522         * modules/floor-ieee: New file.
3523         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3524         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3525         ISO C 99 with IEC 60559.
3526         * m4/floor-ieee.m4: New file.
3527         * modules/floor (Files): Add lib/floor.c.
3528         (Depends-on): Add 'float'.
3529         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3530         * lib/math.in.h (floor): New declaration.
3531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3532         REPLACE_FLOOR.
3533         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3534         * modules/floor-ieee-tests: New file.
3535         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3536         * tests/test-math-c++.cc: Check the signature of 'floor'.
3537         * doc/posix-functions/floor.texi: Mention the new module.
3538
3539 2010-12-21  Bruno Haible  <bruno@clisp.org>
3540
3541         New module 'roundf-ieee'.
3542         * modules/roundf-ieee: New file.
3543         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3544         test whether roundf works according to ISO C 99 with IEC 60559.
3545         * m4/roundf-ieee.m4: New file.
3546         * modules/roundf-ieee-tests: New file.
3547         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3548         * tests/test-roundf1.c (main): Remove signbit tests.
3549         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3550         * doc/posix-functions/roundf.texi: Mention the new module.
3551
3552 2010-12-21  Bruno Haible  <bruno@clisp.org>
3553
3554         New module 'truncf-ieee'.
3555         * modules/truncf-ieee: New file.
3556         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3557         test whether truncf works according to ISO C 99 with IEC 60559.
3558         * m4/truncf-ieee.m4: New file.
3559         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3561         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3562         * modules/truncf-ieee-tests: New file.
3563         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3564         * tests/test-truncf1.c (main): Remove signbit tests.
3565         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3566         * doc/posix-functions/truncf.texi: Mention the new module.
3567
3568 2010-12-21  Bruno Haible  <bruno@clisp.org>
3569
3570         New module 'ceilf-ieee'.
3571         * modules/ceilf-ieee: New file.
3572         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3573         test whether ceilf works according to ISO C 99 with IEC 60559.
3574         * m4/ceilf-ieee.m4: New file.
3575         * modules/ceilf-ieee-tests: New file.
3576         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3577         * tests/test-ceilf1.c (main): Remove signbit tests.
3578         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3579         * doc/posix-functions/ceilf.texi: Mention the new module.
3580
3581 2010-12-21  Bruno Haible  <bruno@clisp.org>
3582
3583         New module 'floorf-ieee'.
3584         * modules/floorf-ieee: New file.
3585         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3586         test whether floorf works according to ISO C 99 with IEC 60559.
3587         * m4/floorf-ieee.m4: New file.
3588         * modules/floorf-ieee-tests: New file.
3589         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3590         * tests/test-floorf1.c (main): Remove signbit tests.
3591         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3592         * doc/posix-functions/floorf.texi: Mention the new module.
3593
3594 2010-12-21  Bruno Haible  <bruno@clisp.org>
3595
3596         Support for minus zero in autoconf macros.
3597         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3598         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3599         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3600         * tests/minus-zero.h: Update comments.
3601
3602 2010-12-21  Bruno Haible  <bruno@clisp.org>
3603
3604         Tests for module 'ceil'.
3605         * modules/ceil-tests: New file.
3606         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3607         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3608
3609 2010-12-21  Bruno Haible  <bruno@clisp.org>
3610
3611         Tests for module 'floor'.
3612         * modules/floor-tests: New file.
3613         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3614         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3615
3616 2010-12-21  Bruno Haible  <bruno@clisp.org>
3617
3618         math: Fix indentation.
3619         * lib/math.in.h (floorf): Fix indentation.
3620
3621 2010-12-21  Bruno Haible  <bruno@clisp.org>
3622
3623         Fix cross-compilation guesses on Solaris.
3624         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3625         not match "solaris2.10".
3626         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3627         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3628         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3629
3630 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3633         This fixes a problem observed with the latest coreutils snapshot
3634         that caused a test to fail on Solaris 8.  src/csplit.c's call
3635         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3636         earlier, instead of returning the number of bytes that would have
3637         been generated; this causes csplit to incorrectly report memory
3638         exhaustion.
3639         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3640         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3641         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3642         comments to match.
3643         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3644         Fix typo in matching older versions of Solaris: "solaris2.10"
3645         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3646         only for guessing while cross-compiling.
3647         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3648
3649 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3650
3651         ftoastr: fix comment again
3652         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3654         Also, simplify example a bit by using flags = 0.
3655
3656 2010-12-20  Bruno Haible  <bruno@clisp.org>
3657
3658         round*, trunc*: Update documentation regarding glibc.
3659         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3660         * doc/posix-functions/round.texi: Likewise.
3661         * doc/posix-functions/roundl.texi: Likewise.
3662         * doc/posix-functions/truncf.texi: Likewise.
3663         * doc/posix-functions/trunc.texi: Likewise.
3664         * doc/posix-functions/truncl.texi: Likewise.
3665
3666 2010-12-20  Bruno Haible  <bruno@clisp.org>
3667
3668         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3669         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3670         * doc/posix-functions/round.texi: Likewise.
3671         * doc/posix-functions/roundl.texi: Likewise.
3672
3673 2010-12-20  Bruno Haible  <bruno@clisp.org>
3674
3675         ttyname_r: Add missing declaration on HP-UX 11.
3676         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3677         HAVE_TTYNAME_R.
3678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3679         declared. Set HAVE_TTYNAME_R always.
3680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3681         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3682         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3683         HAVE_TTYNAME_R.
3684         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3685
3686 2010-12-20  Bruno Haible  <bruno@clisp.org>
3687
3688         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3689         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3690         * doc/posix-functions/getlogin_r.texi: Likewise.
3691         * tests/test-getlogin.c: Include <errno.h>.
3692         (main): Avoid test failure on HP-UX 11.11.
3693         * tests/test-getlogin_r.c (main): Likewise.
3694
3695 2010-12-20  Bruno Haible  <bruno@clisp.org>
3696
3697         getlogin_r: Add missing declaration on HP-UX 11.
3698         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3699         declared also when it exists as a function.
3700         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3701
3702 2010-12-20  Bruno Haible  <bruno@clisp.org>
3703
3704         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3705         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3706         through wcrtomb.
3707
3708 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3709
3710         ftoastr: fix comment
3711         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3712         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3713
3714 2010-12-19  Bruno Haible  <bruno@clisp.org>
3715
3716         isnan: Ensure it is a macro.
3717         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3718         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3719         Solaris.
3720
3721 2010-12-19  Bruno Haible  <bruno@clisp.org>
3722
3723         ldexpl test: Fix link error on OSF/1 5.1.
3724         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3725
3726 2010-12-19  Bruno Haible  <bruno@clisp.org>
3727
3728         wctype: Make it work in C++ mode on OSF/1 5.1.
3729         * lib/wctype.in.h (iswblank): Declare but not define here.
3730         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3731         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3732         * modules/wctype (Files): Add lib/iswblank.c.
3733
3734 2010-12-19  Bruno Haible  <bruno@clisp.org>
3735
3736         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3737         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3738         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3739
3740 2010-12-19  Bruno Haible  <bruno@clisp.org>
3741
3742         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3743         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3744         _POSIX_PII_SOCKET.
3745         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3746         * doc/posix-functions/recvfrom.texi: Likewise.
3747         * doc/posix-functions/send.texi: Likewise.
3748         * doc/posix-functions/sendto.texi: Likewise.
3749
3750 2010-12-19  Bruno Haible  <bruno@clisp.org>
3751
3752         tcgetsid: Add missing declaration on OSF/1 5.1.
3753         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3754         HAVE_TCGETSID.
3755         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3756         Don't set HAVE_TCGETSID.
3757         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3758         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3759         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3760         HAVE_TCGETSID.
3761         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3762
3763 2010-12-19  Bruno Haible  <bruno@clisp.org>
3764
3765         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3766         * lib/stdio.in.h: During the include_next statement, let recursive
3767         includes of this file include only the system header file.
3768
3769 2010-12-19  Bruno Haible  <bruno@clisp.org>
3770
3771         iconv_open: Fix regression from 2010-12-04.
3772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3773         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3774
3775 2010-12-19  Bruno Haible  <bruno@clisp.org>
3776
3777         stdbool test: Avoid a gcc warning.
3778         * tests/test-stdbool.c (main): Fail if e1 is false.
3779         Reported by Jim Meyering.
3780
3781 2010-12-19  Jim Meyering  <meyering@redhat.com>
3782
3783         setenv: restore to working order
3784         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3785         mistakenly removed.
3786         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3787         HAVE_SETENV.
3788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3789         HAVE_SETENV.
3790
3791 2010-12-19  Bruno Haible  <bruno@clisp.org>
3792
3793         Document some different function declarations on OSF/1 5.1.
3794         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3795         * doc/posix-functions/inet_ntop.texi: Likewise.
3796         * doc/posix-functions/gethostname.texi: Likewise.
3797         * lib/unistd.in.h (gethostname): Update comment.
3798
3799 2010-12-19  Bruno Haible  <bruno@clisp.org>
3800
3801         doc: Mention vasprintf-posix module.
3802         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3803         the 'vasprintf-posix' module.
3804         * doc/glibc-functions/vasprintf.texi: Likewise.
3805
3806 2010-12-19  Bruno Haible  <bruno@clisp.org>
3807
3808         unsetenv: Add missing declaration on OSF/1 5.1.
3809         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3810         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3811         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3813         not HAVE_UNSETENV.
3814         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3815         HAVE_UNSETENV.
3816         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3817
3818 2010-12-19  Bruno Haible  <bruno@clisp.org>
3819
3820         setenv: Add missing declaration on OSF/1 5.1.
3821         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3822         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3823         declared. Don't set HAVE_SETENV.
3824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3825         not HAVE_SETENV.
3826         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3827         HAVE_SETENV.
3828         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3829
3830 2010-12-19  Bruno Haible  <bruno@clisp.org>
3831
3832         nl_langinfo tests: Avoid gcc warning.
3833         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3834
3835 2010-12-19  Bruno Haible  <bruno@clisp.org>
3836
3837         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3838         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3839         _GL_CXXALIAS_SYS.
3840
3841 2010-12-19  Bruno Haible  <bruno@clisp.org>
3842
3843         stdbool: Relax test.
3844         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3845         address to 'bool' work in static initializer, for compilers other than
3846         GCC.
3847
3848 2010-12-19  Bruno Haible  <bruno@clisp.org>
3849
3850         ftello: Add missing declaration on OSF/1 5.1.
3851         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3852         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3854         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3855         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3856
3857 2010-12-19  Bruno Haible  <bruno@clisp.org>
3858
3859         fseeko: Add missing declaration on OSF/1 5.1.
3860         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3861         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3863         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3864         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3865
3866 2010-12-19  Bruno Haible  <bruno@clisp.org>
3867
3868         fchdir: Add missing declaration on OSF/1 5.1.
3869         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3872         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3873         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3874
3875 2010-12-19  Bruno Haible  <bruno@clisp.org>
3876
3877         relocatable-prog-wrapper: Separate from relocatable-prog.
3878         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3879         uninstall-relocwrapper rule here.
3880         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3881         Reported by Ian Beckwith <ianb@erislabs.net>.
3882
3883 2010-12-19  Bruno Haible  <bruno@clisp.org>
3884
3885         unistr/u8-mbsnlen: Add missing dependency.
3886         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3887         Reported by Ian Beckwith <ianb@erislabs.net>.
3888
3889 2010-12-19  Bruno Haible  <bruno@clisp.org>
3890
3891         iconv: Make it possible again to use this module without 'iconv-h'.
3892         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3893         if it is not defined.
3894         Reported by Ian Beckwith <ianb@erislabs.net>.
3895
3896 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3897
3898         acl: port to Solaris 8 when copying from tmpfs to ufs
3899         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3900         error number.  Problem observed on Solaris 8 with latest
3901         coreutils, with "mv A B", where A is on a tmpfs file system and B
3902         is on a ufs file system.  This caused coreutils' mv/part-symlink
3903         test to fail.
3904
3905         tests: set fail=0 at start
3906         * tests/init.sh (setup_): Move fail=0 initialization here ...
3907         (mktempd_): ... from here, so that tests can rely on fail being
3908         set to 0 initially.  This fixes a problem in coreutils; see:
3909         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3910
3911 2010-12-18  Bruno Haible  <bruno@clisp.org>
3912
3913         memmem-simple: Stylistic changes.
3914         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3915         Fix preprocessor directive indentation.
3916
3917 2010-12-15  Pádraig Brady <P@draigBrady.com>
3918
3919         memmem, memmem-simple: reorganize and expand empty needle check
3920         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3921         functional checks to memmem-simple so that one has a fully functional
3922         memmem by using just this module.
3923         Restrict the performance only check to the memmem module.
3924         Also expand the empty needle check to ensure the correct
3925         pointer is returned, not just a non NULL pointer.
3926         * doc/glibc-functions/memmem.texi: Rearrange the portability
3927         documentation to correlate with the rearranged checks.
3928         Clarify exactly how the memmem and memmem-simple modules
3929         relate to each other.
3930
3931 2010-12-15  Pádraig Brady <P@draigBrady.com>
3932             Bruno Haible  <bruno@clisp.org>
3933
3934         Improve cross-compilation guesses for uClibc.
3935         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
3936         that uClibc does not have the glibc bug.
3937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3938         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
3939
3940 2010-12-14  Eric Blake  <eblake@redhat.com>
3941
3942         configmake: provide fallbacks for oldest supported autotools
3943         * m4/configmake.m4: New file.
3944         * modules/configmake (Files): Ship it.
3945         (configure.ac): Use it to guarantee fallbacks.
3946
3947 2010-12-13  Pádraig Brady <P@draigBrady.com>
3948
3949         read-file: Improve handling of large files
3950         * lib/read-file.c (fread_file): Minimize realloc()s
3951         for regular files, and better manage sizes around SIZE_MAX.
3952
3953 2010-12-13  Eric Blake  <eblake@redhat.com>
3954
3955         cloexec, fcntl: relax license
3956         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
3957         consent from all contributors.
3958         * modules/fcntl (License): Likewise.
3959
3960 2010-12-10  Bruno Haible  <bruno@clisp.org>
3961
3962         Tests for module 'pipe-posix'.
3963         * modules/pipe-posix-tests: New file.
3964         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
3965
3966 2010-12-10  Bruno Haible  <bruno@clisp.org>
3967
3968         pipe-posix: Make it work in C++ mode.
3969         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
3970         (pipe): Use common idiom, not a macro definition.
3971         * lib/pipe.c: New file.
3972         * m4/pipe.m4: New file.
3973         * modules/pipe-posix (Description): Enhance.
3974         (Files): Add lib/pipe.c, m4/pipe.m4.
3975         (configure.ac): Invoke gl_FUNC_PIPE.
3976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3977         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3978         * tests/test-unistd-c++.cc: Check the signature of pipe.
3979
3980 2010-12-10  Bruno Haible  <bruno@clisp.org>
3981
3982         Rename module 'pipe' to 'spawn-pipe'.
3983         * modules/spawn-pipe: New file, renamed from modules/pipe.
3984         (Files, configure.ac, Makefile.am): Update.
3985         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3986         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3987         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3988         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3989         "spawn-pipe.h" instead of "pipe.h".
3990         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3991         to gl_SPAWN_PIPE.
3992         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3993         (Files, Makefile.am): Update.
3994         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3995         Update.
3996         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3997         Include "spawn-pipe.h" instead of "pipe.h".
3998         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3999         * lib/javacomp.c: Likewise.
4000         * lib/javaversion.c: Likewise.
4001         * lib/pipe-filter-gi.c: Likewise.
4002         * lib/pipe-filter-ii.c: Likewise.
4003         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
4004         * modules/javacomp (Depends-on): Likewise.
4005         * modules/javaversion (Depends-on): Likewise.
4006         * modules/pipe-filter-gi (Depends-on): Likewise.
4007         * modules/pipe-filter-ii (Depends-on): Likewise.
4008         * MODULES.html.sh (Executing programs): Update.
4009         * NEWS: Mention the change.
4010
4011 2010-12-10  Eric Blake  <eblake@redhat.com>
4012
4013         pipe-posix: new module
4014         * modules/pipe-posix: New file.
4015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
4016         (gl_UNISTD_H): Check for declaration.
4017         * modules/unistd (Makefile.am): Substitute it.
4018         * lib/unistd.in.h (pipe): Provide it for mingw.
4019         * doc/posix-functions/pipe.texi (pipe): Update documentation.
4020         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
4021
4022 2010-12-07  Bruno Haible  <bruno@clisp.org>
4023
4024         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
4025         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
4026         u8_strcmp_gnu.
4027         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
4028
4029 2010-12-06  Bruno Haible  <bruno@clisp.org>
4030
4031         Update internal documentation.
4032         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
4033
4034 2010-12-04  Bruno Haible  <bruno@clisp.org>
4035
4036         Put more information about failed tests into the test return codes.
4037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
4038         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
4039         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4041         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4043         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4044         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4045         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
4046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4048         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4049         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4050         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4051         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
4052         returns a bit mask.
4053         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4054         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4055         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4056         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4057         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4061         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4062         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4064         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4065         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4067         * m4/link.m4 (gl_FUNC_LINK): Likewise.
4068         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4069         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
4070         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
4071         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4072         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
4073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4074         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4075         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4076         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4077         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4078         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4079         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4080         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4081         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4082         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
4083         gl_PRINTF_PRECISION): Likewise.
4084         * m4/regex.m4 (gl_REGEX): Likewise.
4085         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4086         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
4088         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4091         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4092         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
4093         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4094         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4095         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4096         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4097         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4098         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4099         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4100         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4101         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4104         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4105         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4106         enumerated value.
4107         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4108
4109 2010-12-04  Bruno Haible  <bruno@clisp.org>
4110
4111         Update for Solaris 11 2010-11.
4112         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4113         Express, released in November 2010.
4114
4115 2010-12-04  Bruno Haible  <bruno@clisp.org>
4116
4117         nproc: Relax license.
4118         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4119         and Paul Eggert.
4120         Requested by Ludovic Courtès <ludo@gnu.org>.
4121
4122 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4123
4124         utimecmp: fine-grained src to nearby coarse-grained dest
4125
4126         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4127         and the source is on a file system with higher-resolution time
4128         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4129         not work, and the time stamps are close together, the algorithm to
4130         determine the exact resolution from the read-back mtime was buggy:
4131         it had a "!=" where it should have had an "==".  This bug has been
4132         in the code ever since it was introduced to gnulib.
4133         Problem reported by Dan Jacobson in
4134         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4135
4136 2010-11-30  Bruno Haible  <bruno@clisp.org>
4137
4138         strerror_r-posix: Fix autoconf test.
4139         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4140
4141 2010-11-28  Bruno Haible  <bruno@clisp.org>
4142             Paul Eggert  <eggert@cs.ucla.edu>
4143
4144         Tests for module 'getdomainname'.
4145         * modules/getdomainname-tests: New file.
4146         * tests/test-getdomainname.c: New file, based on
4147         tests/test-gethostname.c.
4148
4149 2010-11-28  Bruno Haible  <bruno@clisp.org>
4150             Paul Eggert  <eggert@cs.ucla.edu>
4151
4152         getdomainname: Use the system function when possible.
4153         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4154         (getdomainname): Replace if needed. Provide the declaration if it is
4155         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4156         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4157         (getdomainname): When the system has getdomainname, call the system
4158         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4159         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4160         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4161         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4162         the function if its second argument is of type 'int' or if it is found
4163         in libnsl.
4164         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4165         <sys/systeminfo.h> and sysinfo().
4166         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4168         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4169         HAVE_GETDOMAINNAME.
4170         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4171         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4172         * doc/glibc-functions/getdomainname.texi: Document the problems with
4173         the getdomainname declaration.
4174
4175 2010-11-28  Bruno Haible  <bruno@clisp.org>
4176
4177         sys_socket: Ensure ss_family field on AIX.
4178         * lib/sys_socket.in.h (ss_family): New macro definition.
4179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
4180         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
4181         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4182         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4183         * modules/sys_socket (Makefile.am): Substitute
4184         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4185         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
4186
4187 2010-11-27  Bruno Haible  <bruno@clisp.org>
4188
4189         readline: Improve configure output.
4190         * m4/readline.m4 (gl_FUNC_READLINE): Make the
4191         "checking for readline..." result understandable.
4192
4193 2010-11-27  Bruno Haible  <bruno@clisp.org>
4194
4195         *printf-posix: Detect a bug on Solaris 10/x86.
4196         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
4197         for floating-point output.
4198         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
4199         directive.
4200         * tests/test-snprintf-posix.h (test_function): Likewise.
4201         * tests/test-sprintf-posix.h (test_function): Likewise.
4202         * tests/test-vasprintf-posix.c (test_function): Likewise.
4203         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
4204         * doc/posix-functions/printf.texi: Likewise.
4205         * doc/posix-functions/snprintf.texi: Likewise.
4206         * doc/posix-functions/sprintf.texi: Likewise.
4207         * doc/posix-functions/vfprintf.texi: Likewise.
4208         * doc/posix-functions/vprintf.texi: Likewise.
4209         * doc/posix-functions/vsnprintf.texi: Likewise.
4210         * doc/posix-functions/vsprintf.texi: Likewise.
4211         * doc/glibc-functions/obstack_printf.texi: Likewise.
4212         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4213
4214 2010-11-27  Bruno Haible  <bruno@clisp.org>
4215
4216         Fix link error when module libunistring-optional is in use.
4217         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
4218         * modules/striconveha-tests (Makefile.am): Likewise.
4219
4220 2010-11-27  Bruno Haible  <bruno@clisp.org>
4221
4222         regex: Mention link dependencies.
4223         * modules/regex (Link): New section.
4224         * modules/rpmatch (Link): Likewise.
4225         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
4226
4227 2010-11-27  Bruno Haible  <bruno@clisp.org>
4228
4229         ftoastr: Fix compilation error on Solaris.
4230         * lib/ftoastr.c: Include <config.h>.
4231
4232 2010-11-27  Bruno Haible  <bruno@clisp.org>
4233
4234         getloadavg: Update documentation.
4235         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
4236
4237 2010-11-27  Bruno Haible  <bruno@clisp.org>
4238
4239         sys_socket: Fix test whether the functions are declared.
4240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
4241         not <sys/select.h>.
4242
4243 2010-11-27  Bruno Haible  <bruno@clisp.org>
4244
4245         getpass: Make sure to get system declaration on some platforms.
4246         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
4247         gl_USE_SYSTEM_EXTENSIONS.
4248         * modules/getpass (Depends-on): Add extensions.
4249
4250 2010-11-26  Bruno Haible  <bruno@clisp.org>
4251
4252         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
4253         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
4254         'iconv' module is present.
4255         (ICONV_CONST): New macro.
4256         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
4257         ICONV_CONST.
4258         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
4259         set ICONV_CONST.
4260         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
4261         here.
4262         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
4263         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
4264         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
4265         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
4266         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
4267         present.
4268
4269 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4270
4271         ftoastr: comment fix
4272         * lib/ftoastr.c: "little" -> "little or no" in comment
4273
4274 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4275
4276         stdint: port to GCC 4.3 + OSX + Octave
4277         On this platform, stdint.h is buggy and defines int64_t to long
4278         long int.  The replacement defined it to long int, causing
4279         problems with C++ style name mangling.  Instead, trust the system
4280         definition if INT64_MAX is defined, and likewise for the unsigned
4281         variant.   Problem reported by Jarno Rajahalme in
4282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
4283         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
4284         and don't mess with int64_t and INT64_MAX in this case.
4285         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
4286
4287 2010-11-24  Bruno Haible  <bruno@clisp.org>
4288
4289         doc: Corrections regarding MacOS X 10.4 and 10.5.
4290         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
4291         MacOS X.
4292         Reported by Simon Josefsson.
4293
4294 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
4295
4296         Uninstall ".bin" files installed by relocwrapper.
4297         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
4298         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
4299         unless it is already there.
4300
4301 2010-11-21  Bruno Haible  <bruno@clisp.org>
4302
4303         Update for NetBSD 5.0.
4304         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4305         NetBSD; the test fails on NetBSD 5.0.
4306         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4307         about NetBSD.
4308
4309 2010-11-21  Bruno Haible  <bruno@clisp.org>
4310
4311         Update for HP-UX 11.23 and HP-UX 11.31.
4312         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
4313         HP-UX.
4314
4315 2010-11-21  Bruno Haible  <bruno@clisp.org>
4316
4317         Update for MacOS X 10.5.
4318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4319         MacOS X; the test fails on MacOS X 10.5.8.
4320         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4321         about MacOS X.
4322
4323 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
4324
4325         bootstrap: add bootstrap_sync option.
4326         See discussion at
4327         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
4328         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
4329         * build-aux/bootstrap: Accept --bootstrap-sync to update
4330         bootstrap if it is not identical to the local gnulib's
4331         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
4332         enable this by default.  Accept --no-bootstrap-sync to disable
4333         it.
4334
4335 2010-11-20  Bruno Haible  <bruno@clisp.org>
4336
4337         Ensure that <features.h> is included before __GLIBC__ is tested.
4338         * lib/printf-parse.h: Include <features.h>.
4339         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
4340         Reported by Mike Frysinger <vapier@gentoo.org>.
4341
4342         Ensure that <features.h> is included before __GLIBC__ is tested.
4343         * lib/wchar.in.h: Include <features.h>.
4344         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
4345         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
4346         Reported by Mike Frysinger <vapier@gentoo.org>.
4347
4348         Ensure that <features.h> is included before __GLIBC__ is tested.
4349         * lib/arpa_inet.in.h: Include <features.h>.
4350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
4351         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
4352         Reported by Mike Frysinger <vapier@gentoo.org>.
4353
4354         Ensure that <features.h> is included before __GLIBC__ is tested.
4355         * build-aux/link-warning.h: Include <features.h>.
4356         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
4357         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
4358         Reported by Mike Frysinger <vapier@gentoo.org>.
4359
4360         Ensure that <features.h> is included before __GLIBC__ is tested.
4361         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
4362         Reported by Mike Frysinger <vapier@gentoo.org>.
4363
4364 2010-11-20  Bruno Haible  <bruno@clisp.org>
4365
4366         memmem: Fix autoconf test.
4367         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
4368
4369 2010-11-20  Bruno Haible  <bruno@clisp.org>
4370
4371         Port to uClibc.
4372         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
4373         * lib/fcntl.in.h: Likewise.
4374         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
4375         * lib/mbrtowc.c (mbrtowc): Likewise.
4376         * lib/relocatable.c (find_shared_library_fullname): Likewise.
4377         * lib/strerror_r.c: Likewise.
4378         * lib/unistr/u8-strnlen.c: Likewise.
4379         * lib/vasnprintf.c (decimal_point_char): Likewise.
4380         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4381         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4383         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4384         * tests/test-sigaction.c (handler, main): Likewise.
4385         * lib/freading.h: Treat uClibc like a non-glibc platform.
4386         * lib/freading.c: Likewise.
4387         * lib/gettext.h: Likewise.
4388         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
4389         Likewise.
4390         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
4391         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4392         * lib/propername.c (proper_name_utf8): Likewise.
4393         * lib/spawn.in.h: Likewise.
4394         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
4395         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
4396         mem_cd_iconveh_internal): Likewise.
4397         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
4398         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4399         strstr, strcasestr): Likewise.
4400         * lib/unicodeio.c (unicode_to_mb): Likewise.
4401         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
4402         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
4403         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
4404         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
4405         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
4406         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
4407         * lib/unistr/u8-stpncpy.c: Likewise.
4408         * lib/vasnprintf.c (VASNPRINTF): Likewise.
4409         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
4410         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4411         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4412         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4413         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
4414         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
4415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
4416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4417         Likewise.
4418         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4419         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4423         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4424         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4425         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4426         * tests/test-getopt.h (OPTIND_MIN): Likewise.
4427         * tests/test-striconveha.c (main): Likewise.
4428         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4429         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
4430         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
4431         * doc/posix-functions/getline.texi: Likewise.
4432         Reported by Mike Frysinger <vapier@gentoo.org>.
4433
4434 2010-11-20  Bruno Haible  <bruno@clisp.org>
4435
4436         nproc: Fix condition.
4437         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
4438         HAVE_PTHREAD_AFFINITY_NP.
4439
4440 2010-11-20  Bruno Haible  <bruno@clisp.org>
4441
4442         Fix a comment.
4443         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
4444
4445 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
4446
4447         ftoastr: don't assume snprintf
4448         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
4449         Implement a subset of snprintf here, by using sprintf safely.
4450         * modules/ftoastr (Depends-on): Remove snprintf.
4451
4452 2010-11-19  Jim Meyering  <meyering@redhat.com>
4453
4454         test-rename.h: fix compilation failure
4455         * tests/test-rename.h (test_rename): Add omitted "}".
4456
4457 2010-11-17  Jim Meyering  <meyering@redhat.com>
4458
4459         maint.mk: add a URL discussing the no-@acronym policy
4460         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
4461
4462 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4463
4464         ftoastr: depend on snprintf, improve comments
4465         * lib/ftoastr.c: Also mention Loitsch's draft.
4466         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
4467         needed in the current implementation, but it might simplify
4468         speeding up the code later.
4469         * modules/ftoastr: Depend on snprintf; this improves portability.
4470         Suggested by Bruno Haible in the same email.
4471
4472         ftoastr: port to hosts lacking strtof and strtold
4473         Problem reported by Bruno Haible in
4474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
4475         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
4476         environment and strtold (and presumably strtof) are not available.
4477         * modules/ftoastr (Files): Add m4/c-strtod.m4.
4478         (configure.ac): Require gl_C99_STRTOLD.
4479
4480 2010-11-18  Bruno Haible  <bruno@clisp.org>
4481
4482         c-strtold: Avoid link error on AIX 7.
4483         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
4484         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
4485         (gl_C_STRTOLD): Test whether strtold_l exists.
4486         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4487
4488 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4489
4490         intprops: new macro INT_BITS_STRLEN_BOUND
4491         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
4492         ftoastr.h.  This exposes an internal of intprops.h that was formerly
4493         not exposed.  Also, it uses a slightly tighter bound than before;
4494         though this makes no practical difference, we might as well be as
4495         tight as we easily can.
4496
4497         ftoastr: new module, for lossless conversion of floats to short strings
4498         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4499         * modules/ftoastr: New files.
4500
4501 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4502
4503         bootstrap: port to Solaris sed
4504         * build-aux/bootstrap (get_version): Port to Solaris sed.
4505         See Ralf Wildenhues's note in
4506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4507
4508 2010-11-14  Jim Meyering  <meyering@redhat.com>
4509
4510         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4511         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4512         and move definition closer to sole use.
4513
4514 2010-11-13  Jim Meyering  <meyering@redhat.com>
4515
4516         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4517         Now we require at least autoconf-2.59, which means the work-around
4518         is no longer needed.
4519         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4521         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4522         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4524
4525 2010-11-13  Bruno Haible  <bruno@clisp.org>
4526
4527         rename, renameat: Avoid test failures at NFS mounted locations.
4528         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4529         functions.
4530         (test_rename): Use assert_nonexistent.
4531         * tests/test-rename.c: Include <dirent.h>.
4532         * tests/test-renameat.c: Likewise.
4533         Reported by Gary V. Vaughan <gary@gnu.org>.
4534
4535         rename, renameat: Document Linux bug with NFS
4536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4537         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4538         * doc/posix-functions/renameat.texi: Likewise.
4539         Suggested by Eric Blake.
4540
4541 2010-11-13  Bruno Haible  <bruno@clisp.org>
4542
4543         rename test: Add comments.
4544         * tests/test-rename.h (test_rename): Add structure and comments.
4545
4546 2010-11-13  Eric Blake  <eblake@redhat.com>
4547
4548         maintainer-makefile: cover a few more files
4549         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4550         scripts generated within C files, for libvirt.
4551
4552 2010-11-13  Bruno Haible  <bruno@clisp.org>
4553
4554         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4555         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4556         character, return the number of bytes that belong together, not always
4557         1.
4558         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4559         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4560         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4561         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4562         number of bytes of an invalid character.
4563         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4564         (main): Invoke it.
4565         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4566         results.
4567         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4568         malformed byte sequences.
4569         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4570         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4571         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4572         Reported by Ben Pfaff and Paolo Bonzini.
4573
4574 2010-11-13  Bruno Haible  <bruno@clisp.org>
4575
4576         openat: Work around glibc bug with fchownat() and empty file names.
4577         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4578         (gl_FUNC_FCHOWNAT): Invoke it.
4579         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4580         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4581         Reported by Gary V. Vaughan <gary@gnu.org>.
4582
4583 2010-11-13  Bruno Haible  <bruno@clisp.org>
4584
4585         openat: Ensure autoconf macro ordering.
4586         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4587         gl_USE_SYSTEM_EXTENSIONS.
4588         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4589
4590 2010-11-13  Bruno Haible  <bruno@clisp.org>
4591
4592         Update comments.
4593         * lib/unistr/u8-check.c: Update file name in comments.
4594         * lib/unistr/u8-mblen.c: Likewise.
4595         * lib/unistr/u8-prev.c: Likewise.
4596         * lib/unistr/u8-strmblen.c: Likewise.
4597         * lib/unistr/u8-strmbtouc.c: Likewise.
4598
4599 2010-11-13  Jim Meyering  <meyering@redhat.com>
4600
4601         tests: avoid test failure on Solaris 10 due to lack of PATH export
4602         * tests/test-update-copyright.sh: Don't forget to export PATH.
4603
4604         init.sh: ensure that IFS is defined, just in case...
4605         * tests/init.sh (setup_): Ensure that IFS is defined,
4606         so that saving and restoring it works as expected.  This
4607         appears to be useful at least for an old version of dash
4608         from a long time ago (RH 6).  See here for details:
4609         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4610
4611         maint.mk: tighten "test a == b" check
4612         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4613         test to files that contain something like #!/bin/sh.
4614         Without this, coreutils would get two false positives in
4615         the comments of C source files.
4616
4617 2010-11-12  Eric Blake  <eblake@redhat.com>
4618
4619         bootstrap: fix typo in previous attempt
4620         * build-aux/bootstrap (buildreq): Correct the grouping.
4621         Reported by Paul Eggert.
4622
4623         maintainer-makefile: prohibit test x == x
4624         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4625         Based on a report by Matthias Bolte.
4626
4627         bootstrap: allow FreeBSD gzip
4628         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4629         which has no '.' and goes to stderr.
4630         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4631         Reported by Matthias Bolte.
4632
4633         maintainer-makefile: check for i18n setup
4634         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4635         will likely work.
4636
4637 2010-11-12  Bruno Haible  <bruno@clisp.org>
4638
4639         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4640         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4641         * lib/nanosleep.c (nanosleep): Likewise.
4642
4643 2010-11-11  Bruno Haible  <bruno@clisp.org>
4644
4645         fcntl-h: Fix for use of C++ on glibc systems.
4646         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4647         also on glibc systems in C++ mode.
4648         Reported by Gary V. Vaughan <gary@gnu.org>.
4649
4650 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4651
4652         mknod: avoid false failure with dash
4653         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4654
4655 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4656
4657         unlink: Fix "is it should" typo in diagnostic.
4658         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4660
4661 2010-11-11  Bruno Haible  <bruno@clisp.org>
4662
4663         Tests for module 'strerror_r-posix'.
4664         * modules/strerror_r-posix-tests: New file.
4665         * tests/test-strerror_r.c: New file.
4666         * tests/test-string-c++.cc: Check the signature of strerror_r.
4667
4668         New module 'strerror_r-posix'.
4669         * lib/string.in.h (strerror_r): New declaration.
4670         * lib/strerror_r.c: New file.
4671         * m4/strerror_r.m4: New file.
4672         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4673         of strerror_r.
4674         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4675         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4676         * modules/strerror_r-posix: New file.
4677         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4678         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4679         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4680         portability problems.
4681
4682 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4683
4684         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4685         line is also considered for output. Quoted function name in shell
4686         command, so temporary files for functions like MyClass::operator()
4687         are removed correctly without errors.
4688
4689 2010-11-09  Bruno Haible  <bruno@clisp.org>
4690
4691         * doc/posix-functions/strerror.texi: List more failing platforms.
4692
4693         * doc/posix-functions/strerror.texi: Add a comment.
4694
4695 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4696
4697         fdopendir: fix bug on MacOS X when low on file descriptors
4698
4699         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4700         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4701         All callers changed.
4702         (fdopendir): Invoke save_cwd at the top level, not after using
4703         multiple dup() calls to use up file descriptors.  Then retry
4704         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4705         less than the maximum number of open file descriptors, because
4706         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4707         on Mac OS X 10.6.4 for tar 1.24
4708         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4709         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4710         and for tar 1.25
4711         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4712
4713 2010-11-07  Bruno Haible  <bruno@clisp.org>
4714
4715         vasnprintf: Support I flag on glibc systems.
4716         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4717         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4718         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4719         snprintf function.
4720         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4721         glibc systems.
4722         * tests/test-vasnprintf-posix3.c: New file.
4723         * modules/vasnprintf-posix-tests (Files): Add it.
4724         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4725
4726 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4727
4728         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4729         * MODULES.html.sh: For compiler warnings, use name
4730         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4731
4732 2010-11-05  Eric Blake  <eblake@redhat.com>
4733
4734         ceil, floor: avoid spurious failure with icc
4735         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4736         [denormals-as-zero] when optimizing without -mieee-fp option.
4737         * tests/test-floorf2.c (floorf_reference): Likewise.
4738         * tests/test-ceilf1.c (dummy): New function.
4739         (main): Use it to outsmart icc's optimization.
4740         * tests/test-floorf1.c (dummy, main): Likewise.
4741
4742         tests: require working signbit
4743         * modules/ceilf-tests (Depends-on): Add signbit.
4744         * modules/ceill-tests (Depends-on): Likewise.
4745         * modules/floorf-tests (Depends-on): Likewise.
4746         * modules/floorl-tests (Depends-on): Likewise.
4747         * modules/round-tests (Depends-on): Likewise.
4748         * modules/roundf-tests (Depends-on): Likewise.
4749         * modules/roundl-tests (Depends-on): Likewise.
4750         * modules/trunc-tests (Depends-on): Likewise.
4751         * modules/truncf-tests (Depends-on): Likewise.
4752         * modules/truncl-tests (Depends-on): Likewise.
4753
4754         strtod: work around icc bug
4755         * lib/strtod.c (minus_zero): Define to working value.
4756         (strtod): Use it to avoid icc bug.
4757
4758         copysign: enhance tests
4759         * modules/copysign-tests (Files): Add minus-zero.h.
4760         * tests/test-copysign.c (main): Also test zeros.
4761
4762 2010-11-04  Eric Blake  <eblake@redhat.com>
4763
4764         ceil, floor, round, trunc: enhance tests of -0
4765         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4766         * tests/test-ceill.c (main): Likewise.
4767         * tests/test-floorf1.c (main): Likewise.
4768         * tests/test-floorl.c (main): Likewise.
4769         * tests/test-round1.c (main): Likewise.
4770         * tests/test-roundf1.c (main): Likewise.
4771         * tests/test-roundl.c (main): Likewise.
4772         * tests/test-trunc1.c (main): Likewise.
4773         * tests/test-truncf1.c (main): Likewise.
4774         * tests/test-truncl.c (main): Likewise.
4775
4776 2010-11-04  Eric Blake  <eblake@redhat.com>
4777
4778         frexp, tests: work around ICC bug with -zero
4779         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4780         works with more compilers.
4781         * tests/minus-zero.h: New file.
4782         * modules/ceilf-tests (Files): Include it.
4783         * modules/ceill-tests (Files): Likewise.
4784         * modules/floorf-tests (Files): Likewise.
4785         * modules/floorl-tests (Files): Likewise.
4786         * modules/frexp-nolibm-tests (Files): Likewise.
4787         * modules/frexp-tests (Files): Likewise.
4788         * modules/frexpl-nolibm-tests (Files): Likewise.
4789         * modules/frexpl-tests (Files): Likewise.
4790         * modules/isnan-tests (Files): Likewise.
4791         * modules/isnand-nolibm-tests (Files): Likewise.
4792         * modules/isnand-tests (Files): Likewise.
4793         * modules/isnanf-nolibm-tests (Files): Likewise.
4794         * modules/isnanf-tests (Files): Likewise.
4795         * modules/isnanl-nolibm-tests (Files): Likewise.
4796         * modules/isnanl-tests (Files): Likewise.
4797         * modules/round-tests (Files): Likewise.
4798         * modules/roundf-tests (Files): Likewise.
4799         * modules/roundl-tests (Files): Likewise.
4800         * modules/ldexpl-tests (Files): Likewise.
4801         * modules/signbit-tests (Files): Likewise.
4802         * modules/snprintf-posix-tests (Files): Likewise.
4803         * modules/sprintf-posix-tests (Files): Likewise.
4804         * modules/strtod-tests (Files): Likewise.
4805         * modules/trunc-tests (Files): Likewise.
4806         * modules/truncf-tests (Files): Likewise.
4807         * modules/truncl-tests (Files): Likewise.
4808         * modules/vsnprintf-posix-tests (Files): Likewise.
4809         * modules/vsprintf-posix-tests (Files): Likewise.
4810         * modules/vasnprintf-posix-tests (Files): Likewise.
4811         * modules/vasprintf-posix-tests (Files): Likewise.
4812         * tests/test-ceilf1.c (main): Use it.
4813         * tests/test-ceill.c (main): Likewise.
4814         * tests/test-floorf1.c (main): Likewise.
4815         * tests/test-floorl.c (main): Likewise.
4816         * tests/test-frexp.c (main): Likewise.
4817         * tests/test-frexpl.c (main): Likewise.
4818         * tests/test-isnan.c (main): Likewise.
4819         * tests/test-isnand.h (main): Likewise.
4820         * tests/test-isnanf.h (main): Likewise.
4821         * tests/test-isnanl.h (main): Likewise.
4822         * tests/test-ldexpl.c (main): Likewise.
4823         * tests/test-round.c (main): Likewise.
4824         * tests/test-roundf.c (main): Likewise.
4825         * tests/test-roundl.c (main): Likewise.
4826         * tests/test-signbit.c (test_signbitf, test_signbitd)
4827         (test_signbitl): Likewise.
4828         * tests/test-snprintf-posix.h (test_function): Likewise.
4829         * tests/test-sprintf-posix.h (test_function): Likewise.
4830         * tests/test-strtod.c (main): Likewise.
4831         * tests/test-trunc1.c (main): Likewise.
4832         * tests/test-truncf1.c (main): Likewise.
4833         * tests/test-truncl.c (main): Likewise.
4834
4835         isnanl: work around icc bug
4836         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4837
4838 2010-11-03  Eric Blake  <eblake@redhat.com>
4839
4840         tests: fix compiler warnings
4841         * tests/test-getopt.h (test_getopt): Fix condition.
4842         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4843         * tests/test-pipe2.c (main): Likewise.
4844         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4845
4846         utimens: fix broken m4 test
4847         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4848
4849 2010-10-28  Bruno Haible  <bruno@clisp.org>
4850
4851         posix_spawn*, getdtablesize: Relax license.
4852         * modules/posix_spawn (License): Change to LGPLv2+.
4853         * modules/posix_spawnp (License): Likewise.
4854         * modules/posix_spawn-internal (License): Likewise.
4855         * modules/posix_spawnattr_init (License): Likewise.
4856         * modules/posix_spawnattr_getflags (License): Likewise.
4857         * modules/posix_spawnattr_setflags (License): Likewise.
4858         * modules/posix_spawnattr_getpgroup (License): Likewise.
4859         * modules/posix_spawnattr_setpgroup (License): Likewise.
4860         * modules/posix_spawnattr_getschedparam (License): Likewise.
4861         * modules/posix_spawnattr_setschedparam (License): Likewise.
4862         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4863         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4864         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4865         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4866         * modules/posix_spawnattr_getsigmask (License): Likewise.
4867         * modules/posix_spawnattr_setsigmask (License): Likewise.
4868         * modules/posix_spawnattr_destroy (License): Likewise.
4869         * modules/posix_spawn_file_actions_init (License): Likewise.
4870         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4871         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4872         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4873         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4874         * modules/getdtablesize (License): Likewise.
4875         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4876
4877 2010-10-26  Bruno Haible  <bruno@clisp.org>
4878
4879         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4880         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4881         Cygwin and mingw.
4882         Suggested by Eric Blake.
4883
4884 2010-10-26  Bruno Haible  <bruno@clisp.org>
4885
4886         stdio: Work around compilation error due to renameat() on Solaris 10.
4887         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4888         * lib/renameat.c: Don't include <unistd.h> here.
4889         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4890         Reported by Paul Eggert and Eric Blake.
4891
4892 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4893
4894         renameat: port to Solaris 10, which declares renameat in unistd.h
4895
4896         * lib/renameat.c: Include unistd.h before stdio.h, because
4897         Solaris 10 declares renameat in unistd.h.  Problem encountered
4898         when building GNU tar 1.24 on Solaris 10.
4899
4900 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4901
4902         fdopendir: fix C89 compilation
4903         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4904         compilers.
4905
4906 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4907
4908         inttostr: simplify by removing unnecessary redundancy
4909         * lib/anytostr.c: Don't include verify.h.
4910         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4911         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4912         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4913         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4914         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4915         Likewise.
4916         * modules/inttostr (Depends-on): Remove 'verify'.
4917
4918 2010-10-23  Bruno Haible  <bruno@clisp.org>
4919
4920         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4921         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4922         Reported by Eric Blake.
4923
4924 2010-10-23  Bruno Haible  <bruno@clisp.org>
4925
4926         Tests: Fix LOCALE_JA on MirBSD 10.
4927         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4928         to an UTF-8 locale.
4929         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
4930         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4931         Reported by Eric Blake.
4932
4933 2010-10-21  Bruno Haible  <bruno@clisp.org>
4934
4935         nl_langinfo test: Avoid test failure on NetBSD 5.
4936         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
4937         Reported by Eric Blake.
4938
4939 2010-10-21  Eric Blake  <eblake@redhat.com>
4940
4941         c-stack: work around libsigsegv 2.8 bug
4942         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
4943         overflow on at least PowerPC64.
4944
4945 2010-10-17  Bruno Haible  <bruno@clisp.org>
4946
4947         userspec: Drop redundant file.
4948         * modules/userspec (Files): Remove lib/inttostr.h.
4949
4950 2010-10-17  Bruno Haible  <bruno@clisp.org>
4951
4952         nl_langinfo tests: Silence some warnings.
4953         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
4954         Reported by Jim Meyering.
4955
4956 2010-10-17  Bruno Haible  <bruno@clisp.org>
4957
4958         Make use of GCC's attribute __alloc_size__.
4959         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
4960         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
4961         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
4962         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
4963         __alloc_size__.
4964         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4965         Suggested by Jim Meyering.
4966
4967 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
4968
4969         bootstrap: anchor .gitignore entries.
4970         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
4971         with...
4972         (insert_vc_ignore): ... this new function, which prepends `/' to
4973         all .gitignore entries before passing them to
4974         insert_sorted_if_absent.
4975
4976 2010-10-16  Bruno Haible  <bruno@clisp.org>
4977
4978         nextafter: Fix configure check.
4979         * modules/nextafter (configure.ac): Correct expected prototype.
4980
4981 2010-10-16  Bruno Haible  <bruno@clisp.org>
4982
4983         termios: Update documentation.
4984         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4985
4986 2010-10-16  Bruno Haible  <bruno@clisp.org>
4987
4988         tests: Make them compile with TinyCC.
4989         * tests/test-strstr.c (main): Remove parentheses around array
4990         initializer.
4991
4992 2010-10-15  Eric Blake  <eblake@redhat.com>
4993
4994         ignore-value: make header idempotent
4995         * lib/ignore-value.h: Add double-inclusion guards.
4996         Reported by Stefan Berger.
4997
4998 2010-10-15  Jim Meyering  <meyering@redhat.com>
4999
5000         GNUmakefile: handle "stable" target, not "major"
5001         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
5002         lists in maint.mk and announce-gen.  Without this, "make stable"
5003         would fail to ensure that $(VERSION) is up to date.
5004
5005 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
5006
5007         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
5008         & co.
5009
5010 2010-10-14  Bruno Haible  <bruno@clisp.org>
5011
5012         vasnprintf: Don't set errno to 0.
5013         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
5014         block that sets it to 0.
5015         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5016
5017 2010-10-14  Bruno Haible  <bruno@clisp.org>
5018
5019         socketlib: Fix.
5020         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
5021         gl_PREREQ_SYS_H_WINSOCK2.
5022         Reported by Ian Beckwith <ianb@erislabs.net>.
5023
5024 2010-10-13  Jim Meyering  <meyering@redhat.com>
5025
5026         test-select-stdin.c: avoid warn_unused_result warnings
5027         * tests/test-select-stdin.c: Include "macros.h".
5028         ASSERT that read and fflush succeed.
5029
5030 2010-10-13  Jim Meyering  <meyering@redhat.com>
5031
5032         git-version-gen: do require git-VC'd files in cwd
5033         * build-aux/git-version-gen: Reject a git version string
5034         if there are no commits associated with the current directory.
5035         This avoids an unlikely false-positive (unrelated dir whose parent
5036         repository also contains a tag matching v*), as pointed out
5037         by Giuseppe Scrivano in
5038         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
5039
5040 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5041
5042         argv-iter: omit nonconforming declaration
5043         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
5044         enum arg_iter_err declaration, which doesn't conform to C99.
5045         Solaris 10 cc warns about this.
5046
5047 2010-10-13  Eric Blake  <eblake@redhat.com>
5048
5049         termios: fix compilation on mingw
5050         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
5051         (gl_TERMIOS_H): Adjust it on mingw.
5052         * modules/termios (Makefile.am): Substitute new key.
5053         * lib/termios.in.h (includes): Make include_next conditional.
5054         * doc/posix-headers/termios.texi (termios.h): Update
5055         documentation.
5056         Reported by Daniel P. Berrange.
5057
5058 2010-10-13  Jim Meyering  <meyering@redhat.com>
5059
5060         git-version-gen: don't require that .git/ be in the current dir
5061         * build-aux/git-version-gen: Adjust this script so that it works
5062         when run from any working directory beneath the top-level .git/-
5063         containing directory.  Inspired by a patch from Giuseppe Scrivano,
5064         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
5065
5066         test-select: avoid warn_unused_result warnings
5067         * tests/test-select.c: Include "macros.h".
5068         ASSERT that each call to read, write, and pipe succeeds.
5069         While not technically required, also check each "close".
5070         * modules/select-tests (Files): Add tests/macros.h.
5071
5072         test-symlinkat: remove declaration of unused local
5073         * tests/test-symlinkat.c (main): Remove unused local, "buf".
5074
5075         test-inttostr: avoid shadowing warnings
5076         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
5077         and use malloc rather than the stack for the same reason as
5078         mentioned in the comment justifying the other allocation.
5079
5080 2010-10-11  Bruno Haible  <bruno@clisp.org>
5081
5082         stdlib: Allow multiple gnulib generated replacements to coexist.
5083         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
5084         Reported by Sam Steingold <sds@gnu.org>.
5085
5086 2010-10-11  Jim Meyering  <meyering@redhat.com>
5087
5088         fix a documentation typo
5089         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
5090
5091 2010-10-11  Eric Blake  <eblake@redhat.com>
5092
5093         futimens: work around Solaris 11 bug
5094         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5095         * tests/test-futimens.h (test_futimens): Enhance, rather than
5096         weaken test.
5097         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5098
5099 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5100
5101         Indentation.
5102         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5103         higher-level operators more to the left.
5104
5105 2010-10-11  Jim Meyering  <meyering@redhat.com>
5106
5107         test-futimens: avoid unwarranted test failure on Solaris 5.11
5108         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5109         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5110         because it tries to dereference the NULL name argument.
5111
5112 2010-10-11  Bruno Haible  <bruno@clisp.org>
5113
5114         Indentation.
5115         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5116         indentation.
5117
5118 2010-10-11  Jim Meyering  <meyering@redhat.com>
5119
5120         spawn.in.h: make indentation consistent with parentheses
5121         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5122         Make indentation consistent with parentheses.
5123
5124 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5125
5126         Fix mismatched parens in previous commit
5127         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5128         parens.
5129
5130 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5131
5132         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5133
5134         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5135         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5136         * lib/malloca.c: Include "verify.h".
5137         (verify1): Remove, replacing with a verify call.
5138         * lib/relocwrapper.c (verify1): Likewise.
5139         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5140         Likewise.
5141         * modules/malloca (Depends-on): Add 'verify'.
5142         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5143         * modules/vasnprintf (Depends-on): Add 'verify'.
5144         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5145         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5146         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5147         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5148         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5149         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5150         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5151
5152         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5153
5154         Formerly the style was sometimes 2*X - 1, because the C standard
5155         was wrongly thought to disallow ?: in integral constant expressions.
5156         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5157         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5158         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5159         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5160         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5161         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5162         verify that time_t cannot be floating.
5163
5164 2010-10-08  Eric Blake  <eblake@redhat.com>
5165
5166         time: enforce recent POSIX ruling that time_t is integral
5167         * lib/time.in.h (__time_t_must_be_integral): Detect any
5168         problematic systems, allowing the rest of gnulib to assume POSIX.
5169
5170 2010-10-08  Jim Meyering  <meyering@redhat.com>
5171
5172         fdopendir: fix a bug on systems lacking openat and /proc support
5173         OpenBSD 4.7 is one such system.  The most noticeable effect was
5174         failure of any application making nontrivial use of fts: rm, du,
5175         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5176           ./rm: traversal failed: `a': Bad file descriptor
5177         Debugging that, you see that even though FD 6 was closed just
5178         prior to the opendir call in fd_clone_opendir, its resulting
5179         dir->dd_fd was 8, rather than the expected value of 6:
5180
5181         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
5182         93                close (fd);
5183         (gdb) n
5184         94                dir = fd_clone_opendir (dupfd);
5185         (gdb) n
5186         95                saved_errno = errno;
5187         (gdb) p dir->dd_fd
5188         $11 = 8
5189
5190         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
5191         The problem is that on OpenBSD, fd_clone_opendir has to resort
5192         to using the old-style save/restore CWD mechanism, due to its
5193         lack of openat/proc support, and *that* would steal the FD (6)
5194         that opendir was supposed to use.
5195
5196         The fix is to squirrel away the desired FD so that save_cwd uses a
5197         different one, and then free the dest FD right before calling opendir.
5198         That guarantees opendir will use the required file descriptor.
5199
5200         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
5201
5202 2010-10-08  Bruno Haible  <bruno@clisp.org>
5203
5204         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
5205         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
5206
5207 2010-10-08  Bruno Haible  <bruno@clisp.org>
5208
5209         nanosleep: Make replacement POSIX compliant.
5210         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
5211         is out of range.
5212         Reported by Jim Meyering.
5213
5214 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         bootstrap: add hook for altering gnulib.mk, for Bison
5217         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
5218         the Bison bootstrapping process can rewrite file names and variables
5219         in this file before later parts of 'bootstrap' use the file.
5220         Bison wants to include lib/gnulib.mk from the top-level makefile,
5221         so it needs the file names in this file to be relative to the top
5222         level, not relative to lib; plus it needs variable names to be
5223         rewritten.
5224         (slurp): Use the new function.
5225
5226         bootstrap: reformat for readability
5227         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
5228
5229 2010-10-08  Eric Blake  <eblake@redhat.com>
5230
5231         docs: update cygwin progress
5232         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
5233         1.7.7.
5234         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
5235         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
5236         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
5237         * doc/posix-functions/carg.texi (carg): Likewise.
5238         * doc/posix-functions/cargf.texi (cargf): Likewise.
5239         * doc/posix-functions/casin.texi (casin): Likewise.
5240         * doc/posix-functions/casinf.texi (casinf): Likewise.
5241         * doc/posix-functions/casinh.texi (casinh): Likewise.
5242         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
5243         * doc/posix-functions/catan.texi (catan): Likewise.
5244         * doc/posix-functions/catanf.texi (catanf): Likewise.
5245         * doc/posix-functions/catanh.texi (catanh): Likewise.
5246         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
5247         * doc/posix-functions/ccos.texi (ccos): Likewise.
5248         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
5249         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
5250         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
5251         * doc/posix-functions/cexp.texi (cexp): Likewise.
5252         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
5253         * doc/posix-functions/cimag.texi (cimag): Likewise.
5254         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
5255         * doc/posix-functions/clog.texi (clog): Likewise.
5256         * doc/posix-functions/clogf.texi (clogf): Likewise.
5257         * doc/posix-functions/conj.texi (conj): Likewise.
5258         * doc/posix-functions/conjf.texi (conjf): Likewise.
5259         * doc/posix-functions/cpow.texi (cpow): Likewise.
5260         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
5261         * doc/posix-functions/cproj.texi (cproj): Likewise.
5262         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
5263         * doc/posix-functions/creal.texi (creal): Likewise.
5264         * doc/posix-functions/crealf.texi (crealf): Likewise.
5265         * doc/posix-functions/csin.texi (csin): Likewise.
5266         * doc/posix-functions/csinf.texi (csinf): Likewise.
5267         * doc/posix-functions/csinh.texi (csinh): Likewise.
5268         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
5269         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
5270         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
5271         * doc/posix-functions/ctan.texi (ctan): Likewise.
5272         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
5273         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
5274         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
5275         * doc/posix-headers/complex.texi (complex.h): Likewise.
5276
5277 2010-10-07  Jim Meyering  <meyering@redhat.com>
5278
5279         parse-datetime: avoid compilation failure on OpenBSD 4.7
5280         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
5281         This works around a compilation failure on OpenBSD 4.7:
5282         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
5283
5284 2010-10-07  Eric Blake  <eblake@redhat.com>
5285
5286         docs: update cygwin progress
5287         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
5288         1.7.6.
5289         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5290         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
5291         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
5292         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
5293         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
5294         Likewise.
5295         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
5296         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
5297         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
5298         Likewise.
5299         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
5300         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
5301         Likewise.
5302         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
5303         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
5304         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
5305         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
5306         Likewise.
5307         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
5308         Likewise.
5309         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
5310
5311         docs: update parse-datetime history
5312         * doc/parse-datetime.texi (Authors of parse_datetime): Better
5313         documentation of this function's history and alternatives.
5314
5315         cygwin: use more robust version check
5316         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
5317         exclude an eventual cygwin 1.9.1.
5318         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5320         (gl_FUNC_STRCASESTR): Likewise.
5321         Reported by Bruno Haible.
5322
5323 2010-10-06  Bruno Haible  <bruno@clisp.org>
5324
5325         string, sys_select: Avoid #including large headers unless necessary.
5326         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
5327         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
5328         OSF/1, BeOS, Haiku.
5329         Reported by Jim Meyering.
5330
5331 2010-10-05  Eric Blake  <eblake@redhat.com>
5332
5333         memmem, strstr, strcasestr: fix bug with long periodic needle
5334         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
5335         periodic needle having false positive.
5336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
5337         and cygwin 1.7.7.
5338         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
5339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5340         (gl_FUNC_STRCASESTR): Likewise.
5341         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5342         * tests/test-memmem.c (main): Expose the bug.
5343         * tests/test-strcasestr.c (main): Likewise.
5344         * tests/test-strstr.c (main): Likewise.
5345         * tests/test-c-strcasestr.c (main): Likewise.
5346         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
5347         * doc/posix-functions/strstr.texi (strstr): Likewise.
5348         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5349         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
5350
5351 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5352
5353         parse-datetime: do some more renaming
5354         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
5355         parse_datetime, not get_date.  Mention the renaming.
5356         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
5357         in comments.
5358         * m4/bison.m4: Likewise.
5359
5360 2010-10-05  Eric Blake  <eblake@redhat.com>
5361
5362         parse-datetime: better name than get_date
5363         * NEWS: Reword the deprecation notice.
5364         * modules/get_date: Rename to modules/parse-datetime.
5365         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
5366         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
5367         * lib/get_date.y: Rename to lib/parse-datetime.y.
5368         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
5369         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
5370         * doc/getdate.texi: Provide fallback wrapper.
5371         * lib/getdate.h: Move guts, and wrap...
5372         * lib/parse-datetime.h: ...new file.
5373         * lib/parse-datetime.y (get_date): Rename...
5374         (parse_datetime): ...to this.
5375         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
5376         (gl_PARSE_DATETIME): ...to this.
5377         * doc/posix-functions/getdate.texi (get_date): Provide fallback
5378         documentation.
5379         * modules/getdate (Files): Provide fallback docs and header.
5380         (Notice, Depends-on): Update references.
5381         * tests/test-parse-datetime.c: Likewise.
5382         * DEPENDENCIES: Likewise.
5383         * MODULES.html.sh (Date and time <time.h>): Likewise.
5384         * doc/parse-datetime.texi (Date input formats)
5385         (Authors of parse_datetime): Likewise.
5386         * modules/parse-datetime (Files, configure.ac, Makefile.am)
5387         (Include): Likewise.
5388         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
5389         * gnulib-tool: Likewise.
5390         * m4/bison.m4 (gl_BISON): Likewise.
5391         Suggested by Bruno Haible.
5392
5393 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5394
5395         more ports to Solaris tr, which needs [] around ranges
5396         * gnulib-tool: Solaris tr needs [] around ranges.
5397         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5398         * tests/test-pipe-filter-gi1.c (main): Likewise.
5399         * tests/test-pipe-filter-ii1.c (main): Likewise.
5400
5401 2010-10-05  Eric Blake  <eblake@redhat.com>
5402
5403         bootstrap: fix Solaris regression
5404         * build-aux/bootstrap (check_versions): Solaris tr still needs []
5405         around ranges.
5406         Reported by Pádraig Brady.
5407
5408         bootstrap: work with pkg-config
5409         * build-aux/bootstrap (check_versions): Also transliterate - in
5410         prerequisite name.
5411         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
5412         prerequisites that were already found, to avoid confusion.
5413         Reported by Justin Clift.
5414
5415         faccessat: remove unused wrappers
5416         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
5417         presence of these wrappers dragged in -lgen on Solaris.
5418         Reported by Clemens Brogi; fix suggested by Paul Eggert.
5419
5420 2010-10-05  Jim Meyering  <meyering@redhat.com>
5421
5422         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
5423         * Makefile (sc_pragma_columns): New syntax-check rule.
5424
5425 2010-10-04  Bruno Haible  <bruno@clisp.org>
5426
5427         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
5428         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
5429         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
5430         Reported by Bruce Korb and Eric Blake.
5431
5432 2010-10-04  Bruno Haible  <bruno@clisp.org>
5433
5434         threadlib: Make option --with-libpth-prefix work.
5435         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
5436         use $LIBPTH, not just -lpth.
5437
5438 2010-10-04  Bruno Haible  <bruno@clisp.org>
5439
5440         Avoid line length limitation from HP NonStop system header files.
5441         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
5442         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
5443         * lib/ctype.in.h: Likewise.
5444         * lib/dirent.in.h: Likewise.
5445         * lib/errno.in.h: Likewise.
5446         * lib/fcntl.in.h: Likewise.
5447         * lib/float.in.h: Likewise.
5448         * lib/getopt.in.h: Likewise.
5449         * lib/iconv.in.h: Likewise.
5450         * lib/inttypes.in.h: Likewise.
5451         * lib/langinfo.in.h: Likewise.
5452         * lib/locale.in.h: Likewise.
5453         * lib/math.in.h: Likewise.
5454         * lib/netdb.in.h: Likewise.
5455         * lib/netinet_in.in.h: Likewise.
5456         * lib/poll.in.h: Likewise.
5457         * lib/pthread.in.h: Likewise.
5458         * lib/pty.in.h: Likewise.
5459         * lib/sched.in.h: Likewise.
5460         * lib/se-selinux.in.h: Likewise.
5461         * lib/search.in.h: Likewise.
5462         * lib/signal.in.h: Likewise.
5463         * lib/spawn.in.h: Likewise.
5464         * lib/stdarg.in.h: Likewise.
5465         * lib/stddef.in.h: Likewise.
5466         * lib/stdint.in.h: Likewise.
5467         * lib/stdio.in.h: Likewise.
5468         * lib/stdlib.in.h: Likewise.
5469         * lib/string.in.h: Likewise.
5470         * lib/strings.in.h: Likewise.
5471         * lib/sys_file.in.h: Likewise.
5472         * lib/sys_ioctl.in.h: Likewise.
5473         * lib/sys_select.in.h: Likewise.
5474         * lib/sys_socket.in.h: Likewise.
5475         * lib/sys_stat.in.h: Likewise.
5476         * lib/sys_time.in.h: Likewise.
5477         * lib/sys_times.in.h: Likewise.
5478         * lib/sys_utsname.in.h: Likewise.
5479         * lib/sys_wait.in.h: Likewise.
5480         * lib/sysexits.in.h: Likewise.
5481         * lib/termios.in.h: Likewise.
5482         * lib/time.in.h: Likewise.
5483         * lib/unistd.in.h: Likewise.
5484         * lib/wchar.in.h: Likewise.
5485         * lib/wctype.in.h: Likewise.
5486         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
5487         * modules/ctype (Makefile.am): Likewise.
5488         * modules/dirent (Makefile.am): Likewise.
5489         * modules/errno (Makefile.am): Likewise.
5490         * modules/fcntl-h (Makefile.am): Likewise.
5491         * modules/float (Makefile.am): Likewise.
5492         * modules/getopt-posix (Makefile.am): Likewise.
5493         * modules/iconv-h (Makefile.am): Likewise.
5494         * modules/inttypes (Makefile.am): Likewise.
5495         * modules/langinfo (Makefile.am): Likewise.
5496         * modules/locale (Makefile.am): Likewise.
5497         * modules/math (Makefile.am): Likewise.
5498         * modules/netdb (Makefile.am): Likewise.
5499         * modules/netinet_in (Makefile.am): Likewise.
5500         * modules/poll-h (Makefile.am): Likewise.
5501         * modules/pthread (Makefile.am): Likewise.
5502         * modules/pty (Makefile.am): Likewise.
5503         * modules/sched (Makefile.am): Likewise.
5504         * modules/search (Makefile.am): Likewise.
5505         * modules/selinux-h (Makefile.am): Likewise.
5506         * modules/signal (Makefile.am): Likewise.
5507         * modules/spawn (Makefile.am): Likewise.
5508         * modules/stdarg (Makefile.am): Likewise.
5509         * modules/stddef (Makefile.am): Likewise.
5510         * modules/stdint (Makefile.am): Likewise.
5511         * modules/stdio (Makefile.am): Likewise.
5512         * modules/stdlib (Makefile.am): Likewise.
5513         * modules/string (Makefile.am): Likewise.
5514         * modules/strings (Makefile.am): Likewise.
5515         * modules/sys_file (Makefile.am): Likewise.
5516         * modules/sys_ioctl (Makefile.am): Likewise.
5517         * modules/sys_select (Makefile.am): Likewise.
5518         * modules/sys_socket (Makefile.am): Likewise.
5519         * modules/sys_stat (Makefile.am): Likewise.
5520         * modules/sys_time (Makefile.am): Likewise.
5521         * modules/sys_times (Makefile.am): Likewise.
5522         * modules/sys_utsname (Makefile.am): Likewise.
5523         * modules/sys_wait (Makefile.am): Likewise.
5524         * modules/sysexits (Makefile.am): Likewise.
5525         * modules/termios (Makefile.am): Likewise.
5526         * modules/time (Makefile.am): Likewise.
5527         * modules/unistd (Makefile.am): Likewise.
5528         * modules/wchar (Makefile.am): Likewise.
5529         * modules/wctype (Makefile.am): Likewise.
5530
5531 2010-10-04  Bruno Haible  <bruno@clisp.org>
5532
5533         read-file tests: Avoid a test failure on NonStop Kernel.
5534         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5535         a regular file.
5536         Reported by Joachim Schmitz <schmitz@hp.com>.
5537
5538 2010-10-03  Bruno Haible  <bruno@clisp.org>
5539
5540         gnulib-tool: Fixes for --create-testdir with --libtool.
5541         * gnulib-tool (func_get_automake_snippet): Don't augment
5542         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5543         an executable.
5544         (func_create_testdir): Handle module 'alloca' like func_import.
5545         Reported by Bruce Korb <bruce.korb@gmail.com>.
5546
5547 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5548
5549         Avoid some lines longer than 80 characters.
5550         * lib/stdint.in.h: Break long comment lines.
5551         * lib/math.in.h: Likewise.
5552         (_GL_NUM_UINT_WORDS): New macro, for readability.
5553         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5554         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5555         * lib/stdlib.in.h: Likewise.
5556         * lib/spawn.in.h: Likewise.
5557         * lib/sys_socket.in.h: Update an URL.
5558         * lib/sys_stat.in.h: Break long line.
5559
5560 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5561
5562         Improve pmccabe2html.
5563         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5564         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5565         when the sources change. Remove the line in the HTML about "Used
5566         ranges" (which implied that there might be other unused ranges),
5567         rename "Resume" to "Summary" (easier to understand for more users).
5568         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5569         styles, and some unnecessary blank lines.
5570
5571 2010-10-03  Bruno Haible  <bruno@clisp.org>
5572             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5573
5574         acl: Add support for ACLs on NonStop Kernel.
5575         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5576         Check whether the function aclsort() exists.
5577         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5578         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5579         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5580         (acl_nontrivial [HAVE_ACLSORT]: New function.
5581         (file_has_acl): Implement for NonStop Kernel.
5582         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5583         (qset_acl): Implement for NonStop Kernel.
5584         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5585         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5586         (main): Implement for NonStop Kernel.
5587         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5588         Kernel. Handle this flavor.
5589         * tests/test-set-mode-acl.sh: Likewise.
5590         * tests/test-copy-acl.sh: Likewise.
5591         * tests/test-copy-file.sh: Likewise.
5592
5593 2010-10-03  Bruno Haible  <bruno@clisp.org>
5594
5595         Info about ACLs on NonStop Kernel.
5596         * doc/acl-resources.txt: Add info about NonStop Kernel.
5597         References by Joachim Schmitz <schmitz@hp.com>.
5598
5599 2010-10-02  Bruno Haible  <bruno@clisp.org>
5600
5601         Define missing EDQUOT on NonStop Kernel.
5602         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5603         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5604         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5605         missing.
5606         * doc/posix-headers/errno.texi: Mention the NSK bug.
5607         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5608         Reported by Joachim Schmitz <schmitz@hp.com>.
5609
5610 2010-10-02  Bruno Haible  <bruno@clisp.org>
5611
5612         Update doc for POSIX:2008.
5613         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5614         Update URL of POSIX specification.
5615
5616 2010-10-02  Bruno Haible  <bruno@clisp.org>
5617
5618         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5619         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5620         from gnulib, not from Automake.
5621
5622 2010-10-02  Bruno Haible  <bruno@clisp.org>
5623
5624         New module 'system-posix'.
5625         * modules/system-posix: New file.
5626         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5627         module is present.
5628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5629         GNULIB_SYSTEM_POSIX.
5630         * modules/stdlib (Depends-on): Remove sys_wait.
5631         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5632         * doc/posix-functions/system.texi: Mention the new module.
5633         * doc/posix-headers/stdlib.texi: Likewise.
5634         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5635         define test_sys_wait_macros to a no-op.
5636         Reported by Sam Steingold <sds@gnu.org>.
5637
5638 2010-09-30  Bruno Haible  <bruno@clisp.org>
5639
5640         More renaming from 'getdate' to 'get_date'.
5641         * doc/get_date.texi: Renamed from doc/getdate.texi.
5642         * modules/get_date (Files): Update.
5643         * MODULES.html.sh (Date and time <time.h>): Update.
5644         * DEPENDENCIES: Update.
5645         * gnulib-tool: Update comment.
5646         * m4/bison.m4 (gl_BISON): Likewise.
5647         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5648
5649 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5650
5651         bootstrap: support ACLOCAL_FLAGS during aclocal
5652         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5653         can add additional -I dir for third-party .m4 files.
5654
5655 2010-09-30  Eric Blake  <eblake@redhat.com>
5656
5657         bootstrap: use glibtoolize on MacOS
5658         * build-aux/bootstrap (check_versions): Convert libtool into
5659         libtoolize.
5660         (tool search): Move libtool check earlier, and look for
5661         glibtoolize for MacOS.
5662         (gnulib_tool_options): Auto-add --libtool when appropriate.
5663         Reported by Justin Clift.
5664
5665         poll: fix typo that broke test on MacOS
5666         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5667         Reported by Justin Clift.
5668
5669         getdate: rename to get_date
5670         Note: getdate.h is not renamed, to minimize client impact.
5671         * modules/getdate: Mark obsolete.  Move old contents...
5672         * modules/get_date: ...to new module name.
5673         * modules/getdate-tests: Move...
5674         * modules/get_date-tests: ...here.
5675         * m4/getdate.m4: Move...
5676         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5677         * lib/getdate.y: Move...
5678         * lib/get_date.y: ...here.
5679         * tests/test-getdate.c: Move...
5680         * tests/test-get_date.c: ...here.
5681         * doc/posix-functions/getdate.texi (getdate): Update name.
5682         * NEWS: Mention the change.
5683
5684 2010-09-29  Bruno Haible  <bruno@clisp.org>
5685
5686         Separate the module 'waitpid' from the module 'sys_wait'.
5687         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5688         present.
5689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5690         gl_MODULE_INDICATOR_FOR_TESTS.
5691         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5692         * modules/sys_wait (Depends-on): Remove waitpid.
5693         (Makefile.am): Substitute GNULIB_WAITPID.
5694         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5695         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5696         signature only if the 'waitpid' module is present.
5697         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5698         * NEWS: Mention the change.
5699         * modules/grantpt (Depends-on): Add waitpid.
5700         * modules/wait-process (Depends-on): Likewise.
5701
5702 2010-09-29  Bruno Haible  <bruno@clisp.org>
5703
5704         More tests for module 'sys_wait'.
5705         * modules/sys_wait-c++-tests: New file.
5706         * tests/test-sys_wait-c++.cc: New file.
5707         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5708         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5709
5710 2010-09-29  Bruno Haible  <bruno@clisp.org>
5711
5712         New module 'waitpid'.
5713         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5714         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5715         Don't include <process.h>.
5716         (waitpid): Declare only, using modern idiom.
5717         * m4/waitpid.m4: New file.
5718         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5719         * modules/waitpid: New file.
5720         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5721         (Makefile.am): Update.
5722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5723
5724 2010-09-28  Bruno Haible  <bruno@clisp.org>
5725
5726         poll: Assume ANSI C.
5727         * lib/poll.c (poll): Use an ANSI C declaration.
5728
5729 2010-09-28  Bruno Haible  <bruno@clisp.org>
5730
5731         poll-h: Create poll.h on all platforms.
5732         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5733         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5734         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5735         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5736         (gl_REPLACE_POLL_H): Don't set POLL_H.
5737         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5738         * modules/poll-h (Depends-on): Add include_next.
5739         (Makefile.am): Create poll.h unconditionally. Substitute also
5740         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5741
5742 2010-09-28  Bruno Haible  <bruno@clisp.org>
5743
5744         Tests for module 'poll-h'.
5745         * modules/poll-h-c++-tests: New file.
5746         * tests/test-poll-h-c++.cc: New file.
5747
5748         Tests for module 'poll-h'.
5749         * modules/poll-h-tests: New file.
5750         * tests/test-poll-h.c: New file.
5751
5752 2010-09-28  Bruno Haible  <bruno@clisp.org>
5753
5754         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5755         * modules/poll-h (Depends-on): Add 'extensions'.
5756
5757 2010-09-28  Bruno Haible  <bruno@clisp.org>
5758
5759         New module 'poll-h'.
5760         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5761         (poll): Use modern idiom.
5762         * modules/poll-h: New file.
5763         * modules/poll (Files): Remove lib/poll.in.h.
5764         (Depends-on): Add poll-h.
5765         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5766         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5767         * m4/poll_h.m4: New file.
5768         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5769         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5770         and invoke gl_REPLACE_POLL_H.
5771         * lib/poll.c: Use common idiom.
5772         * tests/test-poll.c: Likewise.
5773         * doc/posix-headers/poll.texi: Mention the poll-h module.
5774         Suggested by Eric Blake.
5775
5776 2010-09-26  Bruno Haible  <bruno@clisp.org>
5777
5778         sys_wait: Implement WSTOPSIG.
5779         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5780         Reported by Simon Josefsson.
5781
5782 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5783
5784         stdlib, sys_wait: Avoid compilation error on mingw.
5785         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5786
5787 2010-09-26  Bruno Haible  <bruno@clisp.org>
5788
5789         stdlib tests: Avoid code duplication.
5790         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5791         * modules/sys_wait-tests (Files): Likewise.
5792         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5793         * tests/test-stdlib.c: Include test-sys_wait.h.
5794         (main): Invoke test_sys_wait_macros.
5795         * tests/test-sys_wait.c: Include test-sys_wait.h.
5796         (main): Invoke test_sys_wait_macros.
5797
5798 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5799
5800         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5801         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5802         sure Windows sockets are working before calling getaddrinfo.
5803         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5804         * doc/gnulib.texi (Windows sockets): Fix typo.
5805
5806 2010-09-25  Bruno Haible  <bruno@clisp.org>
5807
5808         Tests for module 'regex-quote'.
5809         * modules/regex-quote-tests: New file.
5810         * tests/test-regex-quote.c: New file.
5811
5812         New module 'regex-quote'.
5813         * lib/regex-quote.h: New file.
5814         * lib/regex-quote.c: New file.
5815         * modules/regex-quote: New file.
5816         Suggested by Reuben Thomas <rrt@sc3d.org>.
5817
5818 2010-09-24  Bruno Haible  <bruno@clisp.org>
5819
5820         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5821         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5822
5823 2010-09-23  Bruno Haible  <bruno@clisp.org>
5824
5825         setenv: Relax license.
5826         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5827         Blake.
5828         Requested by Eric Blake.
5829
5830 2010-09-22  Bruno Haible  <bruno@clisp.org>
5831
5832         termios: Relax license.
5833         * modules/termios (License): Change to LGPLv2+.
5834         Requested by Eric Blake.
5835
5836 2010-09-22  Bruno Haible  <bruno@clisp.org>
5837
5838         threadlib: Allow the package to change the default to 'no'.
5839         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5840         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5841         Reported by Paul Eggert.
5842
5843 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5844             Bruno Haible  <bruno@clisp.org>
5845
5846         Fix endless loop in mbmemcasecoll.
5847         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5848         byte.
5849         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5850
5851 2010-09-22  Bruno Haible  <bruno@clisp.org>
5852
5853         Tests for module 'memcoll'.
5854         * modules/memcoll-tests: New file.
5855         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5856
5857         memcoll, xmemcoll: Clarify size vs. length.
5858         * modules/memcoll.c (memcoll0): Clarify specification.
5859         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5860         passed to collate_error.
5861
5862 2010-09-22  Bruno Haible  <bruno@clisp.org>
5863
5864         Tests for module 'memcasecmp'.
5865         * modules/memcasecmp-tests: New file.
5866         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5867
5868 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5869
5870         * lib/pthread.in.h: Add split double-inclusion guard, and include
5871         system <pthread.h> if there is one.  Use @@-style as in other
5872         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5873         pthread.h doesn't.
5874         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5875         (pthread_mutexattr_settype, pthread_mutex_trylock):
5876         New static inline functions, if there's no system <pthread.h>.
5877         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5878         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5879         Approximate with mutexes if the system lacks spinlocks, as in
5880         MacOS.
5881         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5882         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5883         @@-style.  Check for spinlocks separately.
5884         (gl_PTHREAD_DEFAULTS): New macro.
5885         * modules/pthread: Redo to use a more typical style for in.h files.
5886
5887 2010-09-21  Eric Blake  <eblake@redhat.com>
5888
5889         net_if: enhance tests
5890         * tests/test-net_if.c (main): Move signature checks earlier.
5891         Print failures to stderr.
5892         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5893         Document the bug that we do not yet fix.
5894
5895 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5896
5897         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5898         about gnulib, not GSS.
5899
5900 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5901
5902         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5903         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5904         for Emacs.
5905         * build-aux/pmccabe2html: Make Makefile.am example code more
5906         cut-and-paste friendly.
5907
5908 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5909
5910         * tests/test-net_if.c: New file.
5911         * modules/net_if-tests: New file.
5912
5913 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5914
5915         pthread: add pthread_spin_destroy
5916         * lib/pthread.in.h (pthread_spin_destroy): New function.
5917
5918 2010-09-19  Bruno Haible  <bruno@clisp.org>
5919
5920         gnulib-tool: Fix --help output.
5921         * gnulib-tool (func_usage): Fix help message.
5922         Reported by Reuben Thomas <rrt@sc3d.org>.
5923
5924 2010-09-18  Jim Meyering  <meyering@redhat.com>
5925
5926         maint.mk: avoid unexpanded \n in two diagnostics
5927         * top/maint.mk (sc_prohibit_always_true_header_tests):
5928         Don't use a literal \n in a halt=... assignment.  It would not be
5929         expanded, and the two \n bytes would appear in the diagnostic output
5930         rather than the desired newline.  Use halt=$$(printf ... instead.
5931         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5932
5933 2010-09-18  Bruno Haible  <bruno@clisp.org>
5934
5935         netinet_in: Doc tweak.
5936         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
5937         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5938
5939 2010-09-18  Jim Meyering  <meyering@redhat.com>
5940
5941         init.sh: correct an outdated comment
5942         * tests/init.sh (create_exe_shims_):  s/function/alias/
5943
5944         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
5945         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
5946         a file named "*.exe" is removed between the glob expansion and the
5947         processing of that oddly named file.
5948
5949 2010-09-17  Eric Blake  <eblake@redhat.com>
5950
5951         mirbsd: add some more support
5952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
5953         in BSD family.
5954         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
5955         devices as OpenBSD.
5956         * m4/host-os.m4 (mirbsd): Add MirBSD.
5957
5958         tests: fix unportable assumption on sys/wait.h
5959         * tests/test-sys_wait.c (main): Relax test.
5960         * tests/test-stdlib.c (main): Likewise.
5961
5962         init.sh: accomodate directory with no .exes
5963         * tests/init.sh: Accomodate directory containing only scripts.
5964
5965         tests: avoid compiler warning
5966         * tests/test-stdlib.c (main): Use the variable.
5967
5968         fdutimens, fdutimensat: update signature, again
5969         * lib/utimens.h (gl_futimens): Delete, and move signature...
5970         (fdutimens): ...here.
5971         (fdutimensat): Rearrange signature.
5972         (lutimensat): Rename variable for clarity.
5973         * lib/fdutimensat.c (fdutimensat): Update signature.
5974         * lib/utimens.c (fdutimens): Likewise.
5975         (gl_futimens): Delete.
5976         (utimens, lutimens): Update callers.
5977         * lib/futimens.c (futimens): Likewise.
5978         * tests/test-fdutimensat.c: Likewise.
5979         * tests/test-utimens.c: Likewise.
5980         * tests/test-futimens.h: Update comment.
5981         * NEWS: Mention this.
5982         Suggested by Paul Eggert.
5983
5984 2010-09-17  Bruno Haible  <bruno@clisp.org>
5985
5986         Take over the maintenance of some older macros from Autoconf.
5987         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5988         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5989         GNU Autoconf.
5990         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5991         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5992
5993 2010-09-17  Eric Blake  <eblake@redhat.com>
5994
5995         fdutimensat: drop atflag validation
5996         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5997         with valid fd, to close a race scenario where futimens is
5998         unsupported and FILE was replaced by a symlink.
5999         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
6000         accordingly.
6001         Suggested by Paul Eggert.
6002
6003 2010-09-16  Bruno Haible  <bruno@clisp.org>
6004
6005         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
6006         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
6007
6008 2010-09-16  Bruno Haible  <bruno@clisp.org>
6009
6010         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
6011         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
6012         login_tty exists.
6013         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6014
6015 2010-09-16  Bruno Haible  <bruno@clisp.org>
6016
6017         login_tty: Make the replacement code work on BSD systems.
6018         * lib/login_tty.c: Include <sys/ioctl.h>.
6019         (login_tty): Use ioctl TIOCSCTTY when available.
6020         * modules/login_tty (Depends-on): Add sys_ioctl.
6021         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6022
6023 2010-09-16  Bruno Haible  <bruno@clisp.org>
6024
6025         login_tty: Stricter unit test.
6026         * modules/login_tty-tests (Depends-on): Add tcgetsid.
6027         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
6028         and tcgetsid() after login_tty.
6029         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6030
6031 2010-09-16  Bruno Haible  <bruno@clisp.org>
6032
6033         New module 'tcgetsid'.
6034         * lib/tcgetsid.c: New file.
6035         * m4/tcgetsid.m4: New file.
6036         * modules/tcgetsid: New file.
6037         * modules/termios (Depends-on): Add c++defs, warn-on-use.
6038         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
6039         GNULIB_TCGETSID, HAVE_TCGETSID.
6040         * lib/termios.in.h: Include <sys/types.h>.
6041         (tcgetsid): New declaration.
6042         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
6043         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
6044         * doc/posix-functions/tcgetsid.texi: Mention the new module.
6045         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
6046
6047 2010-09-16  Bruno Haible  <bruno@clisp.org>
6048
6049         Tests for module 'termios'.
6050         * modules/termios-c++-tests: New file.
6051         * modules/termios-tests: New file.
6052         * tests/test-termios-c++.cc: New file.
6053         * tests/test-termios.c: New file.
6054
6055         New module 'termios'.
6056         * modules/termios: New file.
6057         * lib/termios.in.h: New file.
6058         * m4/termios_h.m4: New file.
6059         * doc/posix-headers/termios.texi: Mention the new module.
6060
6061 2010-09-16  Eric Blake  <eblake@redhat.com>
6062
6063         fdutimensat: add an atflag parameter
6064         * lib/fdutimensat.c (fdutimensat): Add new parameter.
6065         * lib/utimens.h (fdutimensat): Update prototype.
6066         * tests/test-fdutimensat.c: Adjust test to match.
6067         * NEWS: Document the change.
6068         Suggested by Paul Eggert.
6069
6070 2010-09-16  Bruno Haible  <bruno@clisp.org>
6071
6072         Fix typos in comments.
6073         * lib/striconveh.h: Fix typo in comment.
6074         * lib/login_tty.c (login_tty): Likewise.
6075
6076 2010-09-15  Bruno Haible  <bruno@clisp.org>
6077
6078         stdlib: clarify MirBSD WEXITSTATUS bug
6079         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
6080         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6081
6082 2010-09-15  Eric Blake  <eblake@redhat.com>
6083
6084         stdlib: work around MirBSD WEXITSTATUS bug
6085         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
6086         * modules/stdlib (Depends-on): Add sys_wait.
6087         * tests/test-sys_wait.c (main): Enhance test.
6088         * tests/test-stdlib.c (main): Likewise.
6089         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
6090
6091         docs: mention MacOS issue with WEXITSTATUS(constant)
6092         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
6093         issue.
6094         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6095
6096         strnlen: add tests
6097         * modules/strnlen-tests: New file.
6098         * tests/test-strnlen.c: Likewise.
6099
6100 2010-09-14  Bruno Haible  <bruno@clisp.org>
6101
6102         unistr/base: Avoid link errors when module 'libunistring' is also used.
6103         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6104         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6105         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6106         Declare also when HAVE_LIBUNISTRING is set.
6107         Reported by Pádraig Brady <P@draigbrady.com>.
6108
6109 2010-09-14  Eric Blake  <eblake@redhat.com>
6110
6111         test-rawmemchr: make more robust
6112         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6113         (Depends-on, configure.ac): Add needed prerequisites to use it.
6114         * modules/memchr-tests (Files, Depends-on, configure.ac):
6115         Likewise, to avoid implicit reliance on memchr module prereqs.
6116         * tests/test-memchr.c (main): Ensure proper masking.
6117         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6118         reads.
6119
6120         memchr: detect glibc Alpha bug
6121         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6122         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6123         Alpha.
6124         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6125         * tests/test-memchr.c (main): Enhance test.
6126         Reported by Nelson H. F. Beebe.
6127
6128 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         fts, getcwd, glob: audit for dirfd returning -1
6131         * lib/fts.c (opendir): Remove #define; no longer used.
6132         (opendirat): New arg PDIR_FD.  All callers changed.
6133         (fts_build, _opendir2): Use new opendirat to avoid the need for
6134         dirfd, or for checking whether dirfd returns a negative value.
6135         Don't use opendir; always use openat followed by fdopendir.
6136         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6137         it.
6138         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6139         returns -1 here.
6140         * modules/fts (Depends-on): Remove dirfd.
6141         * modules/getcwd (Depends-on): Likewise.
6142
6143 2010-09-13  Eric Blake  <eblake@redhat.com>
6144
6145         float: fix broken MirBSD header
6146         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6147         * doc/posix-headers/float.texi (float.h): Document it.
6148
6149 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6150
6151         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6152         * lib/fts.c (opendirat): New arg extra_flags.
6153         (__opendir2): Use it to avoid following symlinks when opening
6154         a directory, if symlinks are not supposed to be followed.  See
6155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6156
6157         fdopendir: preserve argument fd before returning
6158         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6159         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6160         (fdopendir): Use them, arranging for FD to be open to the same
6161         directory that it was when it started.  (It might be temporarily
6162         closed while fdopendir is running, so this not thread- or
6163         signal-safe.)  Be careful to do the right thing even when file
6164         descriptors are scarce and dup fails with errno == EMFILE.  See
6165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6166
6167 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6168
6169         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6170         * NEWS: Document change.
6171         * m4/regex.m4: Disable test for regoff_t size.
6172
6173 2010-09-13  Jim Meyering  <meyering@redhat.com>
6174
6175         fts: don't operate on an invalid file descriptor after failed dup
6176         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
6177         negative file descriptor.
6178
6179 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6180
6181         savedir: add streamsavedir, deprecate fdsavedir
6182         * NEWS: Mention deprecation of fdsavedir.
6183         * lib/savedir.c (streamsavedir): New extern function, whose name
6184         ends in "savedir" to be consistent with the others.  This differs
6185         from savedirstream in that it doesn't close its argument.  The
6186         next version of GNU tar will use this instead of fdsavedir, to
6187         avoid some race conditions and conserve file descriptors.
6188         (savedirstream): Reimplement as a wrapper around streamsavedir.
6189         (fdsavedir): Add a comment deprecating this function.  As far as
6190         I know, only GNU tar used it, and GNU tar doesn't need it any more.
6191         * lib/savedir.h (streamsavedir): New decl.
6192         (fdsavedir): Add a comment deprecating this.
6193
6194 2010-09-10  Bruno Haible  <bruno@clisp.org>
6195
6196         langinfo: Fix last commit.
6197         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
6198         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
6199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6200
6201 2010-09-10  Bruno Haible  <bruno@clisp.org>
6202
6203         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
6204         * lib/progreloc.c (O_EXEC): Define fallback.
6205
6206 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6207
6208         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
6209         * NEWS: Document recent changes to fcntl-h.
6210         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
6211         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
6212         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
6213         Similarly for O_SEARCH; this last was already true, but not documented.
6214         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
6215         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
6216         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
6217         Likewise.
6218         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
6219         is zero, not whether it is defined.
6220         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
6221         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
6222         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
6223
6224 2010-09-10  Bruno Haible  <bruno@clisp.org>
6225
6226         langinfo, nl_langinfo: Fix for IRIX 5.3.
6227         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
6228         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
6229         HAVE_LANGINFO_YESEXPR.
6230         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
6231         HAVE_LANGINFO_YESEXPR.
6232         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
6233         HAVE_LANGINFO_T_FMT_AMPM is 0.
6234         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
6235         HAVE_LANGINFO_YESEXPR is 0.
6236         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
6237         NOEXPR.
6238         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
6239         * doc/posix-functions/nl_langinfo.texi: Likewise.
6240         Reported by Eric Blake.
6241
6242 2010-09-10  Bruno Haible  <bruno@clisp.org>
6243
6244         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
6245         * doc/glibc-functions/login_tty.texi: Mention the include file problem
6246         on FreeBSD 8.0 and OpenBSD 4.6.
6247         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
6248         * m4/pty_h.m4 (gl_PTY_H): Likewise.
6249         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
6250         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
6251         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
6252         ac_includes_default.
6253         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6254
6255 2010-09-09  Eric Blake  <eblake@redhat.com>
6256
6257         strsignal: work around NetBSD bug
6258         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
6259         * lib/string.in.h (includes): Likewise.
6260         * doc/posix-functions/strsignal.texi (strsignal): Document the
6261         bug.
6262         Reported by Nelson H. F. Beebe.
6263
6264         gnulib-tool: work with NetBSD /bin/sh
6265         * gnulib-tool (func_cache_var, func_cache_lookup_module)
6266         (func_get_description, func_get_comment, func_get_status)
6267         (func_get_notice, func_get_applicability, func_get_filelist)
6268         (func_get_dependencies, func_get_autoconf_early_snippet)
6269         (func_get_autoconf_snippet, func_get_automake_snippet)
6270         (func_get_include_directive, func_get_link_directive)
6271         (func_get_license, func_get_maintainer, func_import): Avoid
6272         shell syntax errors from parsing syntax extensions.
6273
6274 2010-09-09  Bruno Haible  <bruno@clisp.org>
6275
6276         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6277         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
6278         a reliable way to determine whether the 'alias' command works.
6279
6280 2010-09-08  Jim Meyering  <meyering@redhat.com>
6281
6282         init.sh: penalize a set-x-impaired shell; don't disqualify it
6283         * tests/init.sh: Too many shells corrupt application stderr when
6284         you set -x, so we can't afford to disqualify them, since at least
6285         on Irix-6.5, that would disqualify all bourne shells.
6286         Instead, use a two-pass approach.
6287         On the first pass, try to find a shell that meets the stricter
6288         condition that set -x does not corrupt stderr.
6289         If no shell meets the stricter condition, retest each candidate
6290         shell, but without that extra condition.  Finally, when
6291         VERBOSE=yes is requested and set -x might cause trouble, simply
6292         issue a warning and refrain from enabling debug output.
6293
6294 2010-09-08  Eric Blake  <eblake@redhat.com>
6295
6296         unsetenv: fix OpenBSD bug
6297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
6298         * doc/posix-functions/unsetenv.texi (unsetenv): Update
6299         documentation.
6300         Reported by Jim Meyering.
6301
6302         strtod: work around IRIX 6.5 bug
6303         * lib/strtod.c (strtod): Reparse number on shorter string if
6304         exponent parse was invalid.
6305         * tests/test-strtod.c (main): Add check for "0x1p 2".
6306         Reported by Tom G. Christensen.
6307
6308         getopt: optimize previous patch
6309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
6310         empty variable.  Speed up awk script.
6311         Reported by Paolo Bonzini.
6312
6313 2010-09-08  Jim Meyering  <meyering@redhat.com>
6314
6315         test.sh: disqualify shells for which set -x corrupts stderr
6316         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
6317         and OpenBSD 4.7.  They make it so with "set -x", environment settings
6318         appear in stderr output.  For example, this command:
6319             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
6320         prints "P=1" on those two systems:
6321
6322 2010-09-08  Bruno Haible  <bruno@clisp.org>
6323
6324         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6325         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
6326         commands, because some shells ignore redirections when there is an
6327         error in the command lookup.
6328         Reported by Eric Blake.
6329
6330 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
6331
6332         * lib/regex.h: Fix a mention of `regex_compile' (should be
6333         `re_compile_pattern').
6334         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
6335         (re_set_registers): Correct name of parameter in comment.
6336
6337         * doc/regex.texi: Add documentation for missing syntax flags.
6338         Remove commented-out documentation of defunct syntax option
6339         RE_NO_EMPTY_ALTS.
6340         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
6341         Add documentation of re_set_registers.
6342         Document trick to re-use a pattern buffer by setting fastmap manually.
6343         Update documentation of struct re_pattern_buffer per public members.
6344         Uncomment documentation of equivalence class operators and
6345         collating symbol operators, since they are now implemented,
6346         Explain leftmost-longest matching in relation to alternatives.
6347         Tidy documentation of substring matching.
6348         Remove POSIX documentation, which is done better in
6349         glibc, and refer the reader there. Keep BSD API documentation, as
6350         that is not readily available elsewhere.
6351
6352 2010-09-07  Eric Blake  <eblake@redhat.com>
6353
6354         getopt: handle POSIXLY_CORRECT set but not exported
6355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
6356         export state of POSIXLY_CORRECT, due to bash set -o posix.
6357         Reported by Dustin J. Mitchell.
6358
6359 2010-09-05  Bruno Haible  <bruno@clisp.org>
6360
6361         gnulib-tool: Highlight the changed options.
6362         * gnulib-tool (func_usage): Display the --import, --add-import,
6363         --remove-import explanations in bold font.
6364
6365 2010-09-06  Karl Berry  <karl@gnu.org>
6366
6367         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
6368
6369 2010-09-05  Bruno Haible  <bruno@clisp.org>
6370
6371         uniwidth/width: Update comment.
6372         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
6373         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
6374
6375 2010-09-05  Bruno Haible  <bruno@clisp.org>
6376
6377         isinf, isnan: Relax license.
6378         * modules/isinf (License): Change from GPL to LGPL, with consent from
6379         Ben Pfaff.
6380         * modules/isnan (License): Likewise.
6381         Requested by Ludovic Courtès.
6382
6383 2010-09-04  Bruno Haible  <bruno@clisp.org>
6384
6385         gnulib-tool: Help migration from --import to --add-import or --update.
6386         * gnulib-tool: Emit a verbose error message when --import is used
6387         without any module name.
6388
6389 2010-09-04  Bruno Haible  <bruno@clisp.org>
6390
6391         Update doc about gnulib-tool.
6392         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
6393         'gnulib-tool --update' in more detail.
6394         Reported by Eric Blake.
6395
6396 2010-09-04  Bruno Haible  <bruno@clisp.org>
6397
6398         gnulib-tool: Change --import. New options --add/remove-import.
6399         * gnulib-tool: New options --add-import, --remove-import.
6400         (func_usage): Document them.
6401         (have_associative): Define always.
6402         (func_import): In import mode, don't merge the specified settings with
6403         the cached settings. Implement remove-import mode.
6404         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
6405         Explain when to use them versus --import.
6406         (Simple update): Use --add-import instead of --import.
6407         * NEWS: Mention the change.
6408
6409 2010-09-04  Bruno Haible  <bruno@clisp.org>
6410
6411         * doc/gnulib-tool.texi (Initial import): Update paragraph about
6412         separate gnulib.mk.
6413
6414 2010-09-04  Bruno Haible  <bruno@clisp.org>
6415
6416         gnulib-tool: Don't talk about CVS any more.
6417         * gnulib-tool (func_usage, func_import): Write "version control"
6418         instead of CVS.
6419
6420 2010-09-04  Jim Meyering  <meyering@redhat.com>
6421
6422         maint.mk: avoid obscure sc_copyright_check failure in coreutils
6423         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
6424         false positives (whose names may be ill-chosen) when searching
6425         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
6426         would cause a false-positive.
6427
6428         avoid coreutils "make distcheck" failure
6429         Coreutils tests with an absolute build directory name that contains
6430         a space.  Not quoting this directory name caused a failure.
6431         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
6432         * tests/test-vc-list-files-cvs.sh: Likewise.
6433
6434 2010-09-04  Bruno Haible  <bruno@clisp.org>
6435
6436         gnulib-tool: Avoid error when run in a package without Makefile.am.
6437         * gnulib-tool: When collecting the m4dirs in a package that does not
6438         have a Makefile.am, eliminate those directories that contain no
6439         gnulib-cache.m4. Fix expression that counts these directories.
6440
6441 2010-09-04  Bruno Haible  <bruno@clisp.org>
6442
6443         update-copyright test: Improve output when perl is missing or too old.
6444         * tests/test-update-copyright.sh: Move test of Perl version down after
6445         the test whether Perl exists. Provide an explanation relating Perl's
6446         error message to Automake's SKIP: message.
6447
6448 2010-09-04  Bruno Haible  <bruno@clisp.org>
6449
6450         Don't augment PATH in TESTS_ENVIRONMENT.
6451         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
6452         set abs_aux_dir instead of augmenting PATH.
6453         * modules/vc-list-files-tests (Makefile.am): Likewise.
6454         * tests/test-update-copyright.sh: Augment PATH here.
6455         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
6456         path_prepend_.
6457         * tests/test-vc-list-files-git.sh: Likewise.
6458
6459 2010-09-04  Jim Meyering  <meyering@redhat.com>
6460
6461         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
6462         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
6463
6464 2010-09-04  Bruno Haible  <bruno@clisp.org>
6465
6466         strdup: Fix compilation error in C++ mode.
6467         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
6468         the macro.
6469
6470 2010-09-04  Bruno Haible  <bruno@clisp.org>
6471
6472         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
6473         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
6474         macro into a function.
6475         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6476
6477 2010-09-04  Bruno Haible  <bruno@clisp.org>
6478
6479         Set PATH_SEPARATOR the same way autoconf does.
6480         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
6481         the value of PATH_SEPARATOR the same way autoconf-generated configure
6482         scripts do.
6483         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
6484         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6485
6486 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6487
6488         Set PATH_SEPARATOR the same way autoconf does.
6489         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
6490         the same way autoconf-generated configure scripts do.
6491         * posix-modules: Likewise.
6492
6493 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         hash: fix safe_hasher const typo
6496         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6497         const; otherwise, there is a type error later.
6498
6499 2010-09-02  Jim Meyering  <meyering@redhat.com>
6500
6501         test-update-copyright.sh: require perl 5.8.0
6502         * tests/test-update-copyright.sh: Require 5.8.0,
6503         which Tom G. Christensen has confirmed is adequate,
6504         while 5.6.1 is not.
6505
6506 2010-09-02  Eric Blake  <eblake@redhat.com>
6507
6508         tests: init.sh improvements for re-exec'ing with zsh
6509         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6510         -vx through shell re-exec.
6511         Reported by Tom G. Christensen.
6512
6513         wctype: fix typo in previous commit
6514         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6515         Reported by Ludovic Courtès.
6516
6517 2010-09-02  Jim Meyering  <meyering@redhat.com>
6518
6519         test-update-copyright.sh: skip test if Perl is too old
6520         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6521         Reported by Tom G. Christensen.
6522
6523 2010-09-02  Bruno Haible  <bruno@clisp.org>
6524
6525         wctype: Avoid compilation error on IRIX 6.5.30.
6526         * lib/wctype.in.h (iswblank): Declare with a replacement if
6527         REPLACE_ISWBLANK is set.
6528         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6529         declared. Set REPLACE_ISWBLANK.
6530         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6531         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6532         * doc/posix-headers/wctype.texi: Likewise.
6533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6534
6535 2010-09-01  Bruno Haible  <bruno@clisp.org>
6536
6537         New module 'socketlib'.
6538         * modules/socketlib: New file.
6539         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6540         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6541         * modules/sockets (Depends-on): Add socketlib.
6542         Suggested by Sam Steingold <sds@gnu.org>.
6543
6544 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6547
6548         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6549         when one needs search access to a directory but not read access.
6550         On systems where it is available, it works in some cases where
6551         O_RDONLY does not, namely on directories that are searchable but
6552         not readable, and which need only to be searchable.  If O_SEARCH
6553         is not available, fall back to the traditional method of using
6554         O_RDONLY.
6555
6556         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6557         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6558         when opening a directory that needs only to be searchable.
6559         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6560         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6561         * lib/openat-proc.c (openat_proc_name): Likewise.
6562         * lib/openat.c (openat_needs_fchdir): Likewise.
6563         * lib/save-cwd.c (save_cwd): Likewise.
6564         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6565
6566 2010-08-28  Bruno Haible  <bruno@clisp.org>
6567
6568         New module 'host-cpu-c-abi'.
6569         * modules/host-cpu-c-abi: New file.
6570         * m4/host-cpu-c-abi.m4: New file, based on part of
6571         clisp/src/m4/general.m4.
6572         Requested by Sam Steingold <sds@gnu.org>.
6573
6574 2010-08-31  Eric Blake  <eblake@redhat.com>
6575         and Jim Meyering  <meyering@redhat.com>
6576
6577         hash: factor, and guard against misbehaving hasher function
6578         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6579         of table->hasher's return value.  Also protect against a hash value
6580         so large that adding it to table->bucket results in a NULL pointer.
6581         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6582         Use it in place of open-coded check-and-abort.
6583
6584 2010-08-30  Bruno Haible  <bruno@clisp.org>
6585
6586         hash: silence spurious clang warning
6587         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6588         Reported by Eric Blake.
6589
6590 2010-08-30  Eric Blake  <eblake@redhat.com>
6591
6592         strstr, memmem, strcasestr: avoid leaked shell message
6593         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6594         FreeBSD.
6595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6596         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6597
6598         tests: silence clang warning
6599         * tests/test-malloca.c (do_allocation): Avoid dead store.
6600
6601 2010-08-29  Bruno Haible  <bruno@clisp.org>
6602
6603         gettext: Fix recent mistake.
6604         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6605
6606 2010-08-29  Bruno Haible  <bruno@clisp.org>
6607
6608         selinux-h: Offer a --without-selinux option.
6609         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6610         --without-selinux was specified, skip all tests and define
6611         HAVE_SELINUX_SELINUX_H to 0.
6612         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6613         set LIB_SELINUX to empty.
6614         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6615         gl_LIBSELINUX. If --without-selinux was specified, replace
6616         selinux/context.h.
6617         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6618
6619 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6620             Bruno Haible  <bruno@clisp.org>
6621
6622         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6623         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6624         of HAVE_REALLOC.
6625         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6626         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6627         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6628         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6629
6630 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6631             Bruno Haible  <bruno@clisp.org>
6632
6633         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6634         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6635         HAVE_CALLOC.
6636         * lib/xmalloc.c: Update accordingly.
6637         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6638         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6639         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6640
6641 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6642             Bruno Haible  <bruno@clisp.org>
6643
6644         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6645         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6646         HAVE_MALLOC.
6647         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6648         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6649         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6650
6651 2010-08-29  Bruno Haible  <bruno@clisp.org>
6652
6653         Update modules list.
6654         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6655         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6656         (String handling <string.h>): Add astrxfrm.
6657         (File system functions): Add readlinkat.
6658
6659 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6660
6661         Tests for module 'realloc-gnu'.
6662         * modules/realloc-gnu-tests: New file.
6663         * tests/test-realloc-gnu.c: New file.
6664
6665         Tests for module 'calloc-gnu'.
6666         * modules/calloc-gnu-tests: New file.
6667         * tests/test-calloc-gnu.c: New file.
6668
6669         Tests for module 'malloc-gnu'.
6670         * modules/malloc-gnu-tests: New file.
6671         * tests/test-malloc-gnu.c: New file.
6672
6673 2010-08-28  Bruno Haible  <bruno@clisp.org>
6674
6675         Rename module 'realloc' -> 'realloc-gnu'.
6676         * modules/realloc-gnu: New file, copied from modules/realloc.
6677         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6678         obsolete.
6679         * modules/mgetgroups (Depends-on): Update.
6680         * doc/posix-functions/realloc.texi: Update.
6681         * NEWS: Mention the change.
6682
6683         Rename module 'calloc' -> 'calloc-gnu'.
6684         * modules/calloc-gnu: New file, copied from modules/calloc.
6685         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6686         obsolete.
6687         * doc/posix-functions/calloc.texi: Update.
6688         * NEWS: Mention the change.
6689
6690         Rename module 'malloc' -> 'malloc-gnu'.
6691         * modules/malloc-gnu: New file, copied from modules/malloc.
6692         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6693         obsolete.
6694         * modules/argp (Depends-on): Update.
6695         * modules/regex (Depends-on): Update.
6696         * doc/posix-functions/malloc.texi: Update.
6697         * NEWS: Mention the change.
6698
6699 2010-08-28  Eric Blake  <eblake@redhat.com>
6700
6701         pread, pwrite: add missing dependency
6702         * modules/pread (Depends-on): Add extensions.
6703         * modules/pwrite (Depends-on): Likewise.
6704
6705 2010-08-28  Bruno Haible  <bruno@clisp.org>
6706
6707         unistr/u*-strchr: Fix tests dependencies.
6708         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6709         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6710         Reported by Ian Beckwith <ianb@erislabs.net>.
6711
6712 2010-08-28  Bruno Haible  <bruno@clisp.org>
6713
6714         read-file: Don't occupy too much unused memory.
6715         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6716
6717 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6718             Eric Blake  <eblake@redhat.com>
6719             Bruno Haible  <bruno@clisp.org>
6720
6721         read-file: Avoid memory reallocations with regular files.
6722         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6723         (fread_file): With regular files, use the remaining length as the
6724         initial buffer size.  Check against overflow.
6725         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6726         sys_stat.
6727
6728 2010-08-28  Bruno Haible  <bruno@clisp.org>
6729
6730         ftello: Relax license.
6731         * modules/ftello (License): Relax to LGPLv2+.
6732         Reported by Eric Blake.
6733
6734 2010-08-28  Bruno Haible  <bruno@clisp.org>
6735
6736         Avoid relocwrapper link errors due to gnulib replacement functions.
6737         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6738         function.
6739         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6740
6741 2010-08-28  Bruno Haible  <bruno@clisp.org>
6742
6743         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6744         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6745         defined.
6746         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6747         Suggested by Eric Blake.
6748
6749 2010-08-28  Bruno Haible  <bruno@clisp.org>
6750
6751         sys_socket, netdb: Ensure socklen_t gets defined.
6752         * modules/sys_socket (Depends-on): Add socklen.
6753         * modules/netdb (Depends-on): Likewise.
6754         * modules/getaddrinfo (Depends-on): Remove socklen.
6755         * modules/getsockopt (Depends-on): Likewise.
6756         * modules/setsockopt (Depends-on): Likewise.
6757         * tests/test-sys_socket.c: Check that socklen_t is defined.
6758         * tests/test-netdb.c: Likewise.
6759         * m4/socklen.m4: Update comments.
6760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6761
6762 2010-08-27  Eric Blake  <eblake@redhat.com>
6763
6764         login_tty: add missing dependency
6765         * modules/login_tty (Depends-on): Add pty.
6766
6767 2010-08-26  Eric Blake  <eblake@redhat.com>
6768
6769         lib-symbol-versions: fix m4 quoting
6770         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6771         format for AC_LINK_IFELSE.
6772
6773         glob: fix compile test
6774         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6775
6776         btowc: fix missing file
6777         * modules/btowc (Files): Also ship locale-fr.m4.
6778
6779         lseek: fix link test
6780         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6781         AC_LINK_IFELSE.
6782
6783         include_next: silence autoconf 2.68 warning
6784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6785         AC_COMPILE_IFELSE as special.
6786         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6787         autoconf < 2.68.
6788
6789         acl: fix compilation test
6790         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6791         AC_COMPILE_IFELSE.
6792
6793 2010-08-26  Bruno Haible  <bruno@clisp.org>
6794
6795         Modernize AC_TRY_RUN invocations.
6796         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6797         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6798         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6799         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6800         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6801         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6802         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6804         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6805         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6806         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6807         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6808         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6809         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6811         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6812         gl_MBRLEN_NUL_RETVAL): Likewise.
6813         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6814         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6815         Likewise.
6816         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6817         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6818         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6819         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6820         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6821         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6822         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6823         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6824         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6825         Likewise.
6826         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6827         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6831         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6833         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6834         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6836
6837 2010-08-26  Bruno Haible  <bruno@clisp.org>
6838
6839         Modernize AC_TRY_LINK invocations.
6840         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6841         AC_TRY_LINK.
6842         * m4/argp.m4 (gl_ARGP): Likewise.
6843         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6844         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6845         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6846         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6847         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6848         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6849         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6850         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6851         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6852         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6853         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6854         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6855         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6856         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6857         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6858         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6859         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6860         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6861         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6862         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6863         Likewise.
6864         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6865         Likewise.
6866         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6867         Likewise.
6868         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6870         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6871         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6872         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6873         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6874         * m4/servent.m4 (gl_SERVENT): Likewise.
6875         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6876         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6877         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6878         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6879         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6880         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6881         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6883         * modules/tsearch-tests (configure.ac): Likewise.
6884
6885 2010-08-26  Bruno Haible  <bruno@clisp.org>
6886
6887         Modernize AC_TRY_COMPILE invocations.
6888         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6889         AC_TRY_COMPILE.
6890         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6891         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6892         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6893         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6894         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6895         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6896         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6897         * m4/lock.m4 (gl_LOCK): Likewise.
6898         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6899         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6900         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6902         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6903         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6904         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6906         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6907         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6908         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6909         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6910         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6911         extraneous semicolon.
6912
6913 2010-08-26  Jim Meyering  <meyering@redhat.com>
6914
6915         stat-time: relax license LGPL
6916         * modules/stat-time (License): Change from GPL to LGPL,
6917         with consent from all contributors, for use in libguile.
6918         Requested by Ludovic Courtès.
6919
6920 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6921
6922         poll: return immediately on POLLHUP.
6923         * lib/poll.c (poll): Always set timeout before wait_timeout is
6924         computed.
6925
6926 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6927
6928         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
6929         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
6930         rmdir ("dir/.//"), unlinkat.
6931
6932 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6933
6934         stdbool: avoid spurious failure with modern xlc
6935         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6936
6937 2010-08-24  Bruno Haible  <bruno@clisp.org>
6938
6939         getloadavg: simplify code
6940         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
6941         gl_have_func. Update comments.
6942
6943 2010-08-24  Eric Blake  <eblake@redhat.com>
6944
6945         getloadavg: don't define SVR4 on cygwin
6946         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
6947         only define SVR4 when -lkvm is required.
6948         Reported by Yaakov Selkowitz.
6949
6950 2010-08-24  Bruno Haible  <bruno@clisp.org>
6951
6952         priv-set: fix comment
6953         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
6954
6955 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6956
6957         priv-set: fix comments
6958         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
6959         to match code, as suggested by David Bartley in:
6960         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
6961
6962 2010-08-23  Eric Blake  <eblake@redhat.com>
6963
6964         stdbool: avoid rejecting clang
6965         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6966         * tests/test-stdbool.c: Enable more tests if using the system
6967         <stdbool.h> instead of the gnulib replacement.
6968         (main): Move xlc bug test to a runtime test for all compilers.
6969         Reported by Anders Kaseorg.
6970
6971         argz: fix shell quoting issue
6972         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6973         Reported by Charles Wilson.
6974
6975 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6976             Erik Faye-Lund <kusmabite@gmail.com>
6977
6978         poll, select: handle ERROR_BROKEN_PIPE.
6979         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6980         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6981         * lib/select.c (win32_compute_revents): Do not mark a pipe
6982         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6983
6984 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6985
6986         fts: allow compilation with C++
6987         * lib/fts_.h: Specify extern "C" linkage with C++.
6988
6989 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6990
6991         Fix gnulib-tool sed script de-commentation for AIX sed.
6992         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6993         sed.
6994
6995 2010-08-17  Eric Blake  <eblake@redhat.com>
6996
6997         test-stddef: test for (some) offsetof bugs
6998         * tests/test-stddef.c: Enhance test to ensure correct type of
6999         offsetof.
7000         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
7001         that we are not fixing at this time.
7002
7003 2010-08-15  Bruno Haible  <bruno@clisp.org>
7004
7005         stpncpy: Allow stpncpy to be defined as a macro.
7006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
7007         if it's already correctly declared.
7008         * lib/string.in.h (stpncpy): Undefine before redefining.
7009         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
7010
7011 2010-08-14  Bruno Haible  <bruno@clisp.org>
7012
7013         Rename module 'memxfrm' to 'amemxfrm'.
7014         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
7015         (amemxfrm): Renamed from memxfrm.
7016         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
7017         (amemxfrm): Renamed from memxfrm.
7018         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
7019         * NEWS: Mention the change.
7020         * MODULES.html.sh (String handling <string.h>): Update.
7021         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
7022         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
7023         * lib/unicase/u16-casexfrm.c: Likewise.
7024         * lib/unicase/u32-casexfrm.c: Likewise.
7025         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
7026         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
7027         * lib/uninorm/u16-normxfrm.c: Likewise.
7028         * lib/uninorm/u32-normxfrm.c: Likewise.
7029         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
7030         memxfrm.
7031         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
7032         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
7033         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
7034         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
7035         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
7036         Suggested by Paul Eggert.
7037
7038 2010-08-14  Bruno Haible  <bruno@clisp.org>
7039
7040         Tests for module 'astrxfrm'.
7041         * modules/astrxfrm-tests: New file.
7042         * tests/test-astrxfrm.c: New file.
7043
7044         New module 'astrxfrm'.
7045         * lib/astrxfrm.h: New file.
7046         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
7047         * modules/astrxfrm: New file.
7048
7049 2010-08-14  Reuben Thomas <rrt@sc3d.org>
7050
7051         regex: Tweak doc.
7052         * doc/regex.texi (Overview): Don't mention regex.c.
7053         (GNU Regular Expression Compiling): Likewise.
7054         (Match-end-of-line Operator): Mention 'not_eol'.
7055
7056 2010-08-14  Brian Gough  <bjg@gnu.org>
7057             Bruno Haible  <bruno@clisp.org>
7058
7059         git-merge-changelog: add doc relating to use with bzr and hg.
7060         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
7061
7062 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
7063
7064         pthread: fix pthread.h creation for srcdir != builddir
7065         * modules/pthread (Makefile.am): Fix the rule to work also in a
7066         non-srcdir build.
7067
7068 2010-08-13  Karl Berry  <karl@gnu.org>
7069
7070         * doc/regex.texi (Predefined Syntaxes): @smallexample.
7071         * doc/posix-*/*: force line break before @url of POSIX
7072         specifications.
7073         Suggested by Werner Lemberg.
7074
7075 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7076
7077         strtod: fix const diagnostic
7078         * lib/strtod.c (strtod): Don't assign const char * to char *,
7079         as this elicits a warning from GCC when warnings are enabled.
7080
7081 2010-08-10  Pádraig Brady <P@draigbrady.com>
7082         and Eric Blake  <eblake@redhat.com>
7083
7084         copy-acl: ignore ENOTSUP on HP-UX
7085         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
7086         so that it is available for HP-UX.
7087         * lib/copy-acl.c (qcopy_acl): Use it.
7088         Reported by Patrick M. Callahan.
7089
7090 2010-08-10  Eric Blake  <eblake@redhat.com>
7091
7092         open, chown: relax license
7093         * modules/open (License): Change to LGPLv2+, with consent by all
7094         authors, for use in augeas.
7095         * modules/chown (License): Likewise.
7096         * modules/lchown (Likewise): Likewise.
7097         Requested by Adam Stokes.
7098
7099 2010-08-09  Karl Berry  <karl@gnu.org>
7100
7101         * build-aux/ar-lib: new file, import from Automake.
7102         * config/srclist.txt: autocheck for updates.
7103
7104 2010-08-09  Eric Blake  <eblake@redhat.com>
7105
7106         readlinkat: adjust client modules
7107         * modules/areadlinkat (Depends-on): Use readlinkat, not
7108         symlinkat.
7109         * modules/areadlinkat-with-size (Depends-on): Likewise.
7110
7111         mknod: be more vocal about danger of running tests as root
7112         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7113         root, since that is just asking for problems.
7114         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7115
7116         readlinkat: split into its own module
7117         * modules/symlinkat: Split readlinkat...
7118         * modules/readlinkat: ...into separate module.
7119         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7120         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7121         * lib/symlinkat.c (readlinkat): Move...
7122         * lib/readlinkat.c: ...into new file.
7123         * modules/symlinkat-tests: Split readlinkat test...
7124         * modules/readlinkat-tests: ...into separate module.
7125         * tests/test-symlinkat.c: Split...
7126         * tests/test-readlinkat.c: ...into new file.
7127         * NEWS: Document the split.
7128         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7129         * lib/unistd.in.h (readlinkat): Likewise.
7130         Suggested by Bruno Haible.
7131
7132 2010-08-08  Bruno Haible  <bruno@clisp.org>
7133
7134         memxfrm: Speed up.
7135         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7136         that usually only one call to strxfrm is necessary for each string
7137         part.
7138         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7139
7140 2010-08-07  Karl Berry  <karl@gnu.org>
7141
7142         * doc/posix-headers/limits.texi,
7143         * doc/posix-functions/malloc.texi,
7144         * doc/posix-functions/strsignal.texi: missing @item.
7145         * doc/ld-version-script.texi: spurious leading i.
7146         * doc/regex.texi (Interval Operators): no commas inside @var.
7147
7148 2010-08-01  Bruno Haible  <bruno@clisp.org>
7149
7150         Integrate the regex documentation.
7151         * doc/gnulib.texi: Define 'cn' index.
7152         (Regular expressions): New a chapter that includes regex.texi and
7153         regexprops-generic.texi.
7154         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7155         syntax.
7156
7157         Whitespace cleanup.
7158         * doc/regex.texi: Remove trailing spaces.
7159
7160         Add regex documentation.
7161         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7162         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7163         Written by Kathy A. Hargreaves and Karl Berry.
7164
7165 2010-08-01  Bruno Haible  <bruno@clisp.org>
7166
7167         link: Update documentation.
7168         * doc/posix-functions/link.texi: Update regarding Solaris.
7169
7170 2010-07-31  Bruno Haible  <bruno@clisp.org>
7171
7172         Update modules list.
7173         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7174         (String handling <string.h>): Add memcmp2, memxfrm.
7175         (Container data structures): Add xlist, xsublist, xoset.
7176         (Core language properties): Add alignof, unused-parameter.
7177         (Process control, Numeric conversion functions <stdlib.h>): Renamed
7178         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
7179         (Unibyte characters <ctype.h>): New section.
7180         (String handling <string.h>): New section.
7181         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
7182         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
7183         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
7184         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
7185         tan, tanh, tanl, y0, y1, yn.
7186         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
7187         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
7188         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
7189         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
7190         unlockpt, vdprintf, vdprintf-posix.
7191         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
7192         (File system functions): Add concat-filename, sys_file, sys_ioctl,
7193         xconcat-filename.
7194         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
7195         getdtablesize, pipe2, pipe2-safer.
7196         (Security): New section.
7197         (Networking functions): Add accept4.
7198         (Signal handling): Add sigpipe.
7199         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
7200         mbmemcasecoll.
7201         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
7202         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
7203         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
7204         pipe-filter-ii.
7205         (Misc): Add argp-version-etc, login_tty, parse-duration.
7206
7207 2010-07-31  Bruno Haible  <bruno@clisp.org>
7208
7209         Improve doc in MODULES.html.
7210         * modules/linkat (Description): Add the word "function".
7211         * modules/mkfifo (Description): Likewise.
7212         * modules/mknod (Description): Likewise.
7213         * modules/remove (Description): Likewise.
7214         * modules/renameat (Description): Likewise.
7215         * modules/stat (Description): Likewise.
7216         * modules/symlink (Description): Likewise.
7217         * modules/unlink (Description): Likewise.
7218
7219 2010-07-31  Bruno Haible  <bruno@clisp.org>
7220
7221         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
7222         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
7223         option --enable/disable-c++ instead of --enable/disable-cxx.
7224         * NEWS: Mention the change.
7225
7226 2010-07-31  Bruno Haible  <bruno@clisp.org>
7227
7228         readlink, areadlink: Relax test a bit.
7229         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
7230         alternative to ENOTDIR.
7231         * tests/test-areadlink.h (test_areadlink): Likewise.
7232         Reported by Rainer Tammer.
7233
7234 2010-07-31  Bruno Haible  <bruno@clisp.org>
7235
7236         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
7237         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
7238         character, perform the search using U_STRCHR.
7239         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
7240         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
7241         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
7242         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
7243         Suggested by Paolo Bonzini.
7244
7245 2010-07-31  Bruno Haible  <bruno@clisp.org>
7246
7247         unistr/u*-strstr: Fix dependencies.
7248         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
7249         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
7250         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
7251
7252 2010-07-31  Bruno Haible  <bruno@clisp.org>
7253
7254         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
7255         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
7256         the beginning of the loop.
7257         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
7258         cases in 'switch' statement.
7259
7260         unistr/u8-strchr: Fix several bugs.
7261         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
7262         the string. When not found, return NULL, not a pointer near the end.
7263
7264         More tests for unistr/u8-strchr.
7265         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
7266         that the function does not read past the first occurrence of the byte
7267         being searched.
7268         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
7269         * tests/unistr/test-u16-strchr.c (main): New function.
7270         * tests/unistr/test-u32-strchr.c (main): New function.
7271
7272 2010-07-31  Bruno Haible  <bruno@clisp.org>
7273
7274         posix-modules: Ignore backup files of documentation files.
7275         * posix-modules: grep only through files named *.texi.
7276
7277 2010-07-31  Bruno Haible  <bruno@clisp.org>
7278
7279         symlinkat: Fix documentation.
7280         * doc/posix-functions/readlinkat.texi: Fix module name.
7281
7282 2010-07-31  Bruno Haible  <bruno@clisp.org>
7283
7284         fchownat: Replace also when chown has the trailing slash bug.
7285         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
7286         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
7287         introduced on 2010-04-10.
7288         Reported by Rainer Tammer.
7289
7290 2010-07-31  Bruno Haible  <bruno@clisp.org>
7291
7292         linkat: Work around AIX 7.1 bug.
7293         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
7294         whether linkat handles trailing slash correctly. If not, replace linkat
7295         and define LINKAT_TRAILING_SLASH_BUG.
7296         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
7297         check whether (fd1,file1) points to a directory if file1 or file2 ends
7298         in a slash. Code taken from lib/link.c.
7299         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
7300         Reported by Rainer Tammer.
7301
7302 2010-07-31  Bruno Haible  <bruno@clisp.org>
7303
7304         Correctly determine whether pow is available in libc on AIX 7 with xlc.
7305         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
7306         This disables an xlc optimization that was causing wrong test results.
7307         Reported by Rainer Tammer.
7308
7309 2010-07-31  Bruno Haible  <bruno@clisp.org>
7310
7311         iconv: Work around AIX 6.1..7.1 bug.
7312         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
7313         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
7314         cross-compiling, guess no on all versions of AIX.
7315         Reported by Rainer Tammer.
7316
7317 2010-07-31  Bruno Haible  <bruno@clisp.org>
7318
7319         readlink: Relax test a bit.
7320         * tests/test-readlink.h (test_readlink): Allow different errno value
7321         when readlink is called with a file name that ends in / and refers to
7322         a file.
7323         Suggested by Eric Blake.
7324         Reported by Rainer Tammer.
7325
7326 2010-07-31  Bruno Haible  <bruno@clisp.org>
7327
7328         copysign: Does not require -lm on glibc systems.
7329         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
7330         gl_COMMON_DOUBLE_MATHFUNC.
7331         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
7332
7333 2010-07-31  Bruno Haible  <bruno@clisp.org>
7334
7335         duplocale: Work around AIX 7.1 bug.
7336         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
7337         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
7338         * lib/duplocale.c (rpl_duplocale): Update comment.
7339         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
7340         Reported by Rainer Tammer.
7341
7342 2010-07-30  Bruno Haible  <bruno@clisp.org>
7343
7344         dirfd: Avoid link error on AIX 7.1.
7345         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
7346         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
7347         exist, set REPLACE_DIRFD.
7348         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
7349         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
7350         * doc/posix-functions/dirfd.texi: Update.
7351         Reported by Rainer Tammer.
7352
7353 2010-07-30  Eric Blake  <eblake@redhat.com>
7354
7355         strtod: next round of AIX fixes
7356         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
7357         exponent.
7358         * tests/test-strtod.c (main): Enhance tests.
7359         * doc/posix-functions/strtod.texi (strtod): Document next bug.
7360         Reported by Rainer Tammer.
7361
7362         futimens: fix configure check
7363         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
7364         Reported by Bruno Haible.
7365
7366 2010-07-30  Bruno Haible  <bruno@clisp.org>
7367
7368         getline: Update regarding AIX.
7369         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
7370         Reported by Rainer Tammer.
7371
7372 2010-07-30  Bruno Haible  <bruno@clisp.org>
7373
7374         wcwidth: Drop replacement on AIX 7.
7375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
7376         AIX 7.
7377         Reported by Rainer Tammer.
7378
7379 2010-07-30  Bruno Haible  <bruno@clisp.org>
7380
7381         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
7382         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
7383         a 'char *'.
7384         Reported by Rainer Tammer.
7385
7386 2010-07-30  Bruno Haible  <bruno@clisp.org>
7387
7388         unlink: Update regarding AIX.
7389         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
7390         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
7391         Reported by Rainer Tammer.
7392
7393 2010-07-30  Bruno Haible  <bruno@clisp.org>
7394
7395         symlink: Update regarding AIX.
7396         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
7397         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
7398         Reported by Rainer Tammer.
7399
7400 2010-07-30  Bruno Haible  <bruno@clisp.org>
7401
7402         strndup: Update regarding AIX.
7403         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
7404         AIX 7.
7405         Reported by Rainer Tammer.
7406
7407 2010-07-30  Bruno Haible  <bruno@clisp.org>
7408
7409         stat: Update regarding AIX.
7410         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
7411         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
7412         Reported by Rainer Tammer.
7413
7414 2010-07-30  Bruno Haible  <bruno@clisp.org>
7415
7416         truncl: Fix autoconf test.
7417         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
7418         whether truncl works.
7419         Reported by Rainer Tammer.
7420
7421 2010-07-30  Bruno Haible  <bruno@clisp.org>
7422
7423         round: Update regarding AIX.
7424         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
7425         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
7426         Reported by Rainer Tammer.
7427
7428 2010-07-30  Bruno Haible  <bruno@clisp.org>
7429
7430         rename: Update regarding AIX.
7431         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
7432         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
7433         Reported by Rainer Tammer.
7434
7435 2010-07-30  Bruno Haible  <bruno@clisp.org>
7436
7437         printf.m4: Update regarding AIX.
7438         * m4/printf.m4: Update comments regarding AIX.
7439         Reported by Rainer Tammer.
7440
7441 2010-07-30  Bruno Haible  <bruno@clisp.org>
7442
7443         iconv: Update regarding AIX.
7444         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
7445         AIX 7.
7446         Reported by Rainer Tammer.
7447
7448 2010-07-30  Bruno Haible  <bruno@clisp.org>
7449
7450         getopt: Update regarding AIX.
7451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
7452         no on AIX.
7453         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
7454         Reported by Rainer Tammer.
7455
7456 2010-07-30  Bruno Haible  <bruno@clisp.org>
7457
7458         ldexpl; Update regarding AIX.
7459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
7460         on AIX 7.
7461         Reported by Rainer Tammer.
7462
7463 2010-07-30  Bruno Haible  <bruno@clisp.org>
7464
7465         frexpl: Update regarding AIX.
7466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
7467         on AIX 7.
7468         Reported by Rainer Tammer.
7469
7470 2010-07-30  Bruno Haible  <bruno@clisp.org>
7471
7472         open, fopen: Update regarding AIX.
7473         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
7474         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7475         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
7476         * doc/posix-functions/fopen.texi: Likewise.
7477         Reported by Rainer Tammer.
7478
7479 2010-07-30  Bruno Haible  <bruno@clisp.org>
7480
7481         chown: Update doc regarding AIX.
7482         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
7483         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
7484         Reported by Rainer Tammer.
7485
7486 2010-07-30  Eric Blake  <eblake@redhat.com>
7487
7488         strtod: fix bug in replacement function on AIX
7489         * lib/strtod.c (strtod): Special case broken "0x" parse in
7490         underlying strtod.
7491         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
7492         * doc/posix-functions/strtod.texi (strtod): Likewise.
7493         Reported by Rainer Tammer.
7494
7495 2010-07-30  Bruno Haible  <bruno@clisp.org>
7496
7497         mbrlen: Fix cross-compilation guess for AIX.
7498         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7499         guess. Leftover from 2008-12-22.
7500
7501 2010-07-30  Bruno Haible  <bruno@clisp.org>
7502
7503         mbrtowc: Fix cross-compilation guess for AIX.
7504         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7505         guess. Leftover from 2008-12-21.
7506
7507 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7508
7509         init.sh: work around trap limitation of some shells
7510         * tests/init.sh (setup_): Move exit trap outside of shell function.
7511
7512 2010-07-29  Eric Blake  <eblake@redhat.com>
7513
7514         strtod: aid debugging
7515         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7516         understanding why strtod is rejected.
7517
7518 2010-07-28  Bruno Haible  <bruno@clisp.org>
7519
7520         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7521         * lib/unistr/u8-chr.c: Include <string.h>.
7522         * tests/unistr/test-u8-chr.c: Likewise.
7523         * tests/unistr/test-u16-chr.c: Likewise.
7524         * tests/unistr/test-u32-chr.c: Likewise.
7525         * tests/unistr/test-u8-strchr.c: Likewise.
7526         * tests/unistr/test-u16-strchr.c: Likewise.
7527         * tests/unistr/test-u32-strchr.c: Likewise.
7528         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7529         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7530         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7531         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7532
7533 2010-07-28  Bruno Haible  <bruno@clisp.org>
7534
7535         Use spaces for indentation, not tabs.
7536         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7537
7538 2010-07-27  Bruno Haible  <bruno@clisp.org>
7539
7540         mbspcasecmp: Fix function specification.
7541         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7542         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7543         Reported by Eric Blake <eblake@redhat.com>.
7544
7545 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7546
7547         timespec: use cast and not conditional, as truncation isn't possible
7548         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7549         instead of a conditional.  Comment about the situation in more detail.
7550         This undoes most of the 2009-10-29 patch.
7551
7552 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7553
7554         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7555         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7556         * lib/unistr/u8-strchr.c: Likewise.
7557         * modules/unistr/u8-chr: Depend on memchr.
7558
7559         unistr/u*-strchr: add tests
7560         * modules/unistr/u8-strchr-tests: New file.
7561         * modules/unistr/u16-strchr-tests: New file.
7562         * modules/unistr/u32-strchr-tests: New file.
7563         * tests/unistr/test-strchr.h: New file.
7564         * tests/unistr/test-u8-strchr.c: New file.
7565         * tests/unistr/test-u16-strchr.c: New file.
7566         * tests/unistr/test-u32-strchr.c: New file.
7567
7568         unistr/u*-chr: test multibyte sequences more
7569         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7570         test vector.
7571         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7572         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7573         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7574
7575         unistr/u*-chr: test multibyte sequences
7576         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7577
7578         unistr/u*-chr: prepare for multibyte tests
7579         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7580         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7581         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7582         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7583         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7584         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7585
7586 2010-07-18  Bruno Haible  <bruno@clisp.org>
7587
7588         unistr/u8-strchr: Optimize non-ASCII argument case.
7589         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7590         because the first byte often matches anyway.
7591         Reported by Pádraig Brady <P@draigbrady.com>.
7592
7593 2010-07-15  Karl Berry  <karl@gnu.org>
7594
7595         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7596
7597 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7598
7599         getcwd: on Solaris, work better if ancestors are inaccessible
7600         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7601         buffer and size, try again with a large buffer.  This works better
7602         on Solaris, since its getcwd succeeds even if the path to the root
7603         is inaccessible, and this is helpful in common cases such as .zfs
7604         hidden directories.  Problem reported by J Chapman Flack in
7605         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7606         Use system getcwd if it's declared, not merely if it's partly
7607         working; use the partly-working test only to avoid needless effort
7608         if the system getcwd fails.
7609         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7610         comment that was already obsolete and is now even more obsolete.
7611         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7612         now might call strdup.
7613
7614 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7615
7616         pthread: Add enough so that coreutils/src/sort.c compiles.
7617         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7618         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7619         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7620         Include <sys/types.h>, in case it defines pthread_t.
7621         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7622         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7623         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7624         (pthread_rwlockattr_t, pthread_spinlock_t):
7625         New typedefs, if HAVE_PTHREAD_T is not defined.
7626         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7627         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7628         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7629         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7630         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7631         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7632         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7633         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7634         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7635         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7636         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7637         New macros.
7638         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7639         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7640         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7641         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7642         (pthread_spin_unlock): New dummy functions.
7643         (pthread_create): Return EAGAIN; don't set errno.
7644         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7645         require AC_C_INLINE.
7646         * modules/pthread (Depends-on): Add sched, time.
7647         (pthread.h): Use AM_V_GEN.
7648
7649 2010-07-13  Bruno Haible  <bruno@clisp.org>
7650
7651         striconveh: Don't malloc memory if the result buffer is sufficient.
7652         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7653         buffer if its size is sufficient.
7654         Reported by Ludovic Courtès <ludo@gnu.org>.
7655
7656 2010-07-13  Bruno Haible  <bruno@clisp.org>
7657
7658         strtod: Add safety check.
7659         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7660
7661 2010-07-12  Bruno Haible  <bruno@clisp.org>
7662
7663         Unify tests that set gl_cv_func_ldexpl_no_libm.
7664         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7665         gl_FUNC_LDEXPL.
7666         (gl_FUNC_LDEXPL): Invoke it.
7667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7668
7669 2010-07-12  Bruno Haible  <bruno@clisp.org>
7670
7671         Unify tests that set gl_cv_func_ldexp_no_libm.
7672         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7673         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7674         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7675         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7676         * modules/strtod (Files): Add m4/ldexp.m4.
7677
7678 2010-07-12  Bruno Haible  <bruno@clisp.org>
7679
7680         Unify tests that set gl_cv_func_frexpl_no_libm.
7681         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7682         gl_FUNC_FREXPL_NO_LIBM.
7683         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7685
7686 2010-07-12  Bruno Haible  <bruno@clisp.org>
7687
7688         Unify tests that set gl_cv_func_frexp_no_libm.
7689         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7690         gl_FUNC_FREXP_NO_LIBM.
7691         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7692         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7693
7694 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7695
7696         memcoll: clarify sizes versus lengths, document better, and tweak perf
7697         * lib/memcoll.c (strcoll_loop, memcoll0):
7698         Improve quality of descriptive comments.  Name variables
7699         consistently as to whether they are lengths (which do not include
7700         terminating null) versus sizes (which do).
7701         * lib/xmemcoll.c (xmemcoll0): Likewise.
7702         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7703         returned when s1size == 0; this is easier to compile and saves
7704         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7705
7706 2010-07-12  Bruno Haible  <bruno@clisp.org>
7707
7708         Tests for module '_Exit'.
7709         * modules/_Exit-tests: New file.
7710         * tests/test-_Exit.sh: New file.
7711         * tests/test-_Exit.c: New file.
7712
7713         New module '_Exit'.
7714         * lib/stdlib.in.h (__attribute__): New macro.
7715         (_Exit): New declaration.
7716         * lib/_Exit.c: New file.
7717         * m4/_Exit.m4: New file.
7718         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7719         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7720         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7721         * modules/_Exit: New file.
7722         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7723         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7724
7725 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7726
7727         strtod: make it more-accurate typically, and don't require libm
7728         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7729         Include limits.h.  Don't include string.h.
7730         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7731         (locale_isspace): New function, so that no casts are needed to
7732         check whether *s is a space.
7733         (ldexp): Provide an unused dummy if not available.
7734         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7735         (strtod): Use them.  This implementation prefers to use the
7736         underlying strtod if available, falling back on our own code
7737         only to fix known bugs.  This is more likely to produce an
7738         accurate result.  Also, it avoids the use of libm functions.
7739         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7740         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7741         was absent, but it caused a test failure with coreutils.
7742         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7743         with libm.
7744         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7745         * modules/strtod-tests (Makefile.am): Likewise.
7746
7747 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7748             Bruno Haible  <bruno@clisp.org>
7749
7750         unistr/u8-strchr: Optimize ASCII argument case.
7751         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7752
7753 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7754
7755         (x)memcoll: minor tweaks
7756         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7757         is after the type that it qualifies.
7758         (memcoll0): Likewise.
7759         * lib/memcoll.h (memcoll0): Likewise.
7760         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7761         * lib/xmemcoll.h (xmemcoll0): Likewise.
7762         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7763         differs from memcoll in that the NUL byte is part of the argument.
7764         Omit the abort-checks, as performance is a real issue here.  Plus,
7765         the checks were wrong anyway (an off-by-one error).  Omit local
7766         variable 'diff', as it's a bit clearer that way.
7767         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7768         no longer needed.
7769
7770 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7771
7772         (x)memcoll: speedup when input is known to be NUL delimited
7773         * lib/memcoll.c: Include stdlib.
7774         (memcoll0) New function.
7775         (strcoll_loop) New function, refactored for use in both memcoll
7776         and memcoll0.
7777         * lib/memcoll.h: Add prototype for memcoll0.
7778         * lib/xmemcoll.c: (xmemcoll0) New function.
7779         (collate_error) New function, refactored for use in both xmemcoll
7780         and xmemcoll0.
7781         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7782         * m4/memcoll.m4: add inline invocation.
7783
7784 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7785
7786         * build-aux/bootstrap: Remove any local translations
7787         from the translation project synchronization directory,
7788         so that local only translations are not distributed.
7789
7790 2010-07-04  Bruno Haible  <bruno@clisp.org>
7791
7792         fsusage: Clarify which code applies to which platforms.
7793         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7794         platform.
7795         * lib/fsusage.c (get_fs_usage): Likewise.
7796
7797 2010-07-04  Bruno Haible  <bruno@clisp.org>
7798
7799         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7800         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7801         Reported by Martin Lambers <marlam@marlam.de>.
7802
7803 2010-07-04  Jim Meyering  <meyering@redhat.com>
7804
7805         hash: once again explicitly disallow insertion of NULL
7806         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7807         inserting a NULL pointer cannot work with these functions.
7808         Add a comment with details.
7809         This reverts part of the 2010-07-01 commit, 5bef1a35
7810         "hash: extend module to deal with non-pointer keys".
7811
7812 2010-07-01  Bruno Haible  <bruno@clisp.org>
7813
7814         stdbool: Update doc.
7815         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7816         Info from Christian Weisgerber <naddy@mips.inka.de>.
7817
7818 2010-07-01  Jim Meyering  <meyering@redhat.com>
7819
7820         hash: extend module to deal with non-pointer keys
7821         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7822         but that allows insertion of non-pointer entries.
7823         Do not disallow an ENTRY value of NULL.
7824         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7825         * lib/hash.h (hash_insert0): Declare.
7826
7827 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7828
7829         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7830         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7831         not present (i.e. with autoconf 2.59 and when using gettextize, not
7832         gnulib), require AC_GNU_SOURCE instead.
7833
7834 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7835
7836         idpriv-drop: Fix tests.
7837         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7838         not to the test-idpriv-droptemp program.
7839
7840 2010-06-29  Bruno Haible  <bruno@clisp.org>
7841
7842         string: Fix syntax error with g++ 2.96.
7843         * lib/string.in.h (__pure__): Remove definition.
7844         (_GL_ATTRIBUTE_PURE): New macro.
7845         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7846         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7847         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7848
7849 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7850
7851         unitypes: Fix bug introduced on 2010-05-18.
7852         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7853
7854 2010-06-22  Eric Blake  <eblake@redhat.com>
7855
7856         memmem: slight optimization
7857         * lib/str-two-way.h (critical_factorization): Update comments.
7858         Reduce work during factorization phase.
7859         Reported by Carlos Bueno <carlos@bueno.org>.
7860
7861 2010-06-21  Bruno Haible  <bruno@clisp.org>
7862
7863         Fix HAVE_CALLOC_POSIX misnomer.
7864         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7865         !HAVE_CALLOC_POSIX.
7866         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7867         HAVE_CALLOC_POSIX.
7868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7869         instead of HAVE_CALLOC_POSIX.
7870         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7871         HAVE_CALLOC_POSIX.
7872
7873         Use modern idiom for calloc() replacement.
7874         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7875         AC_FUNC_CALLOC.
7876         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7877         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7878         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7879         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7880         (gl_REPLACE_CALLOC): New macro.
7881
7882 2010-06-21  Bruno Haible  <bruno@clisp.org>
7883
7884         Fix HAVE_REALLOC_POSIX misnomer.
7885         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7886         !HAVE_REALLOC_POSIX.
7887         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7888         HAVE_REALLOC_POSIX.
7889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7890         instead of HAVE_REALLOC_POSIX.
7891         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7892         HAVE_REALLOC_POSIX.
7893
7894         Use modern idiom for realloc() replacement.
7895         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7896         AC_FUNC_REALLOC.
7897         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7898         Autoconf's AC_FUNC_REALLOC.
7899         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7900         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7901         (gl_REPLACE_REALLOC): New macro.
7902         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7903
7904 2010-06-21  Bruno Haible  <bruno@clisp.org>
7905
7906         Fix HAVE_MALLOC_POSIX misnomer.
7907         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7908         !HAVE_MALLOC_POSIX.
7909         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7910         HAVE_MALLOC_POSIX.
7911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7912         instead of HAVE_MALLOC_POSIX.
7913         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7914         HAVE_MALLOC_POSIX.
7915
7916         Use modern idiom for malloc() replacement.
7917         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7918         AC_FUNC_MALLOC.
7919         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7920         Autoconf's AC_FUNC_MALLOC.
7921         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7922         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7923         (gl_REPLACE_MALLOC): New macro.
7924         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7925
7926 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7927
7928         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
7929         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
7930         This macro takes 3 arguments, not 4.
7931
7932 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
7933
7934         ipv6: fix detection under mingw
7935         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
7936         in6_addr.
7937
7938 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
7939
7940         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
7941         that strtod() works when cross-compiling to a glibc version known
7942         to work.
7943
7944 2010-06-15  Bruno Haible  <bruno@clisp.org>
7945
7946         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
7947
7948 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
7949
7950         select: Correct timeout.
7951         * lib/select.c (rpl_select): Compute wait_timeout correctly.
7952
7953 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7954
7955         git-version-gen: init shell var to avoid env var influence
7956         * build-aux/git-version-gen (v): Init shell var to empty.
7957
7958 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7959
7960         priv-set: Don't assume that priv.h exists merely because getppriv does.
7961         See Jan Andersen's bug report about AIX 5L in
7962         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
7963         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
7964         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
7965         * lib/priv-set.h: Likewise.
7966         * tests/test-priv-set.c: Likewise.
7967
7968 2010-06-13  Bruno Haible  <bruno@clisp.org>
7969
7970         relocatable: Make it easier to test whether to install wrappers.
7971         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
7972         RELOCATABLE_VIA_WRAPPER.
7973
7974 2010-06-13  Bruno Haible  <bruno@clisp.org>
7975
7976         gnulib-tool: Display specified modules and dependencies differently.
7977         * gnulib-tool (func_show_module_list): New function.
7978         (func_import, func_create_testdir): Invoke it.
7979         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7980
7981 2010-06-13  Bruno Haible  <bruno@clisp.org>
7982
7983         gnulib-tool: Align code of func_import and func_create_testdir.
7984         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7985         specified_modules.
7986
7987 2010-06-12  Jim Meyering  <meyering@redhat.com>
7988
7989         test-inttostr: avoid spurious failure on Solaris 9
7990         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7991         to accept "%ju".  Reported by Bruno Haible.
7992
7993 2010-06-11  Jim Meyering  <meyering@redhat.com>
7994
7995         test-sys_socket: mark variables as used more readably
7996         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7997         as "used" explicitly via (void) statement casts.  This is more
7998         readable than using them in an artificial return expression.
7999         Suggestion from Bruno Haible.
8000
8001 2010-06-11  Bruno Haible  <bruno@clisp.org>
8002
8003         Avoid some more warnings from "gcc -Wwrite-strings".
8004         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
8005         to 'const char *'.
8006         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
8007         * tests/test-c-strcasestr.c (main): Likewise.
8008         * tests/test-mbscasestr1.c (main): Likewise.
8009         * tests/test-mbscasestr2.c (main): Likewise.
8010         * tests/test-memmem.c (main): Likewise.
8011         * tests/test-strstr.c (main): Likewise.
8012         * tests/test-strcasestr.c (main): Likewise.
8013
8014 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8015
8016         init.sh: change framework_failure_ to fail with status 99, not 1
8017         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
8018         automake's parallel-tests rule that this is an unexpected failure,
8019         even if the test is listed in XFAIL_TESTS.
8020
8021 2010-06-11  Jim Meyering  <meyering@redhat.com>
8022
8023         test-inttostr: avoid warnings about 4-6KB literal strings
8024         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
8025         Include "macros.h", for its definition of ASSERT.
8026         (CK): s/assert/ASSERT/
8027         * modules/inttostr-tests (Files): Add macros.h.
8028
8029         init.sh: don't use $ME_ or skip_ before they are defined
8030         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
8031         their first uses.  Also hoist their companions: warn_, fail_,
8032         framework_failure_, $stderr_fileno.  Prompted by a patch from
8033         Stefano Lattarini.
8034
8035         test-sys_socket: avoid set-but-not-used warnings from gcc
8036         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
8037         avoid warning about set-but-not-used variables.
8038
8039         test-xvasprintf: avoid 'const' discard warnings
8040         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
8041         "const" when assigning from literal strings.
8042         (test_xasprintf): Add "void" in function argument list to placate
8043         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
8044
8045         tests: avoid compilation warnings in argmatch and exclude tests...
8046         in packages that define ARGMATCH_DIE_DECL, like coreutils.
8047         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
8048         Since it always exits, declare with the "noreturn" attribute.
8049         * tests/test-argmatch.c: Likewise.
8050
8051         tests: avoid 'const' discard warnings in mbsstr tests
8052         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
8053         * tests/test-mbsstr2.c (main): Likewise.
8054
8055         test-verify: avoid warning from gcc's -Wmissing-declarations
8056         * tests/test-verify.c (function): Declare to be static.
8057
8058         test-inttostr.c: include <string.h> for use of strcmp
8059         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
8060
8061         test-linkat: avoid failed assertion on "other" architectures
8062         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
8063         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
8064         sparc: https://bugs.launchpad.net/bugs/591968
8065
8066 2010-06-11  Jim Meyering  <meyering@redhat.com>
8067
8068         printf.m4: avoid autoconf's "Expanded Before Required" warning
8069         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
8070         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
8071         autoconf warning.
8072
8073 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
8074
8075         Replacement header templates are now named with ".in", not "_".
8076         * doc/gnulib-intro.texi: Correct.
8077
8078 2010-06-10  Jim Meyering  <meyering@redhat.com>
8079
8080         inttostr-tests: depend on snprintf, not snprintf-posix
8081         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
8082         snprintf-posix, to avoid this aclocal failure:
8083           missing file gnulib-tests/vasnprintf.c
8084           configure.ac:45: error: expected source file, required through \
8085           AC_LIBSOURCES, not found
8086
8087 2010-06-10  Jim Meyering  <meyering@redhat.com>
8088
8089         inttostr: add a new function, inttostr, and tests
8090         The namesake function was not available.  The existence of the
8091         template file, inttostr.c makes its addition nontrivial.
8092         * lib/anytostr.c: Rename from inttostr.c.
8093         (anytostr): Rename from inttostr.
8094         * lib/inttostr.c: New file.
8095         * modules/inttostr (Files): Add anytostr.c.
8096         (Makefile.am): Set lib_SOURCES instead of ...
8097         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
8098         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
8099         * lib/offtostr.c: Likewise.
8100         * lib/uinttostr.c: Likewise.
8101         * lib/umaxtostr.c: Likewise.
8102         * modules/inttostr-tests: New file.
8103         * tests/test-inttostr.c: New file.  Test these functions.
8104
8105 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8106             Bruno Haible  <bruno@clisp.org>
8107
8108         Add "Extending Gnulib" chapter to manual.
8109         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8110         chapter.
8111         (Extending Gnulib): New chapter.
8112         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8113         chapter.
8114
8115 2010-06-09  Bruno Haible  <bruno@clisp.org>
8116
8117         Avoid relocwrapper link errors due to gnulib replacement functions.
8118         * lib/areadlink.c: Use the system's malloc, realloc functions.
8119         (areadlink): Set errno to ENOMEM explicitly.
8120         * modules/areadlink (Depends-on): Remove malloc-posix.
8121         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8122
8123 2010-06-09  Bruno Haible  <bruno@clisp.org>
8124
8125         Avoid relocwrapper link errors due to gnulib replacement functions.
8126         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8127         * lib/malloca.c: Likewise.
8128         * lib/relocatable.c: Likewise.
8129         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8130         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8131         * lib/setenv.c: Use the system's malloc, realloc functions.
8132         * lib/strerror.c: Use the system's sprintf function.
8133         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8134
8135 2010-06-04  Bruno Haible  <bruno@clisp.org>
8136
8137         Prefer documented low-level autoconf macro names.
8138         * m4/lib-link.m4: Use m4_translit instead of translit.
8139         * m4/environ.m4: Likewise.
8140         * m4/mathfunc.m4: Likewise.
8141         * m4/onceonly.m4: Likewise.
8142         * m4/stdint.m4: Likewise.
8143         Suggested by Eric Blake.
8144
8145 2010-06-04  Martin Lambers  <marlam@marlam.de>
8146             Bruno Haible  <bruno@clisp.org>
8147
8148         havelib: Allow library names with '+' characters.
8149         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8150         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8151
8152 2010-06-09  Bruno Haible  <bruno@clisp.org>
8153
8154         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8155         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8156         realloc failed.
8157
8158 2010-06-08  Peter Simons  <simons@cryp.to>
8159
8160         maint.mk: make the news-check rule more configurable
8161         * top/maint.mk (news-check-lines-spec) New variable.
8162         (news-check): Use "sed -n 1,10p" in place of "head".
8163
8164 2010-06-07  Jim Meyering  <meyering@redhat.com>
8165
8166         do-release-commit-and-tag: fix typo in --help
8167         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8168
8169         regex: avoid new dead-code warning with gcc-4.6.0
8170         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8171         if-block containing a while-loop.  It's been unused for at least
8172         5 years.
8173
8174 2010-06-05  Bruno Haible  <bruno@clisp.org>
8175
8176         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
8177         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
8178
8179 2010-06-04  Bruno Haible  <bruno@clisp.org>
8180
8181         Update to GNU gettext 0.18.1.
8182         * modules/gettext (configure.ac): Require gettext infrastructure from
8183         version 0.18.1.
8184
8185 2010-06-03  Bruno Haible  <bruno@clisp.org>
8186
8187         Don't use AC_LIBOBJ with file names in subdirectories.
8188         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
8189         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
8190         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
8191         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
8192         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
8193         gl_LIBUNISTRING_LIBSOURCE.
8194         (Makefile.am): Augment lib_SOURCES here, conditionally.
8195         * NEWS: Drop requirement for Automake option 'subdir-objects'.
8196
8197 2010-06-03  Bruno Haible  <bruno@clisp.org>
8198
8199         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
8200         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
8201         expansion does not end with a newline.
8202         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
8203         unnecessary newline.
8204
8205 2010-06-03  Bruno Haible  <bruno@clisp.org>
8206
8207         Reduce dependencies.
8208         * tests/test-quotearg.h: New file, extracted from
8209         tests/test-quotearg.c.
8210         * tests/test-quotearg-simple.c: New file, extracted from
8211         tests/test-quotearg.c.
8212         * tests/test-quotearg.c: Don't include <ctype.h>.
8213         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
8214         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
8215         use_quote_double_quotes, use_quotearg_colon): Moved to
8216         tests/test-quotearg.h.
8217         (results_g, flag_results, custom_quotes, custom_results): Moved
8218         to tests/test-quotearg-simple.c.
8219         (main): Moved the part that does not depend on gettext to
8220         tests/test-quotearg-simple.c. Return 77 if the test cannot be
8221         performed.
8222         * modules/quotearg-simple: New file.
8223         * modules/quotearg-simple-tests: New file.
8224         * modules/quotearg (Depends-on): Add quotearg-simple.
8225         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
8226         (Files): Add tests/test-quotearg.h.
8227         Reported by Paolo Bonzini.
8228
8229 2010-06-03  Bruno Haible  <bruno@clisp.org>
8230
8231         Reduce dependencies.
8232         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
8233
8234 2010-06-03  Bruno Haible  <bruno@clisp.org>
8235
8236         time: Undefine more broken macros.
8237         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
8238         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
8239         Reported by Eric Blake.
8240
8241 2010-06-03  Bruno Haible  <bruno@clisp.org>
8242
8243         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
8244         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
8245         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
8246         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
8247         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
8248         Reported by Ludovic Courtès <ludo@gnu.org>.
8249
8250 2010-06-02  Eric Blake  <eblake@redhat.com>
8251
8252         time: work with mingw + pthreads-win32 library
8253         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
8254         if timespec is defined only in pthread.h.
8255         * modules/time (Makefile.am): Substitute it.
8256         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
8257         <pthread.h>, when needed.
8258         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
8259         from the library.
8260
8261 2010-05-31  Bruno Haible  <bruno@clisp.org>
8262
8263         Avoid expanding two macros in the wrong order.
8264         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
8265         gl_LIBUNISTRING if it is defined.
8266         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
8267         autoconf >= 2.64.
8268         Reported by Ludovic Courtès <ludo@gnu.org>.
8269
8270 2010-05-27  Jim Meyering  <meyering@redhat.com>
8271
8272         maint.mk: also prohibit "#undef" of always-defined symbols
8273         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
8274         Allow more than one space before the symbol name.
8275         (sc_prohibit_always-defined_macros): Use grep's -E, now that
8276         the regexp uses alternation.
8277
8278 2010-05-26  Eric Blake  <eblake@redhat.com>
8279
8280         maint.mk: avoid echo -e
8281         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
8282         Convert all uses of echo -* to printf.
8283         Reported by Matthias Bolte.
8284
8285 2010-05-25  Bruno Haible  <bruno@clisp.org>
8286
8287         Update to GNU gettext 0.18, part 2.
8288         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
8289         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
8290
8291 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8292
8293         Add missing include in test-pwrite.c.
8294         * tests/test-pwrite.c: Include string.h, for strcmp.
8295
8296 2010-05-24  Bruno Haible  <bruno@clisp.org>
8297
8298         * NEWS: Mention requirement for Automake option 'subdir-objects'.
8299
8300 2010-05-24  Bruno Haible  <bruno@clisp.org>
8301
8302         Don't use conversion with transliteration in u{8,16,32}_strcoll.
8303         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
8304         iconveh_error argument.
8305         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
8306         U_STRCONV_TO_LOCALE.
8307         * lib/unistr/u16-strcoll.c: Likewise.
8308         * lib/unistr/u32-strcoll.c: Likewise.
8309         * modules/unistr/u8-strcoll (Depends-on): Add
8310         uniconv/u8-strconv-to-enc, localcharset. Remove
8311         uniconv/u8-strconv-to-locale.
8312         (configure.ac): Bump version number.
8313         * modules/unistr/u16-strcoll (Depends-on): Add
8314         uniconv/u16-strconv-to-enc, localcharset. Remove
8315         uniconv/u16-strconv-to-locale.
8316         (configure.ac): Bump version number.
8317         * modules/unistr/u32-strcoll (Depends-on): Add
8318         uniconv/u32-strconv-to-enc, localcharset. Remove
8319         uniconv/u32-strconv-to-locale.
8320         (configure.ac): Bump version number.
8321
8322 2010-05-24  Bruno Haible  <bruno@clisp.org>
8323
8324         Avoid a test failure on NetBSD 5.0.
8325         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
8326         an iconv() bug.
8327
8328 2010-05-24  Bruno Haible  <bruno@clisp.org>
8329
8330         Adjust #include directive style.
8331         * modules/regex (Includes): Recommend to write <regex.h>.
8332
8333 2010-05-24  Bruno Haible  <bruno@clisp.org>
8334
8335         regex: Don't require alloca.
8336         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
8337         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
8338         only inside if (0).
8339
8340 2010-05-23  Jim Meyering  <meyering@redhat.com>
8341
8342         test-renameat.c: include <sys/stat.h>
8343         * tests/test-renameat.c: Include <sys/stat.h>; required for
8344         definition of S_IS* macros.
8345
8346 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
8347
8348         Update maintainer documentation for 'relocatable-prog' module.
8349         * doc/relocatable-maint.texi: Update.
8350         Comments by Bruno Haible.
8351
8352 2010-05-23  Bruno Haible  <bruno@clisp.org>
8353
8354         git-merge-changelog: Enable --split-merged-entry by default.
8355         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
8356         (usage): Don't mention this option any more.
8357         Reported by Ralf Wildenhues.
8358
8359 2010-05-23  Jim Meyering  <meyering@redhat.com>
8360
8361         test-pwrite: do not leave behind a test file named "out"
8362         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
8363         The trivial-looking use of init.sh is really necessary.
8364         It ensures that the temporary file, "out", is created in
8365         a temporary directory, and removed upon termination.
8366         * tests/test-pwrite.sh: Re-add file.
8367         * modules/pwrite-tests: Reference it.
8368
8369 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8370
8371         Fix output redirection buglet in init.sh.
8372         * tests/init.sh: Fix redirection of stderr.
8373
8374 2010-05-20  Simon Josefsson  <simon@josefsson.org>
8375
8376         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
8377
8378 2010-05-17  Simon Josefsson  <simon@josefsson.org>
8379
8380         * modules/valgrind-tests: New file.
8381         * m4/valgrind-tests.m4: New file.
8382         * doc/valgrind-tests.texi: New file.
8383         * doc/gnulib.texi (Running self-tests under valgrind): New
8384         section.
8385
8386 2010-05-19  Bruno Haible  <bruno@clisp.org>
8387
8388         Clean up dead code in recent commit.
8389         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
8390         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
8391         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
8392         Suggested by Paolo Bonzini.
8393
8394 2010-05-19  Bruno Haible  <bruno@clisp.org>
8395
8396         Avoid valgrind error reports from libunistring.
8397         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
8398         * modules/libunistring (Files): Add it.
8399         * modules/libunistring-optional (Files): Likewise.
8400
8401 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
8402             Bruno Haible  <bruno@clisp.org>
8403
8404         New module 'libunistring-optional'.
8405         * modules/libunistring-optional: New file.
8406         * m4/libunistring-base.m4: New file.
8407         * m4/libunistring-optional.m4: New file.
8408         * lib/unicase.in.h: Renamed from lib/unicase.h.
8409         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
8410         * lib/unictype.in.h: Renamed from lib/unictype.h.
8411         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
8412         * lib/uniname.in.h: Renamed from lib/uniname.h.
8413         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
8414         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
8415         * lib/unistr.in.h: Renamed from lib/unistr.h.
8416         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
8417         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
8418         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
8419         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
8420         gl_LIBUNISTRING. If the library was found, determine the installed
8421         version and set LIBUNISTRING_VERSION.
8422         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
8423         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
8424         handle a configuration option --with-included-libunistring.
8425         * modules/libunistring (Files): Add m4/absolute-header.m4.
8426         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
8427         Add m4/libunistring-base.m4.
8428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8429         (Makefile.am): Build unicase.h from unicase.in.h.
8430         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
8431         Add m4/libunistring-base.m4.
8432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8433         (Makefile.am): Build uniconv.h from uniconv.in.h.
8434         * modules/unictype/base (Files): Use unictype.in.h instead of
8435         unictype.h. Add m4/libunistring-base.m4.
8436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8437         (Makefile.am): Build unictype.h from unictype.in.h.
8438         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
8439         Add m4/libunistring-base.m4.
8440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8441         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
8442         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
8443         Add m4/libunistring-base.m4.
8444         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8445         (Makefile.am): Build uniname.h from uniname.in.h.
8446         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
8447         Add m4/libunistring-base.m4.
8448         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8449         (Makefile.am): Build uninorm.h from uninorm.in.h.
8450         * modules/unistdio/base (Files): Use unistdio.in.h instead of
8451         unistdio.h. Add m4/libunistring-base.m4.
8452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8453         (Makefile.am): Build unistdio.h from unistdio.in.h.
8454         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
8455         Add m4/libunistring-base.m4.
8456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8457         (Makefile.am): Build unistr.h from unistr.in.h.
8458         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
8459         Add m4/libunistring-base.m4.
8460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8461         (Makefile.am): Build unitypes.h from unitypes.in.h.
8462         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
8463         Add m4/libunistring-base.m4.
8464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8465         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
8466         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
8467         uniwidth.h. Add m4/libunistring-base.m4.
8468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8469         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
8470         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
8471         instead of augmenting lib_SOURCES.
8472         * modules/unicase/empty-suffix-context: Likewise.
8473         * modules/unicase/locale-language: Likewise.
8474         * modules/unicase/tolower: Likewise.
8475         * modules/unicase/totitle: Likewise.
8476         * modules/unicase/toupper: Likewise.
8477         * modules/unicase/u8-casecmp: Likewise.
8478         * modules/unicase/u8-casecoll: Likewise.
8479         * modules/unicase/u8-casefold: Likewise.
8480         * modules/unicase/u8-casexfrm: Likewise.
8481         * modules/unicase/u8-ct-casefold: Likewise.
8482         * modules/unicase/u8-ct-tolower: Likewise.
8483         * modules/unicase/u8-ct-totitle: Likewise.
8484         * modules/unicase/u8-ct-toupper: Likewise.
8485         * modules/unicase/u8-is-cased: Likewise.
8486         * modules/unicase/u8-is-casefolded: Likewise.
8487         * modules/unicase/u8-is-lowercase: Likewise.
8488         * modules/unicase/u8-is-titlecase: Likewise.
8489         * modules/unicase/u8-is-uppercase: Likewise.
8490         * modules/unicase/u8-prefix-context: Likewise.
8491         * modules/unicase/u8-suffix-context: Likewise.
8492         * modules/unicase/u8-tolower: Likewise.
8493         * modules/unicase/u8-totitle: Likewise.
8494         * modules/unicase/u8-toupper: Likewise.
8495         * modules/unicase/u16-casecmp: Likewise.
8496         * modules/unicase/u16-casecoll: Likewise.
8497         * modules/unicase/u16-casefold: Likewise.
8498         * modules/unicase/u16-casexfrm: Likewise.
8499         * modules/unicase/u16-ct-casefold: Likewise.
8500         * modules/unicase/u16-ct-tolower: Likewise.
8501         * modules/unicase/u16-ct-totitle: Likewise.
8502         * modules/unicase/u16-ct-toupper: Likewise.
8503         * modules/unicase/u16-is-cased: Likewise.
8504         * modules/unicase/u16-is-casefolded: Likewise.
8505         * modules/unicase/u16-is-lowercase: Likewise.
8506         * modules/unicase/u16-is-titlecase: Likewise.
8507         * modules/unicase/u16-is-uppercase: Likewise.
8508         * modules/unicase/u16-prefix-context: Likewise.
8509         * modules/unicase/u16-suffix-context: Likewise.
8510         * modules/unicase/u16-tolower: Likewise.
8511         * modules/unicase/u16-totitle: Likewise.
8512         * modules/unicase/u16-toupper: Likewise.
8513         * modules/unicase/u32-casecmp: Likewise.
8514         * modules/unicase/u32-casecoll: Likewise.
8515         * modules/unicase/u32-casefold: Likewise.
8516         * modules/unicase/u32-casexfrm: Likewise.
8517         * modules/unicase/u32-ct-casefold: Likewise.
8518         * modules/unicase/u32-ct-tolower: Likewise.
8519         * modules/unicase/u32-ct-totitle: Likewise.
8520         * modules/unicase/u32-ct-toupper: Likewise.
8521         * modules/unicase/u32-is-cased: Likewise.
8522         * modules/unicase/u32-is-casefolded: Likewise.
8523         * modules/unicase/u32-is-lowercase: Likewise.
8524         * modules/unicase/u32-is-titlecase: Likewise.
8525         * modules/unicase/u32-is-uppercase: Likewise.
8526         * modules/unicase/u32-prefix-context: Likewise.
8527         * modules/unicase/u32-suffix-context: Likewise.
8528         * modules/unicase/u32-tolower: Likewise.
8529         * modules/unicase/u32-totitle: Likewise.
8530         * modules/unicase/u32-toupper: Likewise.
8531         * modules/unicase/ulc-casecmp: Likewise.
8532         * modules/unicase/ulc-casecoll: Likewise.
8533         * modules/unicase/ulc-casexfrm: Likewise.
8534         * modules/uniconv/u8-conv-from-enc: Likewise.
8535         * modules/uniconv/u8-conv-to-enc: Likewise.
8536         * modules/uniconv/u8-strconv-from-enc: Likewise.
8537         * modules/uniconv/u8-strconv-from-locale: Likewise.
8538         * modules/uniconv/u8-strconv-to-enc: Likewise.
8539         * modules/uniconv/u8-strconv-to-locale: Likewise.
8540         * modules/uniconv/u16-conv-from-enc: Likewise.
8541         * modules/uniconv/u16-conv-to-enc: Likewise.
8542         * modules/uniconv/u16-strconv-from-enc: Likewise.
8543         * modules/uniconv/u16-strconv-from-locale: Likewise.
8544         * modules/uniconv/u16-strconv-to-enc: Likewise.
8545         * modules/uniconv/u16-strconv-to-locale: Likewise.
8546         * modules/uniconv/u32-conv-from-enc: Likewise.
8547         * modules/uniconv/u32-conv-to-enc: Likewise.
8548         * modules/uniconv/u32-strconv-from-enc: Likewise.
8549         * modules/uniconv/u32-strconv-from-locale: Likewise.
8550         * modules/uniconv/u32-strconv-to-enc: Likewise.
8551         * modules/uniconv/u32-strconv-to-locale: Likewise.
8552         * modules/unictype/bidicategory-byname: Likewise.
8553         * modules/unictype/bidicategory-name: Likewise.
8554         * modules/unictype/bidicategory-of: Likewise.
8555         * modules/unictype/bidicategory-test: Likewise.
8556         * modules/unictype/block-list: Likewise.
8557         * modules/unictype/block-test: Likewise.
8558         * modules/unictype/category-C: Likewise.
8559         * modules/unictype/category-Cc: Likewise.
8560         * modules/unictype/category-Cf: Likewise.
8561         * modules/unictype/category-Cn: Likewise.
8562         * modules/unictype/category-Co: Likewise.
8563         * modules/unictype/category-Cs: Likewise.
8564         * modules/unictype/category-L: Likewise.
8565         * modules/unictype/category-Ll: Likewise.
8566         * modules/unictype/category-Lm: Likewise.
8567         * modules/unictype/category-Lo: Likewise.
8568         * modules/unictype/category-Lt: Likewise.
8569         * modules/unictype/category-Lu: Likewise.
8570         * modules/unictype/category-M: Likewise.
8571         * modules/unictype/category-Mc: Likewise.
8572         * modules/unictype/category-Me: Likewise.
8573         * modules/unictype/category-Mn: Likewise.
8574         * modules/unictype/category-N: Likewise.
8575         * modules/unictype/category-Nd: Likewise.
8576         * modules/unictype/category-Nl: Likewise.
8577         * modules/unictype/category-No: Likewise.
8578         * modules/unictype/category-P: Likewise.
8579         * modules/unictype/category-Pc: Likewise.
8580         * modules/unictype/category-Pd: Likewise.
8581         * modules/unictype/category-Pe: Likewise.
8582         * modules/unictype/category-Pf: Likewise.
8583         * modules/unictype/category-Pi: Likewise.
8584         * modules/unictype/category-Po: Likewise.
8585         * modules/unictype/category-Ps: Likewise.
8586         * modules/unictype/category-S: Likewise.
8587         * modules/unictype/category-Sc: Likewise.
8588         * modules/unictype/category-Sk: Likewise.
8589         * modules/unictype/category-Sm: Likewise.
8590         * modules/unictype/category-So: Likewise.
8591         * modules/unictype/category-Z: Likewise.
8592         * modules/unictype/category-Zl: Likewise.
8593         * modules/unictype/category-Zp: Likewise.
8594         * modules/unictype/category-Zs: Likewise.
8595         * modules/unictype/category-and: Likewise.
8596         * modules/unictype/category-and-not: Likewise.
8597         * modules/unictype/category-byname: Likewise.
8598         * modules/unictype/category-name: Likewise.
8599         * modules/unictype/category-none: Likewise.
8600         * modules/unictype/category-of: Likewise.
8601         * modules/unictype/category-or: Likewise.
8602         * modules/unictype/category-test: Likewise.
8603         * modules/unictype/combining-class: Likewise.
8604         * modules/unictype/ctype-alnum: Likewise.
8605         * modules/unictype/ctype-alpha: Likewise.
8606         * modules/unictype/ctype-blank: Likewise.
8607         * modules/unictype/ctype-cntrl: Likewise.
8608         * modules/unictype/ctype-digit: Likewise.
8609         * modules/unictype/ctype-graph: Likewise.
8610         * modules/unictype/ctype-lower: Likewise.
8611         * modules/unictype/ctype-print: Likewise.
8612         * modules/unictype/ctype-punct: Likewise.
8613         * modules/unictype/ctype-space: Likewise.
8614         * modules/unictype/ctype-upper: Likewise.
8615         * modules/unictype/ctype-xdigit: Likewise.
8616         * modules/unictype/decimal-digit: Likewise.
8617         * modules/unictype/digit: Likewise.
8618         * modules/unictype/mirror: Likewise.
8619         * modules/unictype/numeric: Likewise.
8620         * modules/unictype/property-alphabetic: Likewise.
8621         * modules/unictype/property-ascii-hex-digit: Likewise.
8622         * modules/unictype/property-bidi-arabic-digit: Likewise.
8623         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8624         * modules/unictype/property-bidi-block-separator: Likewise.
8625         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8626         * modules/unictype/property-bidi-common-separator: Likewise.
8627         * modules/unictype/property-bidi-control: Likewise.
8628         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8629         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8630         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8631         * modules/unictype/property-bidi-european-digit: Likewise.
8632         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8633         * modules/unictype/property-bidi-left-to-right: Likewise.
8634         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8635         * modules/unictype/property-bidi-other-neutral: Likewise.
8636         * modules/unictype/property-bidi-pdf: Likewise.
8637         * modules/unictype/property-bidi-segment-separator: Likewise.
8638         * modules/unictype/property-bidi-whitespace: Likewise.
8639         * modules/unictype/property-byname: Likewise.
8640         * modules/unictype/property-combining: Likewise.
8641         * modules/unictype/property-composite: Likewise.
8642         * modules/unictype/property-currency-symbol: Likewise.
8643         * modules/unictype/property-dash: Likewise.
8644         * modules/unictype/property-decimal-digit: Likewise.
8645         * modules/unictype/property-default-ignorable-code-point: Likewise.
8646         * modules/unictype/property-deprecated: Likewise.
8647         * modules/unictype/property-diacritic: Likewise.
8648         * modules/unictype/property-extender: Likewise.
8649         * modules/unictype/property-format-control: Likewise.
8650         * modules/unictype/property-grapheme-base: Likewise.
8651         * modules/unictype/property-grapheme-extend: Likewise.
8652         * modules/unictype/property-grapheme-link: Likewise.
8653         * modules/unictype/property-hex-digit: Likewise.
8654         * modules/unictype/property-hyphen: Likewise.
8655         * modules/unictype/property-id-continue: Likewise.
8656         * modules/unictype/property-id-start: Likewise.
8657         * modules/unictype/property-ideographic: Likewise.
8658         * modules/unictype/property-ids-binary-operator: Likewise.
8659         * modules/unictype/property-ids-trinary-operator: Likewise.
8660         * modules/unictype/property-ignorable-control: Likewise.
8661         * modules/unictype/property-iso-control: Likewise.
8662         * modules/unictype/property-join-control: Likewise.
8663         * modules/unictype/property-left-of-pair: Likewise.
8664         * modules/unictype/property-line-separator: Likewise.
8665         * modules/unictype/property-logical-order-exception: Likewise.
8666         * modules/unictype/property-lowercase: Likewise.
8667         * modules/unictype/property-math: Likewise.
8668         * modules/unictype/property-non-break: Likewise.
8669         * modules/unictype/property-not-a-character: Likewise.
8670         * modules/unictype/property-numeric: Likewise.
8671         * modules/unictype/property-other-alphabetic: Likewise.
8672         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8673         * modules/unictype/property-other-grapheme-extend: Likewise.
8674         * modules/unictype/property-other-id-continue: Likewise.
8675         * modules/unictype/property-other-id-start: Likewise.
8676         * modules/unictype/property-other-lowercase: Likewise.
8677         * modules/unictype/property-other-math: Likewise.
8678         * modules/unictype/property-other-uppercase: Likewise.
8679         * modules/unictype/property-paired-punctuation: Likewise.
8680         * modules/unictype/property-paragraph-separator: Likewise.
8681         * modules/unictype/property-pattern-syntax: Likewise.
8682         * modules/unictype/property-pattern-white-space: Likewise.
8683         * modules/unictype/property-private-use: Likewise.
8684         * modules/unictype/property-punctuation: Likewise.
8685         * modules/unictype/property-quotation-mark: Likewise.
8686         * modules/unictype/property-radical: Likewise.
8687         * modules/unictype/property-sentence-terminal: Likewise.
8688         * modules/unictype/property-soft-dotted: Likewise.
8689         * modules/unictype/property-space: Likewise.
8690         * modules/unictype/property-terminal-punctuation: Likewise.
8691         * modules/unictype/property-test: Likewise.
8692         * modules/unictype/property-titlecase: Likewise.
8693         * modules/unictype/property-unassigned-code-value: Likewise.
8694         * modules/unictype/property-unified-ideograph: Likewise.
8695         * modules/unictype/property-uppercase: Likewise.
8696         * modules/unictype/property-variation-selector: Likewise.
8697         * modules/unictype/property-white-space: Likewise.
8698         * modules/unictype/property-xid-continue: Likewise.
8699         * modules/unictype/property-xid-start: Likewise.
8700         * modules/unictype/property-zero-width: Likewise.
8701         * modules/unictype/scripts: Likewise.
8702         * modules/unictype/syntax-c-ident: Likewise.
8703         * modules/unictype/syntax-c-whitespace: Likewise.
8704         * modules/unictype/syntax-java-ident: Likewise.
8705         * modules/unictype/syntax-java-whitespace: Likewise.
8706         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8707         * modules/unilbrk/u8-width-linebreaks: Likewise.
8708         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8709         * modules/unilbrk/u16-width-linebreaks: Likewise.
8710         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8711         * modules/unilbrk/u32-width-linebreaks: Likewise.
8712         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8713         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8714         * modules/uniname/uniname: Likewise.
8715         * modules/uninorm/canonical-decomposition: Likewise.
8716         * modules/uninorm/composition: Likewise.
8717         * modules/uninorm/decomposing-form: Likewise.
8718         * modules/uninorm/decomposition: Likewise.
8719         * modules/uninorm/filter: Likewise.
8720         * modules/uninorm/nfc: Likewise.
8721         * modules/uninorm/nfd: Likewise.
8722         * modules/uninorm/nfkc: Likewise.
8723         * modules/uninorm/nfkd: Likewise.
8724         * modules/uninorm/u8-normalize: Likewise.
8725         * modules/uninorm/u8-normcmp: Likewise.
8726         * modules/uninorm/u8-normcoll: Likewise.
8727         * modules/uninorm/u8-normxfrm: Likewise.
8728         * modules/uninorm/u16-normalize: Likewise.
8729         * modules/uninorm/u16-normcmp: Likewise.
8730         * modules/uninorm/u16-normcoll: Likewise.
8731         * modules/uninorm/u16-normxfrm: Likewise.
8732         * modules/uninorm/u32-normalize: Likewise.
8733         * modules/uninorm/u32-normcmp: Likewise.
8734         * modules/uninorm/u32-normcoll: Likewise.
8735         * modules/uninorm/u32-normxfrm: Likewise.
8736         * modules/unistdio/u8-asnprintf: Likewise.
8737         * modules/unistdio/u8-asprintf: Likewise.
8738         * modules/unistdio/u8-snprintf: Likewise.
8739         * modules/unistdio/u8-sprintf: Likewise.
8740         * modules/unistdio/u8-u8-asnprintf: Likewise.
8741         * modules/unistdio/u8-u8-asprintf: Likewise.
8742         * modules/unistdio/u8-u8-snprintf: Likewise.
8743         * modules/unistdio/u8-u8-sprintf: Likewise.
8744         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8745         * modules/unistdio/u8-u8-vasprintf: Likewise.
8746         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8747         * modules/unistdio/u8-u8-vsprintf: Likewise.
8748         * modules/unistdio/u8-vasnprintf: Likewise.
8749         * modules/unistdio/u8-vasprintf: Likewise.
8750         * modules/unistdio/u8-vsnprintf: Likewise.
8751         * modules/unistdio/u8-vsprintf: Likewise.
8752         * modules/unistdio/u16-asnprintf: Likewise.
8753         * modules/unistdio/u16-asprintf: Likewise.
8754         * modules/unistdio/u16-snprintf: Likewise.
8755         * modules/unistdio/u16-sprintf: Likewise.
8756         * modules/unistdio/u16-u16-asnprintf: Likewise.
8757         * modules/unistdio/u16-u16-asprintf: Likewise.
8758         * modules/unistdio/u16-u16-snprintf: Likewise.
8759         * modules/unistdio/u16-u16-sprintf: Likewise.
8760         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8761         * modules/unistdio/u16-u16-vasprintf: Likewise.
8762         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8763         * modules/unistdio/u16-u16-vsprintf: Likewise.
8764         * modules/unistdio/u16-vasnprintf: Likewise.
8765         * modules/unistdio/u16-vasprintf: Likewise.
8766         * modules/unistdio/u16-vsnprintf: Likewise.
8767         * modules/unistdio/u16-vsprintf: Likewise.
8768         * modules/unistdio/u32-asnprintf: Likewise.
8769         * modules/unistdio/u32-asprintf: Likewise.
8770         * modules/unistdio/u32-snprintf: Likewise.
8771         * modules/unistdio/u32-sprintf: Likewise.
8772         * modules/unistdio/u32-u32-asnprintf: Likewise.
8773         * modules/unistdio/u32-u32-asprintf: Likewise.
8774         * modules/unistdio/u32-u32-snprintf: Likewise.
8775         * modules/unistdio/u32-u32-sprintf: Likewise.
8776         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8777         * modules/unistdio/u32-u32-vasprintf: Likewise.
8778         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8779         * modules/unistdio/u32-u32-vsprintf: Likewise.
8780         * modules/unistdio/u32-vasnprintf: Likewise.
8781         * modules/unistdio/u32-vasprintf: Likewise.
8782         * modules/unistdio/u32-vsnprintf: Likewise.
8783         * modules/unistdio/u32-vsprintf: Likewise.
8784         * modules/unistdio/ulc-asnprintf: Likewise.
8785         * modules/unistdio/ulc-asprintf: Likewise.
8786         * modules/unistdio/ulc-fprintf: Likewise.
8787         * modules/unistdio/ulc-snprintf: Likewise.
8788         * modules/unistdio/ulc-sprintf: Likewise.
8789         * modules/unistdio/ulc-vasnprintf: Likewise.
8790         * modules/unistdio/ulc-vasprintf: Likewise.
8791         * modules/unistdio/ulc-vfprintf: Likewise.
8792         * modules/unistdio/ulc-vsnprintf: Likewise.
8793         * modules/unistdio/ulc-vsprintf: Likewise.
8794         * modules/unistr/u8-check: Likewise.
8795         * modules/unistr/u8-chr: Likewise.
8796         * modules/unistr/u8-cmp: Likewise.
8797         * modules/unistr/u8-cmp2: Likewise.
8798         * modules/unistr/u8-cpy: Likewise.
8799         * modules/unistr/u8-cpy-alloc: Likewise.
8800         * modules/unistr/u8-endswith: Likewise.
8801         * modules/unistr/u8-mblen: Likewise.
8802         * modules/unistr/u8-mbsnlen: Likewise.
8803         * modules/unistr/u8-mbtouc: Likewise.
8804         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8805         * modules/unistr/u8-mbtoucr: Likewise.
8806         * modules/unistr/u8-move: Likewise.
8807         * modules/unistr/u8-next: Likewise.
8808         * modules/unistr/u8-prev: Likewise.
8809         * modules/unistr/u8-set: Likewise.
8810         * modules/unistr/u8-startswith: Likewise.
8811         * modules/unistr/u8-stpcpy: Likewise.
8812         * modules/unistr/u8-stpncpy: Likewise.
8813         * modules/unistr/u8-strcat: Likewise.
8814         * modules/unistr/u8-strchr: Likewise.
8815         * modules/unistr/u8-strcmp: Likewise.
8816         * modules/unistr/u8-strcoll: Likewise.
8817         * modules/unistr/u8-strcpy: Likewise.
8818         * modules/unistr/u8-strcspn: Likewise.
8819         * modules/unistr/u8-strdup: Likewise.
8820         * modules/unistr/u8-strlen: Likewise.
8821         * modules/unistr/u8-strmblen: Likewise.
8822         * modules/unistr/u8-strmbtouc: Likewise.
8823         * modules/unistr/u8-strncat: Likewise.
8824         * modules/unistr/u8-strncmp: Likewise.
8825         * modules/unistr/u8-strncpy: Likewise.
8826         * modules/unistr/u8-strnlen: Likewise.
8827         * modules/unistr/u8-strpbrk: Likewise.
8828         * modules/unistr/u8-strrchr: Likewise.
8829         * modules/unistr/u8-strspn: Likewise.
8830         * modules/unistr/u8-strstr: Likewise.
8831         * modules/unistr/u8-strtok: Likewise.
8832         * modules/unistr/u8-to-u16: Likewise.
8833         * modules/unistr/u8-to-u32: Likewise.
8834         * modules/unistr/u8-uctomb: Likewise.
8835         * modules/unistr/u16-check: Likewise.
8836         * modules/unistr/u16-chr: Likewise.
8837         * modules/unistr/u16-cmp: Likewise.
8838         * modules/unistr/u16-cmp2: Likewise.
8839         * modules/unistr/u16-cpy: Likewise.
8840         * modules/unistr/u16-cpy-alloc: Likewise.
8841         * modules/unistr/u16-endswith: Likewise.
8842         * modules/unistr/u16-mblen: Likewise.
8843         * modules/unistr/u16-mbsnlen: Likewise.
8844         * modules/unistr/u16-mbtouc: Likewise.
8845         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8846         * modules/unistr/u16-mbtoucr: Likewise.
8847         * modules/unistr/u16-move: Likewise.
8848         * modules/unistr/u16-next: Likewise.
8849         * modules/unistr/u16-prev: Likewise.
8850         * modules/unistr/u16-set: Likewise.
8851         * modules/unistr/u16-startswith: Likewise.
8852         * modules/unistr/u16-stpcpy: Likewise.
8853         * modules/unistr/u16-stpncpy: Likewise.
8854         * modules/unistr/u16-strcat: Likewise.
8855         * modules/unistr/u16-strchr: Likewise.
8856         * modules/unistr/u16-strcmp: Likewise.
8857         * modules/unistr/u16-strcoll: Likewise.
8858         * modules/unistr/u16-strcpy: Likewise.
8859         * modules/unistr/u16-strcspn: Likewise.
8860         * modules/unistr/u16-strdup: Likewise.
8861         * modules/unistr/u16-strlen: Likewise.
8862         * modules/unistr/u16-strmblen: Likewise.
8863         * modules/unistr/u16-strmbtouc: Likewise.
8864         * modules/unistr/u16-strncat: Likewise.
8865         * modules/unistr/u16-strncmp: Likewise.
8866         * modules/unistr/u16-strncpy: Likewise.
8867         * modules/unistr/u16-strnlen: Likewise.
8868         * modules/unistr/u16-strpbrk: Likewise.
8869         * modules/unistr/u16-strrchr: Likewise.
8870         * modules/unistr/u16-strspn: Likewise.
8871         * modules/unistr/u16-strstr: Likewise.
8872         * modules/unistr/u16-strtok: Likewise.
8873         * modules/unistr/u16-to-u32: Likewise.
8874         * modules/unistr/u16-to-u8: Likewise.
8875         * modules/unistr/u16-uctomb: Likewise.
8876         * modules/unistr/u32-check: Likewise.
8877         * modules/unistr/u32-chr: Likewise.
8878         * modules/unistr/u32-cmp: Likewise.
8879         * modules/unistr/u32-cmp2: Likewise.
8880         * modules/unistr/u32-cpy: Likewise.
8881         * modules/unistr/u32-cpy-alloc: Likewise.
8882         * modules/unistr/u32-endswith: Likewise.
8883         * modules/unistr/u32-mblen: Likewise.
8884         * modules/unistr/u32-mbsnlen: Likewise.
8885         * modules/unistr/u32-mbtouc: Likewise.
8886         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8887         * modules/unistr/u32-mbtoucr: Likewise.
8888         * modules/unistr/u32-move: Likewise.
8889         * modules/unistr/u32-next: Likewise.
8890         * modules/unistr/u32-prev: Likewise.
8891         * modules/unistr/u32-set: Likewise.
8892         * modules/unistr/u32-startswith: Likewise.
8893         * modules/unistr/u32-stpcpy: Likewise.
8894         * modules/unistr/u32-stpncpy: Likewise.
8895         * modules/unistr/u32-strcat: Likewise.
8896         * modules/unistr/u32-strchr: Likewise.
8897         * modules/unistr/u32-strcmp: Likewise.
8898         * modules/unistr/u32-strcoll: Likewise.
8899         * modules/unistr/u32-strcpy: Likewise.
8900         * modules/unistr/u32-strcspn: Likewise.
8901         * modules/unistr/u32-strdup: Likewise.
8902         * modules/unistr/u32-strlen: Likewise.
8903         * modules/unistr/u32-strmblen: Likewise.
8904         * modules/unistr/u32-strmbtouc: Likewise.
8905         * modules/unistr/u32-strncat: Likewise.
8906         * modules/unistr/u32-strncmp: Likewise.
8907         * modules/unistr/u32-strncpy: Likewise.
8908         * modules/unistr/u32-strnlen: Likewise.
8909         * modules/unistr/u32-strpbrk: Likewise.
8910         * modules/unistr/u32-strrchr: Likewise.
8911         * modules/unistr/u32-strspn: Likewise.
8912         * modules/unistr/u32-strstr: Likewise.
8913         * modules/unistr/u32-strtok: Likewise.
8914         * modules/unistr/u32-to-u16: Likewise.
8915         * modules/unistr/u32-to-u8: Likewise.
8916         * modules/unistr/u32-uctomb: Likewise.
8917         * modules/uniwbrk/u8-wordbreaks: Likewise.
8918         * modules/uniwbrk/u16-wordbreaks: Likewise.
8919         * modules/uniwbrk/u32-wordbreaks: Likewise.
8920         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8921         * modules/uniwbrk/wordbreak-property: Likewise.
8922         * modules/uniwidth/u8-strwidth: Likewise.
8923         * modules/uniwidth/u8-width: Likewise.
8924         * modules/uniwidth/u16-strwidth: Likewise.
8925         * modules/uniwidth/u16-width: Likewise.
8926         * modules/uniwidth/u32-strwidth: Likewise.
8927         * modules/uniwidth/u32-width: Likewise.
8928         * modules/uniwidth/width: Likewise.
8929         * modules/unicase/cased-tests (Makefile.am): Link all test programs
8930         with $(LIBUNISTRING).
8931         * modules/unicase/ignorable-tests: Likewise.
8932         * modules/unicase/locale-language-tests: Likewise.
8933         * modules/unicase/tolower-tests: Likewise.
8934         * modules/unicase/totitle-tests: Likewise.
8935         * modules/unicase/toupper-tests: Likewise.
8936         * modules/unicase/u8-casecmp-tests: Likewise.
8937         * modules/unicase/u8-casecoll-tests: Likewise.
8938         * modules/unicase/u8-casefold-tests: Likewise.
8939         * modules/unicase/u8-is-cased-tests: Likewise.
8940         * modules/unicase/u8-is-casefolded-tests: Likewise.
8941         * modules/unicase/u8-is-lowercase-tests: Likewise.
8942         * modules/unicase/u8-is-titlecase-tests: Likewise.
8943         * modules/unicase/u8-is-uppercase-tests: Likewise.
8944         * modules/unicase/u8-tolower-tests: Likewise.
8945         * modules/unicase/u8-totitle-tests: Likewise.
8946         * modules/unicase/u8-toupper-tests: Likewise.
8947         * modules/unicase/u16-casecmp-tests: Likewise.
8948         * modules/unicase/u16-casecoll-tests: Likewise.
8949         * modules/unicase/u16-casefold-tests: Likewise.
8950         * modules/unicase/u16-is-cased-tests: Likewise.
8951         * modules/unicase/u16-is-casefolded-tests: Likewise.
8952         * modules/unicase/u16-is-lowercase-tests: Likewise.
8953         * modules/unicase/u16-is-titlecase-tests: Likewise.
8954         * modules/unicase/u16-is-uppercase-tests: Likewise.
8955         * modules/unicase/u16-tolower-tests: Likewise.
8956         * modules/unicase/u16-totitle-tests: Likewise.
8957         * modules/unicase/u16-toupper-tests: Likewise.
8958         * modules/unicase/u32-casecmp-tests: Likewise.
8959         * modules/unicase/u32-casecoll-tests: Likewise.
8960         * modules/unicase/u32-casefold-tests: Likewise.
8961         * modules/unicase/u32-is-cased-tests: Likewise.
8962         * modules/unicase/u32-is-casefolded-tests: Likewise.
8963         * modules/unicase/u32-is-lowercase-tests: Likewise.
8964         * modules/unicase/u32-is-titlecase-tests: Likewise.
8965         * modules/unicase/u32-is-uppercase-tests: Likewise.
8966         * modules/unicase/u32-tolower-tests: Likewise.
8967         * modules/unicase/u32-totitle-tests: Likewise.
8968         * modules/unicase/u32-toupper-tests: Likewise.
8969         * modules/unicase/ulc-casecmp-tests: Likewise.
8970         * modules/unicase/ulc-casecoll-tests: Likewise.
8971         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
8972         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8973         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8974         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8975         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8976         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8977         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8978         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8979         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8980         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8981         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8982         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8983         * modules/unictype/bidicategory-byname-tests: Likewise.
8984         * modules/unictype/bidicategory-name-tests: Likewise.
8985         * modules/unictype/bidicategory-of-tests: Likewise.
8986         * modules/unictype/bidicategory-test-tests: Likewise.
8987         * modules/unictype/block-list-tests: Likewise.
8988         * modules/unictype/block-of-tests: Likewise.
8989         * modules/unictype/block-test-tests: Likewise.
8990         * modules/unictype/category-C-tests: Likewise.
8991         * modules/unictype/category-Cc-tests: Likewise.
8992         * modules/unictype/category-Cf-tests: Likewise.
8993         * modules/unictype/category-Cn-tests: Likewise.
8994         * modules/unictype/category-Co-tests: Likewise.
8995         * modules/unictype/category-Cs-tests: Likewise.
8996         * modules/unictype/category-L-tests: Likewise.
8997         * modules/unictype/category-Ll-tests: Likewise.
8998         * modules/unictype/category-Lm-tests: Likewise.
8999         * modules/unictype/category-Lo-tests: Likewise.
9000         * modules/unictype/category-Lt-tests: Likewise.
9001         * modules/unictype/category-Lu-tests: Likewise.
9002         * modules/unictype/category-M-tests: Likewise.
9003         * modules/unictype/category-Mc-tests: Likewise.
9004         * modules/unictype/category-Me-tests: Likewise.
9005         * modules/unictype/category-Mn-tests: Likewise.
9006         * modules/unictype/category-N-tests: Likewise.
9007         * modules/unictype/category-Nd-tests: Likewise.
9008         * modules/unictype/category-Nl-tests: Likewise.
9009         * modules/unictype/category-No-tests: Likewise.
9010         * modules/unictype/category-P-tests: Likewise.
9011         * modules/unictype/category-Pc-tests: Likewise.
9012         * modules/unictype/category-Pd-tests: Likewise.
9013         * modules/unictype/category-Pe-tests: Likewise.
9014         * modules/unictype/category-Pf-tests: Likewise.
9015         * modules/unictype/category-Pi-tests: Likewise.
9016         * modules/unictype/category-Po-tests: Likewise.
9017         * modules/unictype/category-Ps-tests: Likewise.
9018         * modules/unictype/category-S-tests: Likewise.
9019         * modules/unictype/category-Sc-tests: Likewise.
9020         * modules/unictype/category-Sk-tests: Likewise.
9021         * modules/unictype/category-Sm-tests: Likewise.
9022         * modules/unictype/category-So-tests: Likewise.
9023         * modules/unictype/category-Z-tests: Likewise.
9024         * modules/unictype/category-Zl-tests: Likewise.
9025         * modules/unictype/category-Zp-tests: Likewise.
9026         * modules/unictype/category-Zs-tests: Likewise.
9027         * modules/unictype/category-and-not-tests: Likewise.
9028         * modules/unictype/category-and-tests: Likewise.
9029         * modules/unictype/category-byname-tests: Likewise.
9030         * modules/unictype/category-name-tests: Likewise.
9031         * modules/unictype/category-none-tests: Likewise.
9032         * modules/unictype/category-of-tests: Likewise.
9033         * modules/unictype/category-or-tests: Likewise.
9034         * modules/unictype/category-test-withtable-tests: Likewise.
9035         * modules/unictype/combining-class-tests: Likewise.
9036         * modules/unictype/ctype-alnum-tests: Likewise.
9037         * modules/unictype/ctype-alpha-tests: Likewise.
9038         * modules/unictype/ctype-blank-tests: Likewise.
9039         * modules/unictype/ctype-cntrl-tests: Likewise.
9040         * modules/unictype/ctype-digit-tests: Likewise.
9041         * modules/unictype/ctype-graph-tests: Likewise.
9042         * modules/unictype/ctype-lower-tests: Likewise.
9043         * modules/unictype/ctype-print-tests: Likewise.
9044         * modules/unictype/ctype-punct-tests: Likewise.
9045         * modules/unictype/ctype-space-tests: Likewise.
9046         * modules/unictype/ctype-upper-tests: Likewise.
9047         * modules/unictype/ctype-xdigit-tests: Likewise.
9048         * modules/unictype/decimal-digit-tests: Likewise.
9049         * modules/unictype/digit-tests: Likewise.
9050         * modules/unictype/mirror-tests: Likewise.
9051         * modules/unictype/numeric-tests: Likewise.
9052         * modules/unictype/property-alphabetic-tests: Likewise.
9053         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
9054         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
9055         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
9056         * modules/unictype/property-bidi-block-separator-tests: Likewise.
9057         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
9058         * modules/unictype/property-bidi-common-separator-tests: Likewise.
9059         * modules/unictype/property-bidi-control-tests: Likewise.
9060         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
9061         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
9062         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
9063         * modules/unictype/property-bidi-european-digit-tests: Likewise.
9064         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
9065         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
9066         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
9067         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
9068         * modules/unictype/property-bidi-pdf-tests: Likewise.
9069         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
9070         * modules/unictype/property-bidi-whitespace-tests: Likewise.
9071         * modules/unictype/property-byname-tests: Likewise.
9072         * modules/unictype/property-combining-tests: Likewise.
9073         * modules/unictype/property-composite-tests: Likewise.
9074         * modules/unictype/property-currency-symbol-tests: Likewise.
9075         * modules/unictype/property-dash-tests: Likewise.
9076         * modules/unictype/property-decimal-digit-tests: Likewise.
9077         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
9078         * modules/unictype/property-deprecated-tests: Likewise.
9079         * modules/unictype/property-diacritic-tests: Likewise.
9080         * modules/unictype/property-extender-tests: Likewise.
9081         * modules/unictype/property-format-control-tests: Likewise.
9082         * modules/unictype/property-grapheme-base-tests: Likewise.
9083         * modules/unictype/property-grapheme-extend-tests: Likewise.
9084         * modules/unictype/property-grapheme-link-tests: Likewise.
9085         * modules/unictype/property-hex-digit-tests: Likewise.
9086         * modules/unictype/property-hyphen-tests: Likewise.
9087         * modules/unictype/property-id-continue-tests: Likewise.
9088         * modules/unictype/property-id-start-tests: Likewise.
9089         * modules/unictype/property-ideographic-tests: Likewise.
9090         * modules/unictype/property-ids-binary-operator-tests: Likewise.
9091         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
9092         * modules/unictype/property-ignorable-control-tests: Likewise.
9093         * modules/unictype/property-iso-control-tests: Likewise.
9094         * modules/unictype/property-join-control-tests: Likewise.
9095         * modules/unictype/property-left-of-pair-tests: Likewise.
9096         * modules/unictype/property-line-separator-tests: Likewise.
9097         * modules/unictype/property-logical-order-exception-tests: Likewise.
9098         * modules/unictype/property-lowercase-tests: Likewise.
9099         * modules/unictype/property-math-tests: Likewise.
9100         * modules/unictype/property-non-break-tests: Likewise.
9101         * modules/unictype/property-not-a-character-tests: Likewise.
9102         * modules/unictype/property-numeric-tests: Likewise.
9103         * modules/unictype/property-other-alphabetic-tests: Likewise.
9104         * modules/unictype/property-other-default-ignorable-code-point-tests:
9105         Likewise.
9106         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9107         * modules/unictype/property-other-id-continue-tests: Likewise.
9108         * modules/unictype/property-other-id-start-tests: Likewise.
9109         * modules/unictype/property-other-lowercase-tests: Likewise.
9110         * modules/unictype/property-other-math-tests: Likewise.
9111         * modules/unictype/property-other-uppercase-tests: Likewise.
9112         * modules/unictype/property-paired-punctuation-tests: Likewise.
9113         * modules/unictype/property-paragraph-separator-tests: Likewise.
9114         * modules/unictype/property-pattern-syntax-tests: Likewise.
9115         * modules/unictype/property-pattern-white-space-tests: Likewise.
9116         * modules/unictype/property-private-use-tests: Likewise.
9117         * modules/unictype/property-punctuation-tests: Likewise.
9118         * modules/unictype/property-quotation-mark-tests: Likewise.
9119         * modules/unictype/property-radical-tests: Likewise.
9120         * modules/unictype/property-sentence-terminal-tests: Likewise.
9121         * modules/unictype/property-soft-dotted-tests: Likewise.
9122         * modules/unictype/property-space-tests: Likewise.
9123         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9124         * modules/unictype/property-test-tests: Likewise.
9125         * modules/unictype/property-titlecase-tests: Likewise.
9126         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9127         * modules/unictype/property-unified-ideograph-tests: Likewise.
9128         * modules/unictype/property-uppercase-tests: Likewise.
9129         * modules/unictype/property-variation-selector-tests: Likewise.
9130         * modules/unictype/property-white-space-tests: Likewise.
9131         * modules/unictype/property-xid-continue-tests: Likewise.
9132         * modules/unictype/property-xid-start-tests: Likewise.
9133         * modules/unictype/property-zero-width-tests: Likewise.
9134         * modules/unictype/scripts-tests: Likewise.
9135         * modules/unictype/syntax-c-ident-tests: Likewise.
9136         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9137         * modules/unictype/syntax-java-ident-tests: Likewise.
9138         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9139         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9140         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9141         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9142         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9143         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9144         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9145         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9146         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9147         * modules/uniname/uniname-tests: Likewise.
9148         * modules/uninorm/canonical-decomposition-tests: Likewise.
9149         * modules/uninorm/compat-decomposition-tests: Likewise.
9150         * modules/uninorm/composition-tests: Likewise.
9151         * modules/uninorm/decomposing-form-tests: Likewise.
9152         * modules/uninorm/decomposition-tests: Likewise.
9153         * modules/uninorm/filter-tests: Likewise.
9154         * modules/uninorm/nfc-tests: Likewise.
9155         * modules/uninorm/nfd-tests: Likewise.
9156         * modules/uninorm/nfkc-tests: Likewise.
9157         * modules/uninorm/nfkd-tests: Likewise.
9158         * modules/uninorm/u8-normcmp-tests: Likewise.
9159         * modules/uninorm/u8-normcoll-tests: Likewise.
9160         * modules/uninorm/u16-normcmp-tests: Likewise.
9161         * modules/uninorm/u16-normcoll-tests: Likewise.
9162         * modules/uninorm/u32-normcmp-tests: Likewise.
9163         * modules/uninorm/u32-normcoll-tests: Likewise.
9164         * modules/unistdio/u8-asnprintf-tests: Likewise.
9165         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9166         * modules/unistdio/u8-vasprintf-tests: Likewise.
9167         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9168         * modules/unistdio/u8-vsprintf-tests: Likewise.
9169         * modules/unistdio/u16-asnprintf-tests: Likewise.
9170         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9171         * modules/unistdio/u16-vasprintf-tests: Likewise.
9172         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9173         * modules/unistdio/u16-vsprintf-tests: Likewise.
9174         * modules/unistdio/u32-asnprintf-tests: Likewise.
9175         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9176         * modules/unistdio/u32-vasprintf-tests: Likewise.
9177         * modules/unistdio/u32-vsnprintf-tests: Likewise.
9178         * modules/unistdio/u32-vsprintf-tests: Likewise.
9179         * modules/unistdio/ulc-asnprintf-tests: Likewise.
9180         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
9181         * modules/unistdio/ulc-vasprintf-tests: Likewise.
9182         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
9183         * modules/unistdio/ulc-vsprintf-tests: Likewise.
9184         * modules/unistr/u8-check-tests: Likewise.
9185         * modules/unistr/u8-chr-tests: Likewise.
9186         * modules/unistr/u8-cmp-tests: Likewise.
9187         * modules/unistr/u8-cmp2-tests: Likewise.
9188         * modules/unistr/u8-cpy-alloc-tests: Likewise.
9189         * modules/unistr/u8-cpy-tests: Likewise.
9190         * modules/unistr/u8-mblen-tests: Likewise.
9191         * modules/unistr/u8-mbsnlen-tests: Likewise.
9192         * modules/unistr/u8-mbtouc-tests: Likewise.
9193         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
9194         * modules/unistr/u8-mbtoucr-tests: Likewise.
9195         * modules/unistr/u8-move-tests: Likewise.
9196         * modules/unistr/u8-next-tests: Likewise.
9197         * modules/unistr/u8-prev-tests: Likewise.
9198         * modules/unistr/u8-set-tests: Likewise.
9199         * modules/unistr/u8-stpcpy-tests: Likewise.
9200         * modules/unistr/u8-stpncpy-tests: Likewise.
9201         * modules/unistr/u8-strcat-tests: Likewise.
9202         * modules/unistr/u8-strcmp-tests: Likewise.
9203         * modules/unistr/u8-strcoll-tests: Likewise.
9204         * modules/unistr/u8-strcpy-tests: Likewise.
9205         * modules/unistr/u8-strdup-tests: Likewise.
9206         * modules/unistr/u8-strlen-tests: Likewise.
9207         * modules/unistr/u8-strmblen-tests: Likewise.
9208         * modules/unistr/u8-strmbtouc-tests: Likewise.
9209         * modules/unistr/u8-strncat-tests: Likewise.
9210         * modules/unistr/u8-strncmp-tests: Likewise.
9211         * modules/unistr/u8-strncpy-tests: Likewise.
9212         * modules/unistr/u8-strnlen-tests: Likewise.
9213         * modules/unistr/u8-to-u16-tests: Likewise.
9214         * modules/unistr/u8-to-u32-tests: Likewise.
9215         * modules/unistr/u8-uctomb-tests: Likewise.
9216         * modules/unistr/u16-check-tests: Likewise.
9217         * modules/unistr/u16-chr-tests: Likewise.
9218         * modules/unistr/u16-cmp-tests: Likewise.
9219         * modules/unistr/u16-cmp2-tests: Likewise.
9220         * modules/unistr/u16-cpy-alloc-tests: Likewise.
9221         * modules/unistr/u16-cpy-tests: Likewise.
9222         * modules/unistr/u16-mblen-tests: Likewise.
9223         * modules/unistr/u16-mbsnlen-tests: Likewise.
9224         * modules/unistr/u16-mbtouc-tests: Likewise.
9225         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
9226         * modules/unistr/u16-mbtoucr-tests: Likewise.
9227         * modules/unistr/u16-move-tests: Likewise.
9228         * modules/unistr/u16-next-tests: Likewise.
9229         * modules/unistr/u16-prev-tests: Likewise.
9230         * modules/unistr/u16-set-tests: Likewise.
9231         * modules/unistr/u16-stpcpy-tests: Likewise.
9232         * modules/unistr/u16-stpncpy-tests: Likewise.
9233         * modules/unistr/u16-strcat-tests: Likewise.
9234         * modules/unistr/u16-strcmp-tests: Likewise.
9235         * modules/unistr/u16-strcoll-tests: Likewise.
9236         * modules/unistr/u16-strcpy-tests: Likewise.
9237         * modules/unistr/u16-strdup-tests: Likewise.
9238         * modules/unistr/u16-strlen-tests: Likewise.
9239         * modules/unistr/u16-strmblen-tests: Likewise.
9240         * modules/unistr/u16-strmbtouc-tests: Likewise.
9241         * modules/unistr/u16-strncat-tests: Likewise.
9242         * modules/unistr/u16-strncmp-tests: Likewise.
9243         * modules/unistr/u16-strncpy-tests: Likewise.
9244         * modules/unistr/u16-strnlen-tests: Likewise.
9245         * modules/unistr/u16-to-u32-tests: Likewise.
9246         * modules/unistr/u16-to-u8-tests: Likewise.
9247         * modules/unistr/u16-uctomb-tests: Likewise.
9248         * modules/unistr/u32-check-tests: Likewise.
9249         * modules/unistr/u32-chr-tests: Likewise.
9250         * modules/unistr/u32-cmp-tests: Likewise.
9251         * modules/unistr/u32-cmp2-tests: Likewise.
9252         * modules/unistr/u32-cpy-alloc-tests: Likewise.
9253         * modules/unistr/u32-cpy-tests: Likewise.
9254         * modules/unistr/u32-mblen-tests: Likewise.
9255         * modules/unistr/u32-mbsnlen-tests: Likewise.
9256         * modules/unistr/u32-mbtouc-tests: Likewise.
9257         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
9258         * modules/unistr/u32-mbtoucr-tests: Likewise.
9259         * modules/unistr/u32-move-tests: Likewise.
9260         * modules/unistr/u32-next-tests: Likewise.
9261         * modules/unistr/u32-prev-tests: Likewise.
9262         * modules/unistr/u32-set-tests: Likewise.
9263         * modules/unistr/u32-stpcpy-tests: Likewise.
9264         * modules/unistr/u32-stpncpy-tests: Likewise.
9265         * modules/unistr/u32-strcat-tests: Likewise.
9266         * modules/unistr/u32-strcmp-tests: Likewise.
9267         * modules/unistr/u32-strcoll-tests: Likewise.
9268         * modules/unistr/u32-strcpy-tests: Likewise.
9269         * modules/unistr/u32-strdup-tests: Likewise.
9270         * modules/unistr/u32-strlen-tests: Likewise.
9271         * modules/unistr/u32-strmblen-tests: Likewise.
9272         * modules/unistr/u32-strmbtouc-tests: Likewise.
9273         * modules/unistr/u32-strncat-tests: Likewise.
9274         * modules/unistr/u32-strncmp-tests: Likewise.
9275         * modules/unistr/u32-strncpy-tests: Likewise.
9276         * modules/unistr/u32-strnlen-tests: Likewise.
9277         * modules/unistr/u32-to-u16-tests: Likewise.
9278         * modules/unistr/u32-to-u8-tests: Likewise.
9279         * modules/unistr/u32-uctomb-tests: Likewise.
9280         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
9281         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
9282         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
9283         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
9284         * modules/uniwidth/u8-strwidth-tests: Likewise.
9285         * modules/uniwidth/u8-width-tests: Likewise.
9286         * modules/uniwidth/u16-strwidth-tests: Likewise.
9287         * modules/uniwidth/u16-width-tests: Likewise.
9288         * modules/uniwidth/u32-strwidth-tests: Likewise.
9289         * modules/uniwidth/u32-width-tests: Likewise.
9290         * modules/uniwidth/width-tests: Likewise.
9291
9292 2010-05-18  Richard Jones  <rjones@redhat.com>
9293
9294         doc: users.txt: list hivex
9295         * users.txt: Add hivex.
9296
9297 2010-05-18  Richard Jones  <rjones@redhat.com>
9298
9299         doc: users.txt: list febootstrap
9300         * users.txt: Add febootstrap.
9301
9302 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
9303
9304         bootstrap: fix an error when gnulib is not used as a git submodule
9305         * build-aux/bootstrap (gnulib_path): If its length is zero then
9306         assign "gnulib" to it.
9307         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
9308
9309 2010-05-16  Bruno Haible  <bruno@clisp.org>
9310
9311         Avoid autoconf warnings about AM_ICONV.
9312         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
9313         2.64.
9314
9315 2010-05-16  Bruno Haible  <bruno@clisp.org>
9316
9317         absolute-header: Make the macro usable in more situations.
9318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
9319         from gl_ABSOLUTE_HEADER.
9320         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
9321
9322 2010-05-16  James Youngman  <jay@gnu.org>
9323
9324         doc: update users.txt
9325         * users.txt: Add CSSC.
9326
9327 2010-05-16  Jim Meyering  <meyering@redhat.com>
9328
9329         init.sh: fix an error in the previous change; add more comments
9330         * tests/init.sh: Compare exit code in loop against 9, not 2.
9331         Patch by Bruno Haible.
9332         Make the two tests more similar by adding an empty "then" clause.
9333         Add comments.
9334
9335         init.sh: avoid unnecessary shell re-exec
9336         * tests/init.sh: Improve the re-exec-required check to first test the
9337         current shell.  If it passes the test, do not search for a shell that
9338         does pass, and do not re-exec.  This test is particularly contorted to
9339         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
9340         of $(...) evokes a syntax error and causes immediate shell exit with
9341         status 2.  Bruno Haible reported that the re-exec made it impossible
9342         to single-step through any init.sh-using script.
9343
9344 2010-05-16  Bruno Haible  <bruno@clisp.org>
9345
9346         Fix collision between gnulib's and libintl's printf replacements.
9347         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
9348         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
9349         (printf): When using GNU C, map the __printf__ function to rpl_printf
9350         via __asm__. When not using GNU C, define rpl_printf instead of
9351         __printf__.
9352         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
9353         commit.
9354         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
9355         commit.
9356         * m4/asm-underscore.m4: New file.
9357         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
9358         * modules/stdio (Files): Add m4/asm-underscore.m4.
9359         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
9360         Reported by Ben Pfaff.
9361
9362 2010-05-16  Bruno Haible  <bruno@clisp.org>
9363
9364         verify: Avoid skipping the test on openSUSE 11.0.
9365         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
9366
9367 2010-05-13  Bruno Haible  <bruno@clisp.org>
9368
9369         Avoid useless warnings from G++.
9370         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
9371         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
9372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9373
9374 2010-05-11  Jim Meyering  <meyering@redhat.com>
9375
9376         maint.mk: tweak preceding change
9377         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
9378         regexps tighter by anchoring at EOL, and make the new group "shy"
9379         for slightly decreased overhead.
9380
9381 2010-05-11  Eric Blake  <eblake@redhat.com>
9382
9383         maint.mk: gnulib doesn't guarantee NSIG
9384         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
9385
9386 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9387
9388         test-pwrite.c: Remove unused variable declaration.
9389         * tests/test-pwrite.c (main): Remove read_buf declaration.
9390
9391         Remove useless test-pwrite.sh file.
9392         * tests/test-pwrite.sh: Delete file.
9393         * modules/pwrite-tests: Remove references.
9394         Reported by Bruno Haible.
9395
9396 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9397
9398         init.sh: fix a typo
9399         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
9400
9401 2010-05-10  Jim Meyering  <meyering@redhat.com>
9402
9403         maint.mk: avoid using a temporary file in the always-defined-macros check
9404         * top/maint.mk (.re-defmac): Remove rule.
9405         (gl_trap_): Remove definition.
9406         (sc_prohibit_always-defined_macros): Rewrite not to create and
9407         depend on a temporary file.  Instead, depend on GNU grep's ability
9408         to read a list of regular expressions from stdin when given "-f -".
9409
9410 2010-05-09  Bruno Haible  <bruno@clisp.org>
9411
9412         Update to GNU gettext 0.18, part 1.
9413         * m4/gettext.m4: Update to GNU gettext 0.18.
9414         * m4/intl.m4: Likewise.
9415         * m4/po.m4: Likewise.
9416         * modules/gettext (Files): Add m4/fcntl-o.m4.
9417         (configure.ac): Require gettext infrastructure from version 0.18.
9418
9419 2010-05-09  Jim Meyering  <meyering@redhat.com>
9420
9421         init.sh: enable MALLOC_PERTURB_
9422         * tests/init.sh: Enable glibc's malloc-perturbing option.
9423
9424         maint.mk: improve sc_cross_check_PATH_usage_in_tests
9425         With my recent change in init.sh from the two-line form:
9426             -#   : ${srcdir=.}
9427             -#   . "$srcdir/init.sh"; path_prepend_ .
9428             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
9429         I noticed that using the one-line form would cause this test
9430         to fail with a false-positive, or to stop working altogether,
9431         depending on whether help-version changed or all the tests did.
9432         * top/maint.mk (_hv_regex): Remove this definition.
9433         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
9434         (_hv_regex_strong): Use a stronger regex to check for conformance.
9435         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
9436         Give a separate diagnostic for lack of conforming use.
9437
9438         maint.mk: prohibit definition of symbols defined by gnulib
9439         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
9440         definition of symbols defined by gnulib.
9441
9442 2010-05-09  Bruno Haible  <bruno@clisp.org>
9443
9444         acl: Avoid test failure on Cygwin-hosted mingw.
9445         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
9446
9447 2010-05-09  Bruno Haible  <bruno@clisp.org>
9448
9449         error: Use system's fcntl function.
9450         * lib/error.c (fcntl): Undefine.
9451
9452 2010-05-09  Jim Meyering  <meyering@redhat.com>
9453
9454         verify: adjust formatting to be more consistent
9455         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
9456         argument-list '('s, and after one comma.
9457
9458 2010-05-09  Bruno Haible  <bruno@clisp.org>
9459
9460         error: More reliable output on mingw.
9461         * lib/error.c: Include <windows.h>.
9462         (is_open): New function.
9463         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
9464         defined.
9465
9466 2010-05-09  Bruno Haible  <bruno@clisp.org>
9467
9468         vasnprintf: Fix syntax errors in libintl build on mingw.
9469         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
9470         pad_ourselves and prec_ourselves after use.
9471
9472 2010-05-08  Bruno Haible  <bruno@clisp.org>
9473
9474         * lib/config.charset: Update comments for Cygwin 1.7.
9475         * lib/localcharset.c: Likewise.
9476
9477 2010-05-07  Jim Meyering  <meyering@redhat.com>
9478
9479         init.sh: improve comments
9480         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
9481         . "${srcdir=.}/init.sh"; path_prepend_ .
9482         Add a note about path_prepend_ and the alternative of using
9483         TESTS_ENVIRONMENT.
9484
9485 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9486
9487         exclude: Unescape hashed patterns in wildcard mode.
9488         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
9489         to the hash list.
9490         * tests/test-exclude8.sh: New test case.
9491         * modules/exclude-tests: Add new test.
9492
9493 2010-05-05  Eric Blake  <eblake@redhat.com>
9494
9495         verify: automate tests
9496         * modules/verify-tests: New module.
9497         * tests/test-verify.sh: New file.
9498         * tests/test-verify.c: Guard each negative test with a unique id.
9499         Also avoid warning about unused left hand of comma expressions.
9500
9501 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         Further improvements to verify.h, suggested by Eric Blake.
9504         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9505         the GL_* versions, to avoid collision with OpenGL.
9506         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9507         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9508         than testing merely whether it's defined.
9509
9510         Modify verify.h to pacify gcc -Wredundant_decls.
9511         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9512         These use the prefix "GL_" since they're likely to be useful elsewhere.
9513         We may need to break them out into a different .h file.
9514         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9515         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9516         of verify_function__.
9517
9518 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9519
9520         Tests for module pwrite.
9521         * modules/pwrite-tests: New file.
9522         * tests/test-pwrite.sh: New file.
9523         * tests/test-pwrite.c: New file.
9524
9525         New module pwrite.
9526         * lib/unistd.in.h (pwrite): New declaration.
9527         * lib/pwrite.c: New file, from glibc with modifications.
9528         * m4/pwrite.m4: New file.
9529         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9530         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9531         REPLACE_PWRITE.
9532         * modules/pwrite: New file.
9533         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9534         REPLACE_PWRITE.
9535         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9536         * doc/posix-functions/pwrite.texi: Mention the new module.
9537
9538 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9539
9540         pread: Update documentation.
9541         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9542
9543 2010-05-04  Eric Blake  <eblake@redhat.com>
9544
9545         docs: update cygwin progress
9546         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9547         this bug.
9548         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9549         Added in cygwin 1.7.2.
9550         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9551         Likewise.
9552         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9553         Likewise.
9554         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9555         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9556         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9557         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9558         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9559         Mention nproc module.
9560         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9561         bug in cygwin 1.7.5 addition.
9562         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9563         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9564         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9565         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9566         1.7.5.
9567         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9568         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9569         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9570         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9571         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9572         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9573         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9574         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9575         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9576         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9577         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9578         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9579         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9580         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9581         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9582         Likewise.
9583         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9584         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9585         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9586         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9587         Likewise.
9588         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9589         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9590         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9591         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9592         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9593         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9594         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9595         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9596         Likewise.
9597         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9598         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9599         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9600         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9601         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9602         Likewise.
9603         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9604         Likewise.
9605         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9606         Likewise.
9607         * doc/glibc-functions/xdrrec_endofrecord.texi
9608         (xdrrec_endofrecord): Likewise.
9609         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9610         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9611         Likewise.
9612         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9613         Likewise.
9614
9615 2010-05-04  Jim Meyering  <meyering@redhat.com>
9616
9617         gendocs.sh: make its "-s FILE" option more useful
9618         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9619         $PACKAGE to reflect the probably-different basename of "FILE".
9620
9621 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9622
9623         bootstrap: don't ignore download_po_files failure
9624         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9625         failure.
9626
9627 2010-05-03  Jim Meyering  <meyering@redhat.com>
9628
9629         maint.mk: allow to pass options to gendocs.sh
9630         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9631         (gendocs_options_): New overridable variable.
9632
9633         gnu-web-doc-update: don't ignore configure or build failure
9634         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9635
9636         announce-gen: backslash-escape '@'s in --help output
9637         * build-aux/announce-gen: Fix syntax errors.
9638
9639         maint.mk, announce-gen: allow project-specific announcement mail headers
9640         * top/maint.mk (translation_project_): Define default.
9641         (announcement_Cc_, announcement_mail_headers_): Likewise.
9642         (announcement): Invoke announce-gen with new --mail-headers option.
9643         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9644
9645         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9646         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9647         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9648         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9649         line in the "err2" output file when running "make check" in verbose
9650         mode (i.e., with set -x enabled).
9651
9652 2010-05-03  Bruno Haible  <bruno@clisp.org>
9653
9654         wctob: Fix for weird platforms.
9655         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9656         argument value.
9657
9658 2010-05-03  Jim Meyering  <meyering@redhat.com>
9659
9660         maint.mk: prohibit unwarranted use of <strings.h>
9661         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9662         strings.h in a file that does not also use strcasecmp, strncasecmp,
9663         ffs or ffsll.
9664
9665         maint.mk: remove obsolete comments
9666         * top/maint.mk: Remove stale, commented-out rules.
9667
9668 2010-05-02  Bruno Haible  <bruno@clisp.org>
9669
9670         wcwidth: Declare also when it's aliased.
9671         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9672         macro.
9673
9674 2010-05-02  Bruno Haible  <bruno@clisp.org>
9675
9676         Fix regression from 2010-04-25.
9677         * gnulib-tool (func_modules_transitive_closure): Check the status of
9678         all modules, not only of the tests that are of the form foo-tests where
9679         foo is a module.
9680
9681 2010-05-02  Bruno Haible  <bruno@clisp.org>
9682
9683         wctob: Work around nasty Cygwin 1.7.2 bug.
9684         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9685         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9686
9687 2010-05-01  Bruno Haible  <bruno@clisp.org>
9688
9689         fpurge: Sharper test.
9690         * tests/test-fpurge.c (main): Add one more ftell check.
9691         * modules/fpurge-tests (Depends-on): Add ftell.
9692         Suggested by Eric Blake.
9693
9694 2010-05-01  Bruno Haible  <bruno@clisp.org>
9695
9696         ftello: Another test.
9697         * tests/test-ftello3.c: New file.
9698         * modules/ftello-tests (Files): Add it.
9699         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9700         MOSTLYCLEANFILES.
9701
9702         ftell: Another test.
9703         * tests/test-ftell3.c: New file.
9704         * modules/ftell-tests (Files): Add it.
9705         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9706         MOSTLYCLEANFILES.
9707
9708 2010-05-01  Bruno Haible  <bruno@clisp.org>
9709
9710         ftell, ftello: Work around Solaris bug.
9711         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9712         * lib/ftello.c: Include stdio-impl.h.
9713         (ftello): On Solaris, when _IOWRT is set, compute the result without
9714         looking at _IOREAD.
9715         * modules/ftello (Files): Add lib/stdio-impl.h.
9716         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9717         * doc/posix-functions/ftello.texi: Likewise.
9718         Reported by Eric Blake.
9719
9720 2010-05-01  Bruno Haible  <bruno@clisp.org>
9721
9722         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9723         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9724         the _IOWRT flag is also set.
9725
9726 2010-05-01  Bruno Haible  <bruno@clisp.org>
9727
9728         Fix doc about a HP-UX stdio bug.
9729         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9730         * doc/posix-functions/ftello.texi: Likewise.
9731
9732 2010-05-01  Bruno Haible  <bruno@clisp.org>
9733
9734         lseek test: Fix failure on Solaris.
9735         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9736         output.
9737
9738 2010-04-30  Jim Meyering  <meyering@redhat.com>
9739
9740         bootstrap: don't ignore failure to generate po*/Makevars
9741         * build-aux/bootstrap (with_gettext): Don't ignore failure
9742         to create po/Makevars or runtime-po/Makevars.
9743
9744 2010-04-29  Eric Blake  <eblake@redhat.com>
9745
9746         headers: relax license to LGPLv2+
9747         * modules/fcntl-h (License): Relax license.
9748         * modules/getopt-posix (License): Likewise.
9749         * modules/locale (License): Likewise.
9750         * modules/math (License): Likewise.
9751         * modules/pty (License): Likewise.
9752         * modules/sched (License): Likewise.
9753         * modules/search (License): Likewise.
9754         * modules/spawn (License): Likewise.
9755         * modules/stdarg (License): Likewise.
9756         * modules/sysexits (License): Likewise.
9757
9758 2010-04-29  Jim Meyering  <meyering@redhat.com>
9759
9760         inttypes: relax license to LGPLv2+
9761         * modules/inttypes (License): Relax license.
9762
9763 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9764
9765         * top/maint.mk (indent): Run twice to produce idempotent results.
9766
9767 2010-04-28  Bruno Haible  <bruno@clisp.org>
9768
9769         getdate: Generate getdate.c in the source directory.
9770         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9771         MOSTLYCLEANFILES.
9772         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9773
9774 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9775
9776         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9777         is not declared as a const *; avoid warnings in that case.
9778
9779 2010-04-28  Eric Blake  <eblake@redhat.com>
9780
9781         canonicalize-lgpl: avoid compiler warning
9782         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9783         declaration' / 'extraneous semicolon' warning with some compilers.
9784         Reported by Andreas Gruenbacher.
9785
9786 2010-04-28  Jim Meyering  <meyering@redhat.com>
9787
9788         init.sh: ensure a more reliable exit status when exiting via trap
9789         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9790         Inspired by patches from Dmitry V. Levin.
9791         Also trap on signal 3 (SIGQUIT).
9792
9793 2010-04-27  Bruno Haible  <bruno@clisp.org>
9794
9795         Update doc about utimes().
9796         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9797         'utimens' module.
9798         Reported by Andreas Gruenbacher <agruen@suse.de>.
9799
9800 2010-04-27  Eric Blake  <eblake@redhat.com>
9801
9802         full-read, full-write: relax license
9803         * modules/full-read (License): Drop to LGPLv2+.
9804         * modules/full-write (License): Likewise.
9805         * modules/safe-read (License): Likewise.
9806         * modules/safe-write (License): Likewise.
9807
9808         pthread: mention library for linking
9809         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9810
9811 2010-04-27  Jim Meyering  <meyering@redhat.com>
9812
9813         maint.mk: fix a bug introduced in last change
9814         * top/maint.mk (gl_assured_headers_): Now that all names are on
9815         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9816         is not anchored to end of word, it should be adequate.
9817
9818         maint.mk: avoid side-effect in latest syntax-check
9819         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9820         to run commands via $(shell...), and hence to incur cost only when
9821         the new rule is actually run.
9822
9823         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9824         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9825         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9826         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9827         (gl_assured_headers_, az_, AZ_): Define.
9828         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9829
9830 2010-04-26  Jim Meyering  <jim@meyering.net>
9831             Bruno Haible  <bruno@clisp.org>
9832
9833         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9834         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9835         Prompted by an exchange with Gilles Espinasse.
9836
9837 2010-04-26  Jim Meyering  <meyering@redhat.com>
9838
9839         git-version-gen: aesthetic tweak
9840         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9841         so that the command remains on a single line.
9842
9843 2010-04-26  Eric Blake  <eblake@redhat.com>
9844
9845         git-version-gen: allow use on EBCDIC hosts
9846         * build-aux/git-version-gen (dirty): Use literal rather than tying
9847         ourselves to ascii.
9848         Reported by Steve Goetze.
9849
9850 2010-04-25  Bruno Haible  <bruno@clisp.org>
9851
9852         netdb: Add support for GNULIB_POSIXCHECK.
9853         * lib/netdb.in.h: Include warn-on-use.h.
9854         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9855         functions are used when GNULIB_POSIXCHECK is defined and the
9856         getaddrinfo module is not in use.
9857         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9858         freeaddrinfo, gai_strerror, getnameinfo are declared.
9859         * modules/netdb (Depends-on): Add warn-on-use.
9860         (Makefile.am): Include warn-on-use.h in netdb.h.
9861
9862 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9863
9864         build: avoid "make check" failure without .git/ directory
9865         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9866         there is no .git/ directory.
9867
9868 2010-04-25  Bruno Haible  <bruno@clisp.org>
9869
9870         ptsname: Fix misuse of ttyname_r.
9871         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9872         of errno.
9873
9874 2010-04-25  Bruno Haible  <bruno@clisp.org>
9875
9876         ttyname_r: Make it work on Solaris 10.
9877         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9878         if the system function has the POSIX declaration. Test whether the
9879         function fails if the buffer is less than 128 bytes large.
9880         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9881         system's ttyname_r function. Provide a reasonably large buffer.
9882         * modules/ttyname_r (Depends-on): Add extensions.
9883         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9884
9885 2010-04-25  Bruno Haible  <bruno@clisp.org>
9886
9887         Use the 'extensions' module for some more functions on Solaris.
9888         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9889         module.
9890         * doc/posix-functions/ctime_r.texi: Likewise.
9891         * doc/posix-functions/getgrgid_r.texi: Likewise.
9892         * doc/posix-functions/getgrnam_r.texi: Likewise.
9893         * doc/posix-functions/getpwnam_r.texi: Likewise.
9894         * doc/posix-functions/getpwuid_r.texi: Likewise.
9895         * doc/posix-functions/readdir_r.texi: Likewise.
9896         * doc/posix-functions/sigwait.texi: Likewise.
9897         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9898         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9899
9900 2010-04-25  Bruno Haible  <bruno@clisp.org>
9901
9902         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9904         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9905         * lib/ttyname_r.c: Include <limits.h>.
9906         (ttyname_r): Define using the system's ttyname_r function, if it exists
9907         and not on Solaris.
9908         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9909         set.
9910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9911         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9912         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9913         Reported by Simon Josefsson.
9914
9915 2010-04-25  Bruno Haible  <bruno@clisp.org>
9916
9917         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9918         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9919         * doc/posix-functions/ctime_r.texi: Likewise.
9920         * doc/posix-functions/getgrgid_r.texi: Likewise.
9921         * doc/posix-functions/getgrnam_r.texi: Likewise.
9922         * doc/posix-functions/getlogin_r.texi: Likewise.
9923         * doc/posix-functions/getpwnam_r.texi: Likewise.
9924         * doc/posix-functions/getpwuid_r.texi: Likewise.
9925         * doc/posix-functions/readdir_r.texi: Likewise.
9926         * doc/posix-functions/sigwait.texi: Likewise.
9927         * doc/posix-functions/ttyname_r.texi: Likewise.
9928         Reported by Simon Josefsson.
9929
9930 2010-04-25  Bruno Haible  <bruno@clisp.org>
9931
9932         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
9933         * gnulib-tool (func_usage): Document that --with-*-tests options apply
9934         also to --create-testdir.
9935         (func_acceptable): Don't consider the status of *-tests modules here.
9936         (func_modules_transitive_closure): Consider it here, before including a
9937         test module.
9938         (func_import, func_create_testdir): Set inc_all_direct_tests,
9939         inc_all_indirect_tests.
9940         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
9941         --create-testdir and --create-megatestdir.
9942
9943 2010-04-25  Bruno Haible  <bruno@clisp.org>
9944
9945         gnulib-tool: Add --without-*-tests options.
9946         * gnulib-tool (func_usage): Document the --without-*-tests options.
9947         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
9948         excl_unportable_tests): New variables.
9949         Fail if they are specified with --import or --update.
9950         (func_acceptable): Respect the excl_*_tests variables.
9951         (func_import): Set the excl_*_tests variables to empty.
9952
9953 2010-04-25  Simon Josefsson  <simon@josefsson.org>
9954             Bruno Haible  <bruno@clisp.org>
9955
9956         Work around a MacOS X 10.4 bug with openpty.
9957         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
9958         * tests/test-openpty.c (main): Close the master side explicitly.
9959
9960 2010-04-25  Bruno Haible  <bruno@clisp.org>
9961
9962         strnlen: Fix a C++ test error on MacOS X and Solaris.
9963         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
9964         the function is not declared.
9965         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
9966         Simon Josefsson.
9967
9968 2010-04-24  Bruno Haible  <bruno@clisp.org>
9969
9970         Avoid a gcc warning.
9971         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
9972         of correct type for %08lx directive.
9973         Reported by Eric Blake.
9974
9975 2010-04-24  Bruno Haible  <bruno@clisp.org>
9976
9977         vasnprintf: Correct errno value in case of out-of-memory.
9978         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9979         or sprintf. Use the errno value from SNPRINTF or sprintf.
9980         Reported by Ian Beckwith <ianb@erislabs.net>.
9981
9982 2010-04-24  Bruno Haible  <bruno@clisp.org>
9983
9984         ansi-c++-opt: Find correct compiler when cross-compiling.
9985         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9986         AC_CHECK_PROGS.
9987         Reported by Simon Josefsson.
9988
9989 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9990
9991         vc-list-files: Add support for subversion
9992         * build-aux/vc-list-files: Use "svn list" to generate the list of
9993         files controlled by subversion.
9994
9995 2010-04-23  Jim Meyering  <meyering@redhat.com>
9996
9997         vc-list-files tests: convert to use init.sh
9998         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9999         path_prepend_.
10000         Use Exit, not exit.
10001         Use skip_ rather than open coding it.
10002         Remove trap set-up and compare definitions.
10003         * tests/test-vc-list-files-git.sh: Likewise.
10004         * modules/vc-list-files-tests (Files): Add tests/init.sh.
10005
10006 2010-04-22  Simon Josefsson  <simon@josefsson.org>
10007
10008         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
10009         backup files.
10010
10011 2010-04-21  Simon Josefsson  <simon@josefsson.org>
10012
10013         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
10014
10015 2010-04-20  Eric Blake  <eblake@redhat.com>
10016
10017         tests: be robust to ignored SIGPIPE
10018         * tests/test-select-in.sh: Consume all output.
10019         * tests/test-lseek.sh: Check correct exit status, while avoiding
10020         EPIPE.
10021
10022 2010-04-20  Simon Josefsson  <simon@josefsson.org>
10023             Bruno Haible  <bruno@clisp.org>
10024
10025         visibility: Don't use -fvisibility if it leads to a warning.
10026         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
10027         yes, don't pretend that visibility works if it leads to a warning.
10028         Reported by Mike Gran <spk121@yahoo.com>.
10029
10030 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
10031
10032         * build-aux/bootstrap: Use "git -h" for testing for supported options
10033         instead of "git --help".  The short-form option only shows a summary,
10034         and doesn't layout the full man page.  Grep for the full option name
10035         in the summary, too.
10036
10037 2010-04-19  Bruno Haible  <bruno@clisp.org>
10038
10039         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
10040         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
10041         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
10042         mention of RELOCATABLE_STRIP.
10043         Reported by Sylvain Beucler <beuc@beuc.net>.
10044
10045 2010-04-19  Bruno Haible  <bruno@clisp.org>
10046
10047         * lib/diffseq.h: Fix typo in comment.
10048         Reported by Eric Blake.
10049
10050 2010-04-19  Bruno Haible  <bruno@clisp.org>
10051
10052         ioctl: Move autoconf macro to a .m4 file.
10053         * m4/ioctl.m4: New file, extracted from modules/ioctl.
10054         * modules/ioctl (Files): Add it.
10055         (configure.ac): Simply invoke gl_FUNC_IOCTL.
10056         Reported by Ian Beckwith <ianb@erislabs.net>.
10057
10058 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
10059             Bruno Haible  <bruno@clisp.org>
10060
10061         diffseq: Accommodate use-case with abstract arrays.
10062         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
10063         is not defined.
10064         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
10065         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
10066
10067 2010-04-18  Bruno Haible  <bruno@clisp.org>
10068
10069         * doc/posix-headers/stdbool.texi: More precise wording.
10070
10071 2010-04-17  Jim Meyering  <meyering@redhat.com>
10072
10073         maint.mk: use gnu-style indentation in an embedded perl script
10074         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
10075         Rename variable: s/two/last_two_bytes/
10076
10077 2010-04-16  Eric Blake  <eblake@redhat.com>
10078
10079         test-stdbool: skip test that fails with Solaris CC
10080         * tests/test-stdbool.c (f): Skip test that causes compilation
10081         error under buggy C++ compiler.
10082         * lib/stdbool.in.h: Document the limitation.
10083         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
10084
10085         setenv: allow compilation with C++
10086         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
10087         register keyword.
10088
10089         stdint: allow test to pass with C++
10090         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
10091
10092         getopt: allow compilation with C++
10093         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
10094         struct.
10095         * lib/getopt.c (_getopt_internal_r): Use correct type.
10096         Reported by Dagobert Michelson, via Joel E. Denny.
10097
10098 2010-04-16  Bruno Haible  <bruno@clisp.org>
10099
10100         Override netdb.h always.
10101         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
10102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10103         Reported by Ludovic Courtès <ludo@gnu.org>.
10104
10105 2010-04-15  Bruno Haible  <bruno@clisp.org>
10106
10107         openpty: Fix mistake from 2010-03-21.
10108         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10109         Reported by Simon Josefsson.
10110
10111 2010-04-15  Eric Blake  <eblake@redhat.com>
10112
10113         test-forkpty: fix expected signature
10114         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10115         Reported by Simon Josefsson.
10116
10117 2010-04-15  Jim Meyering  <meyering@redhat.com>
10118
10119         maint.mk: texinfo_suffix_re_: correct the default regexp
10120         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10121
10122         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10123         make it configurable via texinfo_suffix_re_.
10124
10125 2010-04-14  Eric Blake  <eblake@redhat.com>
10126
10127         strtok_r: relax license to LGPLv2+
10128         * modules/strtok_r (License): Relax license.
10129         Reported by Matthias Bolte.
10130
10131 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10132
10133         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10134         version 1.4.4 by default instead of requiring the libgcrypt
10135         version used during build.  This makes it possible to use the
10136         application with older but still binary compatible libgcrypt
10137         versions.
10138
10139 2010-04-13  Eric Blake  <eblake@redhat.com>
10140
10141         getopt-gnu: match recent glibc fixes and posix ruling
10142         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10143         '+' handling, when requesting extensions.
10144         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10145         'W;' handling.
10146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10147         * doc/posix-functions/getopt.texi (getopt): Document this.
10148         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10149         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10150         Likewise.
10151
10152         getopt: merge bug fixes from glibc
10153         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10154         diagnostics.  Honor '+:' correctly.  Reject ';'.
10155
10156         getopt-posix: detect MacOS bug
10157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10158         optind when missing a required argument.
10159         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10160         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10161         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10162         Likewise.
10163
10164         getopt-posix: avoid spurious failure on Solaris
10165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10166         an indicator that setting optind=1 is sufficient for reset.
10167
10168         getopt-posix: avoid spurious failure on FreeBSD
10169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10170         in POSIX mode, since the m4 test uses it.
10171
10172         gnulib-tool: silence warning on BSD sh
10173         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10174
10175 2010-04-13  Jim Meyering  <meyering@redhat.com>
10176
10177         doc: users.txt: GNU patch now uses gnulib
10178         * users.txt: Add patch.
10179
10180 2010-04-12  Jim Meyering  <meyering@redhat.com>
10181
10182         maint.mk: generate more concise timing data for syntax-check rules
10183         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
10184         " done" from each line that reports a syntax-check test duration.
10185
10186 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
10187
10188         git-version-gen: use "git update-index..." rather than "git status"
10189         * build-aux/git-version-gen: Use git update-index --refresh, not
10190         "git status".  With some versions of git, "git status" would fail
10191         to update the index and result in an unwarranted "-dirty" suffix.
10192
10193 2010-04-11  Jim Meyering  <meyering@redhat.com>
10194
10195         openat: correct formatting (no semantic change)
10196         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
10197         Suggested by Bruno Haible.
10198
10199 2010-04-11  Bruno Haible  <bruno@clisp.org>
10200
10201         Stricter declaration checking in testdirs.
10202         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10203         If for_tests is true, augment AM_CPPFLAGS to define
10204         GNULIB_STRICT_CHECKING.
10205         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
10206         GNULIB_STRICT_CHECKING is defined, verify that the function is
10207         declared.
10208
10209 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
10210             Bruno Haible  <bruno@clisp.org>
10211
10212         libunistring: Improve configure output.
10213         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
10214         Don't say "consider installing GNU libunistring" when checking again
10215         with libiconv.
10216
10217 2010-04-11  Bruno Haible  <bruno@clisp.org>
10218
10219         libunistring: Correct value of $LTLIBUNISTRING.
10220         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
10221         correct the value of $LTLIBUNISTRING.
10222
10223 2010-04-11  Bruno Haible  <bruno@clisp.org>
10224
10225         havelib: Add static libraries to LIBS in the right order.
10226         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
10227         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
10228
10229 2010-04-11  Bruno Haible  <bruno@clisp.org>
10230
10231         libunistring: Detect libunistring also when it depends on libiconv.
10232         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
10233         the second AC_LIB_HAVE_LINKFLAGS invocation.
10234
10235 2010-04-11  James Youngman  <jay@gnu.org>
10236
10237         close-stream: declare local scalars to be "const"
10238         * lib/close-stream.c (close_stream): Make boolean variables const
10239         to document the fact that we set but do not change them.
10240
10241 2010-04-11  Bruno Haible  <bruno@clisp.org>
10242
10243         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
10244
10245 2010-04-11  Jim Meyering  <meyering@redhat.com>
10246
10247         maint.mk: don't include dist-check.mk
10248         * top/maint.mk: Remove bogus include directive.
10249
10250         maint.mk: improve empty-line-at-EOF check
10251         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
10252         solution, rather than tail+Perl-based one.  The latter would read
10253         a few kilobytes from the end of each file, and did not handle empty
10254         files properly.
10255
10256         maint.mk: print the elapsed time for each syntax-check rule
10257         * top/maint.mk (sc_m_rules_): Save start time in a file.
10258         (sc_z_rules_): New rules: remove temp file and print elapsed time.
10259         (local-check): Interpose the .z rules
10260
10261 2010-04-11  Jim Meyering  <meyering@redhat.com>
10262
10263         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
10264         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
10265         empty file with one that ends in an empty line.
10266
10267 2010-04-10  Bruno Haible  <bruno@clisp.org>
10268
10269         mkdir: Make it work on mingw64.
10270         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
10271         * lib/mkdir.c: Update comment.
10272         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
10273
10274 2010-04-10  Bruno Haible  <bruno@clisp.org>
10275
10276         Don't override improved macro from newer autoconf.
10277         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
10278         autoconf >= 2.62.
10279         Reported by Joel E. Denny <jdenny@clemson.edu>.
10280
10281 2010-04-10  Jim Meyering  <meyering@redhat.com>
10282
10283         maint.mk: new syntax-check rule: prohibit empty lines at end of file
10284         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
10285
10286         maint.mk: correct a diagnostic
10287         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
10288         in diagnostic; now use $prohibit.
10289
10290 2010-04-10  Bruno Haible  <address@hidden>
10291
10292         fchownat: Fix a C++ test error on Solaris 8.
10293         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
10294         the function does not exist.
10295
10296 2010-04-10  Bruno Haible  <bruno@clisp.org>
10297
10298         vasnprintf: Add more tests.
10299         * tests/test-vasnprintf-posix.c: Include <errno.h>.
10300         (test_function): Test converting an invalid wide string.
10301
10302         vasnprintf: Correct handling of unconvertible wide string arguments.
10303         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
10304         VASNPRINTF.
10305         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
10306         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
10307         smaller than the expected maximum need for the directive. Set errno to
10308         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
10309         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
10310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
10311         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
10312         * modules/vasnprintf (Files): Add m4/printf.m4.
10313         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10314
10315 2010-04-10  Bruno Haible  <bruno@clisp.org>
10316
10317         vasnprintf: Fix crash in %ls directive.
10318         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
10319         string is passed as argument to %ls, with no precision and no width.
10320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10321
10322 2010-04-10  Bruno Haible  <bruno@clisp.org>
10323
10324         vasnprintf: Fix multiple test failures on mingw.
10325         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
10326         _snprintf, or snwprintf, not _snwprintf.
10327
10328 2010-04-10  Bruno Haible  <bruno@clisp.org>
10329
10330         write: Fix a C++ test error on mingw.
10331         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
10332
10333 2010-04-10  Bruno Haible  <bruno@clisp.org>
10334
10335         vasnprintf test: Reduce code duplication.
10336         * tests/test-vasnprintf.c (test_function): New function, extracted from
10337         test_vasnprintf.
10338         (test_vasnprintf, test_asnprintf): Invoke it.
10339
10340 2010-04-10  Bruno Haible  <bruno@clisp.org>
10341
10342         strnlen: Fix warning in C++ mode on MacOS X.
10343         * lib/string.in.h (strnlen): Use the modern idiom.
10344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
10345         defining strnlen as a macro already in <config.h>.
10346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10347         REPLACE_STRNLEN.
10348         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
10349         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10350
10351 2010-04-08  James Youngman  <jay@gnu.org>
10352
10353         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
10354         the example.
10355
10356 2010-04-09  Jim Meyering  <meyering@redhat.com>
10357
10358         maint.mk: print better diagnostic when there is no $(_hv_file)
10359         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
10360         announce that when $(_hv_file) (aka help-version) does not exist.
10361
10362         init.sh: run tr in the "C" locale to avoid multibyte interpretation
10363         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
10364         not try to interpret its random input bytes.  Jarno Rajahalme reported
10365         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
10366         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
10367         (mktempd_): Likewise, just in case.
10368
10369         ftruncate: add two years to projected module removal date: 2012
10370         * m4/ftruncate.m4: Adjust comments.
10371
10372         ftruncate: mark module as obsolete; even MinGW provides it, now
10373         * modules/ftruncate (Status): Obsolete.
10374         (Notice): Say that.
10375         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
10376         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
10377
10378 2010-04-08  Bruno Haible  <bruno@clisp.org>
10379
10380         Fix side effects from tests-related modules.
10381         * modules/dprintf-posix (Comment): New section.
10382         * modules/fprintf-posix (Comment): Likewise.
10383         * modules/obstack-printf-posix (Comment): Likewise.
10384         * modules/printf-posix (Comment): Likewise.
10385         * modules/snprintf-posix (Comment): Likewise.
10386         * modules/sprintf-posix (Comment): Likewise.
10387         * modules/vasnprintf-posix (Comment): Likewise.
10388         * modules/vasprintf-posix (Comment): Likewise.
10389         * modules/vdprintf-posix (Comment): Likewise.
10390         * modules/vfprintf-posix (Comment): Likewise.
10391         * modules/vprintf-posix (Comment): Likewise.
10392         * modules/vsnprintf-posix (Comment): Likewise.
10393         * modules/vsprintf-posix (Comment): Likewise.
10394         * modules/xprintf-posix (Comment): Likewise.
10395         * modules/xvasprintf-posix (Comment): Likewise.
10396         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
10397         * modules/floorf-tests (Depends-on): Likewise.
10398         * modules/round-tests (Depends-on): Likewise.
10399         * modules/roundf-tests (Depends-on): Likewise.
10400         * modules/trunc-tests (Depends-on): Likewise.
10401         * modules/truncf-tests (Depends-on): Likewise.
10402         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
10403         'fprintf-posix' module is not present.
10404         * tests/test-floorf2.c (check): Likewise.
10405         * tests/test-trunc2.c (check): Likewise.
10406         * tests/test-truncf2.c (check): Likewise.
10407         * tests/test-round2.c (equal): Likewise.
10408         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10409
10410 2010-04-07  Karl Berry  <karl@gnu.org>
10411
10412         * config/srclist.txt,
10413         * config/srclistvars.sh,
10414         * config/srclist-update: doc fixes.
10415
10416 2010-04-07  Jim Meyering  <meyering@redhat.com>
10417
10418         maint.mk: add a PATH crosschecking syntax-check rule
10419         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
10420         Useful if you use a test like the one in help-version (coreutils,
10421         diffutils, grep, gzip) that ensures $(VERSION) matches what is
10422         printed by prog --version.
10423
10424 2010-04-06  Bruno Haible  <bruno@clisp.org>
10425
10426         Fix link error on mingw.
10427         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
10428         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
10429
10430 2010-04-06  Bruno Haible  <bruno@clisp.org>
10431
10432         Assume rmdir exists.
10433         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
10434
10435 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
10436
10437         doc: update users.txt
10438         * users.txt: Add gcal.
10439
10440 2010-04-06  Jim Meyering  <meyering@redhat.com>
10441
10442         init.sh: simply unset TMPDIR rather than risking env -i
10443         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
10444         although it probably works fine on all Unix-based systems, some
10445         systems (Cygwin?) cannot tolerate a totally cleared environment.
10446         Suggestion from Eric Blake.
10447
10448 2010-04-06  Jim Meyering  <meyering@redhat.com>
10449
10450         init.sh: portability fix: use env's POSIX-specified -i option not -u
10451         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
10452         than unportable env -u.  Solaris 5.11's env lacks support for -u.
10453
10454 2010-04-05  Bruno Haible  <bruno@clisp.org>
10455
10456         btowc: Work around Cygwin 1.7.2 bug.
10457         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
10458         does not map NUL to 0.
10459         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
10460
10461 2010-04-05  Bruno Haible  <bruno@clisp.org>
10462
10463         Make the multithread modules work on Cygwin 1.7.2.
10464         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
10465         imported symbols can be declared weak, so that it returns "no" on
10466         Cygwin 1.7.2.
10467
10468 2010-04-05  Bruno Haible  <bruno@clisp.org>
10469
10470         Use the module 'strncat'.
10471         * modules/unistr/u8-strncat (Depends-on): Add strncat.
10472
10473         Tests for module 'strncat'.
10474         * modules/strncat-tests: New file.
10475         * tests/test-strncat.c: New file.
10476
10477         New module 'strncat'.
10478         * lib/string.in.h (strncat): New declaration.
10479         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
10480         * m4/strncat.m4: New file, based on m4/memchr.m4.
10481         * modules/strncat: New file.
10482         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
10483         is declared.
10484         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
10485         REPLACE_STRNCAT.
10486         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
10487         REPLACE_STRNCAT.
10488         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
10489         module.
10490         * tests/test-string-c++.cc: Check signature of strncat.
10491
10492 2010-04-05  Jim Meyering  <meyering@redhat.com>
10493
10494         xstrtoumax-tests: convert to use init.sh
10495         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
10496         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10497         Use Exit, not exit.
10498         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10499
10500         xstrtoimax-tests: convert to use init.sh
10501         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10502         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10503         Use Exit, not exit.
10504         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10505
10506 2010-04-05  Bruno Haible  <bruno@clisp.org>
10507
10508         sys_socket: Avoid #define replacements in C++ mode.
10509         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10510         warning to the function if possible, rather than #defining the symbol
10511         to a dysfunctional alias.
10512
10513 2010-04-05  Bruno Haible  <bruno@clisp.org>
10514
10515         fseeko: Fix C++ test error on mingw.
10516         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10517         gl_FUNC_FSEEKO.
10518         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10519         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10521         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10522
10523 2010-04-05  Bruno Haible  <bruno@clisp.org>
10524
10525         duplocale: Improve test output.
10526         * tests/test-duplocale.c (main): Print reason for skipped test.
10527
10528 2010-04-05  Bruno Haible  <bruno@clisp.org>
10529
10530         Assume rmdir exists.
10531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10532         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10533
10534 2010-04-05  Bruno Haible  <bruno@clisp.org>
10535
10536         Fix link error on Solaris 8 with cc.
10537         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10538
10539 2010-04-05  Bruno Haible  <bruno@clisp.org>
10540
10541         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10542         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10543
10544 2010-04-05  Bruno Haible  <bruno@clisp.org>
10545
10546         vasprintf: Update documentation.
10547         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10548
10549 2010-04-05  Bruno Haible  <bruno@clisp.org>
10550
10551         ptsname: Improve test.
10552         * tests/test-ptsname.c (main): Also try the various master names of BSD
10553         systems.
10554
10555 2010-04-05  Bruno Haible  <bruno@clisp.org>
10556
10557         memchr: Avoid a possible C++ test error.
10558         * lib/string.in.h (memchr): Provide declaration if function is missing.
10559         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10560         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10562         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10563
10564 2010-04-05  Bruno Haible  <bruno@clisp.org>
10565
10566         strtok_r: Improve idiom.
10567         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10568         AC_LIBOBJ is used.
10569
10570 2010-04-05  Bruno Haible  <bruno@clisp.org>
10571
10572         strdup: Improve idiom.
10573         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10574         AC_LIBOBJ is used.
10575         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10576         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10577         when AC_LIBOBJ is used.
10578
10579 2010-04-05  Bruno Haible  <bruno@clisp.org>
10580
10581         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10582         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10583         don't set REPLACE_MBSINIT to 1.
10584         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10585         don't set REPLACE_MBRTOWC to 1.
10586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10587         exist, don't set REPLACE_MBSRTOWCS to 1.
10588         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10589         exist, don't set REPLACE_MBSNRTOWCS to 1.
10590         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10591         don't set REPLACE_WCRTOMB to 1.
10592         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10593         exist, don't set REPLACE_WCSRTOMBS to 1.
10594         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10595         exist, don't set REPLACE_WCSNRTOMBS to 1.
10596
10597 2010-04-05  Bruno Haible  <bruno@clisp.org>
10598
10599         ldexpl: Improve idiom.
10600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10601         make sure to set HAVE_DECL_LDEXPL to 0.
10602
10603 2010-04-05  Jim Meyering  <meyering@redhat.com>
10604
10605         xstrtol-tests: convert to use init.sh
10606         * modules/xstrtol-tests (Files): Add tests/init.sh.
10607         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10608         Use Exit, not exit.
10609         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10610
10611         atexit-tests: convert to use init.sh
10612         * modules/atexit-tests (Files): Add tests/init.sh.
10613         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10614         Use Exit, not exit.
10615         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10616
10617         init.sh: fix typo
10618         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10619
10620         init.sh: make it easier for a test script to write to the tty, ...
10621         when using automake's parallel-tests mode.
10622         * tests/init.sh (stderr_fileno_): Define overridable variable.
10623         (warn_): New function, to use it.
10624         (fail_, skip_, framework_failure_): Use warn_.
10625
10626 2010-04-04  Bruno Haible  <bruno@clisp.org>
10627
10628         btowc: Avoid warning.
10629         * lib/btowc.c: Include <stdlib.h>.
10630         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10631
10632 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10633             Bruno Haible  <bruno@clisp.org>
10634
10635         wchar: Port to NetBSD 1.5.
10636         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10637         * lib/wctype.in.h (WEOF): Likewise.
10638
10639 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10640             Bruno Haible  <bruno@clisp.org>
10641
10642         Port extended stdio to NetBSD 1.5.
10643         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10644         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10645         older.
10646
10647 2010-04-04  Bruno Haible  <bruno@clisp.org>
10648
10649         string: Remove unused substitution.
10650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10651         HAVE_DECL_STRERROR.
10652         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10653
10654 2010-04-04  Bruno Haible  <bruno@clisp.org>
10655
10656         strtod: Avoid a possible C++ test error.
10657         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10658         set REPLACE_STRTOD.
10659
10660 2010-04-04  Bruno Haible  <bruno@clisp.org>
10661
10662         strerror: Update documentation.
10663         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10664
10665 2010-04-04  Bruno Haible  <bruno@clisp.org>
10666
10667         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10668         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10669         _GL_CXXALIAS_SYS_CAST.
10670
10671 2010-04-04  Bruno Haible  <bruno@clisp.org>
10672
10673         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10674         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10675         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10676         REPLACE_FREXPL to 1.
10677         * doc/posix-functions/frexpl.texi: Update documentation.
10678
10679 2010-04-04  Bruno Haible  <bruno@clisp.org>
10680
10681         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10682         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10683
10684 2010-04-04  Bruno Haible  <bruno@clisp.org>
10685
10686         Implement nanosleep for native Windows.
10687         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10688
10689 2010-04-04  Bruno Haible  <bruno@clisp.org>
10690
10691         math: Fix some C++ test errors on Solaris 8.
10692         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10693
10694 2010-04-04  Bruno Haible  <bruno@clisp.org>
10695
10696         math: Fix some C++ test errors on Cygwin.
10697         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10698         truncl): Provide declaration if the system does not have it.
10699         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10700         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10701         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10702         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10703         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10704         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10705         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10706         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10707         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10708         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10709         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10710         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10711         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10712         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10713         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10714         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10716         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10717         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10718         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10719         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10720         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10721
10722 2010-04-04  Bruno Haible  <bruno@clisp.org>
10723
10724         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10725         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10726         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10727         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10728         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10729         * m4/isinf.m4 (gl_ISINF): Likewise.
10730         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10731
10732 2010-04-04  Bruno Haible  <bruno@clisp.org>
10733
10734         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10735         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10736
10737 2010-04-04  Bruno Haible  <bruno@clisp.org>
10738
10739         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10740         * modules/tmpfile (configure.ac): Update.
10741
10742         tmpfile: Fix C++ test error on mingw.
10743         * lib/stdio.in.h (tmpfile): New declaration.
10744         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10745         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10746         * modules/tmpfile (Depends-on): Add stdio.
10747         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10748         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10749         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10750         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10751         REPLACE_TMPFILE.
10752         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10753
10754 2010-04-04  Bruno Haible  <bruno@clisp.org>
10755
10756         ioctl: Fix C++ test error on mingw.
10757         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10758         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10759         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10760
10761 2010-04-03  Bruno Haible  <bruno@clisp.org>
10762
10763         wcwidth: Fix C++ test error on mingw.
10764         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10766         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10767
10768 2010-04-03  Bruno Haible  <bruno@clisp.org>
10769
10770         nanosleep: Fix C++ test error on mingw.
10771         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10772         * lib/time.in.h (nanosleep): Use modern idiom.
10773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10774         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10775         REPLACE_NANOSLEEP to 1.
10776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10777         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10778
10779 2010-04-03  Bruno Haible  <bruno@clisp.org>
10780
10781         strptime: Fix C++ test error on mingw.
10782         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10783         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10784         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10785         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10786         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10787         not REPLACE_STRPTIME.
10788         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10789         REPLACE_STRPTIME.
10790
10791 2010-04-03  Bruno Haible  <bruno@clisp.org>
10792
10793         timegm: Fix C++ test error on mingw.
10794         * lib/time.in.h (timegm): Use modern idiom.
10795         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10796         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10798         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10799
10800 2010-04-03  Bruno Haible  <bruno@clisp.org>
10801
10802         timegm: Assume declaration if function exists.
10803         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10804         if it exists. Don't clobber ac_cv_func_timegm.
10805
10806 2010-04-03  Bruno Haible  <bruno@clisp.org>
10807
10808         time_r: Fix C++ test error on mingw.
10809         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10810         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10811         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10812         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10813         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10814
10815 2010-04-03  Bruno Haible  <bruno@clisp.org>
10816
10817         time_r: Minor updates.
10818         * modules/time_r (Description): Mention the provided functions.
10819         * lib/time_r.c: Don't include <string.h>.
10820         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10821         * doc/posix-functions/localtime_r.texi: Likewise.
10822
10823 2010-04-03  Bruno Haible  <bruno@clisp.org>
10824
10825         time: Fix regression introduced on 2010-03-08.
10826         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10827         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10828
10829 2010-04-03  Jim Meyering  <meyering@redhat.com>
10830
10831         maint.mk: don't silently disable project-specific syntax-check rules
10832         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10833         that they need to convert their project-specific syntax-check rules
10834         to use the new _sc_search_regexp.
10835
10836 2010-04-03  Bruno Haible  <bruno@clisp.org>
10837
10838         fchdir: Fix regression introduced on 2010-03-08.
10839         * lib/unistd.in.h (fchdir): Fix declaration.
10840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10842         REPLACE_FCHDIR.
10843         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10844         REPLACE_FCHDIR.
10845
10846 2010-04-03  Bruno Haible  <bruno@clisp.org>
10847
10848         getpagesize: Fix C++ test error on mingw.
10849         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10850         system does not declare the function.
10851         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10852         declared.
10853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10854         HAVE_DECL_GETPAGESIZE.
10855         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10856
10857 2010-04-03  Bruno Haible  <bruno@clisp.org>
10858
10859         stdio: Make C++ tests work on mingw.
10860         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10861         does not declare the function.
10862
10863 2010-04-03  Bruno Haible  <bruno@clisp.org>
10864
10865         ftello: Fix C++ test error on mingw.
10866         * lib/stdio.in.h (ftello): Use modern idiom.
10867         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10868         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10869         is missing and that it needs to be replaced.
10870         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10872         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10873
10874 2010-04-03  Bruno Haible  <bruno@clisp.org>
10875
10876         fseeko: Fix C++ test error on mingw.
10877         * lib/stdio.in.h (fseeko): Use modern idiom.
10878         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10880         is missing and that it needs to be replaced.
10881         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10883         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10884
10885 2010-04-03  Bruno Haible  <bruno@clisp.org>
10886
10887         mkstemp: Fix C++ test error on mingw.
10888         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10890         function is missing and that it needs to be replaced.
10891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10892         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10893
10894 2010-04-03  Bruno Haible  <bruno@clisp.org>
10895
10896         stpncpy: Fix C++ test error on mingw.
10897         * lib/string.in.h (stpncpy): Use modern idiom.
10898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10899         function is missing and that it needs to be replaced.
10900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10901         REPLACE_STPNCPY.
10902         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10903
10904 2010-04-03  Bruno Haible  <bruno@clisp.org>
10905
10906         sys_stat: Fix C++ test error on mingw.
10907         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10908         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10909
10910 2010-04-03  Bruno Haible  <bruno@clisp.org>
10911
10912         pty: Update doc.
10913         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10914
10915 2010-04-03  Bruno Haible  <bruno@clisp.org>
10916
10917         unistd: Fix C++ test error on mingw.
10918         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10919
10920 2010-04-03  Bruno Haible  <bruno@clisp.org>
10921
10922         Update doc regarding mingw.
10923         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10924         * doc/glibc-functions/login_tty.texi: Likewise.
10925         * doc/glibc-functions/forkpty.texi: Likewise.
10926
10927 2010-04-03  Bruno Haible  <bruno@clisp.org>
10928
10929         stdlib: Avoid compilation failure of c-strtold on mingw.
10930         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
10931
10932 2010-04-03  Bruno Haible  <bruno@clisp.org>
10933
10934         locale: Make C++ tests work on Cygwin and mingw.
10935         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10936         cannot provide the function.
10937         Reported by Simon Josefsson.
10938
10939 2010-04-03  Bruno Haible  <bruno@clisp.org>
10940
10941         localename: Port to MacOS X 10.6.
10942         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
10943         memory layout of the locales in MacOS X 10.6 as well.
10944         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
10945
10946 2010-04-02  Bruno Haible  <bruno@clisp.org>
10947
10948         gnulib-tool: Ensure that long-running tests are executed last.
10949         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
10950         running tests after the one for the other tests.
10951
10952 2010-04-02  Bruno Haible  <bruno@clisp.org>
10953
10954         gnulib-tool: Ensure the tests in the main directory are executed first.
10955         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
10956         start with the current directory.
10957
10958 2010-04-02  Bruno Haible  <bruno@clisp.org>
10959
10960         Tests for module 'havelib', moved here from GNU gettext.
10961         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
10962         modifications.
10963         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
10964         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
10965         with modifications.
10966         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
10967         modifications.
10968         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
10969         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
10970         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
10971         with modifications.
10972         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10973         with modifications.
10974         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10975         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10976         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10977         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10978         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10979         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10980         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10981         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10982         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10983         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10984         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10985         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10986         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10987         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10988         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10989         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10990         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10991         with modifications.
10992         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10993         with modifications.
10994         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10995         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10996         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10997         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10998         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10999         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
11000         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
11001         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
11002         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
11003         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
11004         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
11005         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
11006         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
11007         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
11008         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
11009         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
11010         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
11011         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
11012         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
11013         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
11014         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
11015         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
11016         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
11017         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
11018         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
11019         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
11020         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
11021         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
11022         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
11023         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
11024         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
11025         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
11026         * tests/havelib/rpathx/rpathx.c: New file, from
11027         gettext/autoconf-lib-link.
11028         * tests/havelib/rpathx/Makefile.am: New file, from
11029         gettext/autoconf-lib-link.
11030         * tests/havelib/rpathx/configure.ac: New file, from
11031         gettext/autoconf-lib-link with modifications.
11032         * tests/havelib/rpathy/rpathy.c: New file, from
11033         gettext/autoconf-lib-link.
11034         * tests/havelib/rpathy/Makefile.am: New file, from
11035         gettext/autoconf-lib-link.
11036         * tests/havelib/rpathy/configure.ac: New file, from
11037         gettext/autoconf-lib-link with modifications.
11038         * tests/havelib/rpathz/rpathz.c: New file, from
11039         gettext/autoconf-lib-link.
11040         * tests/havelib/rpathz/Makefile.am: New file, from
11041         gettext/autoconf-lib-link.
11042         * tests/havelib/rpathz/configure.ac: New file, from
11043         gettext/autoconf-lib-link with modifications.
11044         * tests/havelib/rpathlx/usex.c: New file, from
11045         gettext/autoconf-lib-link.
11046         * tests/havelib/rpathlx/Makefile.am: New file, from
11047         gettext/autoconf-lib-link.
11048         * tests/havelib/rpathlx/configure.ac: New file, from
11049         gettext/autoconf-lib-link with modifications.
11050         * tests/havelib/rpathly/usey.c: New file, from
11051         gettext/autoconf-lib-link.
11052         * tests/havelib/rpathly/Makefile.am: New file, from
11053         gettext/autoconf-lib-link.
11054         * tests/havelib/rpathly/configure.ac: New file, from
11055         gettext/autoconf-lib-link with modifications.
11056         * tests/havelib/rpathlz/usez.c: New file, from
11057         gettext/autoconf-lib-link.
11058         * tests/havelib/rpathlz/Makefile.am: New file, from
11059         gettext/autoconf-lib-link.
11060         * tests/havelib/rpathlz/configure.ac: New file, from
11061         gettext/autoconf-lib-link with modifications.
11062         * tests/havelib/rpathlyx/usey.c: New file, from
11063         gettext/autoconf-lib-link.
11064         * tests/havelib/rpathlyx/Makefile.am: New file, from
11065         gettext/autoconf-lib-link.
11066         * tests/havelib/rpathlyx/configure.ac: New file, from
11067         gettext/autoconf-lib-link with modifications.
11068         * tests/havelib/rpathlzyx/usez.c: New file, from
11069         gettext/autoconf-lib-link.
11070         * tests/havelib/rpathlzyx/Makefile.am: New file, from
11071         gettext/autoconf-lib-link.
11072         * tests/havelib/rpathlzyx/configure.ac: New file, from
11073         gettext/autoconf-lib-link with modifications.
11074         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
11075         with modifications.
11076
11077 2010-04-02  Bruno Haible  <bruno@clisp.org>
11078
11079         gnulib-tool: Create distributed built sources also for the tests.
11080         * gnulib-tool (func_create_testdir): Also generate distributed built
11081         sources in the tests directory.
11082
11083 2010-04-02  Bruno Haible  <bruno@clisp.org>
11084
11085         gnulib-tool: Obey user's environment variables.
11086         * gnulib-tool (func_create_testdir): When creating built sources,
11087         respect the environment variables for autoconf, automake, etc. given by
11088         the user.
11089
11090 2010-04-02  Bruno Haible  <bruno@clisp.org>
11091
11092         gnulib-tool: Provide the value of --m4-base to modules.
11093         * gnulib-tool (func_import, func_create_testdir): Emit a definition
11094         of gl_m4_base.
11095
11096 2010-04-02  Eric Blake  <eblake@redhat.com>
11097
11098         maint.mk: fix some fallout
11099         * NEWS: Document the incompatible change, and its effect on cfg.mk.
11100         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
11101
11102 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11103
11104         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11105         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11106         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11107         (sc_cast_of_x_alloc_return_value): Likewise.
11108         (sc_cast_of_alloca_return_value): Likewise.
11109         (sc_space_tab): Likewise.
11110         (sc_prohibit_atoi_atof): Likewise.
11111         (sc_prohibit_magic_number_exit): Likewise.
11112         (sc_error_exit_success): Likewise.
11113         (sc_file_system): Likewise.
11114         (sc_prohibit_have_config_h): Likewise.
11115         (sc_require_config_h): Likewise.
11116         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11117         (sc_obsolete_symbols): Likewise.
11118         (sc_changelog): Likewise.
11119         (sc_program_name): Likewise.
11120         (sc_the_the): Likewise.
11121         (sc_trailing_blank): Likewise.
11122         (sc_two_space_separator_in_usage): Likewise.
11123         (sc_useless_cpp_parens): Likewise.
11124         (sc_GPL_version): Likewise.
11125         (sc_GFDL_version): Likewise.
11126         (sc_texinfo_acronym): Likewise.
11127         (sc_prohibit_cvs_keyword): Likewise.
11128         (sc_prohibit_stat_st_blocks): Likewise.
11129         (sc_prohibit_S_IS_definition): Likewise.
11130         (sc_redundant_const): Likewise.
11131         (sc_makefile_TAB_only_indentation): Likewise.
11132         (sc_m4_quote_check): Likewise.
11133         (sc_makefile_path_separator_check): Likewise.
11134         (sc_copyright_check): Likewise.
11135         (sc_Wundef_boolean): Likewise.
11136         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11137
11138         maint.mk: match 0 or more whitespace-before-function-call '('
11139         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11140         that have zero or two-and-more spaces between the function name
11141         and the open parenthesis.
11142         (sc_error_message_warn_fatal): Likewise.
11143         (sc_error_message_uppercase): Likewise.
11144         (sc_error_message_period): Likewise.
11145
11146 2010-03-31  Eric Blake  <eblake@redhat.com>
11147
11148         maint.mk: check for [ as well as test
11149         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11150         Based on a libvirt report by Matthias Bolte.
11151
11152         gnumakefile: don't squelch _version output
11153         * top/GNUmakefile (_version): Create one-shot dependency rather
11154         than using $(shell) when version must be regenerated.
11155         (_autoreconf): Run verbosely, by default.
11156
11157         sys_time: avoid compiler warnings
11158         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11159         unconditional, fixing regression from 2010-03-29.
11160         Reported by Simon Josefsson.
11161
11162 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11163
11164         maint.mk: s/_header_without_use/_sc_header_without_use/
11165         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11166         (sc_prohibit_assert_without_use): Use the new name.
11167         (sc_prohibit_close_stream_without_use): Likewise.
11168         (sc_prohibit_getopt_without_use): Likewise.
11169         (sc_prohibit_quotearg_without_use): Likewise.
11170         (sc_prohibit_quote_without_use): Likewise.
11171         (sc_prohibit_long_options_without_use): Likewise.
11172         (sc_prohibit_inttostr_without_use): Likewise.
11173         (sc_prohibit_ignore_value_without_use): Likewise.
11174         (sc_prohibit_error_without_use): Likewise.
11175         (sc_prohibit_xalloc_without_use): Likewise.
11176         (sc_prohibit_hash_without_use): Likewise.
11177         (sc_prohibit_hash_pjw_without_use): Likewise.
11178         (sc_prohibit_safe_read_without_use): Likewise.
11179         (sc_prohibit_argmatch_without_use): Likewise.
11180         (sc_prohibit_canonicalize_without_use): Likewise.
11181         (sc_prohibit_root_dev_ino_without_use): Likewise.
11182         (sc_prohibit_openat_without_use): Likewise.
11183         (sc_prohibit_c_ctype_without_use): Likewise.
11184         (sc_prohibit_signal_without_use): Likewise.
11185         (sc_prohibit_intprops_without_use): Likewise.
11186
11187 2010-03-30  Eric Blake  <eblake@redhat.com>
11188
11189         maint: improve module indicators
11190         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
11191         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
11192         columns, and avoid extra macro expansion.
11193
11194         fdopendir: work around FreeBSD bug
11195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
11196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
11197         * modules/dirent (Makefile.am): Substitute it.
11198         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
11199         declaration.
11200         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
11201         fix.
11202         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11203
11204 2010-03-29  Bruno Haible  <bruno@clisp.org>
11205
11206         Emit #pragma system_header after the inclusion guard, not before.
11207         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
11208         guard that spans the entire file, not before. This enables an
11209         optimization in GCC's preprocessor.
11210         * lib/ctype.in.h: Likewise.
11211         * lib/dirent.in.h: Likewise.
11212         * lib/errno.in.h: Likewise.
11213         * lib/float.in.h: Likewise.
11214         * lib/getopt.in.h: Likewise.
11215         * lib/iconv.in.h: Likewise.
11216         * lib/langinfo.in.h: Likewise.
11217         * lib/locale.in.h: Likewise.
11218         * lib/math.in.h: Likewise.
11219         * lib/netdb.in.h: Likewise.
11220         * lib/netinet_in.in.h: Likewise.
11221         * lib/pty.in.h: Likewise.
11222         * lib/sched.in.h: Likewise.
11223         * lib/se-selinux.in.h: Likewise.
11224         * lib/search.in.h: Likewise.
11225         * lib/spawn.in.h: Likewise.
11226         * lib/stdarg.in.h: Likewise.
11227         * lib/stdint.in.h: Likewise.
11228         * lib/string.in.h: Likewise.
11229         * lib/strings.in.h: Likewise.
11230         * lib/sys_file.in.h: Likewise.
11231         * lib/sys_ioctl.in.h: Likewise.
11232         * lib/sys_time.in.h: Likewise.
11233         * lib/sys_times.in.h: Likewise.
11234         * lib/sys_utsname.in.h: Likewise.
11235         * lib/sys_wait.in.h: Likewise.
11236         * lib/sysexits.in.h: Likewise.
11237         * lib/wctype.in.h: Likewise.
11238
11239 2010-03-28  James Youngman  <jay@gnu.org>
11240
11241         save-cwd: don't leak a file descriptor when the caller execs.
11242         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
11243         saved file descriptor.
11244         * modules/save-cwd (Depends-on): Depend on cloexec.
11245
11246 2010-03-29  Bruno Haible  <bruno@clisp.org>
11247
11248         Remove vestiges of fts-lgpl module.
11249         * lib/fts_.h: Assume GNULIB_FTS is 1.
11250         * lib/fts.c: Likewise.
11251         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11252
11253 2010-03-28  Bruno Haible  <bruno@clisp.org>
11254
11255         Fix definition of tests witness macro.
11256         * gnulib-tool (func_import): Fix definition of witness macro.
11257
11258 2010-03-28  Bruno Haible  <bruno@clisp.org>
11259
11260         Fix ioctl's protoype on glibc systems.
11261         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
11262         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
11263         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
11264         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
11265         signature. If not, arrange to replace the ioctl function.
11266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11267         REPLACE_IOCTL.
11268         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
11269         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
11270         Reported by Ludovic Courtès <ludo@gnu.org>.
11271
11272 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
11273
11274         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
11275         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
11276         made it so grep -r --include=GLOB* ... did not work.
11277
11278 2010-03-26  Jim Meyering  <meyering@redhat.com>
11279             Eric Blake  <eblake@redhat.com>
11280
11281         maint.mk: prohibit use of test's -o and -a operators
11282         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
11283
11284 2010-03-28  Bruno Haible  <bruno@clisp.org>
11285
11286         Remove unused GNULIB_XYZ macro definitions.
11287         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
11288         invocation.
11289
11290 2010-03-28  Bruno Haible  <bruno@clisp.org>
11291
11292         Mark privileged tests modules.
11293         * modules/idpriv-drop-tests (Status): New section.
11294         * modules/idpriv-droptemp-tests (Status): New section.
11295
11296 2010-03-28  Bruno Haible  <bruno@clisp.org>
11297
11298         Split C++ tests into separate tests modules.
11299         * modules/dirent-c++-tests: New file, extracted from
11300         modules/dirent-tests.
11301         * modules/dirent-tests: Depend on it.
11302         * modules/fcntl-h-c++-tests: New file, extracted from
11303         modules/fcntl-h-tests.
11304         * modules/fcntl-h-tests: Depend on it.
11305         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11306         * modules/glob-tests: Depend on it.
11307         * modules/iconv-h-c++-tests: New file, extracted from
11308         modules/iconv-h-tests.
11309         * modules/iconv-h-tests: Depend on it.
11310         * modules/langinfo-c++-tests: New file, extracted from
11311         modules/langinfo-tests.
11312         * modules/langinfo-tests: Depend on it.
11313         * modules/locale-c++-tests: New file, extracted from
11314         modules/locale-tests.
11315         * modules/locale-tests: Depend on it.
11316         * modules/math-c++-tests: New file, extracted from modules/math-tests.
11317         * modules/math-tests: Depend on it.
11318         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
11319         * modules/pty-tests: Depend on it.
11320         * modules/search-c++-tests: New file, extracted from
11321         modules/search-tests.
11322         * modules/search-tests: Depend on it.
11323         * modules/signal-c++-tests: New file, extracted from
11324         modules/signal-tests.
11325         * modules/signal-tests: Depend on it.
11326         * modules/spawn-c++-tests: New file, extracted from
11327         modules/spawn-tests.
11328         * modules/spawn-tests: Depend on it.
11329         * modules/stdio-c++-tests: New file, extracted from
11330         modules/stdio-tests.
11331         * modules/stdio-tests: Depend on it.
11332         * modules/stdlib-c++-tests: New file, extracted from
11333         modules/stdlib-tests.
11334         * modules/stdlib-tests: Depend on it.
11335         * modules/string-c++-tests: New file, extracted from
11336         modules/string-tests.
11337         * modules/string-tests: Depend on it.
11338         * modules/sys_ioctl-c++-tests: New file, extracted from
11339         modules/sys_ioctl-tests.
11340         * modules/sys_ioctl-tests: Depend on it.
11341         * modules/sys_select-c++-tests: New file, extracted from
11342         modules/sys_select-tests.
11343         * modules/sys_select-tests: Depend on it.
11344         * modules/sys_socket-c++-tests: New file, extracted from
11345         modules/sys_socket-tests.
11346         * modules/sys_socket-tests: Depend on it.
11347         * modules/sys_stat-c++-tests: New file, extracted from
11348         modules/sys_stat-tests.
11349         * modules/sys_stat-tests: Depend on it.
11350         * modules/sys_time-c++-tests: New file, extracted from
11351         modules/sys_time-tests.
11352         * modules/sys_time-tests: Depend on it.
11353         * modules/time-c++-tests: New file, extracted from modules/time-tests.
11354         * modules/time-tests: Depend on it.
11355         * modules/unistd-c++-tests: New file, extracted from
11356         modules/unistd-tests.
11357         * modules/unistd-tests: Depend on it.
11358         * modules/wchar-c++-tests: New file, extracted from
11359         modules/wchar-tests.
11360         * modules/wchar-tests: Depend on it.
11361         * modules/wctype-c++-tests: New file, extracted from
11362         modules/wctype-tests.
11363         * modules/wctype-tests: Depend on it.
11364         Reported by Simon Josefsson.
11365
11366 2010-03-28  Bruno Haible  <bruno@clisp.org>
11367
11368         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
11369         * gnulib-tool (func_exists_module): New function, extracted from
11370         func_verify_module.
11371         (func_verify_module): Use it.
11372         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
11373         'foo' only if 'foo' exists.
11374         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
11375         module.
11376
11377 2010-03-28  Bruno Haible  <bruno@clisp.org>
11378
11379         gnulib-tool: Add support for special categories of tests.
11380         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
11381         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
11382         (func_usage): Document them.
11383         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
11384         inc_unportable_tests, inc_all_tests): New variables.
11385         (func_acceptable): Consider these variables.
11386         (func_modules_transitive_closure): Make it work when the 'Status' field
11387         consists of multiple words.
11388         (func_import): Store and restore the values of inc_cxx_tests,
11389         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
11390         inc_all_tests in gnulib-comp.m4.
11391         (func_create_testdir): Set inc_all_tests to true.
11392         * doc/gnulib.texi (Extra tests modules): New section.
11393         Suggested by Jim Meyering.
11394
11395 2010-03-28  Bruno Haible  <bruno@clisp.org>
11396
11397         ansi-c++-opt: Allow turning off the C++ build by default.
11398         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
11399         gl_CXX_CHOICE_DEFAULT_NO is defined.
11400         Requested by Eric Blake.
11401
11402 2010-03-28  Bruno Haible  <bruno@clisp.org>
11403
11404         unistd: Avoid #define replacements in C++ mode.
11405         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11406         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11407         setsockopt, shutdown, select): In C++, attach a warning to the function
11408         if possible, rather than #defining the symbol to a dysfunctional alias.
11409         Reported by John W. Eaton <jwe@gnu.org>.
11410
11411 2010-03-28  Bruno Haible  <bruno@clisp.org>
11412
11413         Fix link errors on mingw.
11414         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
11415         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
11416         $(LIBSOCKET).
11417         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
11418         $(LIBSOCKET).
11419
11420 2010-03-28  Bruno Haible  <bruno@clisp.org>
11421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11422
11423         lib-ignore: Determine different options for different compilers.
11424         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
11425         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
11426         Add comments.
11427         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
11428         * NEWS: Mention the change.
11429
11430 2010-03-27  Bruno Haible  <bruno@clisp.org>
11431
11432         Remove unused GNULIB_XYZ macro definitions.
11433         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11434         * modules/fseek (configure.ac): Likewise.
11435         * modules/ioctl (configure.ac): Likewise.
11436         * modules/open (configure.ac): Likewise.
11437         * modules/stdlib-safer (configure.ac): Likewise.
11438
11439 2010-03-27  Bruno Haible  <bruno@clisp.org>
11440
11441         Add a remark about certain modules.
11442         * modules/malloc (Comment): New section.
11443         * modules/realloc (Comment): Likewise.
11444         * modules/sigpipe (Comment): Likewise.
11445
11446 2010-03-27  Bruno Haible  <bruno@clisp.org>
11447
11448         Resolve conflict between the two kinds of module indicators.
11449         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
11450         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
11451         * modules/canonicalize (configure.ac): Invoke
11452         gl_MODULE_INDICATOR_FOR_TESTS.
11453         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
11454         GNULIB_XYZ.
11455         * tests/test-dirent-c++.cc: Likewise.
11456         * tests/test-dirent-safer.c: Likewise.
11457         * tests/test-dup2.c: Likewise.
11458         * tests/test-fchdir.c: Likewise.
11459         * tests/test-fcntl-h-c++.cc: Likewise.
11460         * tests/test-getopt.c: Likewise.
11461         * tests/test-getopt.h: Likewise.
11462         * tests/test-langinfo-c++.cc: Likewise.
11463         * tests/test-locale-c++.cc: Likewise.
11464         * tests/test-math-c++.cc: Likewise.
11465         * tests/test-pty-c++.cc: Likewise.
11466         * tests/test-search-c++.cc: Likewise.
11467         * tests/test-signal-c++.cc: Likewise.
11468         * tests/test-spawn-c++.cc: Likewise.
11469         * tests/test-stdio-c++.cc: Likewise.
11470         * tests/test-stdlib-c++.cc: Likewise.
11471         * tests/test-string-c++.cc: Likewise.
11472         * tests/test-sys_ioctl-c++.cc: Likewise.
11473         * tests/test-sys_select-c++.cc: Likewise.
11474         * tests/test-sys_socket-c++.cc: Likewise.
11475         * tests/test-sys_stat-c++.cc: Likewise.
11476         * tests/test-sys_time-c++.cc: Likewise.
11477         * tests/test-time-c++.cc: Likewise.
11478         * tests/test-unistd-c++.cc: Likewise.
11479         * tests/test-wchar-c++.cc: Likewise.
11480         * tests/uninorm/test-u8-nfc.c: Likewise.
11481         * tests/uninorm/test-u8-nfd.c: Likewise.
11482         * tests/uninorm/test-u8-nfkc.c: Likewise.
11483         * tests/uninorm/test-u8-nfkd.c: Likewise.
11484         * tests/uninorm/test-u16-nfc.c: Likewise.
11485         * tests/uninorm/test-u16-nfd.c: Likewise.
11486         * tests/uninorm/test-u16-nfkc.c: Likewise.
11487         * tests/uninorm/test-u16-nfkd.c: Likewise.
11488         * tests/uninorm/test-u32-nfc.c: Likewise.
11489         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11490         * tests/uninorm/test-u32-nfd.c: Likewise.
11491         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11492         * tests/uninorm/test-u32-nfkc.c: Likewise.
11493         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11494         * tests/uninorm/test-u32-nfkd.c: Likewise.
11495         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11496         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11497
11498 2010-03-27  Bruno Haible  <bruno@clisp.org>
11499
11500         Distinguish two kinds of module indicators.
11501         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11502         gl_MODULE_INDICATOR.
11503         (gl_MODULE_INDICATOR): New macro.
11504         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11505         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11506         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11507         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11508         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11509         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11510         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11511         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11512         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11513         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11514         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11515         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11518         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11519         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11520         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11521         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11522         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11523         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11524         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11525         * modules/cloexec (configure.ac): Likewise.
11526         * modules/getopt-gnu (configure.ac): Likewise.
11527         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11528         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11529         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11530         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11531
11532 2010-03-27  Bruno Haible  <bruno@clisp.org>
11533
11534         New module description field 'Comment'.
11535         * gnulib-tool: New option --extract-comment.
11536         (func_usage): Document it.
11537         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11538         (func_get_comment): New function.
11539         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11540
11541 2010-03-27  Bruno Haible  <bruno@clisp.org>
11542
11543         Addendum to 2010-02-07 commit.
11544         * gnulib-tool (func_usage): Document --extract-applicability option.
11545
11546 2010-03-27  Bruno Haible  <bruno@clisp.org>
11547
11548         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11549         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11550         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11551         rather than link errors.
11552
11553 2010-03-27  Bruno Haible  <bruno@clisp.org>
11554
11555         Avoid side effects from tests-related modules on the compilation of lib.
11556         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11557         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11558         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11559         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11560         macro.
11561         (func_import): Define a witness macro. Assign it a value that depends
11562         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11563         tests-related modules.
11564         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11565         Reported by Jim Meyering.
11566
11567 2010-03-27  Bruno Haible  <bruno@clisp.org>
11568
11569         Factorize common .m4 code.
11570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11571         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11572         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11573         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11574         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11575         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11576         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11577         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11578         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11579         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11580         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11581         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11582         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11583         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11584         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11585         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11586         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11587         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11589         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11590         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11594         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11595         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11596         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11598         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11599         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11600         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11601         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11602
11603 2010-03-27  Bruno Haible  <bruno@clisp.org>
11604
11605         Fix a compilation error on Cygwin with g++ >= 4.3.
11606         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11607         if it is undefined or if we alias it to chmod.
11608         (lstat): Don't warn about the use of this function if it is undefined
11609         or if we alias it to stat.
11610         Reported by Simon Josefsson.
11611
11612 2010-03-27  Bruno Haible  <bruno@clisp.org>
11613
11614         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11615         * modules/getlogin (configure.ac): Update.
11616
11617         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11618         * modules/getlogin_r (configure.ac): Update.
11619
11620         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11622         * modules/inet_ntop (configure.ac): Update.
11623
11624         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11625         * modules/inet_pton (configure.ac): Update.
11626
11627         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11628         * modules/mbslen (configure.ac): Update.
11629
11630         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11631         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11632         * modules/forkpty (configure.ac): Update.
11633         * modules/openpty (configure.ac): Update.
11634
11635 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11636
11637         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11638         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11639
11640 2010-03-25  Eric Blake  <eblake@redhat.com>
11641
11642         maint: use pragma consistently across replacement headers
11643         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11644         * lib/dirent.in.h (system_header): Likewise.
11645         * lib/errno.in.h (system_header): Likewise.
11646         * lib/float.in.h (system_header): Likewise.
11647         * lib/getopt.in.h (system_header): Likewise.
11648         * lib/iconv.in.h (system_header): Likewise.
11649         * lib/inttypes.in.h (system_header): Likewise.
11650         * lib/langinfo.in.h (system_header): Likewise.
11651         * lib/locale.in.h (system_header): Likewise.
11652         * lib/math.in.h (system_header): Likewise.
11653         * lib/netdb.in.h (system_header): Likewise.
11654         * lib/netinet_in.in.h (system_header): Likewise.
11655         * lib/pty.in.h (system_header): Likewise.
11656         * lib/sched.in.h (system_header): Likewise.
11657         * lib/se-selinux.in.h (system_header): Likewise.
11658         * lib/search.in.h (system_header): Likewise.
11659         * lib/spawn.in.h (system_header): Likewise.
11660         * lib/stdarg.in.h (system_header): Likewise.
11661         * lib/stdint.in.h (system_header): Likewise.
11662         * lib/string.in.h (system_header): Likewise.
11663         * lib/strings.in.h (system_header): Likewise.
11664         * lib/sys_file.in.h (system_header): Likewise.
11665         * lib/sys_ioctl.in.h (system_header): Likewise.
11666         * lib/sys_socket.in.h (system_header): Likewise.
11667         * lib/sys_times.in.h (system_header): Likewise.
11668         * lib/sys_utsname.in.h (system_header): Likewise.
11669         * lib/sys_wait.in.h (system_header): Likewise.
11670         * lib/sysexits.in.h (system_header): Likewise.
11671         * lib/unistd.in.h (system_header): Likewise.
11672         * lib/wctype.in.h (system_header): Likewise.
11673
11674         arpa/inet: fix mingw compilation warning
11675         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11676         Reported by Matthew Bolte.
11677
11678 2010-03-25  Bruno Haible  <bruno@clisp.org>
11679
11680         Avoid collision between gnulib wrapper and libintl wrapper.
11681         * lib/printf.c (printf): Don't define if a printf wrapper is already
11682         defined in intl/printf.c.
11683         Reported by Michel Boaventura <michel@michelboaventura.com>.
11684
11685 2010-03-25  Bruno Haible  <bruno@clisp.org>
11686
11687         Use ANSI C.
11688         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11689
11690 2010-03-25  Bruno Haible  <bruno@clisp.org>
11691
11692         Minor formatting changes.
11693         * lib/acosl.c: Insert space before function argument list.
11694         * lib/argz.c: Likewise.
11695         * lib/asinl.c: Likewise.
11696         * lib/expl.c: Likewise.
11697         * lib/gen-uni-tables.c: Likewise.
11698         * lib/gettext.h: Likewise.
11699         * lib/glthread/lock.h: Likewise.
11700         * lib/tanl.c: Likewise.
11701         * lib/uniname/uniname.c: Likewise.
11702         * tests/test-idpriv-drop.c: Likewise.
11703         * tests/test-idpriv-droptemp.c: Likewise.
11704         * tests/test-lock.c: Likewise.
11705         * tests/test-tls.c: Likewise.
11706         * lib/argp-help.c: Insert space before function-like macro argument
11707         list.
11708         * lib/memcmp.c: Likewise.
11709         * tests/test-base64.c: Likewise.
11710         * lib/localename.c: Insert space before sizeof's argument list.
11711         * lib/safe-alloc.h: Likewise.
11712         * lib/file-set.h: Insert space before macro argument list.
11713         * tests/test-argp.c: Likewise.
11714         * lib/argp-namefrob.h: Insert space before function parameter list.
11715         * lib/getaddrinfo.c: Likewise.
11716         * lib/netdb.in.h: Likewise.
11717         * lib/parse-duration.h: Likewise.
11718         * lib/parse-duration.c: Likewise.
11719         * lib/poll.c: Likewise.
11720         * lib/select.c: Likewise.
11721         * lib/trim.h: Likewise.
11722         * tests/test-usleep.c: Likewise.
11723         * lib/ldexpl.c: Insert space before function parameter list and before
11724         function argument list.
11725         * lib/logl.c: Likewise.
11726         * lib/sqrtl.c: Likewise.
11727         * lib/trim.c: Likewise.
11728         * lib/cosl.c: Use GNU style indentation. Insert space before function
11729         argument list.
11730         * lib/sinl.c: Likewise.
11731         * lib/tsearch.c: Insert space after 'for'.
11732         Reported by Jim Meyering.
11733
11734 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11735
11736         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11737         config header before grepping, as it's not present before
11738         autoreconf/configure are run.  Reported by Simon Josefsson.
11739
11740 2010-03-23  Bruno Haible  <bruno@clisp.org>
11741
11742         pt_chown: Make it work with automake < 1.11.
11743         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11744         Reported by Simon Josefsson.
11745
11746 2010-03-23  Bruno Haible  <bruno@clisp.org>
11747
11748         pt_chown: Don't depend on GPLed modules.
11749         * lib/pt_chown.c: Don't include idpriv.h.
11750         (main): Don't drop privileges.
11751         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11752         Reported by Simon Josefsson.
11753
11754 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11755
11756         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11757         suggestions from karl@freefriends.org (Karl Berry).
11758
11759 2010-03-22  Eric Blake  <eblake@redhat.com>
11760
11761         gethostname: further tweaks
11762         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11763         are overriding gethostname.
11764         Suggested by Bruno Haible.
11765
11766 2010-03-21  Bruno Haible  <bruno@clisp.org>
11767
11768         Fix comments.
11769         * lib/forkpty.c (rpl_forkpty): Fix comment.
11770         * lib/openpty.c (rpl_openpty): Likewise.
11771         Reported by Eric Blake.
11772
11773 2010-03-22  Eric Blake  <eblake@redhat.com>
11774
11775         gethostname: fix build on mingw
11776         * lib/unistd.in.h (includes): Work around fact that mingw
11777         <winsock2.h> re-includes <unistd.h>, by avoiding any
11778         redeclarations if we are being included by <winsock2.h>.
11779         Reported by Matthias Bolte.
11780
11781 2010-03-21  Bruno Haible  <bruno@clisp.org>
11782
11783         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11784         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11785         modifications.
11786         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11787         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11788         provide the replacement.
11789         * modules/forkpty (Depends-on): Add openpty, login_tty.
11790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11791         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11792         * doc/glibc-functions/forkpty.texi: More supported platforms.
11793         * config/srclist.txt: Add forkpty.c (commented).
11794
11795 2010-03-21  Bruno Haible  <bruno@clisp.org>
11796
11797         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11798         (Makefile.am): Verify that PTY_LIB is defined.
11799
11800         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11801
11802 2010-03-21  Bruno Haible  <bruno@clisp.org>
11803
11804         Tests for module 'login_tty'.
11805         * modules/login_tty-tests: New file.
11806         * tests/test-login_tty.c: New file.
11807
11808         New module 'login_tty'.
11809         * lib/login_tty.c: New file.
11810         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11811         * modules/login_tty: New file.
11812         * doc/glibc-functions/login_tty.texi: Mention the new module.
11813
11814 2010-03-21  Bruno Haible  <bruno@clisp.org>
11815
11816         login_tty: Documentation.
11817         * doc/glibc-functions/login_tty.texi: New file.
11818         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11819
11820 2010-03-21  Bruno Haible  <bruno@clisp.org>
11821
11822         pty: Consistent macro naming.
11823         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11824         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11825         * modules/pty (configure.ac): Update.
11826
11827 2010-03-21  Bruno Haible  <bruno@clisp.org>
11828
11829         Tests for openpty: Make stricter.
11830         * tests/test-openpty.c (main): Add test of canonical processing and
11831         erase.
11832         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11833
11834         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11835         * lib/openpty.c (openpty): New replacement function.
11836         * lib/pty.in.h: Include <termios.h>.
11837         (openpty): Update declaration. Add comments.
11838         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11839         is not declared, arrange to provide the replacement. Check for _getpty
11840         and posix_openpt.
11841         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11842         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11843         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11844         * modules/pty-tests (test_pty_c___LDADD): New variable.
11845         * doc/glibc-functions/openpty.texi: More supported platforms.
11846
11847 2010-03-21  Bruno Haible  <bruno@clisp.org>
11848
11849         setenv: Tweaks.
11850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11851         the test program.
11852         * doc/posix-functions/setenv.texi: Update platforms list.
11853
11854 2010-03-21  Bruno Haible  <bruno@clisp.org>
11855
11856         New module 'unlockpt'.
11857         * lib/unlockpt.c: New file, from glibc with modifications.
11858         * m4/unlockpt.m4: New file.
11859         * modules/unlockpt: New file.
11860         * lib/stdlib.in.h (unlockpt): New declaration.
11861         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11862         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11863         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11864         HAVE_UNLOCKPT.
11865         * doc/posix-functions/unlockpt.texi: Mention the new module.
11866         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11867         * config/srclist.txt: Add unlockpt.c (commented).
11868
11869 2010-03-21  Jim Meyering  <meyering@redhat.com>
11870
11871         maint.mk: prohibit inclusion of "intprops.h" without use
11872         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11873
11874 2010-03-21  Bruno Haible  <bruno@clisp.org>
11875
11876         New module 'grantpt'.
11877         * lib/grantpt.c: New file, from glibc with modifications.
11878         * m4/grantpt.m4: New file.
11879         * modules/grantpt: New file.
11880         * lib/stdlib.in.h (grantpt): New declaration.
11881         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11882         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11883         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11884         HAVE_GRANTPT.
11885         * doc/posix-functions/grantpt.texi: Mention the new module.
11886         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11887         * config/srclist.txt: Add grantpt.c (commented).
11888
11889 2010-03-21  Bruno Haible  <bruno@clisp.org>
11890
11891         New module 'pt_chown'.
11892         * lib/pt_chown.c: New file, from glibc with modifications.
11893         * lib/pty-private.h: New file, from glibc with modifications.
11894         * modules/pt_chown: New file.
11895         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11896
11897 2010-03-21  Bruno Haible  <bruno@clisp.org>
11898
11899         Tests for module 'ptsname'.
11900         * modules/ptsname-tests: New file.
11901         * tests/test-ptsname.c: New file.
11902
11903         New module 'ptsname'.
11904         * lib/ptsname.c: New file, from glibc with modifications.
11905         * m4/ptsname.m4: New file.
11906         * modules/ptsname: New file.
11907         * lib/stdlib.in.h (ptsname): New declaration.
11908         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11909         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11910         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11911         HAVE_PTSNAME.
11912         * doc/posix-functions/ptsname.texi: Mention the new module.
11913         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11914         * config/srclist.txt: Add ptsname.c (commented).
11915
11916 2010-03-21  Bruno Haible  <bruno@clisp.org>
11917
11918         Tests for module 'ttyname_r'.
11919         * modules/ttyname_r-tests: New file.
11920         * tests/test-ttyname_r.c: New file.
11921
11922         New module 'ttyname_r'.
11923         * lib/ttyname_r.c: New file.
11924         * m4/ttyname_r.m4: New file.
11925         * modules/ttyname_r: New file.
11926         * lib/unistd.in.h (ttyname_r): New declaration.
11927         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11928         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
11929         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
11930         HAVE_TTYNAME_R.
11931         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
11932         * doc/posix-functions/ttyname_r.texi: Mention the new module.
11933
11934 2010-03-20  Bruno Haible  <bruno@clisp.org>
11935
11936         signal: Undefine macro definitions in C++ mode.
11937         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
11938         sigfillset): Undefine macro definitions from the system header in C++
11939         mode.
11940         Reported by John W. Eaton <jwe@gnu.org>.
11941
11942 2010-03-20  Bruno Haible  <bruno@clisp.org>
11943
11944         Ensure no #include statements inside extern "C" { ... }.
11945         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
11946         contain #include statements.
11947         * lib/time.in.h: Likewise.
11948
11949 2010-03-20  Bruno Haible  <bruno@clisp.org>
11950
11951         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
11952         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
11953         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
11954         Reported by John W. Eaton <jwe@gnu.org>.
11955
11956 2010-03-20  Bruno Haible  <bruno@clisp.org>
11957
11958         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
11959         Reported by Jim Meyering.
11960
11961 2010-03-20  Bruno Haible  <bruno@clisp.org>
11962
11963         pipe: Set errno upon failure.
11964         * lib/pipe.h: Specify that when -1 is returned, errno is set.
11965         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
11966         errno value in error message.
11967
11968 2010-03-20  Bruno Haible  <bruno@clisp.org>
11969             Jim Meyering  <meyering@redhat.com>
11970
11971         lchown: Avoid "unused variable" warning.
11972         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11973
11974 2010-03-20  Bruno Haible  <bruno@clisp.org>
11975
11976         Work around unlink() bug on MacOS X 10.5.6.
11977         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11978         attempting to unlink a parent directory.
11979         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11980         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11981         activate for the replacement function.
11982         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11983
11984 2010-03-20  Bruno Haible  <bruno@clisp.org>
11985
11986         Fix link errors on Solaris 8.
11987         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11988         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11989
11990 2010-03-19  Jim Meyering  <meyering@redhat.com>
11991
11992         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11993         The _LIBC implementation of build_range_exp correctly honors the
11994         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11995         However, the non-_LIBC implementation would ignore that syntax-bit
11996         flag and return REG_ERANGE unconditionally.
11997         This change makes it honor that flag.
11998         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11999         Make two pointer parameters "const".
12000         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
12001         (parse_bracket_exp): Update caller.
12002
12003         regex.m4: correct the reversed range endpoint ([b-a]) test
12004         * m4/regex.m4: When requiring that [b-a] evoke failure,
12005         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
12006         test pass once again for x86-based systems.
12007
12008 2010-03-19  Bruno Haible  <bruno@clisp.org>
12009
12010         scandir: Fix link error on Solaris 8.
12011         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
12012         macros.
12013
12014 2010-03-19  Bruno Haible  <bruno@clisp.org>
12015
12016         getusershell: Fix documentation.
12017         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
12018         module.
12019         * doc/glibc-functions/setusershell.texi: Likewise.
12020
12021         getusershell: Provide declaration, missing on Solaris 9.
12022         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
12023         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
12024         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
12025         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
12026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12027         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
12028         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
12029         HAVE_GETUSERSHELL.
12030         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
12031
12032 2010-03-19  Bruno Haible  <bruno@clisp.org>
12033
12034         wctype: Provide iswblank function.
12035         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
12036         exists and is fine.
12037         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
12038         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
12039         * tests/test-wctype.c (main): Re-enable the iswblank tests.
12040         * doc/posix-functions/iswblank.texi: Update.
12041
12042 2010-03-19  Bruno Haible  <bruno@clisp.org>
12043
12044         Tests of module 'pty' in C++ mode.
12045         * modules/pty-tests: New file.
12046         * tests/test-pty-c++.cc: New file.
12047         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12048
12049 2010-03-19  Eric Blake  <eblake@redhat.com>
12050
12051         logb: fix documentation
12052         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
12053         1.5 declaration bug.
12054
12055         forkpty, openpty: prefer glibc's const-safe prototype
12056         * lib/forkpty.c (rpl_forkpty): New file.
12057         * lib/openpty.c (rpl_openpty): Likewise.
12058         * modules/forkpty (Files): Distribute it.
12059         * modules/openpty (Files): Likewise.
12060         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
12061         check...
12062         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
12063         replacement for for non-const BSD signature.
12064         * modules/pty (Makefile.am): Substitute witnesses.
12065         * lib/pty.in.h (forkpty, openpty): Declare replacements.
12066         * tests/test-forkpty.c: Update signature check.
12067         * tests/test-openpty.c: Likewise.
12068         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
12069         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12070
12071         forkpty, openpty: split functions into new modules
12072         * modules/pty (Makefile.am): Substitute new witnesses.
12073         (Libraries): Move library detection...
12074         * modules/forkpty: ...into new module.
12075         * modules/openpty: Another new module.
12076         * modules/pty-tests: Rename and split...
12077         * modules/forkpty-tests: ...to this...
12078         * modules/openpty-tests: ...and this.
12079         * tests/test-pty.c: Rename and split...
12080         * tests/test-forkpty.c: ...to this...
12081         * tests/test-openpty.c: ...and this.
12082         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
12083         (gl_PTY): Split library searching...
12084         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
12085         (gl_FORKPTY, gl_OPENPTY): New macros.
12086         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
12087         * NEWS: Mention the split.
12088         * MODULES.html.sh (Misc): Document the modules.
12089         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
12090         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12091
12092         pty: improve replacement header
12093         * lib/pty.in.h: New file.
12094         * modules/pty (Files): Ship it.
12095         (Makefile.am): Always build replacement.
12096         * m4/pty.m4: Rename...
12097         * m4/pty_h.m4: ...to this.
12098         (gl_PTY): Modernize setting of witness macros; update check of
12099         forkpty to take proper advantage of cache.
12100         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
12101
12102         getopt: avoid compiler warning
12103         * lib/getopt.c (attribute_hidden): Remove unused macro.
12104
12105 2010-03-18  Bruno Haible  <bruno@clisp.org>
12106
12107         Fix link errors on Solaris 8.
12108         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12109         * modules/search-tests (test_search_c___LDADD): Likewise.
12110         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12111         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12112         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12113         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12114         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12115         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12116         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12117
12118 2010-03-18  Bruno Haible  <bruno@clisp.org>
12119
12120         Fix bug introduced on 2010-03-14.
12121         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12122         (gl_SPAWN_H): Require it.
12123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12124         Reported by Simon Josefsson.
12125
12126 2010-03-18  Bruno Haible  <bruno@clisp.org>
12127
12128         Fix typo introduced on 2009-12-31.
12129         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12130         posix_spawn_file_actions_adddup2.
12131
12132 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12133         and Eric Blake  <eblake@redhat.com>
12134
12135         test-vc-list-files-git: make more robust
12136         * tests/test-vc-list-files-git.sh: Unset problematic environment
12137         variables.  Chain commands together.
12138
12139 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12140
12141         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12142         `AC_CHECK_DECL' invocation.
12143
12144 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12145
12146         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12147         appears before executable statements. Suggested by Petr Sumbera
12148         <Petr.Sumbera@Sun.COM>.
12149
12150 2010-03-14  Bruno Haible  <bruno@clisp.org>
12151
12152         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12153         portability problems. Instead use a simpler test.
12154         (main): Check that invalid arguments are rejected only on Linux.
12155
12156 2010-03-14  Bruno Haible  <bruno@clisp.org>
12157
12158         Fix bug introduced on 2009-12-31.
12159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12160         gl_PREREQ_SYS_H_WINSOCK2 always.
12161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12162         SYS_SOCKET_H variable.
12163         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12164         Update comments.
12165         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12166         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12167         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12168         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12169         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12170
12171 2010-03-14  Bruno Haible  <bruno@clisp.org>
12172
12173         Fix values returned by sinl, cosl.
12174         * lib/trigl.h: Add specification comments.
12175         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12176         that combines the values from the precomputed table with the values of
12177         the Chebyshev polynomials.
12178
12179 2010-03-14  Bruno Haible  <bruno@clisp.org>
12180
12181         Fix compilation error when modules 'posix_spawn[p]' are not used.
12182         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
12183         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
12184
12185 2010-03-14  Bruno Haible  <bruno@clisp.org>
12186
12187         Fix compilation error on mingw when module 'time_r' is not used.
12188         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
12189         is 1.
12190         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
12191         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12192         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
12193         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
12194
12195 2010-03-14  Bruno Haible  <bruno@clisp.org>
12196
12197         Fix compilation error with Sun C.
12198         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
12199         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
12200         instead of GCC specific ULONG_LONG_MAX.
12201         * lib/xstrtoll.c: Likewise.
12202         * lib/xstrtoull.c: Likewise.
12203
12204 2010-03-13  Bruno Haible  <bruno@clisp.org>
12205
12206         Allow the user to disable C++ code and tests.
12207         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
12208         (gl_PROG_ANSI_CXX): Require it.
12209
12210 2010-03-13  Bruno Haible  <bruno@clisp.org>
12211
12212         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
12213         cases.
12214
12215 2010-03-13  Bruno Haible  <bruno@clisp.org>
12216
12217         Test that gnulib does not break the standard C++ headers.
12218         * tests/test-locale-c++2.cc: New file.
12219         * modules/locale-tests (Files): Add it.
12220         (Makefile.am): Compile it for test-locale-c++.
12221         * tests/test-math-c++2.cc: New file.
12222         * modules/math-tests (Files): Add it.
12223         (Makefile.am): Compile it for test-math-c++.
12224         * tests/test-signal-c++2.cc: New file.
12225         * modules/signal-tests (Files): Add it.
12226         (Makefile.am): Compile it for test-signal-c++.
12227         * tests/test-stdio-c++2.cc: New file.
12228         * modules/stdio-tests (Files): Add it.
12229         (Makefile.am): Compile it for test-stdio-c++.
12230         * tests/test-stdlib-c++2.cc: New file.
12231         * modules/stdlib-tests (Files): Add it.
12232         (Makefile.am): Compile it for test-stdlib-c++.
12233         * tests/test-string-c++2.cc: New file.
12234         * modules/string-tests (Files): Add it.
12235         (Makefile.am): Compile it for test-string-c++.
12236         * tests/test-time-c++2.cc: New file.
12237         * modules/time-tests (Files): Add it.
12238         (Makefile.am): Compile it for test-time-c++.
12239         Reported by John W. Eaton <jwe@gnu.org>.
12240
12241 2010-03-13  Bruno Haible  <bruno@clisp.org>
12242
12243         * gnulib-tool (func_usage): Clarify which options are available for
12244         --create-testdir and --create-megatestdir.
12245
12246 2010-03-13  Bruno Haible  <bruno@clisp.org>
12247
12248         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
12249         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
12250         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
12251         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12252         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
12253         when appropriate.
12254         Reported by Jim Meyering.
12255
12256 2010-03-12  Simon Josefsson  <simon@josefsson.org>
12257
12258         * gnulib-tool (func_import): Explain origin of code.
12259
12260 2010-03-12  Bruno Haible  <bruno@clisp.org>
12261
12262         Fix problem with automake's definition of CXXLINK.
12263         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
12264         Reported by Simon Josefsson and Ludovic Courtès.
12265
12266 2010-03-12  Bruno Haible  <bruno@clisp.org>
12267
12268         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
12269         stable releases.
12270
12271 2010-03-11  Bruno Haible  <bruno@clisp.org>
12272
12273         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
12274         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
12275         whether the system provides one variant or multiple variants of the
12276         function.
12277         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
12278         C++ compilers.
12279         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
12280         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
12281         Reported by Jim Meyering.
12282
12283 2010-03-09  Simon Josefsson  <simon@josefsson.org>
12284
12285         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
12286
12287 2010-03-08  Bruno Haible  <bruno@clisp.org>
12288
12289         gnulib-tool: Add support for --libtool in --create-testdir.
12290         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
12291         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
12292
12293 2010-03-08  Eric Blake  <eblake@redhat.com>
12294
12295         gnulib-tool.texi: mention possibility of git submodule
12296         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
12297         submodules.
12298         * doc/.gitignore: Ignore another generated file.
12299
12300 2010-03-08  Karl Berry  <karl@gnu.org>
12301
12302         * doc/gnulib-tool.texi (VCS Issues): Mention third option
12303         of committing gnulib files while skipping others.
12304
12305 2010-03-07  Bruno Haible  <bruno@clisp.org>
12306
12307         Tests of module 'wctype' in C++ mode.
12308         * tests/test-wctype-c++.cc: New file.
12309         * modules/wctype-tests (Files): Add it and tests/signature.h.
12310         (Depends-on): Add ansi-c++-opt.
12311         (Makefile.am): Arrange to compile and run test-wctype-c++.
12312
12313         Tests of module 'wchar' in C++ mode.
12314         * tests/test-wchar-c++.cc: New file.
12315         * modules/wchar-tests (Files): Add it and tests/signature.h.
12316         (Depends-on): Add ansi-c++-opt.
12317         (Makefile.am): Arrange to compile and run test-wchar-c++.
12318         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
12319         gl_MODULE_INDICATOR.
12320
12321         Tests of module 'unistd' in C++ mode.
12322         * tests/test-unistd-c++.cc: New file.
12323         * modules/unistd-tests (Files): Add it and tests/signature.h.
12324         (Depends-on): Add ansi-c++-opt.
12325         (Makefile.am): Arrange to compile and run test-unistd-c++.
12326         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
12327         gl_MODULE_INDICATOR.
12328
12329         Tests of module 'time' in C++ mode.
12330         * tests/test-time-c++.cc: New file.
12331         * modules/time-tests (Files): Add it and tests/signature.h.
12332         (Depends-on): Add ansi-c++-opt.
12333         (Makefile.am): Arrange to compile and run test-time-c++.
12334         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12335
12336         Tests of module 'sys_time' in C++ mode.
12337         * tests/test-sys_time-c++.cc: New file.
12338         * modules/sys_time-tests (Files): Add it and tests/signature.h.
12339         (Depends-on): Add ansi-c++-opt.
12340         (Makefile.am): Arrange to compile and run test-sys_time-c++.
12341         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
12342         gl_MODULE_INDICATOR.
12343
12344         Tests of module 'sys_stat' in C++ mode.
12345         * tests/test-sys_stat-c++.cc: New file.
12346         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
12347         (Depends-on): Add ansi-c++-opt.
12348         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
12349         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
12350         gl_MODULE_INDICATOR.
12351
12352         Tests of module 'sys_socket' in C++ mode.
12353         * tests/test-sys_socket-c++.cc: New file.
12354         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
12355         (Depends-on): Add ansi-c++-opt.
12356         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
12357         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
12358         gl_MODULE_INDICATOR.
12359
12360         Tests of module 'sys_select' in C++ mode.
12361         * tests/test-sys_select-c++.cc: New file.
12362         * modules/sys_select-tests (Files): Add it and tests/signature.h.
12363         (Depends-on): Add ansi-c++-opt.
12364         (Makefile.am): Arrange to compile and run test-sys_select-c++.
12365         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
12366         gl_MODULE_INDICATOR.
12367
12368         Tests of module 'sys_ioctl' in C++ mode.
12369         * tests/test-sys_ioctl-c++.cc: New file.
12370         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
12371         (Depends-on): Add ansi-c++-opt.
12372         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
12373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
12374         gl_MODULE_INDICATOR.
12375
12376         Tests of module 'string' in C++ mode.
12377         * tests/test-string-c++.cc: New file.
12378         * modules/string-tests (Files): Add it and tests/signature.h.
12379         (Depends-on): Add ansi-c++-opt.
12380         (Makefile.am): Arrange to compile and run test-string-c++.
12381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
12382         gl_MODULE_INDICATOR.
12383
12384         Tests of module 'stdlib' in C++ mode.
12385         * tests/test-stdlib-c++.cc: New file.
12386         * modules/stdlib-tests (Files): Add it and tests/signature.h.
12387         (Depends-on): Add ansi-c++-opt.
12388         (Makefile.am): Arrange to compile and run test-stdlib-c++.
12389         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
12390         gl_MODULE_INDICATOR.
12391
12392         Tests of module 'stdio' in C++ mode.
12393         * tests/test-stdio-c++.cc: New file.
12394         * modules/stdio-tests (Files): Add it and tests/signature.h.
12395         (Depends-on): Add ansi-c++-opt.
12396         (Makefile.am): Arrange to compile and run test-stdio-c++.
12397         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
12398         gl_MODULE_INDICATOR.
12399
12400         Tests of module 'spawn' in C++ mode.
12401         * tests/test-spawn-c++.cc: New file.
12402         * modules/spawn-tests (Files): Add it and tests/signature.h.
12403         (Depends-on): Add ansi-c++-opt.
12404         (Makefile.am): Arrange to compile and run test-spawn-c++.
12405         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
12406         gl_MODULE_INDICATOR.
12407
12408         Tests of module 'signal' in C++ mode.
12409         * tests/test-signal-c++.cc: New file.
12410         * modules/signal-tests (Files): Add it and tests/signature.h.
12411         (Depends-on): Add ansi-c++-opt.
12412         (Makefile.am): Arrange to compile and run test-signal-c++.
12413         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
12414         gl_MODULE_INDICATOR.
12415
12416         Tests of module 'search' in C++ mode.
12417         * tests/test-search-c++.cc: New file.
12418         * modules/search-tests (Files): Add it and tests/signature.h.
12419         (Depends-on): Add ansi-c++-opt.
12420         (Makefile.am): Arrange to compile and run test-search-c++.
12421         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
12422         gl_MODULE_INDICATOR.
12423
12424         Tests of module 'math' in C++ mode.
12425         * tests/test-math-c++.cc: New file.
12426         * modules/math-tests (Files): Add it and tests/signature.h.
12427         (Depends-on): Add ansi-c++-opt.
12428         (Makefile.am): Arrange to compile and run test-math-c++.
12429         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12430
12431         Tests of module 'locale' in C++ mode.
12432         * tests/test-locale-c++.cc: New file.
12433         * modules/locale-tests (Files): Add it and tests/signature.h.
12434         (Depends-on): Add ansi-c++-opt.
12435         (Makefile.am): Arrange to compile and run test-locale-c++.
12436         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
12437         gl_MODULE_INDICATOR.
12438
12439         Tests of module 'langinfo' in C++ mode.
12440         * tests/test-langinfo-c++.cc: New file.
12441         * modules/langinfo-tests (Files): Add it and tests/signature.h.
12442         (Depends-on): Add ansi-c++-opt.
12443         (Makefile.am): Arrange to compile and run test-langinfo-c++.
12444         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
12445         gl_MODULE_INDICATOR.
12446
12447         Tests of module 'iconv-h' in C++ mode.
12448         * tests/test-iconv-h-c++.cc: New file.
12449         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
12450         (Depends-on): Add ansi-c++-opt.
12451         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
12452
12453         Tests of module 'glob' in C++ mode.
12454         * tests/test-glob-c++.cc: New file.
12455         * modules/glob-tests (Files): Add it.
12456         (Depends-on): Add ansi-c++-opt.
12457         (Makefile.am): Arrange to compile and run test-glob-c++.
12458
12459         Tests of module 'fcntl-h' in C++ mode.
12460         * tests/test-fcntl-h-c++.cc: New file.
12461         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
12462         (Depends-on): Add ansi-c++-opt.
12463         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
12464         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
12465         gl_MODULE_INDICATOR.
12466
12467         Tests of module 'dirent' in C++ mode.
12468         * tests/test-dirent-c++.cc: New file.
12469         * modules/dirent-tests (Files): Add it and tests/signature.h.
12470         (Depends-on): Add ansi-c++-opt.
12471         (Makefile.am): Arrange to compile and run test-dirent-c++.
12472         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12473         gl_MODULE_INDICATOR.
12474
12475         New module 'ansi-c++-opt'.
12476         * modules/ansi-c++-opt: New file.
12477         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
12478
12479         Document C++ namespace mode.
12480         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
12481
12482         wctype: Avoid #define replacements in C++ mode.
12483         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
12484         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
12485         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
12486         In C++, define a namespaced alias symbol.
12487         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
12488         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
12489         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
12490         rule.
12491
12492         wchar: Avoid #define replacements in C++ mode.
12493         * lib/wchar.in.h: Include c++defs.h.
12494         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
12495         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
12496         symbol.
12497         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12498         * modules/wchar (Depends-on): Add c++defs.
12499         (Makefile.am): Update wchar.h rule.
12500
12501         unistd: Avoid #define replacements in C++ mode.
12502         * lib/unistd.in.h: Include c++defs.h.
12503         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12504         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12505         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12506         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12507         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12508         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12509         symbol.
12510         (environ): Update.
12511         * modules/unistd (Depends-on): Add c++defs.
12512         (Makefile.am): Update unistd.h rule.
12513
12514         time: Avoid #define replacements in C++ mode.
12515         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12516         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12517         define a namespaced alias symbol.
12518         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12519         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12520         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12521         * modules/time (Depends-on): Add c++defs, warn-on-use.
12522         (Makefile.am): Update time.h rule.
12523         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12524         * modules/nanosleep (configure.ac): Likewise.
12525         * modules/strptime (configure.ac): Likewise.
12526         * modules/timegm (configure.ac): Likewise.
12527
12528         sys_time: Avoid #define replacements in C++ mode.
12529         * lib/sys_time.in.h: Include c++defs.h.
12530         (gettimeofday): In C++, define a namespaced alias symbol.
12531         * modules/sys_time (Depends-on): Add c++defs.
12532         (Makefile.am): Update sys/time.h rule.
12533
12534         sys_stat: Avoid #define replacements in C++ mode.
12535         * lib/sys_stat.in.h: Include c++defs.h.
12536         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12537         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12538         namespaced alias symbol.
12539         In C++, define a namespaced alias symbol.
12540         * modules/sys_stat (Depends-on): Add c++defs.
12541         (Makefile.am): Update sys/stat.h rule.
12542
12543         sys_socket: Avoid #define replacements in C++ mode.
12544         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12545         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12546         definitions also when the system has a <sys/socket.h>.
12547         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12548         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12549         In C++, define a namespaced alias symbol.
12550         * modules/sys_socket (Depends-on): Add c++defs.
12551         (Makefile.am): Update sys/socket.h rule.
12552
12553         sys_select: Avoid #define replacements in C++ mode.
12554         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12555         definitions also when the system has a <sys/select.h>.
12556         (select): In C++, define a namespaced alias symbol.
12557         * modules/sys_select (Depends-on): Add c++defs.
12558         (Makefile.am): Update sys/select.h rule.
12559
12560         sys_ioctl: Avoid #define replacements in C++ mode.
12561         * lib/sys_ioctl.in.h: Include c++defs.h.
12562         (ioctl): In C++, define a namespaced alias symbol.
12563         * modules/sys_ioctl (Depends-on): Add c++defs.
12564         (Makefile.am): Update sys/ioctl.h rule.
12565
12566         string: Avoid #define replacements in C++ mode.
12567         * lib/string.in.h: Include c++defs.h.
12568         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12569         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12570         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12571         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12572         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12573         * modules/string (Depends-on): Add c++defs.
12574         (Makefile.am): Update string.h rule.
12575
12576         stdlib: Avoid #define replacements in C++ mode.
12577         * lib/stdlib.in.h: Include c++defs.h.
12578         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12579         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12580         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12581         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12582         symbol.
12583         * modules/stdlib (Depends-on): Add c++defs.
12584         (Makefile.am): Update stdlib.h rule.
12585
12586         stdio: Avoid #define replacements in C++ mode.
12587         * lib/stdio.in.h: Include c++defs.h.
12588         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12589         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12590         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12591         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12592         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12593         namespaced alias symbol.
12594         * modules/stdio (Depends-on): Add c++defs.
12595         (Makefile.am): Update stdio.h rule.
12596
12597         spawn: Avoid #define replacements in C++ mode.
12598         * lib/spawn.in.h: Include c++defs.h.
12599         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12600         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12601         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12602         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12603         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12604         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12605         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12606         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12607         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12608         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12609         In C++, define a namespaced alias symbol.
12610         * modules/spawn (Depends-on): Add c++defs.
12611         (Makefile.am): Update spawn.h rule.
12612
12613         signal: Avoid #define replacements in C++ mode.
12614         * lib/signal.in.h: Include c++defs.h.
12615         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12616         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12617         namespaced alias symbol.
12618         * modules/signal (Depends-on): Add c++defs.
12619         (Makefile.am): Update signal.h rule.
12620
12621         search: Avoid #define replacements in C++ mode.
12622         * lib/search.in.h: Include c++defs.h.
12623         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12624         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12625         symbol.
12626         * modules/search (Depends-on): Add c++defs.
12627         (Makefile.am): Update search.h rule.
12628
12629         math: Avoid #define replacements in C++ mode.
12630         * lib/math.in.h: Include c++defs.h.
12631         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12632         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12633         trunc, truncl): In C++, define a namespaced alias symbol.
12634         * modules/math (Depends-on): Add c++defs.
12635         (Makefile.am): Update math.h rule.
12636
12637         locale: Avoid #define replacements in C++ mode.
12638         * lib/locale.in.h: Include c++defs.h.
12639         (duplocale): In C++, define a namespaced alias symbol.
12640         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12641         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12642         * modules/locale (Depends-on): Add c++defs.
12643         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12644
12645         langinfo: Avoid #define replacements in C++ mode.
12646         * lib/langinfo.in.h: Include c++defs.h.
12647         (nl_langinfo): In C++, define a namespaced alias symbol.
12648         * modules/langinfo (Depends-on): Add c++defs.
12649         (Makefile.am): Update langinfo.h rule.
12650
12651         iconv-h: Avoid #define replacements in C++ mode.
12652         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12653         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12654         symbol.
12655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12656         whenever iconv is present.
12657         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12658         (Makefile.am): Update iconv.h rule.
12659
12660         glob: Avoid #define replacements in C++ mode.
12661         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12662         (_gl_glob_errfunc_fn): New type.
12663         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12664         symbol.
12665         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12666         (Makefile.am): Update glob.h rule.
12667
12668         fcntl-h: Avoid #define replacements in C++ mode.
12669         * lib/fcntl.in.h: Include c++defs.h.
12670         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12671         * modules/fcntl-h (Depends-on): Add c++defs.
12672         (Makefile.am): Update fcntl.h rule.
12673
12674         dirent: Avoid #define replacements in C++ mode.
12675         * lib/dirent.in.h: Include c++defs.h.
12676         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12677         namespaced alias symbol.
12678         (dirfd): Update declaration.
12679         * modules/dirent (Depends-on): Add c++defs.
12680         (Makefile.am): Update dirent.h rule.
12681
12682         ctype: Make it usable in C++ code.
12683         * lib/ctype.in.h: Include c++defs.h.
12684         (isblank): Declare as extern "C".
12685         * modules/ctype (Depends-on): Add c++defs.
12686         (Makefile.am): Update ctype.h rule.
12687
12688         New module 'c++defs'.
12689         * modules/c++defs: New file.
12690         * build-aux/c++defs.h: New file.
12691         Reported by John W. Eaton <jwe@gnu.org>.
12692
12693 2010-03-07  Bruno Haible  <bruno@clisp.org>
12694
12695         logb: Provide missing declaration for Cygwin.
12696         * lib/math.in.h (logb): New declaration.
12697         * m4/logb.m4: New file.
12698         * modules/logb (Files): Add m4/logb.m4.
12699         (Depends-on): Add math.
12700         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12701         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12703         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12704         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12705
12706 2010-03-07  Bruno Haible  <bruno@clisp.org>
12707
12708         Fix test-cond link error.
12709         * tests/test-cond.c: Include <stdio.h>.
12710
12711 2010-03-07  Bruno Haible  <bruno@clisp.org>
12712
12713         Fix test-dirent-safer link error.
12714         * modules/dirent-safer-tests (Makefile.am): Define
12715         test_dirent_safer_LDADD.
12716
12717 2010-03-07  Bruno Haible  <bruno@clisp.org>
12718
12719         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12720         among default module list.
12721
12722 2010-03-07  Bruno Haible  <bruno@clisp.org>
12723
12724         Fix link error on platforms with GNU libiconv.
12725         * modules/unistr/u8-strcoll-tests (Makefile): Define
12726         test_u8_strcoll_LDADD.
12727         * modules/unistr/u16-strcoll-tests (Makefile): Define
12728         test_u16_strcoll_LDADD.
12729         * modules/unistr/u32-strcoll-tests (Makefile): Define
12730         test_u32_strcoll_LDADD.
12731
12732 2010-03-07  Bruno Haible  <bruno@clisp.org>
12733
12734         Use POSIX declarations for socket functions.
12735         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12736         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12737         rpl_sendto): Change declaration to match POSIX.
12738         * lib/connect.c (rpl_connect): Likewise.
12739         * lib/accept.c (rpl_accept): Likewise.
12740         * lib/bind.c (rpl_bind): Likewise.
12741         * lib/getpeername.c (rpl_getpeername): Likewise.
12742         * lib/getsockname.c (rpl_getsockname): Likewise.
12743         * lib/recv.c (rpl_recv): Likewise.
12744         * lib/send.c (rpl_send): Likewise.
12745         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12746         * lib/sendto.c (rpl_sendto): Likewise.
12747
12748 2010-03-06  Bruno Haible  <bruno@clisp.org>
12749
12750         Clarify access, euidaccess, faccessat.
12751         * doc/posix-functions/faccessat.texi: Mention security problem under
12752         "Other problems", not "Portability problems".
12753         * doc/posix-functions/access.texi: Likewise. Mention a related security
12754         problem.
12755         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12756         * lib/euidaccess.c: Add comments about platforms.
12757         * lib/unistd.in.h (access, euidaccess): Add warnings.
12758
12759 2010-03-07  Bruno Haible  <bruno@clisp.org>
12760
12761         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12762         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12763         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12764         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12765         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12766         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12767         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12768         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12769         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12770         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12771         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12772         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12773         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12774         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12775         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12776         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12777         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12778         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12779         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12780         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12781         Likewise.
12782         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12783         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12784         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12785         Likewise.
12786         * tests/test-spawn.c (main): Make it work when
12787         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12788
12789 2010-03-07  Bruno Haible  <bruno@clisp.org>
12790
12791         Fix incorrect Makefile.am generation in German locale.
12792         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12793         Execute sed command with character range in C locale.
12794
12795 2010-03-06  Bruno Haible  <bruno@clisp.org>
12796
12797         Tests for module 'iconv-h'.
12798         * modules/iconv-h-tests: New file.
12799         * tests/test-iconv-h.c: New file.
12800
12801         New module 'iconv-h'.
12802         * modules/iconv-h: New file.
12803         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12804         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12805         (configure.ac): Remove gl_ICONV_H.
12806         (Makefile.am): Remove rule for iconv.h.
12807
12808 2010-03-06  Bruno Haible  <bruno@clisp.org>
12809
12810         More consistent naming of *.m4 files.
12811         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12812         * modules/wctype (Files): Update.
12813
12814         More consistent naming of *.m4 files.
12815         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12816         * modules/wchar (Files): Update.
12817
12818 2010-03-06  Jim Meyering  <meyering@redhat.com>
12819
12820         euidaccess: relax license to LGPLv2+
12821         * modules/euidaccess (License): Relax to LGPLv2+.
12822
12823 2010-03-06  Bruno Haible  <bruno@clisp.org>
12824
12825         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12826         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12827         (Makefile.am): Augment lib_SOURCES instead.
12828
12829 2010-03-04  Jim Meyering  <meyering@redhat.com>
12830
12831         utime: remove obsolete module
12832         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12833         unnecessary for years, and has been marked as obsolete for 10 months.
12834         * modules/utime: Remove file.
12835         * lib/utime.c: Remove file.
12836         * m4/utime.m4: Remove file.
12837         * m4/utimes-null.m4: Remove file.
12838         * doc/posix-functions/utime.texi (utime): Remove reference to
12839         the module.  Move the sole "fixed by gnulib" item into the
12840         "problems not fixed by Gnulib" list.
12841         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12842
12843 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12844
12845         * modules/exit (License): Relax license to LGPLv2+.
12846         (Status): Mark as obsolete.
12847         * NEWS: Mention deprecated 'exit' module.
12848         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12849         of now obsolete 'exit'.
12850
12851 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12852
12853         fts-lgpl: remove unused module
12854         * modules/fts-lgpl: Remove.
12855         * MODULES.html.sh (func_all_modules): Adjust.
12856         * check-module (find_included_lib_files): Adjust.
12857         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12858
12859 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12860
12861         copy-acl: enhance Solaris ACL error handling
12862         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12863         * lib/set-mode-acl.c (qset_acl): Likewise.
12864
12865 2010-03-02  Bruno Haible  <bruno@clisp.org>
12866
12867         spawn: Don't override the system defined values on FreeBSD 8.
12868         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12869         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12870         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12871         if HAVE_POSIX_SPAWN is 1.
12872         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12873
12874 2010-03-01  Bruno Haible  <bruno@clisp.org>
12875
12876         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12877         regarding Automake.
12878
12879 2010-02-25  Bruno Haible  <bruno@clisp.org>
12880
12881         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12882         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12883         setting, not afterwards.
12884         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12885
12886 2010-02-24  Eric Blake  <eblake@redhat.com>
12887
12888         bootstrap, git-version-gen: use timestamp
12889         * build-aux/git-version-gen (scriptversion): Force UTC.
12890         * build-aux/bootstrap (scriptversion): New variable.
12891
12892         bootstrap: allow older git
12893         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12894         older than 1.6.4.  Requested by the libvirt project.
12895
12896 2010-02-23  Eric Blake  <eblake@redhat.com>
12897
12898         warn-on-use: work with old autoconf
12899         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12900         AS_VAR semantics of autoconf 2.60.
12901         Reported by Bruno Haible.
12902
12903         bootstrap: improve some comments
12904         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12905         clarification comments.
12906
12907         gettimeofday: provide correct function
12908         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12909         when replacement is declared, otherwise provide gettimeofday.
12910         Reported by Michael Goffioul.
12911
12912 2010-02-23  Jim Meyering  <meyering@redhat.com>
12913
12914         lib-ignore: relax license to "unlimited", not LGPLv2+
12915         * modules/lib-ignore (License): Relax to "unlimited".
12916
12917 2010-02-23  Jim Meyering  <meyering@redhat.com>
12918
12919         lib-ignore: relax license to LGPLv2+
12920         * modules/lib-ignore (License): Relax to LGPLv2+.
12921
12922 2010-02-22  Eric Blake  <eblake@redhat.com>
12923
12924         lseek: avoid bash 3.2 broken pipe bug
12925         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12926         warning from bash 3.2.
12927         Reported by Ben Pfaff, with analysis from Bruno Haible.
12928
12929         bootstrap: support non-FSF copyright holder
12930         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
12931         bootstrap.conf override of COPYRIGHT_HOLDER.
12932         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12933
12934         bootstrap: interoperate with gettext 0.14.1
12935         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
12936
12937         bootstrap: allow for alternate submodule location
12938         * build-aux/bootstrap (gnulib_path): New variable; use instead of
12939         hardcoding submodule location.
12940         (gnulib_mk): Allow direct use of Makefile.am.
12941
12942         bootstrap: use GNULIB_SRCDIR to reduce disk usage
12943         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
12944         rather than reconfiguring where the submodule points.
12945
12946         gettimeofday: restore support for platforms that lack function
12947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
12948         replacement if function is missing.
12949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
12950         * modules/sys_time (Makefile.am): Substitute it.
12951         * lib/sys_time.in.h (gettimeofday): Check it.
12952         Reported by Michael Goffioul.
12953
12954 2010-02-21  Bruno Haible  <bruno@clisp.org>
12955
12956         * lib/stdio.in.h (obstack_printf): Fix typo.
12957
12958 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
12959
12960         vc-list-files: use bzr ls's -R option
12961         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
12962         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
12963
12964 2010-02-21  Jim Meyering  <meyering@redhat.com>
12965
12966         init.sh: fix EXEEXT shims to work also for names like test-prog
12967         * tests/init.sh: Re-exec a better shell, when needed.
12968         If the current shell lacks support for posix $(...), an init.sh-using
12969         test will now try to find a shell that supports that.  If EXEEXT is
12970         nonempty, we also require support for hyphen-in-alias-name and shell
12971         substitutions like ${var#glob}.  Failure to find such a shell results
12972         in a skipped test.
12973
12974 2010-02-21  Bruno Haible  <bruno@clisp.org>
12975
12976         Really work around around "broken pipe" error message from bash 3.2.
12977         * gnulib-tool (func_reset_sigpipe): Remove function.
12978         (echo): In bash 3.2, define to a function that uses printf.
12979         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12980
12981 2010-02-20  Bruno Haible  <bruno@clisp.org>
12982
12983         Restore support for automake 1.9.6 with autoconf 2.61.
12984         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12985         Reported by James Youngman <jay@gnu.org>.
12986
12987 2010-02-20  Bruno Haible  <bruno@clisp.org>
12988
12989         Improve *printf warning condition.
12990         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12991         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12992         and the function is overridden due to SIGPIPE emulation.
12993
12994 2010-02-20  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/stdio.in.h: Tweak comments.
12997
12998 2010-02-19  Bruno Haible  <bruno@clisp.org>
12999
13000         Make it easier to find modules. New gnulib-tool option '--find'.
13001         * gnulib-tool: New option --find.
13002         (func_usage): Document it.
13003         (func_sanitize_modulelist): New function, extracted from
13004         func_all_modules.
13005         (func_all_modules): Invoke it.
13006         * doc/gnulib-tool.texi (Which modules?): New node.
13007
13008 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
13009
13010         * lib/sys_select.in.h: Provide select replacement even if
13011         sys/select.h exists on a system, for Interix.
13012
13013 2010-02-18  Jim Meyering  <meyering@redhat.com>
13014
13015         init.sh: don't use $(...) just yet
13016         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
13017         to accommodate e.g., Solaris' /bin/sh.
13018
13019 2010-02-17  Bruno Haible  <bruno@clisp.org>
13020
13021         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
13022         Reported by Ludovic Courtès <ludo@gnu.org>.
13023
13024 2010-02-16  Simon Josefsson  <simon@josefsson.org>
13025
13026         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
13027         linking with -lintl.
13028
13029 2010-02-17  Simon Josefsson  <simon@josefsson.org>
13030
13031         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
13032         if not provided by the system's netdb.h.  Reported by
13033         ludo@gnu.org (Ludovic Courtès).
13034
13035 2010-02-15  Jim Meyering  <meyering@redhat.com>
13036
13037         init.sh: improve portability and efficiency
13038         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
13039         "dummy" in a for loop.
13040         Use '!', not '^' to select the complement of a character set used
13041         in a "case" statement.
13042         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
13043         Suggestions from Eric Blake.
13044
13045         init.sh: automatically accommodate programs with the .exe suffix
13046         Automatically arrange for an invocation of "prog" to execute the
13047         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
13048         may use the simpler "prog", yet still work when built on a system
13049         that requires specifying the added suffix.
13050         Do this by constructing a function named "prog" that invokes
13051         "prog.exe" for each .exe file in selected directories.
13052         * tests/init.sh (find_exe_basenames_): New function.
13053         (create_exe_shim_functions_): New function.
13054         (path_prepend_): Use it.
13055
13056         maint.mk: mark syntax-check sc_*.m rules as .PHONY
13057         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
13058         "make -t syntax-check" doesn't create a ton of sc_*.m files.
13059
13060 2010-02-14  Jim Meyering  <meyering@redhat.com>
13061
13062         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
13063         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
13064         (sc_prohibit_hash_pjw_without_use): New rule.
13065
13066         maint.mk: allow the default upload destination dir to be overridden
13067         * top/maint.mk (upload_dest_dir_): Define with a default that
13068         preserves the status quo.
13069         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
13070         Reported by Peter Simons.
13071
13072         maint.mk: prohibit inclusion of "hash.h" without_use
13073         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
13074
13075 2010-02-10  Jim Meyering  <meyering@redhat.com>
13076
13077         maint.mk: prohibit inclusion of "ignore-value.h" without_use
13078         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
13079
13080 2010-02-09  Eric Blake  <ebb9@byu.net>
13081         and Bruno Haible  <bruno@clisp.org>
13082
13083         obstack-printf-posix: ensure declaration
13084         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
13085         extracted from gl_FUNC_OBSTACK_PRINTF.
13086         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
13087         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13088         Likewise.
13089         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
13090         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
13091         0.
13092
13093 2010-02-08  Bruno Haible  <bruno@clisp.org>
13094
13095         gnulib-tool: Fix typo in 2010-02-07 commit.
13096         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
13097         Reported by Eric Blake.
13098
13099 2010-02-07  Bruno Haible  <bruno@clisp.org>
13100
13101         gnulib-tool: Fix up caching patches.
13102         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13103         option --no-cache. Use associative arrays when supported by the shell.
13104         (sed_comments): New variable.
13105         (modcache): Renamed from do_cache.
13106         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13107         abbreviate unnecessarily.
13108         (have_associative): New variable.
13109         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13110         way also for ksh and zsh.
13111         (func_init_sed_convert_to_cache_statements): New function, extracted
13112         from func_cache_lookup_module. Add support for associative arrays.
13113         Don't set the c_MODULE_cached variable here. Ignore all lines before
13114         the first field header. Remove only the final newline, not all trailing
13115         newlines. Support empty fields correctly. Limit the use of 'eval' to
13116         assignments.
13117         (func_get_description, func_get_status, func_get_notice,
13118         func_get_applicability, func_get_filelist, func_get_dependencies,
13119         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13120         func_get_automake_snippet, func_get_include_directive,
13121         func_get_link_directive, func_get_license, func_get_maintainer):
13122         Update documentation. List the unoptimized code first. Add support for
13123         associative arrays. Limit the use of 'eval' to assignments.
13124         (func_get_applicability): Undo stylistic pessimisations.
13125         (func_get_automake_snippet, func_get_include_directive): Reduce code
13126         duplication.
13127         (func_modules_transitive_closure, func_modules_add_dummy,
13128         func_modules_notice, func_modules_to_filelist, func_add_file,
13129         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13130         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13131         func_create_testdir, func_create_megatestdir): Update documentation.
13132
13133 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13134
13135         * gnulib-tool (func_cache_lookup_module): Store the module name
13136         belonging to the cache variable; error out if two different
13137         module names map to the same cache variable name.
13138
13139 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13140
13141         gnulib-tool: Make caching optional.
13142         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13143         Update matching short versions of --no-changelog.
13144         (func_usage): Update.
13145         (sed_extract_cache_prog): Renamed from ...
13146         (sed_extract_prog): ... this; revert to old extraction script.
13147         (func_get_description, func_get_status)
13148         (func_get_notice, func_get_applicability, func_get_filelist)
13149         (func_get_dependencies, func_get_autoconf_early_snippet)
13150         (func_get_autoconf_snippet, func_get_automake_snippet)
13151         (func_get_include_directive, func_get_link_directive)
13152         (func_get_license, func_get_maintainer): If $do_cache is false,
13153         use old, non-caching extraction scripts.
13154         Suggestion by Bruno Haible.
13155
13156 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13157
13158         gnulib-tool: cache module metainformation.
13159         * gnulib-tool (sed_extract_prog): Match newline before each
13160         header, and rewrite header to a shell variable suffix.
13161         (func_cache_var, func_cache_lookup_module): New functions,
13162         to turn a module name into a cache variable prefix, and to
13163         look up and cache module metainformation.
13164         (func_get_description, func_get_status)
13165         (func_get_notice, func_get_applicability, func_get_filelist)
13166         (func_get_dependencies, func_get_autoconf_early_snippet)
13167         (func_get_autoconf_snippet, func_get_automake_snippet)
13168         (func_get_include_directive, func_get_link_directive)
13169         (func_get_license, func_get_maintainer): Use
13170         func_cache_lookup_module.
13171
13172 2010-02-07  Bruno Haible  <bruno@clisp.org>
13173
13174         fnctl: Fix missing dependency.
13175         * modules/fcntl (Depends-on): Add getdtablesize.
13176         Reported by John W. Eaton <jwe@gnu.org>.
13177
13178 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13179
13180         Argp: fix recognition of short alias options.
13181
13182         * lib/argp-parse.c (convert_options): Fix improper use of
13183         `|' between character values.
13184         * tests/test-argp.c (group1_option): New alias option
13185         --read (-r).
13186         (group1_parser): Special handling for 'r'.
13187         (test15): New test case.
13188         (test_fun): Add test15.
13189         * tests/test-argp-2.sh: Update expected --help and --usage
13190         outputs.
13191
13192 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13193
13194         * tests/test-argp.c: Fix indentation.
13195
13196 2010-02-04  Eric Blake  <ebb9@byu.net>
13197
13198         gettimeofday: expose type of second argument
13199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
13200         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
13201         * tests/test-gettimeofday.c: Use it to silence warning.
13202         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
13203         the issue.
13204
13205 2010-02-03  Jim Meyering  <meyering@redhat.com>
13206
13207         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
13208         * lib/regcomp.c (TYPE_SIGNED): Define.
13209         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
13210
13211         regcomp.c: avoid a new -Wshadow warning
13212         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
13213
13214 2010-02-01  Jim Meyering  <meyering@redhat.com>
13215
13216         removing useless parentheses in cpp #define directives
13217         For motivation, see commit c0221df4, "define STREQ(a,b)
13218         consistently, removing useless parentheses"
13219         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
13220         * lib/mountlist.c (MNT_IGNORE): Likewise.
13221         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
13222
13223 2010-02-01  Eric Blake  <ebb9@byu.net>
13224
13225         sys_time: use link-warning
13226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
13227         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
13228         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
13229         * modules/sys_time (Depends-on): Add warn-on-use.
13230         (Makefile.am): Always build replacement.
13231         (configure.ac): Update substitutions.
13232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
13233         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
13234         bother with SYS_TIME_H.
13235         * modules/gettimeofday (configure.ac): Declare indicator.
13236         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
13237         in use.
13238
13239         closein-tests: silence compiler warning
13240         * tests/test-closein.c (main): Ignore fread result.
13241         * modules/closein-tests (Depends-on): Add ignore-value.
13242
13243         tests: silence warning about system return
13244         * tests/test-areadlink-with-size.c (main): Ignore system result.
13245         * tests/test-areadlink.c (main): Likewise.
13246         * tests/test-areadlinkat-with-size.c (main): Likewise.
13247         * tests/test-areadlinkat.c (main): Likewise.
13248         * tests/test-canonicalize-lgpl.c (main): Likewise.
13249         * tests/test-canonicalize.c (main): Likewise.
13250         * tests/test-chown.c (main): Likewise.
13251         * tests/test-fchownat.c (main): Likewise.
13252         * tests/test-fdutimensat.c (main): Likewise.
13253         * tests/test-fstatat.c (main): Likewise.
13254         * tests/test-futimens.c (main): Likewise.
13255         * tests/test-lchown.c (main): Likewise.
13256         * tests/test-link.c (main): Likewise.
13257         * tests/test-linkat.c (main): Likewise.
13258         * tests/test-lstat.c (main): Likewise.
13259         * tests/test-mkdir.c (main): Likewise.
13260         * tests/test-mkdirat.c (main): Likewise.
13261         * tests/test-mkfifo.c (main): Likewise.
13262         * tests/test-mkfifoat.c (main): Likewise.
13263         * tests/test-mknod.c (main): Likewise.
13264         * tests/test-readlink.c (main): Likewise.
13265         * tests/test-remove.c (main): Likewise.
13266         * tests/test-rename.c (main): Likewise.
13267         * tests/test-renameat.c (main): Likewise.
13268         * tests/test-rmdir.c (main): Likewise.
13269         * tests/test-symlink.c (main): Likewise.
13270         * tests/test-symlinkat.c (main): Likewise.
13271         * tests/test-unlink.c (main): Likewise.
13272         * tests/test-unlinkat.c (main): Likewise.
13273         * tests/test-utimens.c (main): Likewise.
13274         * tests/test-utimensat.c (main): Likewise.
13275         * modules/areadlink-tests (Depends-on): Add ignore-value.
13276         * modules/areadlink-with-size-tests (Depends-on): Likewise.
13277         * modules/areadlinkat-tests (Depends-on): Likewise.
13278         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
13279         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13280         * modules/canonicalize-tests (Depends-on): Likewise.
13281         * modules/chown-tests (Depends-on): Likewise.
13282         * modules/fdutimensat-tests (Depends-on): Likewise.
13283         * modules/futimens-tests (Depends-on): Likewise.
13284         * modules/lchown-tests (Depends-on): Likewise.
13285         * modules/link-tests (Depends-on): Likewise.
13286         * modules/linkat-tests (Depends-on): Likewise.
13287         * modules/lstat-tests (Depends-on): Likewise.
13288         * modules/mkdir-tests (Depends-on): Likewise.
13289         * modules/mkfifo-tests (Depends-on): Likewise.
13290         * modules/mkfifoat-tests (Depends-on): Likewise.
13291         * modules/mknod-tests (Depends-on): Likewise.
13292         * modules/openat-tests (Depends-on): Likewise.
13293         * modules/readlink-tests (Depends-on): Likewise.
13294         * modules/remove-tests (Depends-on): Likewise.
13295         * modules/rename-tests (Depends-on): Likewise.
13296         * modules/renameat-tests (Depends-on): Likewise.
13297         * modules/rmdir-tests (Depends-on): Likewise.
13298         * modules/symlink-tests (Depends-on): Likewise.
13299         * modules/symlinkat-tests (Depends-on): Likewise.
13300         * modules/unlink-tests (Depends-on): Likewise.
13301         * modules/utimens-tests (Depends-on): Likewise.
13302         * modules/utimensat-tests (Depends-on): Likewise.
13303
13304 2010-01-31  Bruno Haible  <bruno@clisp.org>
13305
13306         Perform the same test for many <math.h> functions.
13307         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
13308         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
13309         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
13310         of gl_MATHFUNC.
13311         * modules/acos (configure.ac): Likewise.
13312         * modules/asin (configure.ac): Likewise.
13313         * modules/atan (configure.ac): Likewise.
13314         * modules/atan2 (configure.ac): Likewise.
13315         * modules/cbrt (configure.ac): Likewise.
13316         * modules/copysign (configure.ac): Likewise.
13317         * modules/cos (configure.ac): Likewise.
13318         * modules/cosh (configure.ac): Likewise.
13319         * modules/erf (configure.ac): Likewise.
13320         * modules/erfc (configure.ac): Likewise.
13321         * modules/exp (configure.ac): Likewise.
13322         * modules/fmod (configure.ac): Likewise.
13323         * modules/hypot (configure.ac): Likewise.
13324         * modules/j0 (configure.ac): Likewise.
13325         * modules/j1 (configure.ac): Likewise.
13326         * modules/jn (configure.ac): Likewise.
13327         * modules/lgamma (configure.ac): Likewise.
13328         * modules/log (configure.ac): Likewise.
13329         * modules/log10 (configure.ac): Likewise.
13330         * modules/log1p (configure.ac): Likewise.
13331         * modules/pow (configure.ac): Likewise.
13332         * modules/remainder (configure.ac): Likewise.
13333         * modules/sin (configure.ac): Likewise.
13334         * modules/sinh (configure.ac): Likewise.
13335         * modules/tan (configure.ac): Likewise.
13336         * modules/tanh (configure.ac): Likewise.
13337         * modules/y0 (configure.ac): Likewise.
13338         * modules/y1 (configure.ac): Likewise.
13339         * modules/yn (configure.ac): Likewise.
13340         Suggested by Paolo Bonzini.
13341
13342 2010-01-31  Bruno Haible  <bruno@clisp.org>
13343
13344         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
13345
13346 2010-01-31  Bruno Haible  <bruno@clisp.org>
13347
13348         Work around getdelim() bug on FreeBSD 8.0.
13349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
13350         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
13351         not work.
13352         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
13353         is 1.
13354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
13355         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
13356         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
13357         a non-zero size.
13358         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
13359
13360 2010-01-31  Bruno Haible  <bruno@clisp.org>
13361
13362         Work around getline() bug on FreeBSD 8.0.
13363         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
13364         and a non-zero size.
13365         * tests/test-getline.c (main): Likewise.
13366         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
13367         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
13368
13369 2010-01-28  Eric Blake  <ebb9@byu.net>
13370
13371         regex: fix build failure
13372         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
13373         platforms.
13374
13375 2010-01-28  Jim Meyering  <meyering@redhat.com>
13376
13377         regex: do not ignore memory allocation failure
13378         * lib/regex_internal.c (create_cd_newstate): Detect
13379         re_node_set_init_copy failure.   Extracted from glibc commit
13380         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13381
13382         regex: sync more white-space changes from libc
13383         * lib/regex_internal.c: White-space only changes.
13384         * lib/regexec.c: Likewise.
13385
13386         regex: add many uses of __attribute_warn_unused_result__
13387         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
13388         * lib/regexec.c: Likewise.
13389         Extracted from a messy glibc commit.
13390
13391         regcomp.c: spelling and merge-artifact from glibc
13392         * lib/regcomp.c: Merge remainder of glibc's
13393         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13394
13395         regcomp.c: sync white-space changes from glibc
13396         * lib/regcomp.c: Merge to accommodate white space
13397         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13398
13399         regcomp.c: do not ignore internal return values
13400         * lib/regcomp.c: Do not ignore internal return values.
13401         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
13402         but without its white-space changes and spelling fixes.
13403
13404         regex_internal.h: define __attribute_warn_unused_result__
13405         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
13406
13407         maint: add a syntax-check rule to check for vulnerable Makefile.in
13408         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
13409
13410 2010-01-27  Jim Meyering  <meyering@redhat.com>
13411
13412         ncftpput-ftp: clean up spaces
13413         * build-aux/ncftpput-ftp: Make Copyright line consistent.
13414         Remove trailing blanks.
13415
13416 2010-01-27  Simon Josefsson  <simon@josefsson.org>
13417
13418         * build-aux/git-version-gen: Fix copyright statement.
13419         * build-aux/gnupload: Likewise.
13420         * tests/test-arcfour.c: Likewise.
13421         * tests/test-arctwo.c: Likewise.
13422         * tests/test-count-one-bits.c: Likewise.
13423         * tests/test-crc.c: Likewise.
13424         * tests/test-des.c: Likewise.
13425         * tests/test-gc-arcfour.c: Likewise.
13426         * tests/test-gc-arctwo.c: Likewise.
13427         * tests/test-gc-des.c: Likewise.
13428         * tests/test-gc-hmac-md5.c: Likewise.
13429         * tests/test-gc-hmac-sha1.c: Likewise.
13430         * tests/test-gc-md2.c: Likewise.
13431         * tests/test-gc-md4.c: Likewise.
13432         * tests/test-gc-md5.c: Likewise.
13433         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13434         * tests/test-gc-rijndael.c: Likewise.
13435         * tests/test-gc-sha1.c: Likewise.
13436         * tests/test-gc.c: Likewise.
13437         * tests/test-gethostname.c: Likewise.
13438         * tests/test-gettimeofday.c: Likewise.
13439         * tests/test-hash.c: Likewise.
13440         * tests/test-hmac-md5.c: Likewise.
13441         * tests/test-hmac-sha1.c: Likewise.
13442         * tests/test-md2.c: Likewise.
13443         * tests/test-md4.c: Likewise.
13444         * tests/test-md5.c: Likewise.
13445         * tests/test-memchr.c: Likewise.
13446         * tests/test-memchr2.c: Likewise.
13447         * tests/test-memcmp.c: Likewise.
13448         * tests/test-memmem.c: Likewise.
13449         * tests/test-memrchr.c: Likewise.
13450         * tests/test-rawmemchr.c: Likewise.
13451         * tests/test-read-file.c: Likewise.
13452         * tests/test-rijndael.c: Likewise.
13453         * tests/test-sockets.c: Likewise.
13454         * tests/test-strchrnul.c: Likewise.
13455         * tests/test-strstr.c: Likewise.
13456         * tests/test-strtod.c: Likewise.
13457         * build-aux/ncftpput-ftp: Likewise.
13458
13459 2010-01-26  Eric Blake  <ebb9@byu.net>
13460
13461         ignore-value: update recommended header name
13462         * modules/ignore-value (Include): Only use <> for headers that
13463         exist in glibc.
13464
13465 2010-01-26  Jim Meyering  <meyering@redhat.com>
13466
13467         test-userspec.c: avoid compiler warnings
13468         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
13469         and "initialization discards qualifiers..." warnings.
13470         Put the first "uid" in its own scope, and make char* members "const".
13471
13472 2010-01-25  Bruno Haible  <bruno@clisp.org>
13473
13474         gnulib-tool: Make warning diagnostics consistent.
13475         * gnulib-tool (func_warning): New function.
13476         Use it everywhere where gnulib-tool produces output to stderr and it is
13477         not a fatal error.
13478
13479 2010-01-25  Bruno Haible  <bruno@clisp.org>
13480
13481         Fix test dependencies.
13482         * modules/xstrtol-tests (Depends-on): Add inttypes.
13483         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
13484
13485 2010-01-25 Pádraig Brady <P@draigBrady.com>
13486
13487         syntax-check: detect incorrect boolean macro values in config.h
13488         * modules/maintainer-makefile (configure.ac): Parameterize the location
13489         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
13490         The logic is from Eric Blake and the location indicated by Jim Meyering.
13491         Note the more natural CONFIG_HEADER name is prohibited by automake
13492         for backwards compatibility reasons.
13493         * top/maint.mk (sc_Wundef_boolean): New rule.
13494
13495 2010-01-25  Jim Meyering  <meyering@redhat.com>
13496
13497         bootstrap: detect MacOS 10.6's shasum, too
13498         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13499         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13500
13501 2010-01-23  Jim Meyering  <meyering@redhat.com>
13502
13503         xstrtoll: new module
13504         * modules/xstrtoll: New file.
13505         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13506         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13507         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13508         ./configure fails if you use this module and lack "long long".
13509         * modules/xstrtoll-tests: New module.
13510         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13511         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13512         new init.sh-based test framework.
13513
13514 2010-01-24  Bruno Haible  <bruno@clisp.org>
13515
13516         Tests for module 'yn'.
13517         * modules/yn-tests: New file.
13518         * tests/test-yn.c: New file.
13519
13520         Tests for module 'y1'.
13521         * modules/y1-tests: New file.
13522         * tests/test-y1.c: New file.
13523
13524         Tests for module 'y0'.
13525         * modules/y0-tests: New file.
13526         * tests/test-y0.c: New file.
13527
13528         Tests for module 'tanh'.
13529         * modules/tanh-tests: New file.
13530         * tests/test-tanh.c: New file.
13531
13532         Tests for module 'tan'.
13533         * modules/tan-tests: New file.
13534         * tests/test-tan.c: New file.
13535
13536         Tests for module 'sqrt'.
13537         * modules/sqrt-tests: New file.
13538         * tests/test-sqrt.c: New file.
13539
13540         Tests for module 'sinh'.
13541         * modules/sinh-tests: New file.
13542         * tests/test-sinh.c: New file.
13543
13544         Tests for module 'sin'.
13545         * modules/sin-tests: New file.
13546         * tests/test-sin.c: New file.
13547
13548         Tests for module 'rint'.
13549         * modules/rint-tests: New file.
13550         * tests/test-rint.c: New file.
13551
13552         Tests for module 'remainder'.
13553         * modules/remainder-tests: New file.
13554         * tests/test-remainder.c: New file.
13555
13556         Tests for module 'pow'.
13557         * modules/pow-tests: New file.
13558         * tests/test-pow.c: New file.
13559
13560         Tests for module 'nextafter'.
13561         * modules/nextafter-tests: New file.
13562         * tests/test-nextafter.c: New file.
13563
13564         Tests for module 'modf'.
13565         * modules/modf-tests: New file.
13566         * tests/test-modf.c: New file.
13567
13568         Tests for module 'logb'.
13569         * modules/logb-tests: New file.
13570         * tests/test-logb.c: New file.
13571
13572         Tests for module 'log1p'.
13573         * modules/log1p-tests: New file.
13574         * tests/test-log1p.c: New file.
13575
13576         Tests for module 'log10'.
13577         * modules/log10-tests: New file.
13578         * tests/test-log10.c: New file.
13579
13580         Tests for module 'log'.
13581         * modules/log-tests: New file.
13582         * tests/test-log.c: New file.
13583
13584         Tests for module 'lgamma'.
13585         * modules/lgamma-tests: New file.
13586         * tests/test-lgamma.c: New file.
13587
13588         Tests for module 'ldexp'.
13589         * modules/ldexp-tests: New file.
13590         * tests/test-ldexp.c: New file.
13591
13592         Tests for module 'jn'.
13593         * modules/jn-tests: New file.
13594         * tests/test-jn.c: New file.
13595
13596         Tests for module 'j1'.
13597         * modules/j1-tests: New file.
13598         * tests/test-j1.c: New file.
13599
13600         Tests for module 'j0'.
13601         * modules/j0-tests: New file.
13602         * tests/test-j0.c: New file.
13603
13604         Tests for module 'hypot'.
13605         * modules/hypot-tests: New file.
13606         * tests/test-hypot.c: New file.
13607
13608         Tests for module 'fmod'.
13609         * modules/fmod-tests: New file.
13610         * tests/test-fmod.c: New file.
13611
13612         Tests for module 'fabs'.
13613         * modules/fabs-tests: New file.
13614         * tests/test-fabs.c: New file.
13615
13616         Tests for module 'exp'.
13617         * modules/exp-tests: New file.
13618         * tests/test-exp.c: New file.
13619
13620         Tests for module 'erfc'.
13621         * modules/erfc-tests: New file.
13622         * tests/test-erfc.c: New file.
13623
13624         Tests for module 'erf'.
13625         * modules/erf-tests: New file.
13626         * tests/test-erf.c: New file.
13627
13628         Tests for module 'cosh'.
13629         * modules/cosh-tests: New file.
13630         * tests/test-cosh.c: New file.
13631
13632         Tests for module 'cos'.
13633         * modules/cos-tests: New file.
13634         * tests/test-cos.c: New file.
13635
13636         Tests for module 'copysign'.
13637         * modules/copysign-tests: New file.
13638         * tests/test-copysign.c: New file.
13639
13640         Tests for module 'cbrt'.
13641         * modules/cbrt-tests: New file.
13642         * tests/test-cbrt.c: New file.
13643
13644         Tests for module 'atan2'.
13645         * modules/atan2-tests: New file.
13646         * tests/test-atan2.c: New file.
13647
13648         Tests for module 'atan'.
13649         * modules/atan-tests: New file.
13650         * tests/test-atan.c: New file.
13651
13652         Tests for module 'asin'.
13653         * modules/asin-tests: New file.
13654         * tests/test-asin.c: New file.
13655
13656         Tests for module 'acos'.
13657         * modules/acos-tests: New file.
13658         * tests/test-acos.c: New file.
13659
13660 2010-01-24  Bruno Haible  <bruno@clisp.org>
13661
13662         Fix tests for common <math.h> functions.
13663         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13664         code snippet that references the function pointer, rather than merely
13665         calling the function. Substitute the FUNC_LIBM variable.
13666         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13667         * modules/acos (configure.ac): Likewise.
13668         * modules/asin (configure.ac): Likewise.
13669         * modules/atan (configure.ac): Likewise.
13670         * modules/atan2 (configure.ac): Likewise.
13671         * modules/cbrt (configure.ac): Likewise.
13672         * modules/copysign (configure.ac): Likewise.
13673         * modules/cos (configure.ac): Likewise.
13674         * modules/cosh (configure.ac): Likewise.
13675         * modules/erf (configure.ac): Likewise.
13676         * modules/erfc (configure.ac): Likewise.
13677         * modules/exp (configure.ac): Likewise.
13678         * modules/fabs (configure.ac): Likewise.
13679         * modules/fmod (configure.ac): Likewise.
13680         * modules/hypot (configure.ac): Likewise.
13681         * modules/j0 (configure.ac): Likewise.
13682         * modules/j1 (configure.ac): Likewise.
13683         * modules/jn (configure.ac): Likewise.
13684         * modules/ldexp (configure.ac): Likewise.
13685         * modules/lgamma (configure.ac): Likewise.
13686         * modules/log (configure.ac): Likewise.
13687         * modules/log10 (configure.ac): Likewise.
13688         * modules/log1p (configure.ac): Likewise.
13689         * modules/logb (configure.ac): Likewise.
13690         * modules/modf (configure.ac): Likewise.
13691         * modules/nextafter (configure.ac): Likewise.
13692         * modules/pow (configure.ac): Likewise.
13693         * modules/remainder (configure.ac): Likewise.
13694         * modules/rint (configure.ac): Likewise.
13695         * modules/sin (configure.ac): Likewise.
13696         * modules/sinh (configure.ac): Likewise.
13697         * modules/tan (configure.ac): Likewise.
13698         * modules/tanh (configure.ac): Likewise.
13699         * modules/y0 (configure.ac): Likewise.
13700         * modules/y1 (configure.ac): Likewise.
13701         * modules/yn (configure.ac): Likewise.
13702
13703 2010-01-24  Bruno Haible  <bruno@clisp.org>
13704
13705         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13706         * tests/test-acosl.c (x): New variable.
13707         (main): Store argument in x and fetch it from x.
13708         * tests/test-asinl.c (x): New variable.
13709         (main): Store argument in x and fetch it from x.
13710         * tests/test-atanl.c (x): New variable.
13711         (main): Store argument in x and fetch it from x.
13712         * tests/test-cosl.c (x): New variable.
13713         (main): Store argument in x and fetch it from x.
13714         * tests/test-expl.c (x): New variable.
13715         (main): Store argument in x and fetch it from x.
13716         * tests/test-logl.c (x): New variable.
13717         (main): Store argument in x and fetch it from x.
13718         * tests/test-sinl.c (x): New variable.
13719         (main): Store argument in x and fetch it from x.
13720         * tests/test-sqrtl.c (x): New variable.
13721         (main): Store argument in x and fetch it from x.
13722         * tests/test-tanl.c (x): New variable.
13723         (main): Store argument in x and fetch it from x.
13724
13725 2010-01-24  Bruno Haible  <bruno@clisp.org>
13726
13727         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13728         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13729         assignments to the initial TESTS_ENVIRONMENT.
13730         * doc/gnulib.texi (Unit test modules): Document it.
13731         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13732         TESTS_ENVIRONMENT.
13733         * modules/btowc-tests (Makefile.am): Likewise.
13734         * modules/c-stack-tests (Makefile.am): Likewise.
13735         * modules/c-strcase-tests (Makefile.am): Likewise.
13736         * modules/copy-file-tests (Makefile.am): Likewise.
13737         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13738         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13739         * modules/mbrtowc-tests (Makefile.am): Likewise.
13740         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13741         * modules/mbscasestr-tests (Makefile.am): Likewise.
13742         * modules/mbschr-tests (Makefile.am): Likewise.
13743         * modules/mbscspn-tests (Makefile.am): Likewise.
13744         * modules/mbsinit-tests (Makefile.am): Likewise.
13745         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13746         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13747         * modules/mbspbrk-tests (Makefile.am): Likewise.
13748         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13749         * modules/mbsrchr-tests (Makefile.am): Likewise.
13750         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13751         * modules/mbsspn-tests (Makefile.am): Likewise.
13752         * modules/mbsstr-tests (Makefile.am): Likewise.
13753         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13754         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13755         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13756         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13757         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13758         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13759         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13760         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13761         * modules/wcrtomb-tests (Makefile.am): Likewise.
13762         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13763         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13764         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13765         assignments from TESTS_ENVIRONMENT.
13766         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13767         augmentation.
13768         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13769         * modules/atexit-tests (Makefile.am): Likewise.
13770         * modules/binary-io-tests (Makefile.am): Likewise.
13771         * modules/closein-tests (Makefile.am): Likewise.
13772         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13773         * modules/exclude-tests (Makefile.am): Likewise.
13774         * modules/fflush-tests (Makefile.am): Likewise.
13775         * modules/fpending-tests (Makefile.am): Likewise.
13776         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13777         * modules/freadahead-tests (Makefile.am): Likewise.
13778         * modules/freadptr-tests (Makefile.am): Likewise.
13779         * modules/freadseek-tests (Makefile.am): Likewise.
13780         * modules/fseek-tests (Makefile.am): Likewise.
13781         * modules/fseeko-tests (Makefile.am): Likewise.
13782         * modules/ftell-tests (Makefile.am): Likewise.
13783         * modules/ftello-tests (Makefile.am): Likewise.
13784         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13785         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13786         * modules/lseek-tests (Makefile.am): Likewise.
13787         * modules/parse-duration-tests (Makefile.am): Likewise.
13788         * modules/perror-tests (Makefile.am): Likewise.
13789         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13790         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13791         * modules/pipe-tests (Makefile.am): Likewise.
13792         * modules/pread-tests (Makefile.am): Likewise.
13793         * modules/printf-posix-tests (Makefile.am): Likewise.
13794         * modules/select-tests (Makefile.am): Likewise.
13795         * modules/sigpipe-tests (Makefile.am): Likewise.
13796         * modules/tsearch-tests (Makefile.am): Likewise.
13797         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13798         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13799         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13800         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13801         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13802         * modules/version-etc-tests (Makefile.am): Likewise.
13803         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13804         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13805         * modules/xalloc-die-tests (Makefile.am): Likewise.
13806         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13807         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13808         * modules/xstrtol-tests (Makefile.am): Likewise.
13809         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13810         * modules/yesno-tests (Makefile.am): Likewise.
13811         Suggested by Jim Meyering.
13812
13813 2010-01-24  Bruno Haible  <bruno@clisp.org>
13814
13815         More documentation.
13816         * doc/gnulib.texi (Writing modules): New chapter.
13817         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13818         the new chapter.
13819
13820 2010-01-24  Jim Meyering  <meyering@redhat.com>
13821
13822         maint.mk: do not prepend "./" after filtering
13823         * top/maint.mk (_prepend_srcdir_prefix): New variable
13824         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13825         "./" when $(srcdir) is ".".
13826
13827         define STREQ(a,b) consistently, removing useless parentheses
13828         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13829         since the only risk is that "a" or "b" contains an unparenthesized
13830         comma, but if either did that, STREQ would have 3 or more arguments.
13831         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13832         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13833         * lib/hash-triple.c (STREQ): Likewise.
13834         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13835         * lib/getugroups.c (STREQ): Likewise.
13836
13837 2010-01-23  Jim Meyering  <meyering@redhat.com>
13838
13839         maint.mk: fix syntax-check in a non-srcdir build directory
13840         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13841         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13842
13843 2010-01-22  Jim Meyering  <meyering@redhat.com>
13844
13845         userspec: add unit tests
13846         * tests/test-userspec.c: New file.
13847         * modules/userspec-tests: Likewise.
13848
13849 2010-01-21  Jim Meyering  <meyering@redhat.com>
13850
13851         maint.mk: handle source file names containing "." robustly
13852         * top/maint.mk (_dot_escaped_srcdir): Define.
13853         (VC_LIST): Use it in LHS of sed substitution.
13854
13855 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13856
13857         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13858         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13859         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13860         from a non-srcdir build.
13861
13862 2010-01-20  Eric Blake  <ebb9@byu.net>
13863
13864         warn-on-use: use instead of link-warning
13865         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13866         * modules/unistd (Depends-on, Makefile.am): Likewise.
13867         * modules/arpa_inet (Depends-on): Replace link-warning with
13868         warn-on-use.
13869         (Makefile.am): Update rules accordingly.
13870         * modules/ctype (Depends-on, Makefile.am): Likewise.
13871         * modules/dirent (Depends-on, Makefile.am): Likewise.
13872         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13873         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13874         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13875         * modules/locale (Depends-on, Makefile.am): Likewise.
13876         * modules/math (Depends-on, Makefile.am): Likewise.
13877         * modules/search (Depends-on, Makefile.am): Likewise.
13878         * modules/signal (Depends-on, Makefile.am): Likewise.
13879         * modules/spawn (Depends-on, Makefile.am): Likewise.
13880         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13881         * modules/string (Depends-on, Makefile.am): Likewise.
13882         * modules/strings (Depends-on, Makefile.am): Likewise.
13883         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13884         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13885         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13886         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13887         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13888         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13889         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13890         * modules/wchar (Depends-on, Makefile.am): Likewise.
13891         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13892         should be poisoned.
13893         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13894         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13895         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13896         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13897         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13898         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13899         * m4/math_h.m4 (gl_MATH_H): Likewise.
13900         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13901         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13902         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13903         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13904         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13906         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13907         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13908         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13912         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13913         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13914         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13915         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13916         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13917         GL_LINK_WARNING.
13918         * lib/ctype.in.h: Likewise.
13919         * lib/dirent.in.h: Likewise.
13920         * lib/fcntl.in.h: Likewise.
13921         * lib/inttypes.in.h: Likewise.
13922         * lib/langinfo.in.h: Likewise.
13923         * lib/locale.in.h: Likewise.
13924         * lib/math.in.h: Likewise.
13925         * lib/search.in.h: Likewise.
13926         * lib/signal.in.h: Likewise.
13927         * lib/spawn.in.h: Likewise.
13928         * lib/stdio.in.h: Likewise.
13929         * lib/stdlib.in.h: Likewise.
13930         * lib/string.in.h: Likewise.
13931         * lib/strings.in.h: Likewise.
13932         * lib/sys_file.in.h: Likewise.
13933         * lib/sys_ioctl.in.h: Likewise.
13934         * lib/sys_select.in.h: Likewise.
13935         * lib/sys_socket.in.h: Likewise.
13936         * lib/sys_stat.in.h: Likewise.
13937         * lib/sys_times.in.h: Likewise.
13938         * lib/sys_utsname.in.h: Likewise.
13939         * lib/unistd.in.h: Likewise.
13940         * lib/wchar.in.h: Likewise.
13941
13942 2010-01-20  Bruno Haible  <bruno@clisp.org>
13943
13944         Avoid duplicate -lm.
13945         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
13946         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
13947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
13948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
13949         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
13950         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
13951         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
13952         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
13953         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
13954         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
13955         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
13956         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13957         Reported by Paolo Bonzini.
13958
13959 2010-01-19  Bruno Haible  <bruno@clisp.org>
13960
13961         langinfo, nl_langinfo: Relicense under LGPLv2+.
13962         * modules/langinfo (License): Change to LGPLv2+.
13963         * modules/nl_langinfo (License): Likewise.
13964         Patch by David Lutterkort <lutter@redhat.com>.
13965
13966 2010-01-19  Bruno Haible  <bruno@clisp.org>
13967
13968         Avoid compilation error with cc on OSF/1 5.1.
13969         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
13970         statement, not before.
13971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13972
13973 2010-01-18  Bruno Haible  <bruno@clisp.org>
13974
13975         Avoid a link error due to the __printf__ symbol.
13976         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13977         and 2.6.x.
13978         (__format__, __printf__): Remove definitions.
13979         * lib/argp-fmtstream.h: Likewise.
13980         * lib/argp.h: Likewise.
13981         * lib/error.h: Likewise.
13982         * lib/vasnprintf.h: Likewise.
13983         * lib/xprintf.h: Likewise.
13984         * lib/xvasprintf.h: Likewise.
13985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13986
13987 2010-01-18  Bruno Haible  <bruno@clisp.org>
13988
13989         Tests for module 'tanl'.
13990         * modules/tanl-tests: New file.
13991         * tests/test-tanl.c: New file.
13992
13993         Tests for module 'sqrtl'.
13994         * modules/sqrtl-tests: New file.
13995         * tests/test-sqrtl.c: New file.
13996
13997         Tests for module 'sinl'.
13998         * modules/sinl-tests: New file.
13999         * tests/test-sinl.c: New file.
14000
14001         Tests for module 'logl'.
14002         * modules/logl-tests: New file.
14003         * tests/test-logl.c: New file.
14004
14005         Tests for module 'expl'.
14006         * modules/expl-tests: New file.
14007         * tests/test-expl.c: New file.
14008
14009         Tests for module 'cosl'.
14010         * modules/cosl-tests: New file.
14011         * tests/test-cosl.c: New file.
14012
14013         Tests for module 'atanl'.
14014         * modules/atanl-tests: New file.
14015         * tests/test-atanl.c: New file.
14016
14017         Tests for module 'asinl'.
14018         * modules/asinl-tests: New file.
14019         * tests/test-asinl.c: New file.
14020
14021         Tests for module 'acosl'.
14022         * modules/acosl-tests: New file.
14023         * tests/test-acosl.c: New file.
14024
14025         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14026         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
14027         tanl): Use the standard gnulib idiom.
14028         * lib/cosl.c: Don't include trigl.c and sincosl.c.
14029         * lib/sinl.c: Likewise.
14030         * lib/tanl.c: Don't include trigl.c.
14031         (kernel_tanl): Make static.
14032         * lib/sincosl.c: Include trigl.h first.
14033         * lib/trigl.c: Likewise.
14034         * m4/acosl.m4: New file.
14035         * m4/asinl.m4: New file.
14036         * m4/atanl.m4: New file.
14037         * m4/cosl.m4: New file.
14038         * m4/expl.m4: New file.
14039         * m4/logl.m4: New file.
14040         * m4/sinl.m4: New file.
14041         * m4/sqrtl.m4: New file.
14042         * m4/tanl.m4: New file.
14043         * m4/mathl.m4: Remove file.
14044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
14045         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14046         Don't initialize GNULIB_MATHL.
14047         * modules/acosl: New file.
14048         * modules/asinl: New file.
14049         * modules/atanl: New file.
14050         * modules/cosl: New file.
14051         * modules/expl: New file.
14052         * modules/logl: New file.
14053         * modules/sinl: New file.
14054         * modules/sqrtl: New file.
14055         * modules/tanl: New file.
14056         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
14057         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
14058         substitute GNULIB_MATHL.
14059         * modules/mathl: Rewritten.
14060         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
14061         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
14062         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
14063         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
14064         * doc/posix-functions/expl.texi: Mention the 'expl' module.
14065         * doc/posix-functions/logl.texi: Mention the 'logl' module.
14066         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
14067         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
14068         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
14069
14070 2010-01-18  Bruno Haible  <bruno@clisp.org>
14071
14072         sqrt: Make gl_FUNC_SQRT requirable.
14073         * m4/sqrt.m4: New file.
14074         * modules/sqrt (Files): Add it.
14075         (configure.ac): Invoke gl_FUNC_SQRT.
14076
14077 2010-01-18  Bruno Haible  <bruno@clisp.org>
14078
14079         New modules for common <math.h> functions.
14080         * m4/mathfunc.m4: New file.
14081         * modules/acos: New file.
14082         * modules/asin: New file.
14083         * modules/atan: New file.
14084         * modules/atan2: New file.
14085         * modules/cbrt: New file.
14086         * modules/copysign: New file.
14087         * modules/cos: New file.
14088         * modules/cosh: New file.
14089         * modules/erf: New file.
14090         * modules/erfc: New file.
14091         * modules/exp: New file.
14092         * modules/fabs: New file.
14093         * modules/fmod: New file.
14094         * modules/hypot: New file.
14095         * modules/j0: New file.
14096         * modules/j1: New file.
14097         * modules/jn: New file.
14098         * modules/ldexp: New file.
14099         * modules/lgamma: New file.
14100         * modules/log: New file.
14101         * modules/log10: New file.
14102         * modules/log1p: New file.
14103         * modules/logb: New file.
14104         * modules/modf: New file.
14105         * modules/nextafter: New file.
14106         * modules/pow: New file.
14107         * modules/remainder: New file.
14108         * modules/rint: New file.
14109         * modules/sin: New file.
14110         * modules/sinh: New file.
14111         * modules/sqrt: New file.
14112         * modules/tan: New file.
14113         * modules/tanh: New file.
14114         * modules/y0: New file.
14115         * modules/y1: New file.
14116         * modules/yn: New file.
14117         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14118         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14119         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14120         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14121         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14122         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14123         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14124         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14125         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14126         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14127         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14128         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14129         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14130         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14131         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14132         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14133         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14134         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14135         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14136         * doc/posix-functions/log.texi: Mention the 'log' module.
14137         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14138         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14139         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14140         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14141         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14142         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14143         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14144         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14145         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14146         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14147         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14148         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14149         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14150         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14151         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14152         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14153
14154 2010-01-18  Jim Meyering  <meyering@redhat.com>
14155
14156         ignore-value: relax license to LGPLv2+
14157         * modules/ignore-value (License): Relax to LGPLv2+.
14158
14159         getdate: don't leak when TZ contains two or more '"'s
14160         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14161         double quote in TZ after the first one.
14162
14163         readtokens: do not leak internal token_lengths buffer
14164         * lib/readtokens.c (readtokens): Free the local, lengths,
14165         when the supplied "token_lengths" parameter is NULL.
14166
14167 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14168
14169         Fix a couple of missing LIBTHREAD link failures on AIX.
14170         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14171         $(LIBTHREAD).
14172         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14173
14174         Link test-poll against INET_PTON_LIB.
14175         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14176         for inet_pton on Solaris 10.
14177
14178 2010-01-17  Bruno Haible  <bruno@clisp.org>
14179
14180         unistdio/*-sprintf: Fix typo in module description.
14181         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
14182         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
14183         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
14184         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
14185         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
14186         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
14187         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
14188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14189
14190 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14191
14192         gnulib-tool: fix filelist for AIX, HP-UX ksh.
14193         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
14194         variables in shell case patterns, for AIX and HP-UX ksh.
14195
14196         Split large sed scripts, for HP-UX sed.
14197         * modules/stdio: Split sed scripts around 50 sed commands,
14198         to avoid HP-UX limit of 99 commands, in the near future.
14199         * modules/string: Likewise.
14200         * modules/unistd: Likewise.
14201
14202         gnulib-tool: avoid writing in the current directory.
14203         * gnulib-tool (func_emit_lib_Makefile_am)
14204         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
14205         not in the current directory, so concurrent gnulib-tool
14206         instances do not interfere.
14207
14208 2010-01-16  Jim Meyering  <meyering@redhat.com>
14209
14210         doc: update users.txt
14211         * users.txt: Add grep.
14212         (diffutils, gzip): Update URLs.
14213
14214 2010-01-12  Bruno Haible  <bruno@clisp.org>
14215
14216         posix_spawn: Avoid test failure on Cygwin.
14217         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
14218         characters.
14219         Reported by Simon Josefsson.
14220
14221 2010-01-12  Bruno Haible  <bruno@clisp.org>
14222
14223         * tests/test-cond.c (main): When skipping the test, show the reason.
14224
14225 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14226
14227         * lib/striconv.c (str_cd_iconv): Avoid if before free.
14228
14229 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14230
14231         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
14232         VC_LIST_ALWAYS_EXCLUDE_REGEX.
14233
14234 2010-01-12  Eric Blake  <ebb9@byu.net>
14235
14236         build: guarantee AS_VAR_IF
14237         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
14238         (gl_AS_VAR_IF): Move...
14239         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
14240         Reported by Simon Josefsson.
14241
14242 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14243
14244         * lib/stdio.in.h: Fix typo.
14245
14246 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14247
14248         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
14249         libgpg-error.
14250
14251 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14252
14253         * tests/test-xalloc-die.sh: Use $EXEEXT.
14254
14255 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14256             Bruno Haible  <bruno@clisp.org>
14257
14258         getlogin, getlogin_r: Avoid test failure.
14259         * tests/test-getlogin.c: Include <stdio.h>.
14260         (main): Skip the test when the function fails because stdin is not a
14261         tty.
14262         * tests/test-getlogin_r.c: Include <stdio.h>.
14263         (main): Skip the test when the function fails because stdin is not a
14264         tty.
14265
14266 2010-01-11  Eric Blake  <ebb9@byu.net>
14267
14268         tests: avoid more large file warnings
14269         * tests/test-fflush.c: Avoid warning about ftell use.
14270         * tests/test-fseek.c: Avoid warning about fseek use.
14271
14272 2010-01-10  Bruno Haible  <bruno@clisp.org>
14273
14274         nproc: Work better on Linux when /proc and /sys are not mounted.
14275         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
14276         as lower bound when, on glibc/Linux systems,
14277         sysconf (_SC_NPROCESSORS_CONF) returns 1.
14278         Suggested by Pádraig Brady <P@draigbrady.com>.
14279         Reported by Dmitry V. Levin <ldv@altlinux.org>.
14280
14281         nproc: Refactor.
14282         * lib/nproc.c (num_processors_via_affinity_mask): New function,
14283         extracted from num_processors.
14284         (num_processors): Call it.
14285
14286 2010-01-11  Jim Meyering  <meyering@redhat.com>
14287
14288         utimecmp: avoid new warning from upcoming gcc-4.5.0
14289         * lib/utimecmp.c (BILLION): Define using #define rather than an
14290         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
14291
14292 2010-01-11  Eric Blake  <ebb9@byu.net>
14293
14294         math: add portability warnings for classification macros
14295         * modules/math (Depends-on): Add warn-on-use.
14296         (Makefile.am): Provide new substitutions.
14297         * m4/math_h.m4 (gl_MATH_H): Require inline.
14298         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
14299         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
14300         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
14301         implement warnings.
14302
14303         unistd: warn on use of environ without module
14304         * modules/unistd (Depends-on): Add warn-on-use.
14305         (Makefile.am): Provide new substitutions.
14306         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
14307         * lib/unistd.in.h (environ): Wrap with a warning helper function.
14308
14309         stdio: warn on suspicious uses
14310         * modules/stdio (Depends-on): Add warn-on-use.
14311         (Makefile.am): Provide new substitutions.
14312         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
14313         fseeko.
14314         * lib/stdio.in.h (gets): Always warn on use.
14315         (fseek, ftell): Adjust when warnings are issued, and honor
14316         _GL_NO_LARGE_FILES as a way to silence the warning.
14317         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
14318         any warning about large file offsets.
14319         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
14320         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
14321         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
14322         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
14323         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
14324         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
14325         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
14326         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
14327
14328         warn-on-use: new module
14329         * modules/warn-on-use: New file.
14330         * build-aux/warn-on-use.h: Likewise.
14331         * m4/warn-on-use.m4: Likewise.
14332         * MODULES.html.sh (Support for building): Mention it.
14333
14334 2010-01-10  Bruno Haible  <bruno@clisp.org>
14335
14336         Tests for module 'unistr/u32-strdup'.
14337         * modules/unistr/u32-strdup-tests: New file.
14338         * tests/unistr/test-u32-strdup.c: New file.
14339
14340         Tests for module 'unistr/u16-strdup'.
14341         * modules/unistr/u16-strdup-tests: New file.
14342         * tests/unistr/test-u16-strdup.c: New file.
14343
14344         Tests for module 'unistr/u8-strdup'.
14345         * modules/unistr/u8-strdup-tests: New file.
14346         * tests/unistr/test-u8-strdup.c: New file.
14347         * tests/unistr/test-strdup.h: New file.
14348
14349         Tests for module 'unistr/u32-strncmp'.
14350         * modules/unistr/u32-strncmp-tests: New file.
14351         * tests/unistr/test-u32-strncmp.c: New file.
14352
14353         Tests for module 'unistr/u16-strncmp'.
14354         * modules/unistr/u16-strncmp-tests: New file.
14355         * tests/unistr/test-u16-strncmp.c: New file.
14356
14357         Tests for module 'unistr/u8-strncmp'.
14358         * modules/unistr/u8-strncmp-tests: New file.
14359         * tests/unistr/test-u8-strncmp.c: New file.
14360         * tests/unistr/test-strncmp.h: New file.
14361
14362         Tests for module 'unistr/u32-strcoll'.
14363         * modules/unistr/u32-strcoll-tests: New file.
14364         * tests/unistr/test-u32-strcoll.c: New file.
14365
14366         Tests for module 'unistr/u16-strcoll'.
14367         * modules/unistr/u16-strcoll-tests: New file.
14368         * tests/unistr/test-u16-strcoll.c: New file.
14369
14370         Tests for module 'unistr/u8-strcoll'.
14371         * modules/unistr/u8-strcoll-tests: New file.
14372         * tests/unistr/test-u8-strcoll.c: New file.
14373
14374         Tests for module 'unistr/u32-strcmp'.
14375         * modules/unistr/u32-strcmp-tests: New file.
14376         * tests/unistr/test-u32-strcmp.c: New file.
14377         * tests/unistr/test-u32-strcmp.h: New file.
14378
14379         Tests for module 'unistr/u16-strcmp'.
14380         * modules/unistr/u16-strcmp-tests: New file.
14381         * tests/unistr/test-u16-strcmp.c: New file.
14382         * tests/unistr/test-u16-strcmp.h: New file.
14383
14384         Tests for module 'unistr/u8-strcmp'.
14385         * modules/unistr/u8-strcmp-tests: New file.
14386         * tests/unistr/test-u8-strcmp.c: New file.
14387         * tests/unistr/test-u8-strcmp.h: New file.
14388         * tests/unistr/test-strcmp.h: New file.
14389
14390         Tests for module 'unistr/u32-strncat'.
14391         * modules/unistr/u32-strncat-tests: New file.
14392         * tests/unistr/test-u32-strncat.c: New file.
14393
14394         Tests for module 'unistr/u16-strncat'.
14395         * modules/unistr/u16-strncat-tests: New file.
14396         * tests/unistr/test-u16-strncat.c: New file.
14397
14398         Tests for module 'unistr/u8-strncat'.
14399         * modules/unistr/u8-strncat-tests: New file.
14400         * tests/unistr/test-u8-strncat.c: New file.
14401         * tests/unistr/test-strncat.h: New file.
14402
14403         Tests for module 'unistr/u32-strcat'.
14404         * modules/unistr/u32-strcat-tests: New file.
14405         * tests/unistr/test-u32-strcat.c: New file.
14406
14407         Tests for module 'unistr/u16-strcat'.
14408         * modules/unistr/u16-strcat-tests: New file.
14409         * tests/unistr/test-u16-strcat.c: New file.
14410
14411         Tests for module 'unistr/u8-strcat'.
14412         * modules/unistr/u8-strcat-tests: New file.
14413         * tests/unistr/test-u8-strcat.c: New file.
14414         * tests/unistr/test-strcat.h: New file.
14415
14416         Tests for module 'unistr/u32-stpncpy'.
14417         * modules/unistr/u32-stpncpy-tests: New file.
14418         * tests/unistr/test-u32-stpncpy.c: New file.
14419
14420         Tests for module 'unistr/u16-stpncpy'.
14421         * modules/unistr/u16-stpncpy-tests: New file.
14422         * tests/unistr/test-u16-stpncpy.c: New file.
14423
14424         Tests for module 'unistr/u8-stpncpy'.
14425         * modules/unistr/u8-stpncpy-tests: New file.
14426         * tests/unistr/test-u8-stpncpy.c: New file.
14427         * tests/unistr/test-stpncpy.h: New file.
14428
14429         Tests for module 'unistr/u32-strncpy'.
14430         * modules/unistr/u32-strncpy-tests: New file.
14431         * tests/unistr/test-u32-strncpy.c: New file.
14432
14433         Tests for module 'unistr/u16-strncpy'.
14434         * modules/unistr/u16-strncpy-tests: New file.
14435         * tests/unistr/test-u16-strncpy.c: New file.
14436
14437         Tests for module 'unistr/u8-strncpy'.
14438         * modules/unistr/u8-strncpy-tests: New file.
14439         * tests/unistr/test-u8-strncpy.c: New file.
14440         * tests/unistr/test-strncpy.h: New file.
14441
14442         Tests for module 'unistr/u32-stpcpy'.
14443         * modules/unistr/u32-stpcpy-tests: New file.
14444         * tests/unistr/test-u32-stpcpy.c: New file.
14445
14446         Tests for module 'unistr/u16-stpcpy'.
14447         * modules/unistr/u16-stpcpy-tests: New file.
14448         * tests/unistr/test-u16-stpcpy.c: New file.
14449
14450         Tests for module 'unistr/u8-stpcpy'.
14451         * modules/unistr/u8-stpcpy-tests: New file.
14452         * tests/unistr/test-u8-stpcpy.c: New file.
14453         * tests/unistr/test-stpcpy.h: New file.
14454
14455         Tests for module 'unistr/u32-strcpy'.
14456         * modules/unistr/u32-strcpy-tests: New file.
14457         * tests/unistr/test-u32-strcpy.c: New file.
14458
14459         Tests for module 'unistr/u16-strcpy'.
14460         * modules/unistr/u16-strcpy-tests: New file.
14461         * tests/unistr/test-u16-strcpy.c: New file.
14462
14463         Tests for module 'unistr/u8-strcpy'.
14464         * modules/unistr/u8-strcpy-tests: New file.
14465         * tests/unistr/test-u8-strcpy.c: New file.
14466         * tests/unistr/test-strcpy.h: New file.
14467
14468         Tests for module 'unistr/u32-strnlen'.
14469         * modules/unistr/u32-strnlen-tests: New file.
14470         * tests/unistr/test-u32-strnlen.c: New file.
14471
14472         Tests for module 'unistr/u16-strnlen'.
14473         * modules/unistr/u16-strnlen-tests: New file.
14474         * tests/unistr/test-u16-strnlen.c: New file.
14475
14476         Tests for module 'unistr/u8-strnlen'.
14477         * modules/unistr/u8-strnlen-tests: New file.
14478         * tests/unistr/test-u8-strnlen.c: New file.
14479         * tests/unistr/test-strnlen.h: New file.
14480
14481         Tests for module 'unistr/u32-strlen'.
14482         * modules/unistr/u32-strlen-tests: New file.
14483         * tests/unistr/test-u32-strlen.c: New file.
14484
14485         Tests for module 'unistr/u16-strlen'.
14486         * modules/unistr/u16-strlen-tests: New file.
14487         * tests/unistr/test-u16-strlen.c: New file.
14488
14489         Tests for module 'unistr/u8-strlen'.
14490         * modules/unistr/u8-strlen-tests: New file.
14491         * tests/unistr/test-u8-strlen.c: New file.
14492
14493         Tests for module 'unistr/u32-prev'.
14494         * modules/unistr/u32-prev-tests: New file.
14495         * tests/unistr/test-u32-prev.c: New file.
14496
14497         Tests for module 'unistr/u16-prev'.
14498         * modules/unistr/u16-prev-tests: New file.
14499         * tests/unistr/test-u16-prev.c: New file.
14500
14501         Tests for module 'unistr/u8-prev'.
14502         * modules/unistr/u8-prev-tests: New file.
14503         * tests/unistr/test-u8-prev.c: New file.
14504
14505         Tests for module 'unistr/u32-next'.
14506         * modules/unistr/u32-next-tests: New file.
14507         * tests/unistr/test-u32-next.c: New file.
14508
14509         Tests for module 'unistr/u16-next'.
14510         * modules/unistr/u16-next-tests: New file.
14511         * tests/unistr/test-u16-next.c: New file.
14512
14513         Tests for module 'unistr/u8-next'.
14514         * modules/unistr/u8-next-tests: New file.
14515         * tests/unistr/test-u8-next.c: New file.
14516
14517         Tests for module 'unistr/u32-strmbtouc'.
14518         * modules/unistr/u32-strmbtouc-tests: New file.
14519         * tests/unistr/test-u32-strmbtouc.c: New file.
14520
14521         Tests for module 'unistr/u16-strmbtouc'.
14522         * modules/unistr/u16-strmbtouc-tests: New file.
14523         * tests/unistr/test-u16-strmbtouc.c: New file.
14524
14525         Tests for module 'unistr/u8-strmbtouc'.
14526         * modules/unistr/u8-strmbtouc-tests: New file.
14527         * tests/unistr/test-u8-strmbtouc.c: New file.
14528
14529         Tests for module 'unistr/u32-strmblen'.
14530         * modules/unistr/u32-strmblen-tests: New file.
14531         * tests/unistr/test-u32-strmblen.c: New file.
14532
14533         Tests for module 'unistr/u16-strmblen'.
14534         * modules/unistr/u16-strmblen-tests: New file.
14535         * tests/unistr/test-u16-strmblen.c: New file.
14536
14537         Tests for module 'unistr/u8-strmblen'.
14538         * modules/unistr/u8-strmblen-tests: New file.
14539         * tests/unistr/test-u8-strmblen.c: New file.
14540
14541         Tests for module 'unistr/u32-cpy-alloc'.
14542         * modules/unistr/u32-cpy-alloc-tests: New file.
14543         * tests/unistr/test-u32-cpy-alloc.c: New file.
14544
14545         Tests for module 'unistr/u16-cpy-alloc'.
14546         * modules/unistr/u16-cpy-alloc-tests: New file.
14547         * tests/unistr/test-u16-cpy-alloc.c: New file.
14548
14549         Tests for module 'unistr/u8-cpy-alloc'.
14550         * modules/unistr/u8-cpy-alloc-tests: New file.
14551         * tests/unistr/test-u8-cpy-alloc.c: New file.
14552         * tests/unistr/test-cpy-alloc.h: New file.
14553
14554         Tests for module 'unistr/u32-mbsnlen'.
14555         * modules/unistr/u32-mbsnlen-tests: New file.
14556         * tests/unistr/test-u32-mbsnlen.c: New file.
14557
14558         Tests for module 'unistr/u16-mbsnlen'.
14559         * modules/unistr/u16-mbsnlen-tests: New file.
14560         * tests/unistr/test-u16-mbsnlen.c: New file.
14561
14562         Tests for module 'unistr/u8-mbsnlen'.
14563         * modules/unistr/u8-mbsnlen-tests: New file.
14564         * tests/unistr/test-u8-mbsnlen.c: New file.
14565
14566         Tests for module 'unistr/u32-chr'.
14567         * modules/unistr/u32-chr-tests: New file.
14568         * tests/unistr/test-u32-chr.c: New file.
14569
14570         Tests for module 'unistr/u16-chr'.
14571         * modules/unistr/u16-chr-tests: New file.
14572         * tests/unistr/test-u16-chr.c: New file.
14573
14574         Tests for module 'unistr/u8-chr'.
14575         * modules/unistr/u8-chr-tests: New file.
14576         * tests/unistr/test-u8-chr.c: New file.
14577         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14578
14579         Tests for module 'unistr/u32-cmp2'.
14580         * modules/unistr/u32-cmp2-tests: New file.
14581         * tests/unistr/test-u32-cmp2.c: New file.
14582
14583         Tests for module 'unistr/u16-cmp2'.
14584         * modules/unistr/u16-cmp2-tests: New file.
14585         * tests/unistr/test-u16-cmp2.c: New file.
14586
14587         Tests for module 'unistr/u8-cmp2'.
14588         * modules/unistr/u8-cmp2-tests: New file.
14589         * tests/unistr/test-u8-cmp2.c: New file.
14590         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14591
14592         Tests for module 'unistr/u32-cmp'.
14593         * modules/unistr/u32-cmp-tests: New file.
14594         * tests/unistr/test-u32-cmp.c: New file.
14595
14596         Tests for module 'unistr/u16-cmp'.
14597         * modules/unistr/u16-cmp-tests: New file.
14598         * tests/unistr/test-u16-cmp.c: New file.
14599
14600         Tests for module 'unistr/u8-cmp'.
14601         * modules/unistr/u8-cmp-tests: New file.
14602         * tests/unistr/test-u8-cmp.c: New file.
14603         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14604
14605         Tests for module 'unistr/u32-set'.
14606         * modules/unistr/u32-set-tests: New file.
14607         * tests/unistr/test-u32-set.c: New file.
14608
14609         Tests for module 'unistr/u16-set'.
14610         * modules/unistr/u16-set-tests: New file.
14611         * tests/unistr/test-u16-set.c: New file.
14612
14613         Tests for module 'unistr/u8-set'.
14614         * modules/unistr/u8-set-tests: New file.
14615         * tests/unistr/test-u8-set.c: New file.
14616         * tests/unistr/test-set.h: New file.
14617
14618         Tests for module 'unistr/u32-move'.
14619         * modules/unistr/u32-move-tests: New file.
14620         * tests/unistr/test-u32-move.c: New file.
14621
14622         Tests for module 'unistr/u16-move'.
14623         * modules/unistr/u16-move-tests: New file.
14624         * tests/unistr/test-u16-move.c: New file.
14625
14626         Tests for module 'unistr/u8-move'.
14627         * modules/unistr/u8-move-tests: New file.
14628         * tests/unistr/test-u8-move.c: New file.
14629         * tests/unistr/test-move.h: New file.
14630
14631         Tests for module 'unistr/u32-cpy'.
14632         * modules/unistr/u32-cpy-tests: New file.
14633         * tests/unistr/test-u32-cpy.c: New file.
14634
14635         Tests for module 'unistr/u16-cpy'.
14636         * modules/unistr/u16-cpy-tests: New file.
14637         * tests/unistr/test-u16-cpy.c: New file.
14638
14639         Tests for module 'unistr/u8-cpy'.
14640         * modules/unistr/u8-cpy-tests: New file.
14641         * tests/unistr/test-u8-cpy.c: New file.
14642         * tests/unistr/test-cpy.h: New file.
14643
14644 2010-01-09  Bruno Haible  <bruno@clisp.org>
14645
14646         Tests for module 'unistr/u32-uctomb'.
14647         * modules/unistr/u32-uctomb-tests: New file.
14648         * tests/unistr/test-u32-uctomb.c: New file.
14649
14650         Tests for module 'unistr/u16-uctomb'.
14651         * modules/unistr/u16-uctomb-tests: New file.
14652         * tests/unistr/test-u16-uctomb.c: New file.
14653
14654         Tests for module 'unistr/u8-uctomb'.
14655         * modules/unistr/u8-uctomb-tests: New file.
14656         * tests/unistr/test-u8-uctomb.c: New file.
14657
14658         Tests for module 'unistr/u32-mbtoucr'.
14659         * modules/unistr/u32-mbtoucr-tests: New file.
14660         * tests/unistr/test-u32-mbtoucr.c: New file.
14661
14662         Tests for module 'unistr/u16-mbtoucr'.
14663         * modules/unistr/u16-mbtoucr-tests: New file.
14664         * tests/unistr/test-u16-mbtoucr.c: New file.
14665
14666         Tests for module 'unistr/u8-mbtoucr'.
14667         * modules/unistr/u8-mbtoucr-tests: New file.
14668         * tests/unistr/test-u8-mbtoucr.c: New file.
14669
14670         Tests for module 'unistr/u32-mbtouc'.
14671         * modules/unistr/u32-mbtouc-tests: New file.
14672         * tests/unistr/test-u32-mbtouc.c: New file.
14673
14674         Tests for module 'unistr/u16-mbtouc'.
14675         * modules/unistr/u16-mbtouc-tests: New file.
14676         * tests/unistr/test-u16-mbtouc.c: New file.
14677
14678         Tests for module 'unistr/u8-mbtouc'.
14679         * modules/unistr/u8-mbtouc-tests: New file.
14680         * tests/unistr/test-u8-mbtouc.c: New file.
14681
14682         Tests for module 'unistr/u32-mbtouc-unsafe'.
14683         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14684         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14685         * tests/unistr/test-u32-mbtouc.h: New file.
14686
14687         Tests for module 'unistr/u16-mbtouc-unsafe'.
14688         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14689         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14690         * tests/unistr/test-u16-mbtouc.h: New file.
14691
14692         Tests for module 'unistr/u8-mbtouc-unsafe'.
14693         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14694         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14695         * tests/unistr/test-u8-mbtouc.h: New file.
14696
14697         Tests for module 'unistr/u32-mblen'.
14698         * modules/unistr/u32-mblen-tests: New file.
14699         * tests/unistr/test-u32-mblen.c: New file.
14700
14701         Tests for module 'unistr/u16-mblen'.
14702         * modules/unistr/u16-mblen-tests: New file.
14703         * tests/unistr/test-u16-mblen.c: New file.
14704
14705         Tests for module 'unistr/u8-mblen'.
14706         * modules/unistr/u8-mblen-tests: New file.
14707         * tests/unistr/test-u8-mblen.c: New file.
14708
14709         Tests for module 'unistr/u32-to-u16'.
14710         * modules/unistr/u32-to-u16-tests: New file.
14711         * tests/unistr/test-u32-to-u16.c: New file.
14712
14713         Tests for module 'unistr/u32-to-u8'.
14714         * modules/unistr/u32-to-u8-tests: New file.
14715         * tests/unistr/test-u32-to-u8.c: New file.
14716
14717         Tests for module 'unistr/u16-to-u32'.
14718         * modules/unistr/u16-to-u32-tests: New file.
14719         * tests/unistr/test-u16-to-u32.c: New file.
14720
14721         Tests for module 'unistr/u16-to-u8'.
14722         * modules/unistr/u16-to-u8-tests: New file.
14723         * tests/unistr/test-u16-to-u8.c: New file.
14724
14725         Tests for module 'unistr/u8-to-u32'.
14726         * modules/unistr/u8-to-u32-tests: New file.
14727         * tests/unistr/test-u8-to-u32.c: New file.
14728
14729         Tests for module 'unistr/u8-to-u16'.
14730         * modules/unistr/u8-to-u16-tests: New file.
14731         * tests/unistr/test-u8-to-u16.c: New file.
14732
14733         Tests for module 'unistr/u32-check'.
14734         * modules/unistr/u32-check-tests: New file.
14735         * tests/unistr/test-u32-check.c: New file.
14736
14737         Tests for module 'unistr/u16-check'.
14738         * modules/unistr/u16-check-tests: New file.
14739         * tests/unistr/test-u16-check.c: New file.
14740
14741         Tests for module 'unistr/u8-check'.
14742         * modules/unistr/u8-check-tests: New file.
14743         * tests/unistr/test-u8-check.c: New file.
14744
14745         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14746         (category_equals): New function.
14747         (main): Add more tests.
14748         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14749
14750         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14751
14752 2010-01-10  Bruno Haible  <bruno@clisp.org>
14753
14754         unistr/u*-strcoll: Try harder to distinguish different strings.
14755         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14756         compare s1 and s2 to see if they are different.
14757
14758 2010-01-10  Bruno Haible  <bruno@clisp.org>
14759
14760         unistr/u*-stpncpy: Fix the return value.
14761         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14762         description of the return value consistent with stpncpy in glibc.
14763         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14764         written non-NUL unit.
14765
14766 2010-01-10  Bruno Haible  <bruno@clisp.org>
14767
14768         unistr/u*-next: Add missing dependencies.
14769         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14770         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14771         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14772
14773 2010-01-10  Bruno Haible  <bruno@clisp.org>
14774
14775         unistr/u8-mbsnlen: Fix return value for incomplete character.
14776         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14777         u8_mblen.
14778         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14779         Remove unistr/u8-mblen.
14780         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14781         u16_mblen.
14782         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14783         Remove unistr/u16-mblen.
14784
14785 2010-01-10  Bruno Haible  <bruno@clisp.org>
14786
14787         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14788         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14789         Reported by Brian Gough <bjg@gnu.org> and
14790         Chris Clayton <chris2553@googlemail.com> via
14791         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14792
14793 2010-01-09  Bruno Haible  <bruno@clisp.org>
14794
14795         unistr/u16-to-u32: Reject invalid input.
14796         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14797         u16_mbtouc.
14798         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14799         Remove unistr/u16-mbtouc.
14800
14801         unistr/u16-to-u8: Reject invalid input.
14802         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14803         u16_mbtouc.
14804         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14805         Remove unistr/u16-mbtouc.
14806
14807         unistr/u8-to-u32: Reject invalid input.
14808         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14809         u8_mbtouc.
14810         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14811         Remove unistr/u8-mbtouc.
14812
14813         unistr/u8-to-u16: Reject invalid input.
14814         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14815         u8_mbtouc.
14816         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14817         Remove unistr/u8-mbtouc.
14818
14819 2010-01-09  Bruno Haible  <bruno@clisp.org>
14820
14821         Tests for module 'getlogin'.
14822         * modules/getlogin-tests: New file.
14823         * tests/test-getlogin.c: New file.
14824
14825         New module 'getlogin'.
14826         * lib/unistd.in.h (getlogin): New declaration.
14827         * lib/getlogin.c: New file.
14828         * m4/getlogin.m4: New file.
14829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14830         HAVE_GETLOGIN.
14831         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14832         HAVE_GETLOGIN.
14833         * modules/getlogin: New file.
14834         * doc/posix-functions/getlogin.texi: Mention the new module.
14835         Reported by John W. Eaton <jwe@gnu.org>.
14836
14837 2010-01-09  Bruno Haible  <bruno@clisp.org>
14838
14839         getlogin_r: Support for native Windows.
14840         * lib/getlogin_r.c: Include <windows.h>
14841         (getlogin_r): Implement for native Windows.
14842         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14843         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14844         via John W. Eaton <jwe@gnu.org>.
14845
14846 2010-01-09  Bruno Haible  <bruno@clisp.org>
14847
14848         getlogin_r: Small fixes.
14849         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14850         succeeds.
14851         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14852         before testing whether getlogin_r is declared. No need to set
14853         HAVE_DECL_GETLOGIN_R to 1.
14854         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14855
14856 2010-01-09  Bruno Haible  <bruno@clisp.org>
14857
14858         * lib/unistd.in.h (getlogin_r): Add comment.
14859
14860 2010-01-09  Bruno Haible  <bruno@clisp.org>
14861
14862         Tests for module 'getlogin_r'.
14863         * modules/getlogin_r-tests: New file.
14864         * tests/test-getlogin_r.c: New file.
14865
14866 2010-01-09  Jim Meyering  <meyering@redhat.com>
14867
14868         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14869         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14870         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14871
14872 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14873
14874         * lib/dup2.c (rpl_dup2): Improve comment.
14875
14876 2010-01-08  Eric Blake  <ebb9@byu.net>
14877
14878         maint.mk: allow packages to add makefile @@ exceptions
14879         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14880         (sc_makefile_check): Rename...
14881         (sc_makefile_at_at_check): ...to this, and use hook.
14882
14883         dup2: work around mingw bug
14884         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14885         Reported by Simon Josefsson.
14886
14887 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14888
14889         glob: Fix C++ compilation.
14890         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14891         C++.
14892
14893 2010-01-07  Bruno Haible  <bruno@clisp.org>
14894
14895         Fix indentation of wctype.in.h, broken since 2007-01-06.
14896         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14897
14898 2010-01-07  Bruno Haible  <bruno@clisp.org>
14899
14900         mbslen: Avoid collision with system function.
14901         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14902         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14903         * m4/mbslen.m4: New file.
14904         * modules/mbslen (Files): Add it.
14905         (configure.ac): Invoke gl_MBSLEN.
14906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14907         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14908         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14909         via Ian Beckwith <ianb@erislabs.net>.
14910
14911 2010-01-07  Bruno Haible  <bruno@clisp.org>
14912
14913         dirent: Document the last fix.
14914         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14915
14916 2010-01-07  Bruno Haible  <bruno@clisp.org>
14917
14918         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14919         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14920         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14921         va_list are defined.
14922         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14923         Reported by Eric Blake.
14924
14925 2010-01-07  Bruno Haible  <bruno@clisp.org>
14926
14927         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14928         * modules/xlist (Depends-on): Add 'list',
14929         * modules/xoset (Depends-on): Add 'oset'.
14930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14931
14932 2010-01-07  Bruno Haible  <bruno@clisp.org>
14933
14934         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
14935         * doc/posix-functions/strncasecmp.texi: Likewise.
14936
14937 2010-01-07  Bruno Haible  <bruno@clisp.org>
14938
14939         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
14940
14941 2010-01-07  John W. Eaton  <jwe@octave.org>
14942
14943         wctype: allow C++ use
14944         * lib/wctype.in.h: Add extern "C" block for C++.
14945
14946 2010-01-06  Eric Blake  <ebb9@byu.net>
14947
14948         maint.mk: detect incorrect GFDL usage
14949         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
14950
14951 2010-01-06  Jim Meyering  <meyering@redhat.com>
14952         and Eric Blake  <ebb9@byu.net>
14953
14954         maint.mk: ignore multi-line copyright in NEWS
14955         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
14956
14957 2010-01-06  Eric Blake  <ebb9@byu.net>
14958
14959         select: add missing dependency
14960         * modules/select-tests (Depends-on): Move sockets dependency...
14961         * modules/select (Depends-on): ...here.
14962         Reported by Ian Beckwith.
14963
14964         doc: regenerate INSTALL
14965         * doc/INSTALL: Reflect recent autoconf update.
14966         * doc/INSTALL.ISO: Likewise.
14967         * doc/INSTALL.UTF-8: Likewise.
14968
14969         pread: fix compilation on glibc
14970         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
14971         Reported by Ralf Wildenhues.
14972
14973         dirent: fix test failure
14974         * lib/dirent.in.h (includes): Guarantee ino_t.
14975         Reported by Ralf Wildenhues.
14976
14977 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14978
14979         linkat, renameat: avoid bad free
14980         * lib/at-func2.c (at_func2): Fix typo.
14981         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14982
14983 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14984
14985         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14986         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14987         to avoid failure of symlink test later.
14988
14989 2010-01-06  Eric Blake  <ebb9@byu.net>
14990
14991         stdio, unistd: guarantee ssize_t
14992         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14993         2008 are exposed when needed.
14994         * lib/stdio.in.h (includes): Likewise.
14995         Reported by Ralf Wildenhues.
14996
14997 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14998
14999         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
15000         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
15001         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
15002
15003 2010-01-06  Jim Meyering  <meyering@redhat.com>
15004
15005         readtokens: this module *does* require xalloc.h
15006         It uses only functions that were omitted by the old syntax-check rule.
15007         * lib/readtokens.c: Include "xalloc.h" once again.
15008         * modules/readtokens (Depends-on): Add xalloc.
15009         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
15010
15011 2010-01-05  Eric Blake  <ebb9@byu.net>
15012
15013         maint: support 'make announcement' from a VPATH build
15014         * top/maint.mk (announcement): Look for correct NEWS file.
15015
15016 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
15017
15018         utimens (fdutimens): ignore a negative FD, per contract
15019         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
15020         when we have a valid file descriptor.  Otherwise, using a brand
15021         new glibc (with just-patched futimens that now fails with EBADF)
15022         would cause this function to fail with ENOSYS.
15023         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
15024         See also http://bugzilla.redhat.com/552320.
15025
15026 2010-01-05  Eric Blake  <ebb9@byu.net>
15027
15028         strcase: document what it provides
15029         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
15030         gnulib module.
15031         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
15032         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
15033
15034 2010-01-05  Jim Meyering  <meyering@redhat.com>
15035
15036         maint: remove useless inclusions of "xalloc.h"
15037         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
15038         * lib/readtokens.c: Likewise.
15039         * lib/same.c: Likewise.
15040         * modules/getloadavg (Depends-on): Remove xalloc.
15041         * modules/readtokens: Likewise.
15042         * modules/same: Likewise.
15043
15044         maint.mk: include 4 more function names in alloca.h-checking regexp
15045         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
15046         regexp.  Before, we would give a false-positive (saying alloca.h
15047         is included unnecessarily) when the only uses involved omitted symbols.
15048
15049         xalloc.h: use consistent formatting
15050         * lib/xalloc.h: Move declarations to start in the first column.
15051
15052 2010-01-05  Eric Blake  <ebb9@byu.net>
15053
15054         mkdir: avoid xalloc
15055         * lib/mkdir.c (includes): Drop unused header.
15056         Reported by John W. Eaton.
15057
15058 2010-01-04  Jim Meyering  <meyering@redhat.com>
15059
15060         nl_langinfo: avoid configure-time syntax error
15061         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
15062         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
15063         the empty string.  Don't let that provoke a shell syntax error.
15064
15065         regcomp, regexec, fnmatch: avoid array bounds read error
15066         * lib/regcomp.c (build_equiv_class): From glibc:
15067         Use only the low 24 bits of a findidx return value as an index
15068         into the weights array.  Patch by Ulrich Drepper:
15069         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
15070         * lib/regexec.c (check_node_accept_bytes): Likewise.
15071         * lib/fnmatch_loop.c (FCT): Likewise.
15072
15073         regcomp: skip collseq lookup when there are no rules
15074         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
15075         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
15076
15077         regcomp: recognize ill-formed { } expressions
15078         * lib/regcomp.c (parse_dup_op): From glibc:
15079         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
15080
15081         regcomp: fix typo in comment
15082         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
15083         s/satisfy/satisfies/.
15084
15085         regcomp: sync from glibc: remove dead store
15086         * lib/regcomp.c (duplicate_node_closure): Remove useless
15087         search_duplicated_node call and dead store.
15088
15089         regcomp: sync from glibc; always use nl_langinfo
15090         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
15091         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
15092         * modules/regex (Depends-on): Add nl_langinfo.
15093
15094 2010-01-04  Eric Blake  <ebb9@byu.net>
15095
15096         fdopendir: fix configure test
15097         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
15098
15099 2010-01-01  Bruno Haible  <bruno@clisp.org>
15100
15101         wchar: Remove unused configure check.
15102         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15103
15104 2010-01-01  Eric Blake  <ebb9@byu.net>
15105
15106         headers: make check of system header explicit
15107         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15108         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15109         ourselves.
15110         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15113         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15114         internals.
15115         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15116         missing.
15117         Suggested by Bruno Haible.
15118
15119 2010-01-01  Jim Meyering  <meyering@redhat.com>
15120
15121         ChangeLog: tweak to eliminate unnecessary copyright line
15122         * ChangeLog: Remove a copyright line that was mistakenly updated
15123         by today's update-copyright run.  Reported by Eric Blake.
15124
15125         test-update-copyright: don't let envvar setting cause test failure
15126         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15127
15128 2010-01-01  Bruno Haible  <bruno@clisp.org>
15129
15130         localename: Avoid gcc warning.
15131         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15132         function if it is not used.
15133
15134 2010-01-01  Jim Meyering  <meyering@redhat.com>
15135
15136         update nearly all FSF copyright year lists to include 2010
15137         Use the same procedure as for 2009, outlined in
15138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15139
15140         version-etc: set COPYRIGHT_YEAR to 2010
15141         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15142
15143 2009-12-31  Eric Blake  <ebb9@byu.net>
15144
15145         doc: correct availability of cygwin 1.5.x getopt
15146         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15147         variables.
15148         * doc/posix-functions/opterr.texi (opterr): Likewise.
15149         * doc/posix-functions/optind.texi (optind): Likewise.
15150         * doc/posix-functions/optopt.texi (optopt): Likewise.
15151         * doc/posix-functions/tzname.texi (tzname): Likewise.
15152
15153         openat: update maintainer
15154         * modules/openat (Maintainer): Add myself.
15155
15156         utimens: avoid shadowing warning
15157         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15158         buffers into one, to avoid shadowing, as well as avoiding a
15159         redundant stat.
15160         Reported by Jim Meyering.
15161
15162         test-dup2: avoid compiler warning
15163         * tests/test-dup2.c (is_inheritable): Only define if used.
15164
15165 2010-01-01  Bruno Haible  <bruno@clisp.org>
15166
15167         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15168         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15169         defined, use wctomb instead of wcrtomb.
15170
15171 2010-01-01  Bruno Haible  <bruno@clisp.org>
15172
15173         iconv: Reject native Solaris iconv.
15174         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15175         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15176
15177 2009-12-31  Bruno Haible  <bruno@clisp.org>
15178
15179         * tests/test-signal.c (main): Remove test of 'SIG'.
15180
15181 2009-12-31  Bruno Haible  <bruno@clisp.org>
15182
15183         spawn: Fix incomplete fix.
15184         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15185         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15186         warnings for GNULIB_POSIXCHECK again.
15187         Reported by Eric Blake.
15188
15189 2009-12-31  Bruno Haible  <bruno@clisp.org>
15190
15191         Avoid namespace pollution on glibc systems.
15192         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
15193         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
15194         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
15195         glibc systems.
15196
15197 2009-12-31  Bruno Haible  <bruno@clisp.org>
15198
15199         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
15200         (gl_REPLACE_WCHAR_H): Turn into a no-op.
15201         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
15202         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15203         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15204         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15205         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15206
15207 2009-12-31  Bruno Haible  <bruno@clisp.org>
15208
15209         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15210         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
15211         afterwards.
15212
15213 2009-12-31  Bruno Haible  <bruno@clisp.org>
15214
15215         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
15216         SYS_UTSNAME_H.
15217
15218 2009-12-31  Bruno Haible  <bruno@clisp.org>
15219
15220         spawn: Fix misapplied patch.
15221         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15222         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15223         warnings for GNULIB_POSIXCHECK.
15224
15225 2009-12-31  Bruno Haible  <bruno@clisp.org>
15226
15227         times: Update after sys_times changed.
15228         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
15229         * modules/times (Files): Add it.
15230         (configure.ac): Invoke gl_FUNC_TIMES.
15231
15232 2009-12-31  Bruno Haible  <bruno@clisp.org>
15233
15234         Use AC_C_INLINE where necessary.
15235         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
15236         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15237         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15238         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
15239         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15240         * m4/mbiter.m4 (gl_MBITER): Likewise.
15241         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15243         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
15244         * modules/u64 (configure.ac): Likewise.
15245
15246 2009-12-31  Bruno Haible  <bruno@clisp.org>
15247
15248         Use AC_C_INLINE instead of module 'inline' where possible.
15249         * modules/inline (Description): Clarify purpose.
15250         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
15251         * modules/count-one-bits (Depends-on): Remove inline.
15252         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
15253         * modules/openat (Depends-on): Remove inline.
15254         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
15255         instead of depending on module 'inline'.
15256         * modules/filevercmp (Depends-on, configure.ac): Likewise.
15257         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
15258         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
15259         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
15260         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
15261         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
15262         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
15263         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
15264         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
15265         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
15266         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
15267         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
15268         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
15269         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
15270         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
15271         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
15272         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
15273         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
15274         Likewise.
15275         * modules/unictype/property-ascii-hex-digit (Depends-on,
15276         configure.ac): Likewise.
15277         * modules/unictype/property-bidi-arabic-digit (Depends-on,
15278         configure.ac): Likewise.
15279         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
15280         configure.ac): Likewise.
15281         * modules/unictype/property-bidi-block-separator (Depends-on,
15282         configure.ac): Likewise.
15283         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
15284         configure.ac): Likewise.
15285         * modules/unictype/property-bidi-common-separator (Depends-on,
15286         configure.ac): Likewise.
15287         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
15288         Likewise.
15289         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
15290         configure.ac): Likewise.
15291         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
15292         configure.ac): Likewise.
15293         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
15294         configure.ac): Likewise.
15295         * modules/unictype/property-bidi-european-digit (Depends-on,
15296         configure.ac): Likewise.
15297         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
15298         configure.ac): Likewise.
15299         * modules/unictype/property-bidi-left-to-right (Depends-on,
15300         configure.ac): Likewise.
15301         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
15302         configure.ac): Likewise.
15303         * modules/unictype/property-bidi-other-neutral (Depends-on,
15304         configure.ac): Likewise.
15305         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
15306         Likewise.
15307         * modules/unictype/property-bidi-segment-separator (Depends-on,
15308         configure.ac): Likewise.
15309         * modules/unictype/property-bidi-whitespace (Depends-on,
15310         configure.ac): Likewise.
15311         * modules/unictype/property-combining (Depends-on, configure.ac):
15312         Likewise.
15313         * modules/unictype/property-composite (Depends-on, configure.ac):
15314         Likewise.
15315         * modules/unictype/property-currency-symbol (Depends-on,
15316         configure.ac): Likewise.
15317         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
15318         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
15319         Likewise.
15320         * modules/unictype/property-default-ignorable-code-point (Depends-on,
15321         configure.ac): Likewise.
15322         * modules/unictype/property-deprecated (Depends-on, configure.ac):
15323         Likewise.
15324         * modules/unictype/property-diacritic (Depends-on, configure.ac):
15325         Likewise.
15326         * modules/unictype/property-extender (Depends-on, configure.ac):
15327         Likewise.
15328         * modules/unictype/property-format-control (Depends-on, configure.ac):
15329         Likewise.
15330         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
15331         Likewise.
15332         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
15333         Likewise.
15334         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
15335         Likewise.
15336         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
15337         Likewise.
15338         * modules/unictype/property-hyphen (Depends-on, configure.ac):
15339         Likewise.
15340         * modules/unictype/property-id-continue (Depends-on, configure.ac):
15341         Likewise.
15342         * modules/unictype/property-id-start (Depends-on, configure.ac):
15343         Likewise.
15344         * modules/unictype/property-ideographic (Depends-on, configure.ac):
15345         Likewise.
15346         * modules/unictype/property-ids-binary-operator (Depends-on,
15347         configure.ac): Likewise.
15348         * modules/unictype/property-ids-trinary-operator (Depends-on,
15349         configure.ac): Likewise.
15350         * modules/unictype/property-ignorable-control (Depends-on,
15351         configure.ac): Likewise.
15352         * modules/unictype/property-iso-control (Depends-on, configure.ac):
15353         Likewise.
15354         * modules/unictype/property-join-control (Depends-on, configure.ac):
15355         Likewise.
15356         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
15357         Likewise.
15358         * modules/unictype/property-line-separator (Depends-on, configure.ac):
15359         Likewise.
15360         * modules/unictype/property-logical-order-exception (Depends-on,
15361         configure.ac): Likewise.
15362         * modules/unictype/property-lowercase (Depends-on, configure.ac):
15363         Likewise.
15364         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
15365         * modules/unictype/property-non-break (Depends-on, configure.ac):
15366         Likewise.
15367         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
15368         Likewise.
15369         * modules/unictype/property-numeric (Depends-on, configure.ac):
15370         Likewise.
15371         * modules/unictype/property-other-alphabetic (Depends-on,
15372         configure.ac): Likewise.
15373         * modules/unictype/property-other-default-ignorable-code-point
15374         (Depends-on, configure.ac): Likewise.
15375         * modules/unictype/property-other-grapheme-extend (Depends-on,
15376         configure.ac): Likewise.
15377         * modules/unictype/property-other-id-continue (Depends-on,
15378         configure.ac): Likewise.
15379         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
15380         Likewise.
15381         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
15382         Likewise.
15383         * modules/unictype/property-other-math (Depends-on, configure.ac):
15384         Likewise.
15385         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
15386         Likewise.
15387         * modules/unictype/property-paired-punctuation (Depends-on,
15388         configure.ac): Likewise.
15389         * modules/unictype/property-paragraph-separator (Depends-on,
15390         configure.ac): Likewise.
15391         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
15392         Likewise.
15393         * modules/unictype/property-pattern-white-space (Depends-on,
15394         configure.ac): Likewise.
15395         * modules/unictype/property-private-use (Depends-on, configure.ac):
15396         Likewise.
15397         * modules/unictype/property-punctuation (Depends-on, configure.ac):
15398         Likewise.
15399         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
15400         Likewise.
15401         * modules/unictype/property-radical (Depends-on, configure.ac):
15402         Likewise.
15403         * modules/unictype/property-sentence-terminal (Depends-on,
15404         configure.ac): Likewise.
15405         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
15406         Likewise.
15407         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
15408         * modules/unictype/property-terminal-punctuation (Depends-on,
15409         configure.ac): Likewise.
15410         * modules/unictype/property-titlecase (Depends-on, configure.ac):
15411         Likewise.
15412         * modules/unictype/property-unassigned-code-value (Depends-on,
15413         configure.ac): Likewise.
15414         * modules/unictype/property-unified-ideograph (Depends-on,
15415         configure.ac): Likewise.
15416         * modules/unictype/property-uppercase (Depends-on, configure.ac):
15417         Likewise.
15418         * modules/unictype/property-variation-selector (Depends-on,
15419         configure.ac): Likewise.
15420         * modules/unictype/property-white-space (Depends-on, configure.ac):
15421         Likewise.
15422         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
15423         Likewise.
15424         * modules/unictype/property-xid-start (Depends-on, configure.ac):
15425         Likewise.
15426         * modules/unictype/property-zero-width (Depends-on, configure.ac):
15427         Likewise.
15428         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
15429         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
15430         Likewise.
15431
15432 2009-12-31  Bruno Haible  <bruno@clisp.org>
15433
15434         Remove unnecessary AC_C_INLINE invocation.
15435         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
15436         since 2009-08-21.
15437
15438 2009-12-31  Jim Meyering  <meyering@redhat.com>
15439
15440         maint.mk: don't require explicit gpg_key_ID in cfg.mk
15441         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
15442         With this change, we can all remove the gpg_key_ID = ... definition
15443         from our respective cfg.mk files.
15444
15445         maint.mk: create announcement template in ~/, not in /tmp
15446         * top/maint.mk (emit_upload_commands): Adjust.
15447         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
15448         Remove temporary file, .ci-msg.
15449
15450 2009-12-31  Eric Blake  <ebb9@byu.net>
15451
15452         link-warning: always build headers with link warnings
15453         * modules/arpa_inet (Makefile.am): Always build replacement
15454         header.
15455         * modules/ctype (Makefile.am): Likewise.
15456         * modules/dirent (Makefile.am): Likewise.
15457         * modules/inttypes (Makefile.am): Likewise.
15458         * modules/langinfo (Makefile.am): Likewise.
15459         * modules/locale (Makefile.am): Likewise.
15460         * modules/spawn (Makefile.am): Likewise.
15461         * modules/sys_file (Makefile.am): Likewise.
15462         * modules/sys_ioctl (Makefile.am): Likewise.
15463         * modules/sys_select (Makefile.am): Likewise.
15464         * modules/sys_socket (Makefile.am): Likewise.
15465         * modules/sys_times (Makefile.am): Likewise.
15466         * modules/sys_utsname (Makefile.am): Likewise.
15467         * modules/sys_wait (Makefile.am): Likewise.
15468         * modules/wchar (Makefile.am): Likewise.
15469         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
15470         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
15471         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
15472         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
15473         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
15474         Likewise.
15475         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15476         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15477         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
15478         Likewise.
15479         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
15480         Likewise.
15481         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
15483         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
15484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15485         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15486         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15487         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15488         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
15489         (gl_WCHAR_H_DEFAULTS): Likewise.
15490
15491 2009-12-31  Eric Blake  <ebb9@byu.net>
15492
15493         signal, spawn: use link warnings
15494         * lib/signal.in.h (sigset_t): Make unconditional.
15495         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
15496         (sigpending, sigprocmask, sigaction): Add link warnings.
15497         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15498         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15499         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15500         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15501         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15502         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15503         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15504         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15505         (posix_spawn_file_actions_destroy)
15506         (posix_spawn_file_actions_addopen)
15507         (posix_spawn_file_actions_addclose)
15508         (posix_spawn_file_actions_adddup2): Likewise.
15509         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15510         * tests/test-signal.c (main): Enhance test.
15511
15512         spawn: improve wrapper support
15513         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15514         (gl_SPAWN_H_DEFAULTS): New defaults.
15515         * modules/spawn (Makefile.am): Substitute them.
15516         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15517         Only declare if missing or broken.
15518
15519         sys_times, sys_utsname: use include_next
15520         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15521         header.
15522         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15523         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15524         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15525         * modules/sys_times (Depends-on): Add include_next.
15526         (Makefile.am): Substitute additional values.
15527         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15528         * lib/sys_times.in.h (includes): Include native header, if
15529         available.
15530         * lib/sys_utsname.in.h (includes): Likewise.
15531         * tests/test-sys_times.c (main): Enhance test.
15532
15533         fdutimensat: revert prior patch
15534         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15535         utimens.h.
15536         Reported by Bruno Haible.
15537
15538 2009-12-30  Eric Blake  <ebb9@byu.net>
15539
15540         sys_wait: drop link-warning dependency
15541         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15542         link-warning efforts.
15543         * lib/sys_wait.in.h: Likewise.
15544
15545         fdutimensat: remove bogus dependency
15546         * modules/fdutimensat (Depends-on): Drop inline.
15547
15548         unistd: fix typo
15549         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15550
15551 2009-12-30  Bruno Haible  <bruno@clisp.org>
15552
15553         Fix compilation error with Solaris cc.
15554         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15555         * lib/unicase/u16-is-invariant.c: Likewise.
15556         * lib/unicase/u32-is-invariant.c: Likewise.
15557         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15558
15559 2009-12-30  Bruno Haible  <bruno@clisp.org>
15560
15561         Fix test crash.
15562         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15563         locales.
15564         Reported by Simon Josefsson <simon@josefsson.org>.
15565
15566 2009-12-30  Bruno Haible  <bruno@clisp.org>
15567
15568         Fix compilation error on most platforms.
15569         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15570         Reported by Simon Josefsson <simon@josefsson.org>
15571         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15572
15573 2009-12-30  Eric Blake  <ebb9@byu.net>
15574
15575         futimens, utimensat: work around ntfs-3g bug
15576         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15577         a ctime bug is present, and expand workaround to cover ntfs-3g.
15578         * lib/utimens.c (fdutimens, lutimens): Likewise.
15579         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15580         (validate_timespec): Adjust return value.
15581         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15582         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15583         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15584
15585 2009-12-29  Eric Blake  <ebb9@byu.net>
15586
15587         link-warning: make usage consistent
15588         * modules/ctype (Depends-on): Add link-warning.
15589         (Makefile.am): Update rules accordingly.
15590         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15591         * modules/locale (Depends-on, Makefile.am): Likewise.
15592         * modules/sys_file (Makefile.am): Likewise.
15593         * modules/getopt-posix (Makefile.am): Delete unused link warning
15594         efforts.
15595         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15596         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15597         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15598         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15599
15600         stdio: remove unused variables
15601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15602         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15603         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15604
15605         tests: test more substitute headers
15606         * modules/ctype-tests: New file.
15607         * modules/dirent-tests: Likewise.
15608         * modules/spawn-tests: Likewise.
15609         * modules/sys_file-tests: Likewise.
15610         * modules/sys_ioctl-tests: Likewise.
15611         * modules/sys_wait-tests: Likewise.
15612         * tests/test-ctype.c: Likewise.
15613         * tests/test-dirent.c: Likewise.
15614         * tests/test-spawn.c: Likewise.
15615         * tests/test-sys_file.c: Likewise.
15616         * tests/test-sys_ioctl.c: Likewise.
15617         * tests/test-sys_wait.c: Likewise.
15618         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15619         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15620         whether or not flock is in use.
15621
15622         tests: remove License section from module
15623         * modules/arpa_inet-tests: Remove unneeded section.
15624         * modules/byteswap-tests: Likewise.
15625         * modules/ceilf-tests: Likewise.
15626         * modules/ceill-tests: Likewise.
15627         * modules/crypto/des-tests: Likewise.
15628         * modules/crypto/gc-arcfour-tests: Likewise.
15629         * modules/crypto/gc-arctwo-tests: Likewise.
15630         * modules/crypto/gc-des-tests: Likewise.
15631         * modules/crypto/gc-hmac-md5-tests: Likewise.
15632         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15633         * modules/crypto/gc-md2-tests: Likewise.
15634         * modules/crypto/gc-md4-tests: Likewise.
15635         * modules/crypto/gc-md5-tests: Likewise.
15636         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15637         * modules/crypto/gc-rijndael-tests: Likewise.
15638         * modules/crypto/gc-sha1-tests: Likewise.
15639         * modules/crypto/gc-tests: Likewise.
15640         * modules/crypto/md2-tests: Likewise.
15641         * modules/crypto/md4-tests: Likewise.
15642         * modules/fcntl-h-tests: Likewise.
15643         * modules/floorf-tests: Likewise.
15644         * modules/floorl-tests: Likewise.
15645         * modules/frexp-nolibm-tests: Likewise.
15646         * modules/frexp-tests: Likewise.
15647         * modules/frexpl-nolibm-tests: Likewise.
15648         * modules/frexpl-tests: Likewise.
15649         * modules/getaddrinfo-tests: Likewise.
15650         * modules/inttypes-tests: Likewise.
15651         * modules/isfinite-tests: Likewise.
15652         * modules/isinf-tests: Likewise.
15653         * modules/ldexpl-tests: Likewise.
15654         * modules/locale-tests: Likewise.
15655         * modules/math-tests: Likewise.
15656         * modules/netdb-tests: Likewise.
15657         * modules/netinet_in-tests: Likewise.
15658         * modules/printf-frexp-tests: Likewise.
15659         * modules/printf-frexpl-tests: Likewise.
15660         * modules/priv-set-tests: Likewise.
15661         * modules/random_r-tests: Likewise.
15662         * modules/round-tests: Likewise.
15663         * modules/roundf-tests: Likewise.
15664         * modules/roundl-tests: Likewise.
15665         * modules/search-tests: Likewise.
15666         * modules/select-tests: Likewise.
15667         * modules/signal-tests: Likewise.
15668         * modules/stdbool-tests: Likewise.
15669         * modules/stddef-tests: Likewise.
15670         * modules/stdint-tests: Likewise.
15671         * modules/stdio-tests: Likewise.
15672         * modules/stdlib-tests: Likewise.
15673         * modules/string-tests: Likewise.
15674         * modules/strings-tests: Likewise.
15675         * modules/sys_select-tests: Likewise.
15676         * modules/sys_socket-tests: Likewise.
15677         * modules/sys_stat-tests: Likewise.
15678         * modules/sys_time-tests: Likewise.
15679         * modules/sys_utsname-tests: Likewise.
15680         * modules/sysexits-tests: Likewise.
15681         * modules/time-tests: Likewise.
15682         * modules/trunc-tests: Likewise.
15683         * modules/truncf-tests: Likewise.
15684         * modules/truncl-tests: Likewise.
15685         * modules/tsearch-tests: Likewise.
15686         * modules/unistd-tests: Likewise.
15687         * modules/wchar-tests: Likewise.
15688         * modules/wctype-tests: Likewise.
15689
15690         tests: fix license on several tests
15691         * tests/test-des.c: Update to GPLv3+.
15692         * tests/test-flock.c: Likewise.
15693         * tests/test-fsync.c: Likewise.
15694         * tests/test-futimens.h: Likewise.
15695         * tests/test-gc-arcfour.c: Likewise.
15696         * tests/test-gc-arctwo.c: Likewise.
15697         * tests/test-gc-des.c: Likewise.
15698         * tests/test-gc-hmac-md5.c: Likewise.
15699         * tests/test-gc-hmac-sha1.c: Likewise.
15700         * tests/test-gc-md2.c: Likewise.
15701         * tests/test-gc-md4.c: Likewise.
15702         * tests/test-gc-md5.c: Likewise.
15703         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15704         * tests/test-gc-rijndael.c: Likewise.
15705         * tests/test-gc-sha1.c: Likewise.
15706         * tests/test-gc.c: Likewise.
15707         * tests/test-getcwd.c: Likewise.
15708         * tests/test-link.c: Likewise.
15709         * tests/test-link.h: Likewise.
15710         * tests/test-lutimens.h: Likewise.
15711         * tests/test-md2.c: Likewise.
15712         * tests/test-md4.c: Likewise.
15713         * tests/test-mkdir.h: Likewise.
15714         * tests/test-rename.c: Likewise.
15715         * tests/test-rename.h: Likewise.
15716         * tests/test-safe-alloc.c: Likewise.
15717         * tests/test-utimens-common.h: Likewise.
15718         * tests/test-utimens.h: Likewise.
15719
15720         maint: sync license texts
15721         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15722         * doc/gpl-3.0.texi: Revert copyright year update.
15723         * doc/lgpl-3.0.texi: Likewise.
15724
15725 2009-12-29  Jim Meyering  <meyering@redhat.com>
15726
15727         update nearly all FSF copyright year lists to include 2009
15728         The files named by the following are exempted:
15729             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15730               test -f "$dst" && { echo "$dst"; continue; }
15731               test -d "$dst" || continue
15732               echo "$dst"/$(basename "$src")
15733             done > exempt
15734             git ls-files tests/unictype >> exempt
15735         In the remaining files, convert to all-interval notation if
15736         - there is already at least one year interval like 2000-2003
15737         - the file is maintained by me
15738         - the file is in lib/uni*/, where that style already prevails
15739         Otherwise, use update-copyright's default.
15740
15741 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15742         and Eric Blake  <ebb9@byu.net>
15743
15744         tests: don't require debug system() to pass
15745         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15746         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15747         * tests/test-unlink.h (test_unlink_func): Likewise.
15748         * tests/test-fstatat.c (main): ...into callers.
15749         * tests/test-lstat.c (main): Likewise.
15750         * tests/test-rmdir.c (main): Likewise.
15751         * tests/test-unlink.c (main): Likewise.
15752         * tests/test-unlinkat.c (main): Likewise.
15753         * tests/test-areadlink-with-size.c (main): Don't require a
15754         debug-only system call to pass, aiding cross-testing to mingw.
15755         * tests/test-areadlink.c (main): Likewise.
15756         * tests/test-areadlinkat-with-size.c (main): Likewise.
15757         * tests/test-areadlinkat.c (main): Likewise.
15758         * tests/test-canonicalize-lgpl.c (main): Likewise.
15759         * tests/test-canonicalize.c (main): Likewise.
15760         * tests/test-chown.c (main): Likewise.
15761         * tests/test-fchownat.c (main): Likewise.
15762         * tests/test-lchown.c (main): Likewise.
15763         * tests/test-fdutimensat.c (main): Likewise.
15764         * tests/test-futimens.c (main): Likewise.
15765         * tests/test-link.c (main): Likewise.
15766         * tests/test-linkat.c (main): Likewise.
15767         * tests/test-mkdir.c (main): Likewise.
15768         * tests/test-mkdirat.c (main): Likewise.
15769         * tests/test-mkfifo.c (main): Likewise.
15770         * tests/test-mkfifoat.c (main): Likewise.
15771         * tests/test-mknod.c (main): Likewise.
15772         * tests/test-readlink.c (main): Likewise.
15773         * tests/test-remove.c (main): Likewise.
15774         * tests/test-rename.c (main): Likewise.
15775         * tests/test-renameat.c (main): Likewise.
15776         * tests/test-symlink.c (main): Likewise.
15777         * tests/test-symlinkat.c (main): Likewise.
15778         * tests/test-utimens.c (main): Likewise.
15779         * tests/test-utimensat.c (main): Likewise.
15780
15781 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15782
15783         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15784         on $(UNUSED_PARAMETER_H) to avoid build failure.
15785
15786 2009-12-28  Jim Meyering  <meyering@redhat.com>
15787
15788         update-copyright: you may specify a max. line length other than 72
15789         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15790
15791         maint: use consistent FSF copyright line syntax
15792         * lib/posixtm.c: Add missing comma in FSF copyright line.
15793         * lib/posixtm.h: Likewise.
15794         * lib/getugroups.c: Add missing ", Inc.".
15795
15796         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15797         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15798         FSF copyright line.  Remove trailing blanks.
15799
15800 2009-12-28  Eric Blake  <ebb9@byu.net>
15801
15802         test-dup2: reduce dependencies
15803         * modules/cloexec (Configure.ac): Set witness.
15804         * modules/dup2-tests (Depends-on): Drop cloexec.
15805         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15806         not present.
15807         Suggested by Bruno Haible.
15808
15809 2009-12-26  Bruno Haible  <bruno@clisp.org>
15810
15811         Remove an unneeded dependency.
15812         * modules/fseterr (Depends-on): Remove dup2.
15813
15814 2009-12-26  Eric Blake  <ebb9@byu.net>
15815
15816         tests: use macros.h in more places
15817         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15818         (ASSERT_STREAM): Provide default of stderr.
15819         * tests/test-dirent-safer.c: Include macros.h, using alternate
15820         stream for assertions.
15821         * tests/test-dup-safer.c: Likewise.
15822         * tests/test-freopen-safer.c: Likewise.
15823         * tests/test-getopt.c: Likewise.
15824         * tests/test-openat-safer.c: Likewise.
15825         * tests/test-pipe.c: Likewise.
15826         * tests/test-popen-safer.c: Likewise.
15827         * modules/dirent-safer-tests (Files): Include macros.h.
15828         * modules/unistd-safer-tests (Files): Likewise.
15829         * modules/freopen-safer-tests (Files): Likewise.
15830         * modules/getopt-posix-tests (Files): Likewise.
15831         * modules/openat-safer-tests (Files): Likewise.
15832         * modules/pipe-tests (Files): Likewise.
15833
15834 2009-12-26  Bruno Haible  <bruno@clisp.org>
15835
15836         javacomp: Portability fix.
15837         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15838         that it also works on Solaris.
15839
15840 2009-12-26  Bruno Haible  <bruno@clisp.org>
15841
15842         localename: Fix storage allocation of gl_locale_name_thread's result.
15843         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15844         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15845         all platforms that have 'uselocale'.
15846         (gl_locale_name_thread_unsafe): New function, extracted from
15847         gl_locale_name_thread.
15848         (gl_locale_name_thread): Call struniq on all platforms that have
15849         'uselocale'.
15850         * tests/test-localename.c (test_locale_name_thread): Check that the
15851         resulting strings are permanently allocated.
15852         * modules/localename-tests (Depends-on): Add strdup.
15853
15854 2009-12-26  Bruno Haible  <bruno@clisp.org>
15855
15856         * tests/test-localename.c (categories): Fill in the strings.
15857
15858 2009-12-26  Jim Meyering  <meyering@redhat.com>
15859
15860         isdir: complete the removal of m4/isdir.m4
15861         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15862
15863         isdir: clean up, since at least grep still uses it
15864         * lib/isdir.c: Include "isdir.h".
15865         (S_ISDIR): Remove now-unneeded definition.
15866         * modules/isdir (Files): Add lib/isdir.h.
15867         * lib/isdir.h: New file, with declaration.
15868         * m4/isdir.m4: Remove file -- unneeded.
15869
15870 2009-12-25  Bruno Haible  <bruno@clisp.org>
15871
15872         selinux-h: Make generated .h files standalone.
15873         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15874         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15875         * lib/se-selinux.in.h: Likewise.
15876         * modules/selinux-h (Depends-on): Add unused-parameter.
15877         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15878         selinux/selinux.h and selinux/context.h.
15879         Suggested by Eric Blake.
15880
15881 2009-12-25  Bruno Haible  <bruno@clisp.org>
15882
15883         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15884         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15885         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15886         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15887         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15888
15889 2009-12-24  Bruno Haible  <bruno@clisp.org>
15890
15891         openat: Fix warning.
15892         * lib/openat-proc.c: Include <unistd.h>.
15893
15894 2009-12-24  Bruno Haible  <bruno@clisp.org>
15895
15896         New module 'unused-parameter'.
15897         * build-aux/unused-parameter.h: New file, extracted from earlier
15898         gnulib-common.m4.
15899         * modules/unused-parameter: New file.
15900         * lib/unistr.h: Include unused-parameter.h.
15901         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15902         _GL_UNUSED.
15903         * modules/unistr/base (Depends-on): Add unused-parameter.
15904
15905 2009-12-24  Bruno Haible  <bruno@clisp.org>
15906
15907         Add missing dependencies to 'extensions' module.
15908         * m4/extensions.m4: Add comment.
15909         * modules/accept4 (Depends-on): Add extensions.
15910         * modules/dup3 (Depends-on): Likewise.
15911         * modules/fcntl (Depends-on): Likewise.
15912         * modules/futimens (Depends-on): Likewise.
15913         * modules/mknod (Depends-on): Likewise.
15914         * modules/pipe2 (Depends-on): Likewise.
15915         * modules/stat-time (Depends-on): Likewise.
15916         * modules/strcasestr-simple (Depends-on): Likewise.
15917         * modules/strsignal (Depends-on): Likewise.
15918         * modules/utimensat (Depends-on): Likewise.
15919         * modules/localcharset (Depends-on): Likewise. Needed because of
15920         gl_FCNTL_O_FLAGS.
15921         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15922         AC_TYPE_MBSTATE_T.
15923         * modules/wcsnrtombs (Depends-on): Likewise.
15924         * modules/wcsrtombs (Depends-on): Likewise.
15925
15926 2009-12-24  Bruno Haible  <bruno@clisp.org>
15927
15928         binary-io: Avoid gcc warning due to SET_BINARY.
15929         * lib/binary-io.h (SET_BINARY): Cast the result to void.
15930         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
15931
15932 2009-12-24  Bruno Haible  <bruno@clisp.org>
15933
15934         Avoid future namespace pollution on glibc systems.
15935         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
15936         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
15937         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
15938         glibc systems.
15939
15940 2009-12-24  Bruno Haible  <bruno@clisp.org>
15941
15942         Refactor common macros used in tests.
15943         * tests/macros.h: New file.
15944         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
15945         and/or <stdlib.h>, if appropriate.
15946         (ASSERT, SIZEOF): Remove macros.
15947         * tests/test-areadlink-with-size.c: Likewise.
15948         * tests/test-areadlinkat.c: Likewise.
15949         * tests/test-areadlinkat-with-size.c: Likewise.
15950         * tests/test-argmatch.c: Likewise.
15951         * tests/test-argv-iter.c: Likewise.
15952         * tests/test-array-mergesort.c: Likewise.
15953         * tests/test-array_list.c: Likewise.
15954         * tests/test-array_oset.c: Likewise.
15955         * tests/test-avltree_list.c: Likewise.
15956         * tests/test-avltree_oset.c: Likewise.
15957         * tests/test-avltreehash_list.c: Likewise.
15958         * tests/test-base64.c: Likewise.
15959         * tests/test-binary-io.c: Likewise.
15960         * tests/test-bitrotate.c: Likewise.
15961         * tests/test-btowc.c: Likewise.
15962         * tests/test-byteswap.c: Likewise.
15963         * tests/test-c-ctype.c: Likewise.
15964         * tests/test-c-stack.c: Likewise.
15965         * tests/test-c-strcasecmp.c: Likewise.
15966         * tests/test-c-strcasestr.c: Likewise.
15967         * tests/test-c-strncasecmp.c: Likewise.
15968         * tests/test-c-strstr.c: Likewise.
15969         * tests/test-canonicalize-lgpl.c: Likewise.
15970         * tests/test-canonicalize.c: Likewise.
15971         * tests/test-carray_list.c: Likewise.
15972         * tests/test-ceilf1.c: Likewise.
15973         * tests/test-ceilf2.c: Likewise.
15974         * tests/test-ceill.c: Likewise.
15975         * tests/test-chown.c: Likewise.
15976         * tests/test-cloexec.c: Likewise.
15977         * tests/test-copy-acl.c: Likewise.
15978         * tests/test-copy-file.c: Likewise.
15979         * tests/test-count-one-bits.c: Likewise.
15980         * tests/test-dprintf-posix.c: Likewise.
15981         * tests/test-dup2.c: Likewise.
15982         * tests/test-dup3.c: Likewise.
15983         * tests/test-duplocale.c: Likewise.
15984         * tests/test-fbufmode.c: Likewise.
15985         * tests/test-fchdir.c: Likewise.
15986         * tests/test-fchownat.c: Likewise.
15987         * tests/test-fcntl-safer.c: Likewise.
15988         * tests/test-fcntl.c: Likewise.
15989         * tests/test-fdopendir.c: Likewise.
15990         * tests/test-fdutimensat.c: Likewise.
15991         * tests/test-fflush2.c: Likewise.
15992         * tests/test-file-has-acl.c: Likewise.
15993         * tests/test-filevercmp.c: Likewise.
15994         * tests/test-flock.c: Likewise.
15995         * tests/test-floorf1.c: Likewise.
15996         * tests/test-floorf2.c: Likewise.
15997         * tests/test-floorl.c: Likewise.
15998         * tests/test-fnmatch.c: Likewise.
15999         * tests/test-fopen.h: Likewise.
16000         * tests/test-fpending.c: Likewise.
16001         * tests/test-fprintf-posix.c: Likewise.
16002         * tests/test-fpurge.c: Likewise.
16003         * tests/test-freadable.c: Likewise.
16004         * tests/test-freadahead.c: Likewise.
16005         * tests/test-freading.c: Likewise.
16006         * tests/test-freadptr.c: Likewise.
16007         * tests/test-freadptr2.c: Likewise.
16008         * tests/test-freadseek.c: Likewise.
16009         * tests/test-freopen.c: Likewise.
16010         * tests/test-frexp.c: Likewise.
16011         * tests/test-frexpl.c: Likewise.
16012         * tests/test-fseek.c: Likewise.
16013         * tests/test-fseeko.c: Likewise.
16014         * tests/test-fstatat.c: Likewise.
16015         * tests/test-fstrcmp.c: Likewise.
16016         * tests/test-fsync.c: Likewise.
16017         * tests/test-ftell.c: Likewise.
16018         * tests/test-ftello.c: Likewise.
16019         * tests/test-func.c: Likewise.
16020         * tests/test-futimens.c: Likewise.
16021         * tests/test-fwritable.c: Likewise.
16022         * tests/test-fwriting.c: Likewise.
16023         * tests/test-getcwd.c: Likewise.
16024         * tests/test-getdate.c: Likewise.
16025         * tests/test-getdelim.c: Likewise.
16026         * tests/test-getdtablesize.c: Likewise.
16027         * tests/test-getgroups.c: Likewise.
16028         * tests/test-getline.c: Likewise.
16029         * tests/test-getndelim2.c: Likewise.
16030         * tests/test-glob.c: Likewise.
16031         * tests/test-hash.c: Likewise.
16032         * tests/test-i-ring.c: Likewise.
16033         * tests/test-iconv-utf.c: Likewise.
16034         * tests/test-iconv.c: Likewise.
16035         * tests/test-idpriv-drop.c: Likewise.
16036         * tests/test-idpriv-droptemp.c: Likewise.
16037         * tests/test-inet_ntop.c: Likewise.
16038         * tests/test-inet_pton.c: Likewise.
16039         * tests/test-isblank.c: Likewise.
16040         * tests/test-isfinite.c: Likewise.
16041         * tests/test-isinf.c: Likewise.
16042         * tests/test-isnan.c: Likewise.
16043         * tests/test-isnand.h: Likewise.
16044         * tests/test-isnanf.h: Likewise.
16045         * tests/test-isnanl.h: Likewise.
16046         * tests/test-lchown.c: Likewise.
16047         * tests/test-ldexpl.c: Likewise.
16048         * tests/test-link.c: Likewise.
16049         * tests/test-linkat.c: Likewise.
16050         * tests/test-linked_list.c: Likewise.
16051         * tests/test-linkedhash_list.c: Likewise.
16052         * tests/test-localename.c: Likewise.
16053         * tests/test-lseek.c: Likewise.
16054         * tests/test-lstat.c: Likewise.
16055         * tests/test-mbmemcasecmp.c: Likewise.
16056         * tests/test-mbmemcasecoll.c: Likewise.
16057         * tests/test-mbrtowc.c: Likewise.
16058         * tests/test-mbscasecmp.c: Likewise.
16059         * tests/test-mbscasestr1.c: Likewise.
16060         * tests/test-mbscasestr2.c: Likewise.
16061         * tests/test-mbscasestr3.c: Likewise.
16062         * tests/test-mbscasestr4.c: Likewise.
16063         * tests/test-mbschr.c: Likewise.
16064         * tests/test-mbscspn.c: Likewise.
16065         * tests/test-mbsinit.c: Likewise.
16066         * tests/test-mbsncasecmp.c: Likewise.
16067         * tests/test-mbsnrtowcs.c: Likewise.
16068         * tests/test-mbspbrk.c: Likewise.
16069         * tests/test-mbspcasecmp.c: Likewise.
16070         * tests/test-mbsrchr.c: Likewise.
16071         * tests/test-mbsrtowcs.c: Likewise.
16072         * tests/test-mbsspn.c: Likewise.
16073         * tests/test-mbsstr1.c: Likewise.
16074         * tests/test-mbsstr2.c: Likewise.
16075         * tests/test-mbsstr3.c: Likewise.
16076         * tests/test-memchr.c: Likewise.
16077         * tests/test-memchr2.c: Likewise.
16078         * tests/test-memcmp.c: Likewise.
16079         * tests/test-memmem.c: Likewise.
16080         * tests/test-memrchr.c: Likewise.
16081         * tests/test-mkdir.c: Likewise.
16082         * tests/test-mkdirat.c: Likewise.
16083         * tests/test-mkfifo.c: Likewise.
16084         * tests/test-mkfifoat.c: Likewise.
16085         * tests/test-mknod.c: Likewise.
16086         * tests/test-nanosleep.c: Likewise.
16087         * tests/test-nl_langinfo.c: Likewise.
16088         * tests/test-obstack-printf.c: Likewise.
16089         * tests/test-open.c: Likewise.
16090         * tests/test-openat.c: Likewise.
16091         * tests/test-pipe-filter-gi1.c: Likewise.
16092         * tests/test-pipe-filter-gi2-main.c: Likewise.
16093         * tests/test-pipe-filter-ii1.c: Likewise.
16094         * tests/test-pipe-filter-ii2-main.c: Likewise.
16095         * tests/test-pipe2.c: Likewise.
16096         * tests/test-popen.h: Likewise.
16097         * tests/test-posixtm.c: Likewise.
16098         * tests/test-pread.c: Likewise.
16099         * tests/test-printf-frexp.c: Likewise.
16100         * tests/test-printf-frexpl.c: Likewise.
16101         * tests/test-printf-posix.c: Likewise.
16102         * tests/test-priv-set.c: Likewise.
16103         * tests/test-quotearg.c: Likewise.
16104         * tests/test-random_r.c: Likewise.
16105         * tests/test-rawmemchr.c: Likewise.
16106         * tests/test-rbtree_list.c: Likewise.
16107         * tests/test-rbtree_oset.c: Likewise.
16108         * tests/test-rbtreehash_list.c: Likewise.
16109         * tests/test-readlink.c: Likewise.
16110         * tests/test-remove.c: Likewise.
16111         * tests/test-rename.c: Likewise.
16112         * tests/test-renameat.c: Likewise.
16113         * tests/test-rmdir.c: Likewise.
16114         * tests/test-round1.c: Likewise.
16115         * tests/test-roundf1.c: Likewise.
16116         * tests/test-roundl.c: Likewise.
16117         * tests/test-safe-alloc.c: Likewise.
16118         * tests/test-sameacls.c: Likewise.
16119         * tests/test-set-mode-acl.c: Likewise.
16120         * tests/test-setenv.c: Likewise.
16121         * tests/test-sigaction.c: Likewise.
16122         * tests/test-signbit.c: Likewise.
16123         * tests/test-sleep.c: Likewise.
16124         * tests/test-snprintf-posix.c: Likewise.
16125         * tests/test-snprintf.c: Likewise.
16126         * tests/test-sprintf-posix.c: Likewise.
16127         * tests/test-stat-time.c: Likewise.
16128         * tests/test-stat.c: Likewise.
16129         * tests/test-strcasestr.c: Likewise.
16130         * tests/test-strchrnul.c: Likewise.
16131         * tests/test-strerror.c: Likewise.
16132         * tests/test-striconv.c: Likewise.
16133         * tests/test-striconveh.c: Likewise.
16134         * tests/test-striconveha.c: Likewise.
16135         * tests/test-strsignal.c: Likewise.
16136         * tests/test-strstr.c: Likewise.
16137         * tests/test-strtod.c: Likewise.
16138         * tests/test-strverscmp.c: Likewise.
16139         * tests/test-symlink.c: Likewise.
16140         * tests/test-symlinkat.c: Likewise.
16141         * tests/test-trunc1.c: Likewise.
16142         * tests/test-trunc2.c: Likewise.
16143         * tests/test-truncf1.c: Likewise.
16144         * tests/test-truncf2.c: Likewise.
16145         * tests/test-truncl.c: Likewise.
16146         * tests/test-uname.c: Likewise.
16147         * tests/test-unlink.c: Likewise.
16148         * tests/test-unlinkat.c: Likewise.
16149         * tests/test-unsetenv.c: Likewise.
16150         * tests/test-usleep.c: Likewise.
16151         * tests/test-utimens.c: Likewise.
16152         * tests/test-utimensat.c: Likewise.
16153         * tests/test-vasnprintf-posix.c: Likewise.
16154         * tests/test-vasnprintf-posix2.c: Likewise.
16155         * tests/test-vasnprintf.c: Likewise.
16156         * tests/test-vasprintf-posix.c: Likewise.
16157         * tests/test-vasprintf.c: Likewise.
16158         * tests/test-vdprintf-posix.c: Likewise.
16159         * tests/test-vfprintf-posix.c: Likewise.
16160         * tests/test-vprintf-posix.c: Likewise.
16161         * tests/test-vsnprintf-posix.c: Likewise.
16162         * tests/test-vsnprintf.c: Likewise.
16163         * tests/test-vsprintf-posix.c: Likewise.
16164         * tests/test-wcrtomb.c: Likewise.
16165         * tests/test-wcsnrtombs.c: Likewise.
16166         * tests/test-wcsrtombs.c: Likewise.
16167         * tests/test-wctype.c: Likewise.
16168         * tests/test-wcwidth.c: Likewise.
16169         * tests/test-xfprintf-posix.c: Likewise.
16170         * tests/test-xmemdup0.c: Likewise.
16171         * tests/test-xprintf-posix.c: Likewise.
16172         * tests/test-xvasprintf.c: Likewise.
16173         * tests/unicase/test-locale-language.c: Likewise.
16174         * tests/unicase/test-mapping-part1.h: Likewise.
16175         * tests/unicase/test-predicate-part1.h: Likewise.
16176         * tests/unicase/test-u8-casecmp.c: Likewise.
16177         * tests/unicase/test-u8-casecoll.c: Likewise.
16178         * tests/unicase/test-u8-casefold.c: Likewise.
16179         * tests/unicase/test-u8-is-cased.c: Likewise.
16180         * tests/unicase/test-u8-is-casefolded.c: Likewise.
16181         * tests/unicase/test-u8-is-lowercase.c: Likewise.
16182         * tests/unicase/test-u8-is-titlecase.c: Likewise.
16183         * tests/unicase/test-u8-is-uppercase.c: Likewise.
16184         * tests/unicase/test-u8-tolower.c: Likewise.
16185         * tests/unicase/test-u8-totitle.c: Likewise.
16186         * tests/unicase/test-u8-toupper.c: Likewise.
16187         * tests/unicase/test-u16-casecmp.c: Likewise.
16188         * tests/unicase/test-u16-casecoll.c: Likewise.
16189         * tests/unicase/test-u16-casefold.c: Likewise.
16190         * tests/unicase/test-u16-is-cased.c: Likewise.
16191         * tests/unicase/test-u16-is-casefolded.c: Likewise.
16192         * tests/unicase/test-u16-is-lowercase.c: Likewise.
16193         * tests/unicase/test-u16-is-titlecase.c: Likewise.
16194         * tests/unicase/test-u16-is-uppercase.c: Likewise.
16195         * tests/unicase/test-u16-tolower.c: Likewise.
16196         * tests/unicase/test-u16-totitle.c: Likewise.
16197         * tests/unicase/test-u16-toupper.c: Likewise.
16198         * tests/unicase/test-u32-casecmp.c: Likewise.
16199         * tests/unicase/test-u32-casecoll.c: Likewise.
16200         * tests/unicase/test-u32-casefold.c: Likewise.
16201         * tests/unicase/test-u32-is-cased.c: Likewise.
16202         * tests/unicase/test-u32-is-casefolded.c: Likewise.
16203         * tests/unicase/test-u32-is-lowercase.c: Likewise.
16204         * tests/unicase/test-u32-is-titlecase.c: Likewise.
16205         * tests/unicase/test-u32-is-uppercase.c: Likewise.
16206         * tests/unicase/test-u32-tolower.c: Likewise.
16207         * tests/unicase/test-u32-totitle.c: Likewise.
16208         * tests/unicase/test-u32-toupper.c: Likewise.
16209         * tests/unicase/test-ulc-casecmp.c: Likewise.
16210         * tests/unicase/test-ulc-casecoll.c: Likewise.
16211         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16212         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16213         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16214         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16215         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16216         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16217         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16218         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16219         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16220         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16221         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16222         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16223         * tests/unictype/test-bidi_byname.c: Likewise.
16224         * tests/unictype/test-bidi_name.c: Likewise.
16225         * tests/unictype/test-bidi_of.c: Likewise.
16226         * tests/unictype/test-bidi_test.c: Likewise.
16227         * tests/unictype/test-block_list.c: Likewise.
16228         * tests/unictype/test-block_of.c: Likewise.
16229         * tests/unictype/test-block_test.c: Likewise.
16230         * tests/unictype/test-categ_and.c: Likewise.
16231         * tests/unictype/test-categ_and_not.c: Likewise.
16232         * tests/unictype/test-categ_byname.c: Likewise.
16233         * tests/unictype/test-categ_name.c: Likewise.
16234         * tests/unictype/test-categ_none.c: Likewise.
16235         * tests/unictype/test-categ_of.c: Likewise.
16236         * tests/unictype/test-categ_or.c: Likewise.
16237         * tests/unictype/test-categ_test_withtable.c: Likewise.
16238         * tests/unictype/test-combining.c: Likewise.
16239         * tests/unictype/test-decdigit.c: Likewise.
16240         * tests/unictype/test-digit.c: Likewise.
16241         * tests/unictype/test-mirror.c: Likewise.
16242         * tests/unictype/test-numeric.c: Likewise.
16243         * tests/unictype/test-pr_byname.c: Likewise.
16244         * tests/unictype/test-pr_test.c: Likewise.
16245         * tests/unictype/test-predicate-part1.h: Likewise.
16246         * tests/unictype/test-scripts.c: Likewise.
16247         * tests/unictype/test-sy_c_ident.c: Likewise.
16248         * tests/unictype/test-sy_java_ident.c: Likewise.
16249         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
16250         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
16251         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
16252         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
16253         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
16254         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
16255         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
16256         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
16257         * tests/uninorm/test-canonical-decomposition.c: Likewise.
16258         * tests/uninorm/test-compat-decomposition.c: Likewise.
16259         * tests/uninorm/test-composition.c: Likewise.
16260         * tests/uninorm/test-decomposing-form.c: Likewise.
16261         * tests/uninorm/test-decomposition.c: Likewise.
16262         * tests/uninorm/test-u8-nfc.c: Likewise.
16263         * tests/uninorm/test-u8-nfd.c: Likewise.
16264         * tests/uninorm/test-u8-nfkc.c: Likewise.
16265         * tests/uninorm/test-u8-nfkd.c: Likewise.
16266         * tests/uninorm/test-u8-normcmp.c: Likewise.
16267         * tests/uninorm/test-u8-normcoll.c: Likewise.
16268         * tests/uninorm/test-u16-nfc.c: Likewise.
16269         * tests/uninorm/test-u16-nfd.c: Likewise.
16270         * tests/uninorm/test-u16-nfkc.c: Likewise.
16271         * tests/uninorm/test-u16-nfkd.c: Likewise.
16272         * tests/uninorm/test-u16-normcmp.c: Likewise.
16273         * tests/uninorm/test-u16-normcoll.c: Likewise.
16274         * tests/uninorm/test-u32-nfc.c: Likewise.
16275         * tests/uninorm/test-u32-nfd.c: Likewise.
16276         * tests/uninorm/test-u32-nfkc.c: Likewise.
16277         * tests/uninorm/test-u32-nfkd.c: Likewise.
16278         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16279         * tests/uninorm/test-u32-normcmp.c: Likewise.
16280         * tests/uninorm/test-u32-normcoll.c: Likewise.
16281         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
16282         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16283         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16284         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16285         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16286         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16287         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16288         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16289         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16290         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16291         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16292         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16293         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16294         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16295         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16296         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16297         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16298         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16299         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16300         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16301         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16302         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16303         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16304         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16305         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16306         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16307         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16308         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16309         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16310         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
16311         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
16312         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
16313         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
16314         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16315         * tests/uniwidth/test-u8-width.c: Likewise.
16316         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16317         * tests/uniwidth/test-u16-width.c: Likewise.
16318         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16319         * tests/uniwidth/test-u32-width.c: Likewise.
16320         * tests/uniwidth/test-uc_width.c: Likewise.
16321         * tests/uniwidth/test-uc_width2.c: Likewise.
16322         * modules/acl-tests (Files): Add tests/macros.h.
16323         * modules/areadlink-tests (Files): Likewise.
16324         * modules/areadlink-with-size-tests (Files): Likewise.
16325         * modules/areadlinkat-tests (Files): Likewise.
16326         * modules/areadlinkat-with-size-tests (Files): Likewise.
16327         * modules/argmatch-tests (Files): Likewise.
16328         * modules/argv-iter-tests (Files): Likewise.
16329         * modules/array-list-tests (Files): Likewise.
16330         * modules/array-mergesort-tests (Files): Likewise.
16331         * modules/array-oset-tests (Files): Likewise.
16332         * modules/avltree-list-tests (Files): Likewise.
16333         * modules/avltree-oset-tests (Files): Likewise.
16334         * modules/avltreehash-list-tests (Files): Likewise.
16335         * modules/base64-tests (Files): Likewise.
16336         * modules/binary-io-tests (Files): Likewise.
16337         * modules/bitrotate-tests (Files): Likewise.
16338         * modules/btowc-tests (Files): Likewise.
16339         * modules/byteswap-tests (Files): Likewise.
16340         * modules/c-ctype-tests (Files): Likewise.
16341         * modules/c-stack-tests (Files): Likewise.
16342         * modules/c-strcase-tests (Files): Likewise.
16343         * modules/c-strcasestr-tests (Files): Likewise.
16344         * modules/c-strstr-tests (Files): Likewise.
16345         * modules/canonicalize-lgpl-tests (Files): Likewise.
16346         * modules/canonicalize-tests (Files): Likewise.
16347         * modules/carray-list-tests (Files): Likewise.
16348         * modules/ceilf-tests (Files): Likewise.
16349         * modules/ceill-tests (Files): Likewise.
16350         * modules/chown-tests (Files): Likewise.
16351         * modules/cloexec-tests (Files): Likewise.
16352         * modules/copy-file-tests (Files): Likewise.
16353         * modules/count-one-bits-tests (Files): Likewise.
16354         * modules/dprintf-posix-tests (Files): Likewise.
16355         * modules/dup2-tests (Files): Likewise.
16356         * modules/dup3-tests (Files): Likewise.
16357         * modules/duplocale-tests (Files): Likewise.
16358         * modules/fbufmode-tests (Files): Likewise.
16359         * modules/fchdir-tests (Files): Likewise.
16360         * modules/fcntl-safer-tests (Files): Likewise.
16361         * modules/fcntl-tests (Files): Likewise.
16362         * modules/fdopendir-tests (Files): Likewise.
16363         * modules/fdutimensat-tests (Files): Likewise.
16364         * modules/fflush-tests (Files): Likewise.
16365         * modules/filevercmp-tests (Files): Likewise.
16366         * modules/flock-tests (Files): Likewise.
16367         * modules/floorf-tests (Files): Likewise.
16368         * modules/floorl-tests (Files): Likewise.
16369         * modules/fnmatch-tests (Files): Likewise.
16370         * modules/fopen-safer-tests (Files): Likewise.
16371         * modules/fopen-tests (Files): Likewise.
16372         * modules/fpending-tests (Files): Likewise.
16373         * modules/fprintf-posix-tests (Files): Likewise.
16374         * modules/fpurge-tests (Files): Likewise.
16375         * modules/freadable-tests (Files): Likewise.
16376         * modules/freadahead-tests (Files): Likewise.
16377         * modules/freading-tests (Files): Likewise.
16378         * modules/freadptr-tests (Files): Likewise.
16379         * modules/freadseek-tests (Files): Likewise.
16380         * modules/freopen-tests (Files): Likewise.
16381         * modules/frexp-nolibm-tests (Files): Likewise.
16382         * modules/frexp-tests (Files): Likewise.
16383         * modules/frexpl-nolibm-tests (Files): Likewise.
16384         * modules/frexpl-tests (Files): Likewise.
16385         * modules/fseek-tests (Files): Likewise.
16386         * modules/fseeko-tests (Files): Likewise.
16387         * modules/fstrcmp-tests (Files): Likewise.
16388         * modules/fsync-tests (Files): Likewise.
16389         * modules/ftell-tests (Files): Likewise.
16390         * modules/ftello-tests (Files): Likewise.
16391         * modules/func-tests (Files): Likewise.
16392         * modules/futimens-tests (Files): Likewise.
16393         * modules/fwritable-tests (Files): Likewise.
16394         * modules/fwriting-tests (Files): Likewise.
16395         * modules/getcwd-tests (Files): Likewise.
16396         * modules/getdate-tests (Files): Likewise.
16397         * modules/getdelim-tests (Files): Likewise.
16398         * modules/getdtablesize-tests (Files): Likewise.
16399         * modules/getgroups-tests (Files): Likewise.
16400         * modules/getline-tests (Files): Likewise.
16401         * modules/getndelim2-tests (Files): Likewise.
16402         * modules/glob-tests (Files): Likewise.
16403         * modules/hash-tests (Files): Likewise.
16404         * modules/i-ring-tests (Files): Likewise.
16405         * modules/iconv-tests (Files): Likewise.
16406         * modules/iconv_open-utf-tests (Files): Likewise.
16407         * modules/idpriv-drop-tests (Files): Likewise.
16408         * modules/idpriv-droptemp-tests (Files): Likewise.
16409         * modules/inet_ntop-tests (Files): Likewise.
16410         * modules/inet_pton-tests (Files): Likewise.
16411         * modules/isblank-tests (Files): Likewise.
16412         * modules/isfinite-tests (Files): Likewise.
16413         * modules/isinf-tests (Files): Likewise.
16414         * modules/isnan-tests (Files): Likewise.
16415         * modules/isnand-nolibm-tests (Files): Likewise.
16416         * modules/isnand-tests (Files): Likewise.
16417         * modules/isnanf-nolibm-tests (Files): Likewise.
16418         * modules/isnanf-tests (Files): Likewise.
16419         * modules/isnanl-nolibm-tests (Files): Likewise.
16420         * modules/isnanl-tests (Files): Likewise.
16421         * modules/lchown-tests (Files): Likewise.
16422         * modules/ldexpl-tests (Files): Likewise.
16423         * modules/link-tests (Files): Likewise.
16424         * modules/linkat-tests (Files): Likewise.
16425         * modules/linked-list-tests (Files): Likewise.
16426         * modules/linkedhash-list-tests (Files): Likewise.
16427         * modules/localename-tests (Files): Likewise.
16428         * modules/lseek-tests (Files): Likewise.
16429         * modules/lstat-tests (Files): Likewise.
16430         * modules/mbmemcasecmp-tests (Files): Likewise.
16431         * modules/mbmemcasecoll-tests (Files): Likewise.
16432         * modules/mbrtowc-tests (Files): Likewise.
16433         * modules/mbscasecmp-tests (Files): Likewise.
16434         * modules/mbscasestr-tests (Files): Likewise.
16435         * modules/mbschr-tests (Files): Likewise.
16436         * modules/mbscspn-tests (Files): Likewise.
16437         * modules/mbsinit-tests (Files): Likewise.
16438         * modules/mbsncasecmp-tests (Files): Likewise.
16439         * modules/mbsnrtowcs-tests (Files): Likewise.
16440         * modules/mbspbrk-tests (Files): Likewise.
16441         * modules/mbspcasecmp-tests (Files): Likewise.
16442         * modules/mbsrchr-tests (Files): Likewise.
16443         * modules/mbsrtowcs-tests (Files): Likewise.
16444         * modules/mbsspn-tests (Files): Likewise.
16445         * modules/mbsstr-tests (Files): Likewise.
16446         * modules/memchr-tests (Files): Likewise.
16447         * modules/memchr2-tests (Files): Likewise.
16448         * modules/memcmp-tests (Files): Likewise.
16449         * modules/memmem-tests (Files): Likewise.
16450         * modules/memrchr-tests (Files): Likewise.
16451         * modules/mkdir-tests (Files): Likewise.
16452         * modules/mkfifo-tests (Files): Likewise.
16453         * modules/mkfifoat-tests (Files): Likewise.
16454         * modules/mknod-tests (Files): Likewise.
16455         * modules/nanosleep-tests (Files): Likewise.
16456         * modules/nl_langinfo-tests (Files): Likewise.
16457         * modules/obstack-printf-tests (Files): Likewise.
16458         * modules/open-tests (Files): Likewise.
16459         * modules/openat-tests (Files): Likewise.
16460         * modules/pipe-filter-gi-tests (Files): Likewise.
16461         * modules/pipe-filter-ii-tests (Files): Likewise.
16462         * modules/pipe2-tests (Files): Likewise.
16463         * modules/popen-safer-tests (Files): Likewise.
16464         * modules/popen-tests (Files): Likewise.
16465         * modules/posixtm-tests (Files): Likewise.
16466         * modules/pread-tests (Files): Likewise.
16467         * modules/printf-frexp-tests (Files): Likewise.
16468         * modules/printf-frexpl-tests (Files): Likewise.
16469         * modules/printf-posix-tests (Files): Likewise.
16470         * modules/priv-set-tests (Files): Likewise.
16471         * modules/quotearg-tests (Files): Likewise.
16472         * modules/random_r-tests (Files): Likewise.
16473         * modules/rawmemchr-tests (Files): Likewise.
16474         * modules/rbtree-list-tests (Files): Likewise.
16475         * modules/rbtree-oset-tests (Files): Likewise.
16476         * modules/rbtreehash-list-tests (Files): Likewise.
16477         * modules/readlink-tests (Files): Likewise.
16478         * modules/remove-tests (Files): Likewise.
16479         * modules/rename-tests (Files): Likewise.
16480         * modules/renameat-tests (Files): Likewise.
16481         * modules/rmdir-tests (Files): Likewise.
16482         * modules/round-tests (Files): Likewise.
16483         * modules/roundf-tests (Files): Likewise.
16484         * modules/roundl-tests (Files): Likewise.
16485         * modules/safe-alloc-tests (Files): Likewise.
16486         * modules/setenv-tests (Files): Likewise.
16487         * modules/sigaction-tests (Files): Likewise.
16488         * modules/signbit-tests (Files): Likewise.
16489         * modules/sleep-tests (Files): Likewise.
16490         * modules/snprintf-posix-tests (Files): Likewise.
16491         * modules/snprintf-tests (Files): Likewise.
16492         * modules/sprintf-posix-tests (Files): Likewise.
16493         * modules/stat-tests (Files): Likewise.
16494         * modules/stat-time-tests (Files): Likewise.
16495         * modules/strcasestr-tests (Files): Likewise.
16496         * modules/strchrnul-tests (Files): Likewise.
16497         * modules/strerror-tests (Files): Likewise.
16498         * modules/striconv-tests (Files): Likewise.
16499         * modules/striconveh-tests (Files): Likewise.
16500         * modules/striconveha-tests (Files): Likewise.
16501         * modules/strsignal-tests (Files): Likewise.
16502         * modules/strstr-tests (Files): Likewise.
16503         * modules/strtod-tests (Files): Likewise.
16504         * modules/strverscmp-tests (Files): Likewise.
16505         * modules/symlink-tests (Files): Likewise.
16506         * modules/symlinkat-tests (Files): Likewise.
16507         * modules/trunc-tests (Files): Likewise.
16508         * modules/truncf-tests (Files): Likewise.
16509         * modules/truncl-tests (Files): Likewise.
16510         * modules/uname-tests (Files): Likewise.
16511         * modules/unicase/cased-tests (Files): Likewise.
16512         * modules/unicase/ignorable-tests (Files): Likewise.
16513         * modules/unicase/locale-language-tests (Files): Likewise.
16514         * modules/unicase/tolower-tests (Files): Likewise.
16515         * modules/unicase/totitle-tests (Files): Likewise.
16516         * modules/unicase/toupper-tests (Files): Likewise.
16517         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16518         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16519         * modules/unicase/u8-casefold-tests (Files): Likewise.
16520         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16521         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16522         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16523         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16524         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16525         * modules/unicase/u8-tolower-tests (Files): Likewise.
16526         * modules/unicase/u8-totitle-tests (Files): Likewise.
16527         * modules/unicase/u8-toupper-tests (Files): Likewise.
16528         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16529         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16530         * modules/unicase/u16-casefold-tests (Files): Likewise.
16531         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16532         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16533         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16534         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16535         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16536         * modules/unicase/u16-tolower-tests (Files): Likewise.
16537         * modules/unicase/u16-totitle-tests (Files): Likewise.
16538         * modules/unicase/u16-toupper-tests (Files): Likewise.
16539         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16540         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16541         * modules/unicase/u32-casefold-tests (Files): Likewise.
16542         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16543         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16544         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16545         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16546         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16547         * modules/unicase/u32-tolower-tests (Files): Likewise.
16548         * modules/unicase/u32-totitle-tests (Files): Likewise.
16549         * modules/unicase/u32-toupper-tests (Files): Likewise.
16550         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16551         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16552         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16553         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16554         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16555         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16556         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16557         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16558         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16559         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16560         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16561         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16562         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16563         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16564         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16565         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16566         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16567         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16568         * modules/unictype/block-list-tests (Files): Likewise.
16569         * modules/unictype/block-of-tests (Files): Likewise.
16570         * modules/unictype/block-test-tests (Files): Likewise.
16571         * modules/unictype/category-C-tests (Files): Likewise.
16572         * modules/unictype/category-Cc-tests (Files): Likewise.
16573         * modules/unictype/category-Cf-tests (Files): Likewise.
16574         * modules/unictype/category-Cn-tests (Files): Likewise.
16575         * modules/unictype/category-Co-tests (Files): Likewise.
16576         * modules/unictype/category-Cs-tests (Files): Likewise.
16577         * modules/unictype/category-L-tests (Files): Likewise.
16578         * modules/unictype/category-Ll-tests (Files): Likewise.
16579         * modules/unictype/category-Lm-tests (Files): Likewise.
16580         * modules/unictype/category-Lo-tests (Files): Likewise.
16581         * modules/unictype/category-Lt-tests (Files): Likewise.
16582         * modules/unictype/category-Lu-tests (Files): Likewise.
16583         * modules/unictype/category-M-tests (Files): Likewise.
16584         * modules/unictype/category-Mc-tests (Files): Likewise.
16585         * modules/unictype/category-Me-tests (Files): Likewise.
16586         * modules/unictype/category-Mn-tests (Files): Likewise.
16587         * modules/unictype/category-N-tests (Files): Likewise.
16588         * modules/unictype/category-Nd-tests (Files): Likewise.
16589         * modules/unictype/category-Nl-tests (Files): Likewise.
16590         * modules/unictype/category-No-tests (Files): Likewise.
16591         * modules/unictype/category-P-tests (Files): Likewise.
16592         * modules/unictype/category-Pc-tests (Files): Likewise.
16593         * modules/unictype/category-Pd-tests (Files): Likewise.
16594         * modules/unictype/category-Pe-tests (Files): Likewise.
16595         * modules/unictype/category-Pf-tests (Files): Likewise.
16596         * modules/unictype/category-Pi-tests (Files): Likewise.
16597         * modules/unictype/category-Po-tests (Files): Likewise.
16598         * modules/unictype/category-Ps-tests (Files): Likewise.
16599         * modules/unictype/category-S-tests (Files): Likewise.
16600         * modules/unictype/category-Sc-tests (Files): Likewise.
16601         * modules/unictype/category-Sk-tests (Files): Likewise.
16602         * modules/unictype/category-Sm-tests (Files): Likewise.
16603         * modules/unictype/category-So-tests (Files): Likewise.
16604         * modules/unictype/category-Z-tests (Files): Likewise.
16605         * modules/unictype/category-Zl-tests (Files): Likewise.
16606         * modules/unictype/category-Zp-tests (Files): Likewise.
16607         * modules/unictype/category-Zs-tests (Files): Likewise.
16608         * modules/unictype/category-and-not-tests (Files): Likewise.
16609         * modules/unictype/category-and-tests (Files): Likewise.
16610         * modules/unictype/category-byname-tests (Files): Likewise.
16611         * modules/unictype/category-name-tests (Files): Likewise.
16612         * modules/unictype/category-none-tests (Files): Likewise.
16613         * modules/unictype/category-of-tests (Files): Likewise.
16614         * modules/unictype/category-or-tests (Files): Likewise.
16615         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16616         * modules/unictype/combining-class-tests (Files): Likewise.
16617         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16618         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16619         * modules/unictype/ctype-blank-tests (Files): Likewise.
16620         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16621         * modules/unictype/ctype-digit-tests (Files): Likewise.
16622         * modules/unictype/ctype-graph-tests (Files): Likewise.
16623         * modules/unictype/ctype-lower-tests (Files): Likewise.
16624         * modules/unictype/ctype-print-tests (Files): Likewise.
16625         * modules/unictype/ctype-punct-tests (Files): Likewise.
16626         * modules/unictype/ctype-space-tests (Files): Likewise.
16627         * modules/unictype/ctype-upper-tests (Files): Likewise.
16628         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16629         * modules/unictype/decimal-digit-tests (Files): Likewise.
16630         * modules/unictype/digit-tests (Files): Likewise.
16631         * modules/unictype/mirror-tests (Files): Likewise.
16632         * modules/unictype/numeric-tests (Files): Likewise.
16633         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16634         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16635         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16636         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16637         Likewise.
16638         * modules/unictype/property-bidi-block-separator-tests (Files):
16639         Likewise.
16640         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16641         Likewise.
16642         * modules/unictype/property-bidi-common-separator-tests (Files):
16643         Likewise.
16644         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16645         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16646         Likewise.
16647         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16648         Likewise.
16649         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16650         Likewise.
16651         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16652         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16653         Likewise.
16654         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16655         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16656         Likewise.
16657         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16658         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16659         * modules/unictype/property-bidi-segment-separator-tests (Files):
16660         Likewise.
16661         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16662         * modules/unictype/property-byname-tests (Files): Likewise.
16663         * modules/unictype/property-combining-tests (Files): Likewise.
16664         * modules/unictype/property-composite-tests (Files): Likewise.
16665         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16666         * modules/unictype/property-dash-tests (Files): Likewise.
16667         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16668         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16669         Likewise.
16670         * modules/unictype/property-deprecated-tests (Files): Likewise.
16671         * modules/unictype/property-diacritic-tests (Files): Likewise.
16672         * modules/unictype/property-extender-tests (Files): Likewise.
16673         * modules/unictype/property-format-control-tests (Files): Likewise.
16674         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16675         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16676         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16677         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16678         * modules/unictype/property-hyphen-tests (Files): Likewise.
16679         * modules/unictype/property-id-continue-tests (Files): Likewise.
16680         * modules/unictype/property-id-start-tests (Files): Likewise.
16681         * modules/unictype/property-ideographic-tests (Files): Likewise.
16682         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16683         * modules/unictype/property-ids-trinary-operator-tests (Files):
16684         Likewise.
16685         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16686         * modules/unictype/property-iso-control-tests (Files): Likewise.
16687         * modules/unictype/property-join-control-tests (Files): Likewise.
16688         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16689         * modules/unictype/property-line-separator-tests (Files): Likewise.
16690         * modules/unictype/property-logical-order-exception-tests (Files):
16691         Likewise.
16692         * modules/unictype/property-lowercase-tests (Files): Likewise.
16693         * modules/unictype/property-math-tests (Files): Likewise.
16694         * modules/unictype/property-non-break-tests (Files): Likewise.
16695         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16696         * modules/unictype/property-numeric-tests (Files): Likewise.
16697         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16698         * modules/unictype/property-other-default-ignorable-code-point-tests
16699         (Files): Likewise.
16700         * modules/unictype/property-other-grapheme-extend-tests (Files):
16701         Likewise.
16702         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16703         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16704         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16705         * modules/unictype/property-other-math-tests (Files): Likewise.
16706         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16707         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16708         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16709         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16710         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16711         * modules/unictype/property-private-use-tests (Files): Likewise.
16712         * modules/unictype/property-punctuation-tests (Files): Likewise.
16713         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16714         * modules/unictype/property-radical-tests (Files): Likewise.
16715         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16716         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16717         * modules/unictype/property-space-tests (Files): Likewise.
16718         * modules/unictype/property-terminal-punctuation-tests (Files):
16719         Likewise.
16720         * modules/unictype/property-test-tests (Files): Likewise.
16721         * modules/unictype/property-titlecase-tests (Files): Likewise.
16722         * modules/unictype/property-unassigned-code-value-tests (Files):
16723         Likewise.
16724         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16725         * modules/unictype/property-uppercase-tests (Files): Likewise.
16726         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16727         * modules/unictype/property-white-space-tests (Files): Likewise.
16728         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16729         * modules/unictype/property-xid-start-tests (Files): Likewise.
16730         * modules/unictype/property-zero-width-tests (Files): Likewise.
16731         * modules/unictype/scripts-tests (Files): Likewise.
16732         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16733         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16734         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16735         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16736         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16737         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16738         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16739         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16740         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16741         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16742         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16743         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16744         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16745         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16746         * modules/uninorm/composition-tests (Files): Likewise.
16747         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16748         * modules/uninorm/decomposition-tests (Files): Likewise.
16749         * modules/uninorm/filter-tests (Files): Likewise.
16750         * modules/uninorm/nfc-tests (Files): Likewise.
16751         * modules/uninorm/nfd-tests (Files): Likewise.
16752         * modules/uninorm/nfkc-tests (Files): Likewise.
16753         * modules/uninorm/nfkd-tests (Files): Likewise.
16754         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16755         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16756         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16757         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16758         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16759         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16760         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16761         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16762         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16763         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16764         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16765         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16766         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16767         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16768         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16769         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16770         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16771         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16772         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16773         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16774         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16775         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16776         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16777         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16778         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16779         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16780         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16781         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16782         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16783         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16784         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16785         * modules/uniwidth/u8-width-tests (Files): Likewise.
16786         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16787         * modules/uniwidth/u16-width-tests (Files): Likewise.
16788         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16789         * modules/uniwidth/u32-width-tests (Files): Likewise.
16790         * modules/uniwidth/width-tests (Files): Likewise.
16791         * modules/unlink-tests (Files): Likewise.
16792         * modules/unsetenv-tests (Files): Likewise.
16793         * modules/usleep-tests (Files): Likewise.
16794         * modules/utimens-tests (Files): Likewise.
16795         * modules/utimensat-tests (Files): Likewise.
16796         * modules/vasnprintf-posix-tests (Files): Likewise.
16797         * modules/vasnprintf-tests (Files): Likewise.
16798         * modules/vasprintf-posix-tests (Files): Likewise.
16799         * modules/vasprintf-tests (Files): Likewise.
16800         * modules/vdprintf-posix-tests (Files): Likewise.
16801         * modules/vfprintf-posix-tests (Files): Likewise.
16802         * modules/vprintf-posix-tests (Files): Likewise.
16803         * modules/vsnprintf-posix-tests (Files): Likewise.
16804         * modules/vsnprintf-tests (Files): Likewise.
16805         * modules/vsprintf-posix-tests (Files): Likewise.
16806         * modules/wcrtomb-tests (Files): Likewise.
16807         * modules/wcsnrtombs-tests (Files): Likewise.
16808         * modules/wcsrtombs-tests (Files): Likewise.
16809         * modules/wctype-tests (Files): Likewise.
16810         * modules/wcwidth-tests (Files): Likewise.
16811         * modules/xmemdup0-tests (Files): Likewise.
16812         * modules/xprintf-posix-tests (Files): Likewise.
16813         * modules/xvasprintf-tests (Files): Likewise.
16814
16815 2009-12-24  Eric Blake  <ebb9@byu.net>
16816
16817         test-nanosleep: fix typo
16818         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16819         patch.
16820         Reported by Bruno Haible.
16821
16822 2009-12-24  Bruno Haible  <bruno@clisp.org>
16823
16824         Reduce namespace pollution on glibc systems.
16825         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16826         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16827         systems.
16828         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16829         <getopt.h> on glibc systems.
16830         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16831         systems.
16832         * lib/fcntl.c: Include <unistd.h> here instead.
16833
16834 2009-12-24  Bruno Haible  <bruno@clisp.org>
16835
16836         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16837
16838 2009-12-24  Eric Blake  <ebb9@byu.net>
16839
16840         tests: add signature checks
16841         * tests/signature.h (SIGNATURE_CHECK): New file.
16842         * modules/atexit-tests (Files): Use it.
16843         * modules/btowc-tests (Files): Likewise.
16844         * modules/canonicalize-lgpl-tests (Files): Likewise.
16845         * modules/ceilf-tests (Files): Likewise.
16846         * modules/ceill-tests (Files): Likewise.
16847         * modules/chown-tests (Files): Likewise.
16848         * modules/dprintf-posix-tests (Files): Likewise.
16849         * modules/dup2-tests (Files): Likewise.
16850         * modules/dup3-tests (Files): Likewise.
16851         * modules/duplocale-tests (Files): Likewise.
16852         * modules/fchdir-tests (Files): Likewise.
16853         * modules/fcntl-tests (Files): Likewise.
16854         * modules/fdopendir-tests (Files): Likewise.
16855         * modules/fflush-tests (Files): Likewise.
16856         * modules/flock-tests (Files): Likewise.
16857         * modules/floorf-tests (Files): Likewise.
16858         * modules/floorl-tests (Files): Likewise.
16859         * modules/fnmatch-tests (Files): Likewise.
16860         * modules/fopen-tests (Files): Likewise.
16861         * modules/fprintf-posix-tests (Files): Likewise.
16862         * modules/freopen-tests (Files): Likewise.
16863         * modules/frexp-nolibm-tests (Files): Likewise.
16864         * modules/frexp-tests (Files): Likewise.
16865         * modules/frexpl-nolibm-tests (Files): Likewise.
16866         * modules/frexpl-tests (Files): Likewise.
16867         * modules/fseek-tests (Files): Likewise.
16868         * modules/fseeko-tests (Files): Likewise.
16869         * modules/fsync-tests (Files): Likewise.
16870         * modules/ftell-tests (Files): Likewise.
16871         * modules/ftello-tests (Files): Likewise.
16872         * modules/futimens-tests (Files): Likewise.
16873         * modules/getaddrinfo-tests (Files): Likewise.
16874         * modules/getcwd-tests (Files): Likewise.
16875         * modules/getdelim-tests (Files): Likewise.
16876         * modules/getdtablesize-tests (Files): Likewise.
16877         * modules/getgroups-tests (Files): Likewise.
16878         * modules/gethostname-tests (Files): Likewise.
16879         * modules/getline-tests (Files): Likewise.
16880         * modules/getopt-posix-tests (Files): Likewise.
16881         * modules/gettimeofday-tests (Files): Likewise.
16882         * modules/glob-tests (Files): Likewise.
16883         * modules/iconv-tests (Files): Likewise.
16884         * modules/inet_ntop-tests (Files): Likewise.
16885         * modules/inet_pton-tests (Files): Likewise.
16886         * modules/isblank-tests (Files): Likewise.
16887         * modules/lchown-tests (Files): Likewise.
16888         * modules/ldexpl-tests (Files): Likewise.
16889         * modules/link-tests (Files): Likewise.
16890         * modules/linkat-tests (Files): Likewise.
16891         * modules/lseek-tests (Files): Likewise.
16892         * modules/lstat-tests (Files): Likewise.
16893         * modules/mbrtowc-tests (Files): Likewise.
16894         * modules/mbsinit-tests (Files): Likewise.
16895         * modules/mbsnrtowcs-tests (Files): Likewise.
16896         * modules/mbsrtowcs-tests (Files): Likewise.
16897         * modules/memchr-tests (Files): Likewise.
16898         * modules/memcmp-tests (Files): Likewise.
16899         * modules/memmem-tests (Files): Likewise.
16900         * modules/memrchr-tests (Files): Likewise.
16901         * modules/mkdir-tests (Files): Likewise.
16902         * modules/mkfifo-tests (Files): Likewise.
16903         * modules/mkfifoat-tests (Files): Likewise.
16904         * modules/mknod-tests (Files): Likewise.
16905         * modules/nanosleep-tests (Files): Likewise.
16906         * modules/nl_langinfo-tests (Files): Likewise.
16907         * modules/obstack-printf-tests (Files): Likewise.
16908         * modules/open-tests (Files): Likewise.
16909         * modules/openat-tests (Files): Likewise.
16910         * modules/perror-tests (Files): Likewise.
16911         * modules/pipe2-tests (Files): Likewise.
16912         * modules/poll-tests (Files): Likewise.
16913         * modules/popen-tests (Files): Likewise.
16914         * modules/posix_spawn-tests (Files): Likewise.
16915         * modules/posix_spawnp-tests (Files): Likewise.
16916         * modules/pread-tests (Files): Likewise.
16917         * modules/printf-posix-tests (Files): Likewise.
16918         * modules/pty-tests (Files): Likewise.
16919         * modules/random_r-tests (Files): Likewise.
16920         * modules/rawmemchr-tests (Files): Likewise.
16921         * modules/readlink-tests (Files): Likewise.
16922         * modules/remove-tests (Files): Likewise.
16923         * modules/rename-tests (Files): Likewise.
16924         * modules/renameat-tests (Files): Likewise.
16925         * modules/rmdir-tests (Files): Likewise.
16926         * modules/round-tests (Files): Likewise.
16927         * modules/roundf-tests (Files): Likewise.
16928         * modules/roundl-tests (Files): Likewise.
16929         * modules/select-tests (Files): Likewise.
16930         * modules/setenv-tests (Files): Likewise.
16931         * modules/sigaction-tests (Files): Likewise.
16932         * modules/sleep-tests (Files): Likewise.
16933         * modules/snprintf-posix-tests (Files): Likewise.
16934         * modules/snprintf-tests (Files): Likewise.
16935         * modules/sprintf-posix-tests (Files): Likewise.
16936         * modules/stat-tests (Files): Likewise.
16937         * modules/strcasestr-tests (Files): Likewise.
16938         * modules/strchrnul-tests (Files): Likewise.
16939         * modules/strerror-tests (Files): Likewise.
16940         * modules/strsignal-tests (Files): Likewise.
16941         * modules/strstr-tests (Files): Likewise.
16942         * modules/strtod-tests (Files): Likewise.
16943         * modules/strverscmp-tests (Files): Likewise.
16944         * modules/symlink-tests (Files): Likewise.
16945         * modules/symlinkat-tests (Files): Likewise.
16946         * modules/times-tests (Files): Likewise.
16947         * modules/trunc-tests (Files): Likewise.
16948         * modules/truncf-tests (Files): Likewise.
16949         * modules/truncl-tests (Files): Likewise.
16950         * modules/tsearch-tests (Files): Likewise.
16951         * modules/uname-tests (Files): Likewise.
16952         * modules/unlink-tests (Files): Likewise.
16953         * modules/unsetenv-tests (Files): Likewise.
16954         * modules/usleep-tests (Files): Likewise.
16955         * modules/utimensat-tests (Files): Likewise.
16956         * modules/vasprintf-tests (Files): Likewise.
16957         * modules/vdprintf-posix-tests (Files): Likewise.
16958         * modules/vfprintf-posix-tests (Files): Likewise.
16959         * modules/vprintf-posix-tests (Files): Likewise.
16960         * modules/vsnprintf-posix-tests (Files): Likewise.
16961         * modules/vsnprintf-tests (Files): Likewise.
16962         * modules/vsprintf-posix-tests (Files): Likewise.
16963         * modules/wcrtomb-tests (Files): Likewise.
16964         * modules/wcsnrtombs-tests (Files): Likewise.
16965         * modules/wcsrtombs-tests (Files): Likewise.
16966         * modules/wcwidth-tests (Files): Likewise.
16967         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
16968         * tests/test-isinf.c (isinf): Likewise.
16969         * tests/test-isnan.c (isnan): Likewise.
16970         * tests/test-signbit.c (signbit): Likewise.
16971         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
16972         declaration, either as macro or with correct signature.
16973         (select): Ensure function under test is declared with correct
16974         signature in correct header.
16975         * tests/test-atexit.c (atexit): Likewise.
16976         * tests/test-btowc.c (btowc): Likewise.
16977         * tests/test-canonicalize-lgpl.c (realpath)
16978         (canonicalize_file_name): Likewise.
16979         * tests/test-ceilf1.c (ceilf): Likewise.
16980         * tests/test-ceill.c (ceill): Likewise.
16981         * tests/test-chown.c (chown): Likewise.
16982         * tests/test-dprintf-posix.c (dprintf): Likewise.
16983         * tests/test-dup2.c (dup2): Likewise.
16984         * tests/test-dup3.c (dup3): Likewise.
16985         * tests/test-duplocale.c (duplocale): Likewise.
16986         * tests/test-fchdir.c (fchdir): Likewise.
16987         * tests/test-fchownat.c (fchownat): Likewise.
16988         * tests/test-fcntl.c (fcntl): Likewise.
16989         * tests/test-fdopendir.c (fdopendir): Likewise.
16990         * tests/test-fflush.c (fflush): Likewise.
16991         * tests/test-flock.c (flock): Likewise.
16992         * tests/test-floorf1.c (floorf): Likewise.
16993         * tests/test-floorl.c (floorl): Likewise.
16994         * tests/test-fnmatch.c (fnmatch): Likewise.
16995         * tests/test-fopen.c (fopen): Likewise.
16996         * tests/test-fprintf-posix.c (fprintf): Likewise.
16997         * tests/test-freopen.c (freopen): Likewise.
16998         * tests/test-frexp.c (frexp): Likewise.
16999         * tests/test-frexpl.c (frexpl): Likewise.
17000         * tests/test-fseek.c (fseek): Likewise.
17001         * tests/test-fseeko.c (fseeko): Likewise.
17002         * tests/test-fstatat.c (fstatat): Likewise.
17003         * tests/test-fsync.c (fsync): Likewise.
17004         * tests/test-ftell.c (ftell): Likewise.
17005         * tests/test-ftello.c (ftello): Likewise.
17006         * tests/test-futimens.c (futimens): Likewise.
17007         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
17008         (gai_strerror): Likewise.
17009         * tests/test-getcwd.c (getcwd): Likewise.
17010         * tests/test-getdelim.c (getdelim): Likewise.
17011         * tests/test-getdtablesize.c (getdtablesize): Likewise.
17012         * tests/test-getgroups.c (getgroups): Likewise.
17013         * tests/test-gethostname.c (gethostname): Likewise.
17014         * tests/test-getline.c (getline): Likewise.
17015         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
17016         Likewise.
17017         * tests/test-gettimeofday.c (gettimeofday): Likewise.
17018         * tests/test-glob.c (glob, globfree): Likewise.
17019         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
17020         * tests/test-inet_ntop.c (inet_ntop): Likewise.
17021         * tests/test-inet_pton.c (inet_pton): Likewise.
17022         * tests/test-isblank.c (isblank): Likewise.
17023         * tests/test-lchown.c (lchown): Likewise.
17024         * tests/test-ldexpl.c (ldexpl): Likewise.
17025         * tests/test-link.c (link): Likewise.
17026         * tests/test-linkat.c (linkat): Likewise.
17027         * tests/test-lseek.c (lseek): Likewise.
17028         * tests/test-lstat.c (lstat): Likewise.
17029         * tests/test-mbrtowc.c (mbrtowc): Likewise.
17030         * tests/test-mbsinit.c (mbsinit): Likewise.
17031         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
17032         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
17033         * tests/test-memchr.c (memchr): Likewise.
17034         * tests/test-memcmp.c (memcmp): Likewise.
17035         * tests/test-memmem.c (memmem): Likewise.
17036         * tests/test-memrchr.c (memrchr): Likewise.
17037         * tests/test-mkdir.c (mkdir): Likewise.
17038         * tests/test-mkdirat.c (mkdirat): Likewise.
17039         * tests/test-mkfifo.c (mkfifo): Likewise.
17040         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
17041         * tests/test-mknod.c (mknod): Likewise.
17042         * tests/test-nanosleep.c (nanosleep): Likewise.
17043         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
17044         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
17045         Likewise.
17046         * tests/test-open.c (open): Likewise.
17047         * tests/test-openat.c (openat): Likewise.
17048         * tests/test-perror.c (perror): Likewise.
17049         * tests/test-pipe2.c (pipe2): Likewise.
17050         * tests/test-poll.c (poll): Likewise.
17051         * tests/test-popen.c (popen, pclose): Likewise.
17052         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
17053         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
17054         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
17055         (posix_spawn_file_actions_destroy)
17056         (posix_spawn_file_actions_addclose)
17057         (posix_spawn_file_actions_addopen)
17058         (posix_spawn_file_actions_adddup2): Likewise.
17059         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
17060         * tests/test-pread.c (pread): Likewise.
17061         * tests/test-printf-posix.c (printf): Likewise.
17062         * tests/test-pty.c (openpty, forkpty): Likewise.
17063         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
17064         (random_r): Likewise.
17065         * tests/test-rawmemchr.c (rawmemchr): Likewise.
17066         * tests/test-readlink.c (readlink): Likewise.
17067         * tests/test-remove.c (remove): Likewise.
17068         * tests/test-rename.c (rename): Likewise.
17069         * tests/test-renameat.c (renameat): Likewise.
17070         * tests/test-rmdir.c (rmdir): Likewise.
17071         * tests/test-round1.c (round): Likewise.
17072         * tests/test-roundf1.c (roundf): Likewise.
17073         * tests/test-roundl.c (roundl): Likewise.
17074         * tests/test-setenv.c (setenv): Likewise.
17075         * tests/test-sigaction.c (sigaction): Likewise.
17076         * tests/test-sleep.c (sleep): Likewise.
17077         * tests/test-snprintf.c (snprintf): Likewise.
17078         * tests/test-sprintf-posix.c (sprintf): Likewise.
17079         * tests/test-stat.c (stat): Likewise.
17080         * tests/test-stpncpy.c (stpncpy): Likewise.
17081         * tests/test-strcasestr.c (strcasestr): Likewise.
17082         * tests/test-strchrnul.c (strchrnul): Likewise.
17083         * tests/test-strerror.c (strerror): Likewise.
17084         * tests/test-strsignal.c (strsignal): Likewise.
17085         * tests/test-strstr.c (strstr): Likewise.
17086         * tests/test-strtod.c (strtod): Likewise.
17087         * tests/test-strverscmp.c (strverscmp): Likewise.
17088         * tests/test-symlink.c (symlink): Likewise.
17089         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
17090         * tests/test-times.c (times): Likewise.
17091         * tests/test-trunc1.c (trunc): Likewise.
17092         * tests/test-truncf1.c (truncf): Likewise.
17093         * tests/test-truncl.c (truncl): Likewise.
17094         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
17095         Likewise.
17096         * tests/test-uname.c (uname): Likewise.
17097         * tests/test-unlink.c (unlink): Likewise.
17098         * tests/test-unlinkat.c (unlinkat): Likewise.
17099         * tests/test-unsetenv.c (unsetenv): Likewise.
17100         * tests/test-usleep.c (usleep): Likewise.
17101         * tests/test-utimensat.c (utimensat): Likewise.
17102         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17103         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17104         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17105         * tests/test-vprintf-posix.c (vprintf): Likewise.
17106         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17107         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17108         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17109         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17110         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17111         * tests/test-wcwidth.c (wcwidth): Likewise.
17112
17113         build: pull in conditional headers during GNULIB_POSIXCHECK
17114         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17115         definitions from any conditionally-included headers.
17116         * lib/stdlib.in.h (includes): Likewise.
17117         * lib/unistd.in.h (includes): Likewise.
17118
17119 2009-12-24  Bruno Haible  <bruno@clisp.org>
17120
17121         * tests/test-argv-iter.c: Include header file being tested immediately
17122         after config.h.
17123         * tests/test-base64.c: Likewise.
17124         * tests/test-flock.c: Likewise.
17125         * tests/test-fsync.c: Likewise.
17126         * tests/test-getdate.c: Likewise.
17127         * tests/test-getndelim2.c: Likewise.
17128         * tests/test-isfinite.c: Likewise.
17129         * tests/test-isinf.c: Likewise.
17130         * tests/test-strerror.c: Likewise.
17131         * tests/test-strsignal.c: Likewise.
17132
17133 2009-12-23  Eric Blake  <ebb9@byu.net>
17134
17135         unistd: work around cygwin bug
17136         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17137         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17138         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17139
17140 2009-12-23  Bruno Haible  <bruno@clisp.org>
17141
17142         localename: More tests.
17143         * tests/test-localename.c (SIZEOF): New macro.
17144         (categories): New variable.
17145         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17146         test_locale_name_default): Add test w.r.t. thread locale.
17147         (test_locale_name_thread): New function.
17148         (main): Invoke it.
17149
17150         localename: Make aware of thread locale.
17151         * lib/localename.h (gl_locale_name_thread): New declaration.
17152         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17153         behaviour with respect to thread locale.
17154         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17155         <langinfo.h>, glthread/lock.h.
17156         (SIZE_BITS): New macro.
17157         (string_hash): New function.
17158         (struct hash_node): New type.
17159         (HASH_TABLE_SIZE): New macro.
17160         (struniq_hash_table, struniq_lock): New variables.
17161         (struniq): New function.
17162         (gl_locale_name_thread): New function.
17163         (gl_locale_name): Invoke it.
17164         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17165         * modules/localename (Depends-on): Add lock.
17166         Reported by Mike Gran <spk121@yahoo.com>.
17167
17168 2009-12-23  Eric Blake  <ebb9@byu.net>
17169
17170         va-args: new module
17171         * modules/va-args: New file.
17172         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17173         * MODULES.html.sh (Core language properties): Mention it.
17174
17175         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17176         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
17177         named alias for __attribute__((__unused__)).
17178         * lib/chown.c: Update client.
17179         * lib/fchmodat.c: Likewise.
17180         * lib/fts.c: Likewise.
17181         * lib/getdate.y: Likewise.
17182         * lib/getgroups.c: Likewise.
17183         * lib/getopt.c: Likewise.
17184         * lib/getugroups.c: Likewise.
17185         * lib/mkdir.c: Likewise.
17186         * lib/mkfifo.c: Likewise.
17187         * lib/mkfifoat.c: Likewise.
17188         * lib/mknod.c: Likewise.
17189         * lib/mknodat.c: Likewise.
17190         * lib/readlink.c: Likewise.
17191         * lib/se-context.in.h: Likewise.
17192         * lib/se-selinux.in.h: Likewise.
17193         * lib/sockets.c: Likewise.
17194         * lib/symlink.c: Likewise.
17195         * lib/symlinkat.c: Likewise.
17196         * lib/unicodeio.c: Likewise.
17197         * lib/unistr.h: Likewise.
17198         * tests/test-areadlink.c: Likewise.
17199         * tests/test-areadlinkat.c: Likewise.
17200         * tests/test-filenamecat.c: Likewise.
17201         * tests/test-fseeko.c: Likewise.
17202         * tests/test-ftello.c: Likewise.
17203         * tests/test-getdate.c: Likewise.
17204         * tests/test-getgroups.c: Likewise.
17205         * tests/test-gethostname.c: Likewise.
17206         * tests/test-quotearg.c: Likewise.
17207         * tests/test-version-etc.c: Likewise.
17208         * tests/test-xalloc-die.c: Likewise.
17209         * tests/test-xfprintf-posix.c: Likewise.
17210         * tests/test-xprintf-posix.c: Likewise.
17211         * tests/test-xvasprintf.c: Likewise.
17212
17213         tests: avoid compiler warnings
17214         * tests/test-fcntl.c (main): Delete unused parameters.
17215         * tests/test-freopen-safer.c (main): Likewise.
17216         * tests/test-xalloc-die.c (main): Mark unused parameters.
17217         * tests/test-fseeko.c (main): Likewise.
17218         * tests/test-ftello.c (main): Likewise.
17219         * tests/test-nanosleep.c (main): Avoid declaration warning.
17220         * tests/test-sleep.c (main): Likewise.
17221         * tests/test-unsetenv.c (main): Silence warning about string
17222         literal.
17223         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17224
17225 2009-12-23  Bruno Haible  <bruno@clisp.org>
17226
17227         * tests/test-localename.c (test_locale_name): New function, extracted
17228         from main. Also test mixed situations.
17229         (test_locale_name_posix, test_locale_name_environ,
17230         test_locale_name_default): New functions.
17231         (main): Invoke them all.
17232         * modules/localename-tests (configure.ac): Test for newlocale.
17233
17234 2009-12-23  Bruno Haible  <bruno@clisp.org>
17235
17236         unistd: Ensure getcwd gets declared before being overridden.
17237         * lib/unistd.in.h: Conditionally include <io.h>.
17238
17239 2009-12-22  Bruno Haible  <bruno@clisp.org>
17240
17241         wchar: Diagnose broken combination of glibc and gcc versions and flags.
17242         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
17243         (gl_WCHAR_H): Invoke it.
17244         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
17245         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
17246         Reported by Karl Berry <karl@freefriends.org>.
17247
17248 2009-12-22  Eric Blake  <ebb9@byu.net>
17249
17250         math, unistd: avoid redundant includes
17251         * lib/math.in.h (isnan): No need to re-include <math.h>.
17252         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
17253
17254         getsubopt: work around cygwin bug
17255         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
17256         avoid conflicting with system getsubopt.
17257         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
17258         bug.
17259
17260         getopt: synchronize from glibc
17261         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
17262         parameter order.  Adjust all callers.
17263         (_getopt_internal_r, main): Adjust quoting in error messages.
17264         Drop considerations for outdated POSIX 1003.2 error message.
17265         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
17266         callers.
17267         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
17268
17269         test-getopt: test stderr behavior
17270         * modules/getopt-posix-tests (Depends-on): Add dup2.
17271         * tests/test-getopt.c (ASSERT): Avoid stderr.
17272         (main): Move stderr to a temporary file.
17273         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
17274         Instead, add parameter to inform caller if output occurred.
17275         (test_getopt): Adjust all existing tests to expect silence, and
17276         add new tests of leading ":".
17277         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17278         glibc shortcomings with leading "-:" or "+:" in optstring.
17279         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17280         Likewise.
17281         * doc/posix-functions/getopt.texi (getopt): Likewise.
17282
17283         test-getopt: enhance test
17284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
17285         supports optind=0.
17286         * tests/test-getopt.c (OPTIND_MIN): Move...
17287         * tests/test-getopt.h (OPTIND_MIN): ...here.
17288         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
17289         Require that optind=0 works, since modern BSD supports it in
17290         addition to optreset, and since coreutils expects it.
17291         (test_getopt_long_only): New test.
17292         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17293         glibc shortcomings with 'W;', and enforcement of optind=0.
17294         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17295         Likewise.
17296
17297 2009-12-21  Bruno Haible  <bruno@clisp.org>
17298
17299         localename: Improvements for MacOS X and Cygwin.
17300         * lib/localename.h (gl_locale_name_environ): New declaration.
17301         * lib/localename.c (gl_locale_name_environ): New function, extracted from
17302         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
17303         (gl_locale_name_posix): Invoke it.
17304         (gl_locale_name_default): Add comments. Use Windows native API also on
17305         Cygwin.
17306
17307 2009-12-21  Bruno Haible  <bruno@clisp.org>
17308
17309         Update list of Win32 locale ids.
17310         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
17311         (LANG_SAMI): Renamed from LANG_SAAMI.
17312         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
17313         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
17314         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
17315         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
17316         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
17317         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
17318         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
17319         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
17320         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
17321         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
17322         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
17323         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
17324         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
17325         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
17326         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
17327         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
17328         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
17329         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
17330         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
17331         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
17332         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
17333         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
17334         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
17335         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
17336         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
17337         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
17338         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
17339         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
17340         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
17341         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
17342         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
17343         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
17344         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
17345         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
17346         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
17347         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
17348         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
17349         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
17350         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
17351         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
17352         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
17353         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
17354         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
17355         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
17356         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
17357         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
17358         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
17359         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
17360         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
17361         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
17362         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
17363         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
17364         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
17365         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
17366         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
17367         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
17368         Add more languages and countries for Sami, Sorbian. Add more countries
17369         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
17370         for Pashto. Change country for Syriac, Tswana.
17371
17372 2009-12-21  Eric Blake  <ebb9@byu.net>
17373
17374         test-utimens: avoid spurious failure
17375         * tests/test-chown.h (nap): Factor...
17376         * tests/nap.h: ...into new file.
17377         * tests/test-lchown.h (nap): Avoid duplication.
17378         * tests/test-utimens-common.h (nap): Use shared implementation,
17379         necessary on file systems with 1-second resolution.
17380         * modules/chown-tests (Files): Include new file.
17381         * modules/fdutimensat-tests (Files): Likewise.
17382         * modules/futimens-tests (Files): Likewise.
17383         * modules/lchown-tests (Files): Likewise.
17384         * modules/openat-tests (Files): Likewise.
17385         * modules/utimens-tests (Files): Likewise.
17386         * modules/utimensat-tests (Files): Likewise.
17387
17388 2009-12-19  Eric Blake  <ebb9@byu.net>
17389
17390         futimens, utimensat: work around Linux bug
17391         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
17392         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17393         * lib/utimensat.c (rpl_utimensat): Work around it.
17394         * lib/futimens.c (rpl_futimens): Adjust comment.
17395
17396         utimens: work around Linux ctime bug
17397         * lib/utimens.c (detect_ctime_bug): New helper function.
17398         (update_timespec): Differentiate between workaround needed for
17399         this bug vs. what is needed for systems that lack utimensat.
17400         (fdutimens, lutimens): Work around bug.
17401
17402         utimens: check for ctime update
17403         * tests/test-utimens-common.h (check_ctime): Define.
17404         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
17405         * tests/test-futimens.h (test_futimens): Likewise.
17406         * tests/test-lutimens.h (test_lutimens): Likewise.
17407         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17408         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17409
17410 2009-12-19  Bruno Haible  <bruno@clisp.org>
17411
17412         dprintf-posix: Check against memory leak fixed on 2009-12-15.
17413         * tests/test-dprintf-posix2.sh: New file.
17414         * tests/test-dprintf-posix2.c: New file.
17415         * modules/dprintf-posix-tests (Files): Add them.
17416         (configure.ac): Check for getrlimit and setrlimit.
17417         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17418
17419 2009-12-19  Bruno Haible  <bruno@clisp.org>
17420
17421         fprintf-posix: Check against memory leak fixed on 2009-12-15.
17422         * tests/test-fprintf-posix3.sh: New file.
17423         * tests/test-fprintf-posix3.c: New file.
17424         * modules/fprintf-posix-tests (Files): Add them.
17425         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17426
17427 2009-12-19  Eric Blake  <ebb9@byu.net>
17428
17429         dirfd: fix prototype
17430         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
17431         * lib/dirfd.c (dirfd): Likewise.
17432
17433         canonicalize: reduce memory usage
17434         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
17435         allocation to size.
17436         Reported by Solar Designer <solar@openwall.com>.
17437
17438 2009-12-19  Bruno Haible  <bruno@clisp.org>
17439
17440         New module attribute 'Applicability'.
17441         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
17442         * gnulib-tool: New option --extract-applicability.
17443         (func_usage): Document it.
17444         (sed_extract_prog): Recognize it.
17445         (func_get_applicability): New function.
17446         (func_import): Generalize handling of 'link-warning' module.
17447         * modules/link-warning (Applicability): New section.
17448         * modules/arg-nonnull (Applicability): New section.
17449         Repoted by Simon Josefsson <simon@josefsson.org>.
17450
17451 2009-12-19  Bruno Haible  <bruno@clisp.org>
17452
17453         fflush: tweak
17454         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
17455         * lib/fseeko.c (rpl_fseeko): Likewise.
17456
17457 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
17458
17459         * lib/gl_list.h: Fix typo in comment.
17460
17461 2009-12-16  Eric Blake  <ebb9@byu.net>
17462
17463         fcntl: use to simplify other modules
17464         * modules/cloexec (Depends-on): Add fcntl.
17465         * modules/fchdir (Depends-on): Likewise.
17466         * modules/fd-safer-flag (Depends-on): Likewise.
17467         * modules/unistd-safer (Depends-on): Likewise.
17468         * modules/dup3 (configure.ac): Set module indicator.
17469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
17470         missing.
17471         * lib/fchdir.c (_gl_register_dup): Fix comment.
17472         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
17473         * lib/dup-safer.c (dup_safer): Likewise.
17474         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
17475         * lib/dup3.c (dup3): Likewise.
17476         * tests/test-fchdir.c (main): Enhance test.
17477         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
17478
17479         fcntl: port portions of fcntl to mingw
17480         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
17481         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
17482         replacement for mingw.
17483         * modules/fcntl (Description): Update.
17484         (Depends-on): Add dup2.
17485         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
17486         * modules/fcntl-h (Makefile.am): Substitute it.
17487         * lib/fcntl.in.h (fcntl): Update declaration.
17488         (F_DUPFD, F_GETFD): New macros, when needed.
17489         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17490         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
17491         * tests/test-fcntl.c (check_flags, main): Enhance test for items
17492         we now guarantee.
17493
17494         fcntl: work around cygwin bug in F_DUPFD
17495         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
17496         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17497         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17498         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17499         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17500
17501         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17502         * modules/fcntl (Files): List new files.
17503         (configure.ac): Run a test.
17504         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17505         * lib/fcntl.c (rpl_fcntl): Likewise.
17506         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17507         (gl_FCNTL_H): Always replace fcntl.h.
17508         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17509         * lib/fcntl.in.h (fcntl): Declare replacement.
17510         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17511         needed, plus a witness.
17512         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17513         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17514         * tests/test-fcntl.c: New file.
17515         * modules/fcntl-tests: Likewise.
17516
17517         binary-io: avoid potential compilation warning
17518         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17519         directives.
17520
17521         fflush: avoid compilation error on NetBSD
17522         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17523         between off_t and fpos_t, since the latter is sometimes a struct.
17524         * lib/fseeko.c (rpl_fseeko): Likewise.
17525         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17526
17527 2009-12-15  Eric Blake  <ebb9@byu.net>
17528
17529         fcntl-h, stdio, sys_ioctl: fix declarations
17530         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17531         function must not take arguments.
17532         * lib/sys_ioctl.in.h (ioctl): Likewise.
17533         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17534         (open): Add a link warning.
17535
17536 2009-12-15  Jim Meyering  <meyering@redhat.com>
17537
17538         areadlink, areadlink-with-size: relax license to LGPLv2+
17539         * modules/areadlink (License): Relax to LGPLv2+.
17540         * modules/areadlink-with-size (License): Likewise.
17541
17542 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17543             Bruno Haible  <bruno@clisp.org>
17544
17545         *printf: Fix memory leak.
17546         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17547         * lib/vfprintf.c (vfprintf): Likewise.
17548         * lib/dprintf.c (dprintf): Likewise.
17549         * lib/vdprintf.c (vdprintf): Likewise.
17550
17551 2009-12-14  Eric Blake  <ebb9@byu.net>
17552
17553         accept4: adjust module dependencies
17554         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17555
17556         utimens: one more try at avoiding compiler warning
17557         * lib/utimens.c (lutimens): Lower scope of result.
17558
17559 2009-12-13  Bruno Haible  <bruno@clisp.org>
17560
17561         Move the malloc checking from module 'list' to new module 'xlist'.
17562         * modules/xlist: New file.
17563         * lib/gl_xlist.h: New file.
17564         * lib/gl_xlist.c: New file.
17565         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17566         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17567         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17568         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17569         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17570         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17571         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17572         gl_sortedlist_nx_add): New declarations.
17573         (struct gl_list_implementation): Rename and change methods accordingly.
17574         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17575         (gl_list_nx_create): Renamed from gl_list_create.
17576         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17577         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17578         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17579         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17580         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17581         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17582         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17583         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17584         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17585         gl_list_create_empty.
17586         (gl_list_nx_create): Renamed from gl_list_create.
17587         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17588         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17589         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17590         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17591         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17592         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17593         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17594         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17595         * lib/gl_array_list.c: Don't include xalloc.h.
17596         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17597         NULL upon out-of-memory.
17598         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17599         out-of-memory.
17600         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17601         Change return type to 'int'.
17602         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17603         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17604         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17605         upon out-of-memory.
17606         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17607         upon out-of-memory.
17608         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17609         upon out-of-memory.
17610         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17611         upon out-of-memory.
17612         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17613         out-of-memory.
17614         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17615         Update.
17616         (gl_array_list_implementation): Update.
17617         * lib/gl_carray_list.c: Don't include xalloc.h.
17618         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17619         Return NULL upon out-of-memory.
17620         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17621         out-of-memory.
17622         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17623         Change return type to 'int'.
17624         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17625         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17626         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17627         upon out-of-memory.
17628         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17629         upon out-of-memory.
17630         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17631         out-of-memory.
17632         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17633         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17634         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17635         Update.
17636         (gl_carray_list_implementation): Update.
17637         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17638         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17639         gl_linked_create_empty. Return NULL upon out-of-memory.
17640         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17641         out-of-memory.
17642         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17643         Change return type to 'int'. Return -1 upon out-of-memory.
17644         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17645         out-of-memory.
17646         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17647         upon out-of-memory.
17648         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17649         upon out-of-memory.
17650         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17651         NULL upon out-of-memory.
17652         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17653         upon out-of-memory.
17654         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17655         out-of-memory.
17656         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17657         Update.
17658         * lib/gl_linked_list.c: Don't include xalloc.h.
17659         (gl_linked_list_implementation): Update.
17660         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17661         (add_to_bucket): Change return type to 'int'.
17662         (gl_linkedhash_list_implementation): Update.
17663         * lib/gl_anytree_list1.h (free_subtree): New function.
17664         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17665         gl_tree_create_empty. Return NULL upon out-of-memory.
17666         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17667         Change return type to 'int'. Return -1 upon out-of-memory.
17668         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17669         out-of-memory.
17670         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17671         (gl_tree_remove_node): New function, moved here from
17672         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17673         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17674         Update.
17675         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17676         malloc, not xmalloc. Return NULL upon out-of-memory.
17677         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17678         out-of-memory.
17679         (gl_tree_remove_node_from_tree): New function, extracted from
17680         gl_tree_remove_node.
17681         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17682         upon out-of-memory.
17683         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17684         out-of-memory.
17685         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17686         upon out-of-memory.
17687         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17688         upon out-of-memory.
17689         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17690         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17691         not xmalloc. Return NULL upon out-of-memory.
17692         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17693         out-of-memory.
17694         (gl_tree_remove_node_from_tree): New function, extracted from
17695         gl_tree_remove_node.
17696         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17697         upon out-of-memory.
17698         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17699         out-of-memory.
17700         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17701         upon out-of-memory.
17702         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17703         upon out-of-memory.
17704         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17705         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17706         gl_anytree_list1.h before gl_anyavltree_list2.h.
17707         (gl_avltree_list_implementation): Update.
17708         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17709         gl_anytree_list1.h before gl_anyavltree_list2.h.
17710         (gl_rbtree_list_implementation): Update.
17711         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17712         Change return type to 'int'. Return -1 upon out-of-memory. Use
17713         __builtin_expect.
17714         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17715         (gl_avltreehash_list_implementation): Update.
17716         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17717         (gl_rbtreehash_list_implementation): Update.
17718         * modules/array-list (Depends-on): Remove xalloc.
17719         * modules/carray-list (Depends-on): Likewise.
17720         * modules/linked-list (Depends-on): Likewise.
17721         * modules/linkedhash-list (Depends-on): Likewise.
17722         * modules/avltree-list (Depends-on): Likewise.
17723         * modules/rbtree-list (Depends-on): Likewise.
17724         * modules/avltreehash-list (Depends-on): Likewise.
17725         * modules/rbtreehash-list (Depends-on): Likewise.
17726
17727         * modules/xsublist: New file.
17728         * lib/gl_xsublist.h: New file.
17729         * lib/gl_xsublist.c: New file.
17730         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17731         (gl_sublist_nx_create): New declaration.
17732         * lib/gl_sublist.c: Don't include xalloc.h.
17733         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17734         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17735         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17736         Change return type to 'int'. Return -1 upon out-of-memory.
17737         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17738         upon out-of-memory.
17739         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17740         NULL upon out-of-memory.
17741         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17742         upon out-of-memory.
17743         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17744         NULL upon out-of-memory.
17745         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17746         NULL upon out-of-memory.
17747         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17748         upon out-of-memory.
17749         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17750         (gl_sublist_list_implementation): Update.
17751         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17752         upon out-of-memory.
17753         * modules/sublist (Depends-on): Remove xalloc.
17754
17755         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17756         * tests/test-carray_list.c: Likewise.
17757         * tests/test-linked_list.c: Likewise.
17758         * tests/test-linkedhash_list.c: Likewise.
17759         * tests/test-avltree_list.c: Likewise.
17760         * tests/test-rbtree_list.c: Likewise.
17761         * tests/test-avltreehash_list.c: Likewise.
17762         * tests/test-rbtreehash_list.c: Likewise.
17763         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17764         * modules/carray-list-tests (Makefile.am): Likewise.
17765         * modules/linked-list-tests (Makefile.am): Likewise.
17766         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17767         * modules/avltree-list-tests (Makefile.am): Likewise.
17768         * modules/rbtree-list-tests (Makefile.am): Likewise.
17769         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17770         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17771
17772         * NEWS: Mention the changes.
17773
17774         * lib/clean-temp.c: Include gl_xlist.h.
17775         * modules/clean-temp (Depends-on): Add xlist.
17776
17777         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17778         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17779
17780         * tests/test-array_oset.c: Include gl_xlist.h.
17781         * modules/array-oset-tests (Depends-on): Add xlist.
17782
17783         Reported by José E. Marchesi <jemarch@gnu.org>.
17784
17785 2009-12-13  Bruno Haible  <bruno@clisp.org>
17786
17787         Move the malloc checking from module 'oset' to new module 'xoset'.
17788         * modules/xoset: New file.
17789         * lib/gl_xoset.h: New file.
17790         * lib/gl_xoset.c: New file.
17791         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17792         declarations.
17793         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17794         (struct gl_oset_implementation): Rename and change methods accordingly.
17795         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17796         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17797         'int'. Mark as __warn_unused_result__.
17798         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17799         gl_oset_create_empty.
17800         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17801         'int'.
17802         * lib/gl_array_oset.c: Don't include xalloc.h.
17803         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17804         malloc, not xmalloc.
17805         (grow): Change return type to 'int'. Don't call xalloc_die.
17806         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17807         to 'int'.
17808         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17809         'int'.
17810         (gl_array_oset_implementation): Update.
17811         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17812         gl_tree_create_empty.
17813         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17814         'int'.
17815         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17816         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17817         xmalloc.
17818         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17819         not xmalloc.
17820         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17821         xmalloc.
17822         (gl_avltree_oset_implementation): Update.
17823         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17824         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17825         xmalloc.
17826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17827         not xmalloc.
17828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17829         xmalloc.
17830         (gl_rbtree_oset_implementation): Update.
17831         * modules/array-oset (Depends-on): Remove xalloc.
17832         * modules/avltree-oset (Depends-on): Likewise.
17833         * modules/rbtree-oset (Depends-on): Likewise.
17834         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17835         * tests/test-avltree_oset.c: Likewise.
17836         * tests/test-rbtree_oset.c: Likewise.
17837         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17838         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17839         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17840         * NEWS: Mention the change.
17841
17842 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17843
17844         maint.mk: allow a project to override release-prep commands
17845         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17846         commands into a new rule.
17847         (release-prep): New rule.
17848         (release-prep-hook): New overridable variable.
17849
17850 2009-12-13  Bruno Haible  <bruno@clisp.org>
17851
17852         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17853
17854 2009-12-13  Jim Meyering  <meyering@redhat.com>
17855
17856         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17857         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17858
17859 2009-12-12  Bruno Haible  <bruno@clisp.org>
17860
17861         duplocale: Tweak.
17862         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17863
17864 2009-12-12  Karl Berry  <karl@gnu.org>
17865
17866         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17867
17868 2009-12-12  Bruno Haible  <bruno@clisp.org>
17869
17870         * m4/po.m4: Undo incorrect untabification.
17871
17872 2009-12-12  Bruno Haible  <bruno@clisp.org>
17873
17874         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17875         * modules/c-strtod (Depends-on): Add locale.
17876         * modules/c-strtold (Depends-on): Likewise.
17877
17878 2009-12-12  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17881
17882 2009-12-11  Eric Blake  <ebb9@byu.net>
17883
17884         setenv: relax requirement in light of POSIX ruling
17885         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17886         not NULL.
17887         * tests/test-setenv.c (main): Relax test.
17888         * tests/test-unsetenv.c (main): Likewise.
17889         * doc/posix-functions/setenv.texi (setenv): Document this.
17890         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17891
17892 2009-12-11  Bruno Haible  <bruno@clisp.org>
17893
17894         New module 'fd-safer-flag'.
17895         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17896         * lib/dup-safer.c (dup_safer_flag): Remove function.
17897         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17898         * lib/fd-safer.c (fd_safer_flag): Remove function.
17899         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17900         * modules/cloexec (configure.ac): Drop indicator macro.
17901         * modules/fd-safer-flag: New file.
17902         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17903         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17904         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17905
17906 2009-12-11  Bruno Haible  <bruno@clisp.org>
17907
17908         Tests for module 'nl_langinfo'.
17909         * modules/nl_langinfo-tests: New file.
17910         * tests/test-nl_langinfo.sh: New file.
17911         * tests/test-nl_langinfo.c: New file.
17912
17913         New module 'nl_langinfo'.
17914         * lib/nl_langinfo.c: New file.
17915         * m4/nl_langinfo.m4: New file.
17916         * modules/nl_langinfo: New file.
17917         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17918
17919 2009-12-11  Bruno Haible  <bruno@clisp.org>
17920
17921         Tests for module 'langinfo'.
17922         * modules/langinfo-tests: New file.
17923         * tests/test-langinfo.c: New file.
17924
17925         New module 'langinfo'.
17926         * lib/langinfo.in.h: New file.
17927         * m4/langinfo_h.m4: New file.
17928         * modules/langinfo: New file.
17929         * doc/posix-headers/langinfo.texi: Mention the new module.
17930
17931 2009-12-11  Bruno Haible  <bruno@clisp.org>
17932
17933         * lib/config.charset: Untabify.
17934
17935 2009-12-11  Bruno Haible  <bruno@clisp.org>
17936
17937         * modules/unistd-safer (configure.ac): Drop indicator macro.
17938
17939 2009-12-11  Bruno Haible  <bruno@clisp.org>
17940
17941         Move pipe2-safer code to its own file.
17942         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
17943         * lib/pipe-safer.c (pipe2_safer): Remove function.
17944         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
17945         (Makefile.am): Add it to lib_SOURCES.
17946
17947 2009-12-10  Bruno Haible  <bruno@clisp.org>
17948
17949         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
17950
17951 2009-12-10  Bruno Haible  <bruno@clisp.org>
17952
17953         Declare which arguments expect non-NULL values, for GCC and clang.
17954         * build-aux/arg-nonnull.h: New file.
17955         * modules/arg-nonnull: New file.
17956         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
17957         (inet_ntop, inet_pton): Use it.
17958         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
17959         (closedir, dirfd, opendir, scandir, alphasort): Use it.
17960         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
17961         (open, openat): Use it.
17962         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
17963         (fnmatch): Use it.
17964         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
17965         (getopt, getopt_long, getopt_long_only): Use it.
17966         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
17967         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
17968         Use it.
17969         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
17970         (iconv_open): Use it.
17971         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
17972         (strtoimax, strtoumax): Use it.
17973         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17974         (duplocale): Use it.
17975         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17976         (frexp, frexpl): Use it.
17977         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17978         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17979         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17980         (tsearch, tfind, tdelete, twalk): Use it.
17981         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17982         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17983         sigpending): Use it.
17984         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17985         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17986         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17987         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17988         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17989         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17990         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17991         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17992         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17993         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17994         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17995         Use it.
17996         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17997         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17998         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17999         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
18000         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
18001         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
18002         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
18003         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
18004         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
18005         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
18006         strtoull, unsetenv): Use it.
18007         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
18008         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18009         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18010         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18011         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18012         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
18013         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
18014         (strcasecmp, strncasecmp): Use it.
18015         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
18016         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
18017         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
18018         rpl_setsockopt): Use it.
18019         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
18020         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
18021         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
18022         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
18023         (gettimeofday): Use it.
18024         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
18025         (times): Use it.
18026         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
18027         (uname): Use it.
18028         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
18029         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
18030         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
18031         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
18032         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
18033         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
18034         unlinkat, write): Use it.
18035         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
18036         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
18037         * lib/argv-iter.h: Include arg-nonnull.h.
18038         (_ATTRIBUTE_NONNULL_): Remove macro.
18039         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
18040         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
18041         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
18042         optimization.
18043         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
18044         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
18045         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
18046         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
18047         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
18048         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
18049         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
18050         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
18051         * modules/arpa_inet (Depends-on): Add arg-nonnull.
18052         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
18053         * modules/dirent (Depends-on): Add arg-nonnull.
18054         (Makefile.am): Insert arg-nonnull.h into dirent.h.
18055         * modules/fcntl-h (Depends-on): Add arg-nonnull.
18056         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
18057         * modules/fnmatch (Depends-on): Add arg-nonnull.
18058         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
18059         * modules/getopt-posix (Depends-on): Add arg-nonnull.
18060         (Makefile.am): Insert arg-nonnull.h into getopt.h.
18061         * modules/glob (Depends-on): Add arg-nonnull.
18062         (Makefile.am): Insert arg-nonnull.h into glob.h.
18063         * modules/iconv_open (Depends-on): Add arg-nonnull.
18064         (Makefile.am): Insert arg-nonnull.h into iconv.h.
18065         * modules/inttypes (Depends-on): Add arg-nonnull.
18066         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
18067         * modules/locale (Depends-on): Add arg-nonnull.
18068         (Makefile.am): Insert arg-nonnull.h into locale.h.
18069         * modules/math (Depends-on): Add arg-nonnull.
18070         (Makefile.am): Insert arg-nonnull.h into math.h.
18071         * modules/netdb (Depends-on): Add arg-nonnull.
18072         (Makefile.am): Insert arg-nonnull.h into netdb.h.
18073         * modules/search (Depends-on): Add arg-nonnull.
18074         (Makefile.am): Insert arg-nonnull.h into search.h.
18075         * modules/signal (Depends-on): Add arg-nonnull.
18076         (Makefile.am): Insert arg-nonnull.h into signal.h.
18077         * modules/spawn (Depends-on): Add arg-nonnull.
18078         (Makefile.am): Insert arg-nonnull.h into spawn.h.
18079         * modules/stdio (Depends-on): Add arg-nonnull.
18080         (Makefile.am): Insert arg-nonnull.h into stdio.h.
18081         * modules/stdlib (Depends-on): Add arg-nonnull.
18082         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
18083         * modules/string (Depends-on): Add arg-nonnull.
18084         (Makefile.am): Insert arg-nonnull.h into string.h.
18085         * modules/strings (Depends-on): Add arg-nonnull.
18086         (Makefile.am): Insert arg-nonnull.h into strings.h.
18087         * modules/sys_socket (Depends-on): Add arg-nonnull.
18088         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
18089         * modules/sys_stat (Depends-on): Add arg-nonnull.
18090         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
18091         * modules/sys_time (Depends-on): Add arg-nonnull.
18092         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
18093         * modules/sys_times (Depends-on): Add arg-nonnull.
18094         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
18095         * modules/sys_utsname (Depends-on): Add arg-nonnull.
18096         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
18097         * modules/time (Depends-on): Add arg-nonnull.
18098         (Makefile.am): Insert arg-nonnull.h into time.h.
18099         * modules/unistd (Depends-on): Add arg-nonnull.
18100         (Makefile.am): Insert arg-nonnull.h into unistd.h.
18101         * modules/wchar (Depends-on): Add arg-nonnull.
18102         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18103         * modules/argv-iter (Depends-on): Add arg-nonnull.
18104         * tests/test-canonicalize.c (null_ptr): New function.
18105         (main): Use it.
18106         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18107         (main): Use it.
18108         * tests/test-memmem.c (null_ptr): New function.
18109         (main): Use it.
18110         Reported by Jim Meyering.
18111
18112 2009-12-10  Bruno Haible  <bruno@clisp.org>
18113
18114         Use spaces for indentation, not tabs.
18115         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18116         * m4/*.m4: Untabify.
18117         * build-aux/*.h: Untabify.
18118         * tests/**/*.[hc]: Untabify.
18119         * README: New section "Indent with spaces, not TABs", based on
18120         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18121         * NEWS: Mention the change.
18122
18123 2009-12-10  Bruno Haible  <bruno@clisp.org>
18124
18125         pty test: Fix link error.
18126         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18127         test_pty_LDADD.
18128
18129 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18130
18131         * modules/pty: New file.
18132         * modules/pty-tests: New file.
18133         * m4/pty.m4: New file.
18134         * tests/test-pty.c: New file.
18135         * doc/glibc-headers/pty.texi: Modified.
18136         * doc/glibc-functions/forkpty.texi: Modified.
18137         * doc/glibc-functions/openpty.texi: Modified.
18138
18139 2009-12-10  Bruno Haible  <bruno@clisp.org>
18140
18141         Avoid syntax error in C++ mode.
18142         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18143
18144 2009-12-10  Bruno Haible  <bruno@clisp.org>
18145
18146         Use sed with option -e.
18147         * gnulib-tool (func_version, func_emit_copyright_notice,
18148         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18149         option -e to sed.
18150         * modules/link-warning (Makefile.am): Likewise.
18151
18152 2009-12-10  Jim Meyering  <meyering@redhat.com>
18153
18154         mgetgroups: do not write bytes beyond end of malloc'd buffer
18155         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18156         username, we call getgroups with a one-element-shorter buffer,
18157         but still told it the length was original, max_n_groups.
18158
18159 2009-12-09  Eric Blake  <ebb9@byu.net>
18160
18161         cloexec: relax license
18162         * modules/cloexec (Maintainer): Add myself.
18163         (License): Use LGPL, not GPL.
18164
18165         link-warning: optimize generation
18166         * modules/link-warning (Makefile.am): Reduce process usage.
18167
18168 2009-12-09  Bruno Haible  <bruno@clisp.org>
18169
18170         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18171         workaround was added on 2009-11-17.
18172
18173 2009-12-09  Jim Meyering  <meyering@redhat.com>
18174             Bruno Haible  <bruno@clisp.org>
18175
18176         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
18177         * modules/link-warning (Makefile.am): Make the comment-removing sed
18178         command more robust in the face of bootstrap-prepended comment lines.
18179
18180 2009-12-09  Bruno Haible  <bruno@clisp.org>
18181
18182         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
18183         most one group.
18184
18185 2009-12-09  Simon Josefsson <simon@josefsson.org>
18186             Bruno Haible  <bruno@clisp.org>
18187
18188         * build-aux/link-warning.h: Add copyright notice.
18189         * modules/link-warning (Makefile.am): Generate link-warning.h from
18190         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
18191         * NEWS: Mention change in link-warning module.
18192         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
18193         * modules/dirent (Makefile.am): Add dependency to dirent.h.
18194         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
18195         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
18196         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
18197         * modules/math (Makefile.am): Add dependency to math.h.
18198         * modules/search (Makefile.am): Add dependency to search.h.
18199         * modules/signal (Makefile.am): Add dependency to signal.h.
18200         * modules/spawn (Makefile.am): Add dependency to spawn.h.
18201         * modules/stdio (Makefile.am): Add dependency to stdio.h.
18202         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
18203         * modules/string (Makefile.am): Add dependency to string.h.
18204         * modules/strings (Makefile.am): Add dependency to strings.h.
18205         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
18206         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
18207         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
18208         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
18209         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
18210         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
18211         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
18212         * modules/unistd (Makefile.am): Add dependency to unistd.h.
18213         * modules/wchar (Makefile.am): Add dependency to wchar.h.
18214
18215 2009-12-09  Bruno Haible  <bruno@clisp.org>
18216
18217         fchdir: Optimize away rpl_fstat when possible.
18218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
18219         REPLACE_OPEN_DIRECTORY.
18220         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
18221
18222 2009-12-09  Bruno Haible  <bruno@clisp.org>
18223
18224         * lib/fchdir.c: Update comment.
18225
18226 2009-12-09  Bruno Haible  <bruno@clisp.org>
18227
18228         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
18229
18230 2009-12-08  Eric Blake  <ebb9@byu.net>
18231
18232         fchdir: avoid memory leak on re-registration.
18233         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
18234
18235 2009-12-08  Jim Meyering  <meyering@redhat.com>
18236
18237         init.sh: avoid Solaris 10 /bin/sh portability problem
18238         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
18239         sourced script:
18240           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
18241           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
18242           bar
18243         tests/init.sh relied on that, accepting a --set-path=DIR argument,
18244         and two tests used that idiom.
18245         * tests/init.sh: Update suggested usage comments.
18246         (path_prepend_): New function, to be used in place
18247         of the --src-path=DIR option.
18248         (setup_): Move PATH-prepending code into path_prepend_.
18249         * tests/test-pread.sh: Adapt to new usage.
18250         * tests/test-xalloc-die.sh: Likewise.
18251
18252 2009-12-08  Simon Josefsson  <simon@josefsson.org>
18253
18254         * doc/gnulib.texi (Glibc pty.h): Add.
18255         * doc/glibc-functions/forkpty.texi: Add.
18256         * doc/glibc-functions/openpty.texi: Add.
18257         Suggested by Bruno Haible.
18258
18259 2009-12-08  Eric Blake  <ebb9@byu.net>
18260
18261         fchdir: fix logic bugs
18262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
18263         * tests/test-fchdir.c (main): Enhance test.
18264         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
18265         is in use.
18266
18267         dup2: fix logic bugs
18268         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
18269         REPLACE_DUP2 to decide when rpl_dup2 is needed.
18270         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
18271         exists.
18272         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
18273
18274 2009-12-07  Eric Blake  <ebb9@byu.net>
18275
18276         unlink: fix m4 detection
18277         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
18278
18279         unistd-safer: add unit test
18280         * modules/unistd-safer-tests: New file.
18281         * tests/test-dup-safer.c: Likewise.
18282         * tests/test-cloexec.c (setmode): Avoid compiler warning.
18283         * tests/test-dup2.c (setmode): Likewise.
18284         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
18285
18286         cloexec: preserve text vs. binary across dup_cloexec
18287         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
18288         mode.
18289         * modules/dup2-tests (Depends-on): Add binary-io.
18290         * modules/cloexec-tests (Depends-on): Likewise.
18291         * tests/test-dup2.c (setmode, is_mode): New helpers.
18292         (main): Add tests that translation mode is preserved.
18293         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
18294         Reported by Bruno Haible.
18295
18296         mgetgroups: reduce duplicate listings
18297         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
18298         resulting array.
18299         * tests/test-chown.h (test_chown): Simplify client.
18300         * tests/test-lchown.h (test_lchown): Likewise.
18301
18302 2009-12-06  Bruno Haible  <bruno@clisp.org>
18303
18304         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
18305         value.
18306
18307 2009-12-06  Bruno Haible  <bruno@clisp.org>
18308
18309         * lib/progname.c: Include stdio.h, stdlib.h.
18310         (set_program_name): Reject a NULL argument.
18311
18312 2009-12-05  Eric Blake  <ebb9@byu.net>
18313
18314         pipe2-safer: new module
18315         * modules/pipe2-safer: New file.
18316         * lib/unistd-safer.h (pipe2_safer): New prototype.
18317         * lib/unistd--.h (pipe2): New wrapper.
18318         * lib/pipe-safer.c (pipe2_safer): New function.
18319         * modules/pipe (Depends-on): Add pipe2-safer.
18320         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
18321
18322         stdlib-safer: preserve cloexec flag for mkostemp[s]
18323         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
18324         fd_safer_flag.
18325
18326         unistd-safer: allow preservation of cloexec status via flag
18327         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
18328         prototypes.
18329         * lib/dup-safer.c (dup_safer_flag): New function.
18330         * lib/fd-safer.c (fd_safer_flag): Likewise.
18331         * modules/cloexec (configure.ac): Set witness.
18332
18333         test-dup2: enhance test
18334         * modules/dup2-tests (Depends-on): Add cloexec.
18335         * tests/test-dup2.c (main): Enhance test.
18336
18337         cloexec: add dup_cloexec
18338         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
18339         header and comments.
18340         * lib/cloexec.c (set_cloexec_flag): Add comments.
18341         (dup_cloexec): New function, with mingw implementation borrowed
18342         from...
18343         * lib/w32spawn.h (dup_noinherit): ...here.
18344         * modules/execute (Depends-on): Add cloexec.
18345         * modules/pipe (Depends-on): Likewise.
18346         * modules/cloexec (Depends-on): Add dup2.
18347         * modules/cloexec-tests (Files): New file.
18348         * tests/test-cloexec.c: Likewise.
18349
18350         test-xalloc-die: fix test for mingw
18351         * modules/xalloc-die-tests (Files): Add tests/init.sh.
18352         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
18353         directory and .exe suffix off argv[0] output.
18354
18355         test-fseeko: fix test for mingw
18356         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
18357         than undefining fseek, so test will pass on mingw.
18358
18359 2009-12-05  Bruno Haible  <bruno@clisp.org>
18360
18361         * lib/progname.h (set_program_name): Clarify specification.
18362         * lib/progname.c (set_program_name): Likewise.
18363         Reported by Jim Meyering.
18364
18365 2009-12-05  Jim Meyering  <meyering@redhat.com>
18366
18367         maint.mk: backslash-escape parens in default regexp
18368         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
18369         backslash-escape the literal parentheses.
18370
18371         maint.mk: news-date-check: use grep -E
18372         * top/maint.mk (today): Define a Make variable, not a...
18373         (news-date-check): ...shell variable.
18374         (news-date-regexp): Use the Make variable.
18375         Use grep's -E option.  Change the failing diagnostic to mention
18376         the variable, $(news-date-regexp).
18377
18378 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
18379
18380         maintainer-makefile: allow customization of NEWS entry format
18381         * top/maint.mk (news-date-regexp): New overridable variable.
18382         (news-date-check): Use it.
18383
18384 2009-12-04  Eric Blake  <ebb9@byu.net>
18385
18386         mgetgroups: add xgetgroups, and avoid ENOSYS failures
18387         * lib/mgetgroups.h (xgetgroups): New prototype.
18388         * lib/mgetgroups.c (xgetgroups): New wrapper.
18389         (mgetgroups): Handle ENOSYS.
18390         * modules/mgetgroups (Depends-on): Add realloc.
18391         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
18392
18393         mgetgroups: avoid argument promotion issues with -1
18394         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
18395         for invalid gid_t.
18396         * tests/test-chown.h (getegid, test_chown): Likewise.
18397         * tests/test-lchown.h (getegid, test_lchown): Likewise.
18398
18399 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
18400
18401         exclude: Fix header file problems.
18402         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
18403
18404 2009-12-01  Jim Meyering  <meyering@redhat.com>
18405
18406         fts: fts_open: do not let an empty string cause immediate failure
18407         This is required in support of GNU rm, for which the command
18408         "rm A '' B" must process and remove both A and B, in spite of
18409         the empty string argument.
18410         * lib/fts.c (fts_open): Do not let the presence of an empty string
18411         cause fts_open to fail immediately.  Most fts-using tools must be
18412         able to process all arguments, in order, and can be expected to
18413         diagnose such arguments themselves.
18414
18415 2009-11-30  Eric Blake  <ebb9@byu.net>
18416
18417         utimens: fix compilation error
18418         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
18419         Declare variable at right scope.
18420
18421 2009-11-29  Jim Meyering  <meyering@redhat.com>
18422
18423         bootstrap: handle perl-5.11's changed --version output
18424         * build-aux/bootstrap (get_version): Handle perl separately,
18425         since perl-5.11's --version output is different.
18426
18427 2009-11-28  Jim Meyering  <meyering@redhat.com>
18428
18429         userspec: depend on the inttostr module, too
18430         * modules/userspec (Depends-on): Add inttostr.
18431
18432         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
18433         * lib/userspec.c (parse_with_separator): Do not accept a user ID
18434         number of MAXUID when it evaluates to (uid_t) -1.
18435         Likewise for group ID.  Reported by Matt McCutchen in
18436         <http://savannah.gnu.org/bugs/?28113>
18437
18438         userspec: reformat to use spaces, not TABs
18439         * lib/userspec.c: Expand TABs to spaces.
18440         Add Emacs' "indent-tabs-mode: nil" hint.
18441
18442 2009-11-27  Eric Blake  <ebb9@byu.net>
18443
18444         getopt-gnu: flush out another BSD bug
18445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
18446         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
18447         flush out BSD bug.
18448         * tests/test-getopt.h (test_getopt): End lists with NULL.
18449         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18450         (test_getopt_long_posix): Enhance test.
18451         * modules/getopt-posix-tests (Depends-on): Add stdbool.
18452         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
18453         getopt-gnu.
18454         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18455         Likewise.
18456
18457 2009-11-27  Simon Josefsson  <simon@josefsson.org>
18458
18459         * modules/idpriv-droptemp-tests (Notice): Fix text.
18460
18461 2009-11-27  Jim Meyering  <meyering@redhat.com>
18462
18463         test-xalloc-die: avoid spurious failure due to libtool argv difference
18464         In a libtool-enabled project, this test would fail due to a difference
18465         in the emitted program name, e.g.,
18466         -test-xalloc-die: memory exhausted
18467         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
18468         Use program to avoid that.
18469         * modules/xalloc-die-tests (Depends-on): Add progname.
18470         * tests/test-xalloc-die.c: Include progname.h".
18471         (program_name): Remove decl.
18472         (main): Call set_program_name.
18473         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
18474
18475 2009-11-26  Richard Jones  <rjones@redhat.com>
18476
18477         w32sock: leave win32 error in place.
18478         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
18479
18480 2009-11-26  Eric Blake  <ebb9@byu.net>
18481
18482         init.sh: suggest to use skip_ and fail_ functions in comments
18483         * tests/init.sh: Add a sentence.
18484
18485 2009-11-25  Bruno Haible  <bruno@clisp.org>
18486
18487         init.sh: add documentation in comments
18488         * tests/init.sh: Add some developer and user documentation.
18489
18490 2009-11-26  Jim Meyering  <meyering@redhat.com>
18491
18492         init.sh: accommodate even those who specify bogus srcdir manually
18493         * tests/init.sh: Normally, srcdir is guaranteed by automake and
18494         configure-time tests to be sanitized, so that there is no need to
18495         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
18496         (with no double quotes) suffices.  However, since tests may be
18497         invoked manually, and since you may explicitly set srcdir to the
18498         name of a directory containing spaces, do quote its uses here.
18499         * tests/test-pread.sh: Likewise.
18500         Suggested by Bruno Haible.
18501
18502         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18503         * tests/test-pread.sh: Write no data into the pipe, because
18504         test-pread actually reads none.  This avoids a diagnostic,
18505         "bash: echo: write error: Broken pipe", that arises in the unusual
18506         event something is ignoring SIGPIPE, and might be interpreted
18507         as some sort of failure.  Reported by Bruno Haible.
18508
18509 2009-11-25  Jim Meyering  <meyering@redhat.com>
18510
18511         test-pread: cover failure with ESPIPE and EINVAL
18512         * tests/test-pread.c (main): Test for failure, too.
18513         * tests/test-pread.sh: Invoke with stdin on a pipe.
18514         Suggested by Eric Blake.
18515
18516         pread: improvement and fix
18517         * modules/pread (Depends-on): Depend on lseek, for portability to
18518         e.g., mingw.  Suggested by Eric Blake.
18519         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18520
18521         unistd.in.h: correct declaration of pread
18522         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18523         Reported by Richard W.M. Jones.
18524
18525         test-pread.sh: distribute the test script
18526         * modules/pread-tests (Files): Include test-pread.sh.
18527
18528         test-pread.sh: clean up
18529         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18530         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18531         That is unnecessary, since it's always ".".
18532         Suggestion from Eric Blake.
18533
18534         test-pread.sh: make executable
18535         * tests/test-pread.sh: Set executable bit.
18536         Reported by Eric Blake.
18537
18538         correct typo in test-pread.sh
18539         * tests/test-pread.sh: Add #! line.
18540
18541         test pread
18542         * tests/test-pread.c: New file.
18543         * tests/test-pread.sh: Likewise.
18544         * modules/pread-tests: Likewise.
18545
18546         pread: new module
18547         * modules/pread: New file.
18548         * lib/unistd.in.h (pread): Define/declare.
18549         * lib/pread.c (pread): New file.
18550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18551         * modules/unistd (Makefile.am): Substitute witnesses.
18552         * doc/posix-functions/pread.texi (pread): Update.
18553         * MODULES.html.sh: Add pread.
18554
18555 2009-11-25  Jim Meyering  <meyering@redhat.com>
18556
18557         tests/init.sh: new file to be used via most *.sh tests
18558         * tests/init.sh: New file.
18559
18560 2009-11-25  Eric Blake  <ebb9@byu.net>
18561
18562         utimens: work around older Linux failure with symlinks
18563         * lib/utimens.c (lutimensat_works_really): New variable.
18564         (fdutimens, lutimens): Use it to manage kernels that support
18565         nanosecond times on files, but not on symlinks.
18566         Reported by OndÅ™ej Vašík.
18567
18568         utimes: fix configure grammar
18569         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18570
18571 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18572
18573         regex: Fix fastmap for multibyte character ranges.
18574         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18575         characters when a multibyte character range is included.
18576
18577 2009-11-22  Andy Wingo  <wingo@pobox.com>
18578
18579         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18580         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18581
18582 2009-11-24  Bruno Haible  <bruno@clisp.org>
18583
18584         doc: Most *_l functions exist in MacOS X 10.5.
18585         * doc/posix-functions/duplocale.texi: Update platforms list.
18586         * doc/posix-functions/freelocale.texi: Likewise.
18587         * doc/posix-functions/newlocale.texi: Likewise.
18588         * doc/posix-functions/uselocale.texi: Likewise.
18589         * doc/posix-functions/isalnum_l.texi: Likewise.
18590         * doc/posix-functions/isalpha_l.texi: Likewise.
18591         * doc/posix-functions/isblank_l.texi: Likewise.
18592         * doc/posix-functions/iscntrl_l.texi: Likewise.
18593         * doc/posix-functions/isdigit_l.texi: Likewise.
18594         * doc/posix-functions/isgraph_l.texi: Likewise.
18595         * doc/posix-functions/islower_l.texi: Likewise.
18596         * doc/posix-functions/isprint_l.texi: Likewise.
18597         * doc/posix-functions/ispunct_l.texi: Likewise.
18598         * doc/posix-functions/isspace_l.texi: Likewise.
18599         * doc/posix-functions/isupper_l.texi: Likewise.
18600         * doc/posix-functions/iswalnum_l.texi: Likewise.
18601         * doc/posix-functions/iswalpha_l.texi: Likewise.
18602         * doc/posix-functions/iswblank_l.texi: Likewise.
18603         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18604         * doc/posix-functions/iswctype_l.texi: Likewise.
18605         * doc/posix-functions/iswdigit_l.texi: Likewise.
18606         * doc/posix-functions/iswgraph_l.texi: Likewise.
18607         * doc/posix-functions/iswlower_l.texi: Likewise.
18608         * doc/posix-functions/iswprint_l.texi: Likewise.
18609         * doc/posix-functions/iswpunct_l.texi: Likewise.
18610         * doc/posix-functions/iswspace_l.texi: Likewise.
18611         * doc/posix-functions/iswupper_l.texi: Likewise.
18612         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18613         * doc/posix-functions/isxdigit_l.texi: Likewise.
18614         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18615         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18616         * doc/posix-functions/strcoll_l.texi: Likewise.
18617         * doc/posix-functions/strfmon_l.texi: Likewise.
18618         * doc/posix-functions/strftime_l.texi: Likewise.
18619         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18620         * doc/posix-functions/strxfrm_l.texi: Likewise.
18621         * doc/posix-functions/tolower_l.texi: Likewise.
18622         * doc/posix-functions/toupper_l.texi: Likewise.
18623         * doc/posix-functions/towctrans_l.texi: Likewise.
18624         * doc/posix-functions/towlower_l.texi: Likewise.
18625         * doc/posix-functions/towupper_l.texi: Likewise.
18626         * doc/posix-functions/wcscoll_l.texi: Likewise.
18627         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18628         * doc/posix-functions/wctrans_l.texi: Likewise.
18629         * doc/posix-functions/wctype_l.texi: Likewise.
18630         * doc/glibc-functions/strptime_l.texi: Likewise.
18631         * doc/glibc-functions/strtod_l.texi: Likewise.
18632         * doc/glibc-functions/strtof_l.texi: Likewise.
18633         * doc/glibc-functions/strtol_l.texi: Likewise.
18634         * doc/glibc-functions/strtold_l.texi: Likewise.
18635         * doc/glibc-functions/strtoll_l.texi: Likewise.
18636         * doc/glibc-functions/strtoul_l.texi: Likewise.
18637         * doc/glibc-functions/strtoull_l.texi: Likewise.
18638         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18639         * doc/glibc-functions/wcstod_l.texi: Likewise.
18640         * doc/glibc-functions/wcstof_l.texi: Likewise.
18641         * doc/glibc-functions/wcstol_l.texi: Likewise.
18642         * doc/glibc-functions/wcstold_l.texi: Likewise.
18643         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18644         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18645         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18646
18647 2009-11-24  Bruno Haible  <bruno@clisp.org>
18648
18649         duplocale: Fix logic bug.
18650         * lib/duplocale.c: Don't include <langinfo.h>.
18651         (_NL_LOCALE_NAME): Remove macro.
18652         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18653         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18654
18655 2009-11-23  Jim Meyering  <meyering@redhat.com>
18656
18657         test-update-copyright: don't hard-code /usr/bin/perl
18658         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18659         perl to print the current year.  Gilles Espinasse reported that
18660         the replaced use of perl was hard-coded as /usr/bin/perl.
18661
18662 2009-11-23  Bruno Haible  <bruno@clisp.org>
18663
18664         duplocale: Add support for glibc 2.3.x.
18665         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18666
18667 2009-11-22  Bruno Haible  <bruno@clisp.org>
18668
18669         vasnprintf: Tiny optimization.
18670         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18671         MacOS X.
18672
18673 2009-11-22  Bruno Haible  <bruno@clisp.org>
18674
18675         Tests for module 'duplocale'.
18676         * modules/duplocale-tests: New file.
18677         * tests/test-duplocale.c: New file.
18678
18679         New module 'duplocale'.
18680         * m4/duplocale.m4: New file.
18681         * lib/locale.in.h (duplocale): New declaration.
18682         * lib/duplocale.c: New file.
18683         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18684         gl_LOCALE_H_DEFAULTS): New macros.
18685         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18686         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18687         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18688         REPLACE_DUPLOCALE.
18689         * modules/duplocale: New file.
18690         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18691
18692 2009-11-22  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/locale-tests (configure.ac): Test for newlocale function.
18695         * tests/test-locale.c: When the system has extended locale functions,
18696         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18697
18698         locale: Make locale_t available when possible.
18699         * lib/locale.in.h: Include <xlocale.h> when it exists.
18700         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18701         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18702         * modules/locale (Depends-on): Add extensions.
18703         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18704         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18705
18706 2009-11-22  Bruno Haible  <bruno@clisp.org>
18707
18708         Add comments.
18709         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18710         invocation.
18711         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18712         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18713         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18714
18715 2009-11-22  Bruno Haible  <bruno@clisp.org>
18716
18717         error: account for the possibility of freopen (stdout).
18718         * lib/error.c: Include <unistd.h>.
18719         (flush_stdout): New function, extracted from error and error_at_line.
18720         Determine stdout's fd dynamically.
18721         (error, error_at_line): Invoke flush_stdout.
18722         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18723         * modules/error (Depends-on): Add unistd.
18724
18725 2009-11-22  Bruno Haible  <bruno@clisp.org>
18726
18727         diffseq: Add comment.
18728         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18729
18730 2009-11-22  Jim Meyering  <meyering@redhat.com>
18731
18732         c-stack: avoid defining an unused static function
18733         * lib/c-stack.c (find_stack_direction): Do not define this function
18734         when it will not be used.
18735
18736         diffseq: avoid spurious gcc warnings
18737         * lib/diffseq.h (IF_LINT2): Define.
18738         (compareseq): Use it to initialize two members of "part".
18739         This avoids two used-uninitialized warnings.
18740
18741 2009-11-21  Jim Meyering  <meyering@redhat.com>
18742
18743         c-stack: avoid "ignoring return value of `write'" warning
18744         * lib/c-stack.c: Include "ignore-value.h".
18745         (die): Explicitly ignore each write return value.
18746         * modules/c-stack (Depends-on): Add ignore-value.
18747
18748 2009-11-21  Bruno Haible  <bruno@clisp.org>
18749
18750         diffseq: reduce scope of variable 'best'.
18751         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18752         variable, earlier used for two different purposes.
18753
18754 2009-11-21  Jim Meyering  <meyering@redhat.com>
18755
18756         diffseq: remove useless assignment to "best"
18757         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18758         assignment.  At that point "best" is already guaranteed to be zero.
18759
18760 2009-11-20  Eric Blake  <ebb9@byu.net>
18761
18762         build: mention ftp redirector in release announcements
18763         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18764         values that used to come from cfg.mk; mention FTP redirect URL.
18765         * build-aux/announce-gen: Mention the mirror list.
18766         Suggested by Karl Berry.
18767
18768         nanosleep: improve port to mingw
18769         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18771         LIB_NANOSLEEP, but only when needed.
18772         * modules/select (Link): Document LIBSOCKET.
18773         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18774         enough.
18775
18776         nanosleep: work around cygwin bug
18777         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18778         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18779         bug.
18780         (getnow): Delete, not needed.
18781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18782         LIB_CLOCK_GETTIME.
18783         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18784         clock-time, gettime.
18785         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18786         bug.
18787         * modules/nanosleep-tests: New test.
18788         * tests/test-nanosleep.c: New file.
18789
18790         sleep: work around cygwin bug
18791         * lib/sleep.c (rpl_sleep): Work around the bug.
18792         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18793         (gl_PREREQ_SLEEP): Delete unused macro.
18794         * modules/sleep (Depends-on): Add verify.
18795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18796         * modules/unistd (Makefile.am): Substitute witness.
18797         * lib/unistd.in.h (sleep): Update prototype.
18798         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18799         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18800         * modules/sleep-tests (Depends-on): Check for alarm.
18801
18802 2009-11-20  Jim Meyering  <meyering@redhat.com>
18803
18804         maint.mk: improve sc_prohibit_magic_number_exit
18805         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18806         so it does not match uses like System.exit(1).
18807         Add comments showing how to correct all offenders.
18808
18809 2009-11-19  Eric Blake  <ebb9@byu.net>
18810
18811         xalloc-die-tests: add missing library
18812         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18813
18814         test-xvasprintf: silence compiler warnings
18815         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18816         empty string from gcc.
18817
18818 2009-11-19  Jim Meyering  <meyering@redhat.com>
18819
18820         xfreopen: new module, from coreutils
18821         * modules/xfreopen: New module.
18822         * lib/xfreopen.c: New file.
18823         * lib/xfreopen.h: New file.
18824         * MODULES.html.sh (File stream based Input/Output"): Add it.
18825
18826 2009-11-19  Eric Blake  <ebb9@byu.net>
18827
18828         manywarnings: depend on warnings
18829         * modules/manywarnings (Depends-on): Add warnings.
18830
18831         build: avoid compiler warnings
18832         * lib/select.c (rpl_select): Delete unused variable.
18833         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18834
18835 2009-11-18  Eric Blake  <ebb9@byu.net>
18836
18837         tests: avoid false negative with --with-packager
18838         * tests/test-version-etc.sh: Discard packager information.
18839         * tests/test-argp-version-etc-1.sh: Likewise.
18840         Reported by Mike Frysinger.
18841
18842         utimens: fix regression on Solaris
18843         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18844         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18845         can only change fd timestamps via futimesat.  Instead, use an
18846         additional witness macro to avoid BSD bug.
18847         Reported by Jim Meyering.
18848
18849 2009-11-17  Eric Blake  <ebb9@byu.net>
18850
18851         usleep: use it to simplify tests
18852         * modules/stat-time-tests (Depends-on): Add usleep.
18853         (configure.ac): Drop usleep check.
18854         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18855         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18856         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18857         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18858         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18859         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18860         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18861         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18862         Likewise.
18863         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18864         * tests/test-lchown.h (nap): Likewise.
18865         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18866         * tests/test-stat-time.c (nap): Likewise.
18867         * tests/test-utimens-common.h (nap): Update comments.
18868
18869         usleep: new module
18870         * modules/usleep: New file.
18871         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18872         * lib/usleep.c (usleep): Likewise.
18873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18874         * modules/unistd (Makefile.am): Substitute witnesses.
18875         * lib/unistd.in.h (usleep): Add declaration.
18876         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18877         * MODULES.html.sh (Date and time): Likewise.
18878         * modules/usleep-tests (Depends-on): New test.
18879         * tests/test-usleep.c: New file.
18880
18881         chown: work around OpenBSD bug
18882         * lib/chown.c (rpl_chown): Work around the bug.
18883         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18884         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18885         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18886         * modules/chown (Depends-on): Add stdbool.
18887         * modules/lchown (Depends-on): Likewise.
18888         * doc/posix-functions/chown.texi (chown): Document the bug.
18889         * doc/posix-functions/lchown.texi (lchown): Likewise.
18890         * tests/test-lchown.h (test_chown): Relax test.
18891
18892         mkstemp: avoid conflict with C++ keyword template
18893         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18894         * lib/mkostemp.c (mkostemp): Likewise.
18895         * lib/mkostemps.c (mkostemps): Likewise.
18896         * lib/mkstemp.c (mkstemp): Likewise.
18897         * lib/mkstemps.c (mkstemps): Likewise.
18898
18899         xalloc-die-tests: optimize
18900         * tests/test-xalloc-die.sh: Reduce number of processes.
18901
18902 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18903
18904         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18905         patch from ludo@gnu.org (Ludovic Courtès).
18906
18907 2009-11-17  Jim Meyering  <meyering@redhat.com>
18908
18909         version-etc: use proper license string
18910         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18911         * modules/version-etc-fsf: Likewise.
18912
18913 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18914
18915         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18916         printed to stdout.  Deal with EOL differences.
18917
18918 2009-11-17  Eric Blake  <ebb9@byu.net>
18919
18920         unsetenv: work around Solaris bug
18921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18922         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18923         Reported by Jim Meyering.
18924
18925         vasnprintf: avoid compiler warnings
18926         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18927         variables.
18928         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
18929
18930 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18931
18932         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
18933         settings since xalloc-die is no longer the self test,
18934         xalloc-die.sh is.
18935
18936 2009-11-17  Jim Meyering  <meyering@redhat.com>
18937
18938         test-xalloc-die.sh: make the code agree with the commit log
18939         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
18940         at the end, just in case you happen to have a test-xalloc-die
18941         program in some other PATH directory.
18942
18943         test-xalloc-die.sh: fix a portability bug
18944         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
18945         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
18946         Otherwise, argv[0] (as often seen in diagnostics) would be too
18947         system-dependent, sometimes with, and sometimes without the leading "./".
18948
18949         version-etc-fsf: relax license to LGPLv3+
18950         * modules/version-etc-fsf (License): Relax license.
18951
18952 2009-11-16  Eric Blake  <ebb9@byu.net>
18953
18954         xalloc-die-tests: avoid printing null pointer
18955         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
18956         shell script.
18957         * tests/test-xalloc-die.c (program_name): Declare.
18958         * tests/test-xalloc-die.sh (tmpfiles): New file.
18959
18960         setenv, unsetenv: work around various bugs
18961         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
18962         (setenv) [HAVE_SETENV]: Work around bugs.
18963         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
18964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
18965         for bugs.
18966         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
18967         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
18968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
18969         * modules/stdlib (Makefile.am): Update substitutions.
18970         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
18971         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
18972         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18973         * modules/setenv-tests: New test.
18974         * modules/unsetenv-tests: Likewise.
18975         * tests/test-setenv.c: New file.
18976         * tests/test-unsetenv.c: Likewise.
18977
18978 2009-11-16  Jim Meyering  <meyering@redhat.com>
18979
18980         version-etc: relax license to LGPLv3+
18981         * modules/version-etc (License): Relax license.
18982
18983         better AC_REQUIRE expanded-before-required-warning avoidance
18984         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18985         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18986         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18987         which is no longer needed.
18988
18989 2009-11-16  Eric Blake  <ebb9@byu.net>
18990
18991         test-freading: clean up temporary file
18992         * tests/test-freading.c (main): Remove file on success, and use
18993         ASSERT more liberally.
18994         Reported by Jim Meyering.
18995
18996 2009-11-16  Jim Meyering  <meyering@redhat.com>
18997
18998         avoid new AC_REQUIRE expanded-before-required warnings
18999         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
19000         merely using it.
19001         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
19002         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
19003
19004 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19005
19006         * tests/test-xalloc-die.c: New file.
19007         * modules/xalloc-die-tests: New file.
19008         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
19009         XFAIL_TESTS so it can be appended by modules.
19010
19011 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19012
19013         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
19014         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
19015
19016 2009-11-14  Eric Blake  <ebb9@byu.net>
19017
19018         fnmatch: avoid compiler warning
19019         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
19020         to silence compiler warning about mismatch signedness in ?:.
19021         Reported by Robert Millan.
19022
19023         intprops: add double-inclusion guard
19024         * lib/intprops.h: Allow idempotent includes.
19025         Suggested by Bruce Korb.
19026
19027         openat: detect Solaris fchownat bug
19028         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
19029         penalizing glibc chownat when only lchownat is broken.
19030         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
19031         trailing slash bugs.
19032         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
19033         * modules/openat-tests (Files): Include more files.
19034         (Depends-on): Add mgetgroups, sleep, stat-time.
19035         (configure.ac): Add additional checks.
19036         (Makefile.am): Build new test.
19037         * tests/test-fchownat.c: New file.
19038
19039         lchown: detect Solaris and FreeBSD bug
19040         * lib/lchown.c (rpl_lchown): Work around bug.
19041         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
19042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19043         * modules/unistd (Makefile.am): Populate it.
19044         * lib/unistd.in.h (lchown): Update declaration.
19045         * doc/posix-functions/lchown.texi (lchown): Document the bug.
19046         * modules/lchown-tests: New file.
19047         * tests/test-lchown.h (test_lchown): Likewise.
19048         * tests/test-lchown.c (main): Likewise.
19049
19050         chown: detect Solaris and FreeBSD bug
19051         * lib/chown.c (rpl_chown): Work around bug.
19052         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
19053         (gl_PREREQ_CHOWN): Delete.
19054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19055         * modules/unistd (Makefile.am): Populate it.
19056         * lib/unistd.in.h (chown): Update declaration.
19057         * lib/lchown.c (chown): Update client.
19058         * modules/lchown (Depends-on): Add lstat.
19059         * doc/posix-functions/chown.texi (chown): Document the bug.
19060         * doc/posix-functions/getgroups.texi (getgroups): Document
19061         getgroups pitfall.
19062         * modules/chown-tests: New file.
19063         * tests/test-chown.h (test_chown): Likewise.
19064         * tests/test-chown.c (main): Likewise.
19065
19066 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
19067
19068         gnulib-tool: correctly detect absence of m4 directories
19069         * gnulib-tool: Avoid extra newline on data passed to wc -l.
19070
19071 2009-11-14  Jim Meyering  <meyering@redhat.com>
19072
19073         maint.mk: Prohibit inclusion of "xalloc.h" without use.
19074         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19075
19076 2009-11-14  John W. Eaton  <jwe@gnu.org>
19077
19078         strftime.h: wrap funtion declaration in extern "C" block
19079         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
19080
19081 2009-11-13  Eric Blake  <ebb9@byu.net>
19082
19083         getgroups: avoid compiler warning
19084         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
19085
19086         getgroups: work around FreeBSD bug
19087         * lib/getgroups.c (rpl_getgroups): Work around the bug.
19088         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
19089         * doc/posix-functions/getgroups.texi (getgroups): Document it.
19090         * tests/test-getgroups.c (main): Fix buffer overrun.
19091
19092         getgroups: avoid compilation failure
19093         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
19094         * modules/getgroups (Depends-on): Add stdint.
19095
19096 2009-11-13  Jim Meyering  <meyering@redhat.com>
19097
19098         test-getgroups: avoid compilation failure
19099         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
19100
19101 2009-11-13  Eric Blake  <ebb9@byu.net>
19102
19103         mgetgroups: new module, taken from coreutils
19104         * modules/mgetgroups: New file.
19105         * lib/mgetgroups.h: Likewise.
19106         * lib/mgetgroups.c (mgetgroups): Likewise.
19107         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19108         * MODULES.html.sh (Users and groups): Mention it.
19109
19110         getgroups: don't expose GETGROUPS_T to user
19111         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19112         an element at a time if GETGROUPS_T is wrong size.
19113         * lib/getugroups.h (getugroups): Change signature.
19114         * lib/unistd.in.h (getgroups): Likewise.
19115         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19116         signature needs fixing.
19117         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19118         AC_TYPE_GETGROUPS.
19119         * modules/group-member (Depends-on): Add getgroups.
19120         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19121         (group_member): Rely on getgroups replacement.
19122         * lib/getugroups.c (getugroups): Use gid_t.
19123         * tests/test-getgroups.c (main): Likewise.
19124         * NEWS: Mention the signature change.
19125         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19126         problem with signature.
19127         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19128         GETGROUPS_T is still useful for setgroups.
19129
19130         getgroups, getugroups: provide stubs for mingw
19131         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19132         * lib/getugroups.c (getugroups): Likewise.
19133         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19134         function.  Modernize replacement scheme.
19135         (gl_PREREQ_GETGROUPS): Delete.
19136         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19137         * modules/getgroups (configure.ac): Declare witness.
19138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19139         * modules/unistd (Depends-on): Substitute witness.
19140         * lib/unistd.in.h (getgroups): Declare replacement.
19141
19142         getgroups: avoid calling exit
19143         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19144         drop xalloc.
19145         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19146         dependencies.
19147         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19148         exiting, in the rare case of malloc failure.
19149
19150         getgroups: fix logic error
19151         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19152         has more than 20 groups.
19153         * modules/getgroups-tests: New test.
19154         * tests/test-getgroups.c: New file.
19155
19156 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19157
19158         * tests/test-base64.c: Improve.
19159
19160 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19161
19162         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19163         Blake <ebb9@byu.net>.
19164
19165 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19166
19167         * tests/test-xvasprintf.c: Add %s%s related checks.
19168
19169 2009-11-12  Eric Blake  <ebb9@byu.net>
19170
19171         version-etc: match standards.texi style
19172         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19173         and use <> only for URLs.
19174
19175 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19176
19177         fts: do not fail on a submount during traversal
19178         * lib/fts.c (fts_build): Read the stat info again after opening
19179         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
19180         Original report at http://bugzilla.redhat.com/501848.
19181
19182 2009-11-12  Jim Meyering  <meyering@redhat.com>
19183
19184         bootstrap: sync from coreutils
19185         * build-aux/bootstrap (bootstrap_epilogue): New function.
19186         Use git_modules_config in one more place.  This make bootstrap's
19187         --gnulib-srcdir option more useful for testing.
19188
19189         bootstrap: generalize autoheader check
19190         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
19191         AC_CONFIG_HEADERS.
19192
19193 2009-11-11  Eric Blake  <ebb9@byu.net>
19194
19195         mkfifoat: use new modules for Solaris and BSD bugs
19196         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
19197         * lib/mkfifoat.c (mknodat): Split...
19198         * lib/mknodat.c (mknodat): ...into new file.
19199         * modules/mkfifoat (Files): Ship new file.
19200         (Depends-on): Add mkfifo, mknod.
19201         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
19202         (Depends-on): Add symlink.
19203         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
19204         redundant with test_mkfifo.h.
19205         (do_mkfifoat, do_mknodat): New helpers.
19206
19207         mknod: new module
19208         * modules/mknod: New file.
19209         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19210         * lib/mknod.c (mknod): Likewise.
19211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19212         defaults.
19213         * modules/sys_stat (Makefile.am): Substitute them.
19214         * lib/sys_stat.in.h (mknod): Declare replacement.
19215         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19216         Document it.
19217         * doc/posix-functions/mknod.texi (mknod): Likewise.
19218         * modules/mknod-tests: New test.
19219         * tests/test-mknod.c: Likewise.
19220
19221         mkfifo: new module
19222         * modules/mkfifo: New file.
19223         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19224         * lib/mkfifo.c (mkfifo): Likewise.
19225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19226         defaults.
19227         * modules/sys_stat (Makefile.am): Substitute them.
19228         * lib/sys_stat.in.h (mkfifo): Declare replacement.
19229         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19230         Document it.
19231         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
19232         * modules/mkfifo-tests: New test.
19233         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
19234         from test-mkfifoat.c.
19235         * tests/test-mkfifo.c: New file.
19236
19237         readlink: detect FreeBSD bug
19238         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
19239         slash on symlink.
19240         * doc/posix-functions/readlink.texi (readlink): Document the bug.
19241         * tests/test-readlink.h (test_readlink): Enhance test.
19242
19243         symlink: detect FreeBSD bug
19244         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
19245         slash on symlink.
19246         * doc/posix-functions/symlink.texi (symlink): Document the bug.
19247         * tests/test-symlink.h (test_symlink): Enhance test.
19248
19249 2009-11-10  Eric Blake  <ebb9@byu.net>
19250
19251         link: detect FreeBSD bug
19252         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
19253         symlink.
19254         * doc/posix-functions/link.texi (link): Document the bug.
19255         * tests/test-link.h (test_link): Enhance test.
19256         * tests/test-linkat.c (main): Update caller.
19257
19258         unlink, remove: detect FreeBSD bug
19259         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
19260         slash on symlink.
19261         * doc/posix-functions/unlink.texi (unlink): Document the bug.
19262         * doc/posix-functions/remove.texi (remove): Likewise.
19263         * tests/test-unlink.h (test_unlink): Enhance test.
19264         * tests/test-remove.c (main): Likewise.
19265
19266 2009-11-09  Eric Blake  <ebb9@byu.net>
19267
19268         rename: detect FreeBSD bug
19269         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
19270         slash on symlink.
19271         * modules/renameat-tests (Depends-on): Add filenamecat.
19272         * tests/test-rename.h (test_rename): Allow one more errno.
19273         * tests/test-renameat.c (main): Likewise.
19274         * doc/posix-functions/rename.texi (rename): Document the bug.
19275
19276         open: detect FreeBSD bug
19277         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
19278         symlink.
19279         * doc/posix-functions/open.texi (open): Document the bug.
19280         * doc/posix-functions/utimes.texi (utimes): Likewise.
19281         * tests/test-open.h (test_open): Add parameters, and test symlink
19282         handling.
19283         * tests/test-open.c (main): Adjust caller.
19284         * tests/test-fcntl-safer.c (main): Likewise.
19285         * modules/open-tests (Depends-on): Add stdbool, symlink.
19286         * modules/fcntl-safer-tests (Depends-on): Likewise.
19287         * tests/test-openat.c (main): Add test-open tests.
19288
19289         stat: detect FreeBSD bug
19290         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
19291         symlink.
19292         * doc/posix-functions/stat.texi (stat): Document the bug.
19293         * tests/test-stat.h (test_stat_func): Add argument.
19294         * tests/test-stat.c (main): Adjust caller.
19295         * tests/test-fstatat.c (main): Likewise.
19296         * modules/stat-tests (Depends-on): Add stdbool, symlink.
19297         Reported by Jim Meyering.
19298
19299 2009-11-09  James Youngman  <jay@gnu.org>
19300
19301         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
19302         * lib/strftime.c: Correct placement of #include "ignore-value.h".
19303
19304 2009-11-08  Jim Meyering  <meyering@redhat.com>
19305
19306         utimens: remove invalid futimesat call
19307         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
19308         It used the file descriptor of the target file as the DIR_FD
19309         parameter and NULL as the file name.  That caused failure with
19310         errno == EFAULT on FreeBSD-8.0-rc2
19311
19312 2009-11-07  Eric Blake  <ebb9@byu.net>
19313
19314         fflush, freadseek: use fseeko, not fseek
19315         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19316         (clear_ungetc_buffer): Avoid potential problems on large files.
19317         * lib/freadseek.c (freadseek): Likewise.
19318         * modules/freadseek (Depends-on): Add fseeko.
19319         * modules/fseek (configure.ac): Set a witness.
19320         * tests/test-fflush.c (main): Use fseeko.
19321         * tests/test-fpurge.c (fseek): Disable link warning.
19322         * tests/test-freadable.c (fseek): Likewise.
19323         * tests/test-freading.c (fseek): Likewise.
19324         * tests/test-fseeko.c (fseek): Likewise.
19325         * tests/test-ftell.c (fseek): Likewise.
19326         * tests/test-ftello.c (fseek): Likewise.
19327         * tests/test-fwritable.c (fseek): Likewise.
19328         * tests/test-fwriting.c (fseek): Likewise.
19329
19330 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19331
19332         * modules/memchr (Depends-on): Drop getpagesize dependency.
19333
19334 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19335
19336         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
19337         Reported by Ludovic Courtès.
19338         * build-aux/pmccabe2html: Improve example usage.
19339         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
19340
19341 2009-11-06  Jim Meyering  <meyering@redhat.com>
19342
19343         do-release-commit-and-tag: New module.
19344         Automate the release-commit and tag process.
19345         * build-aux/do-release-commit-and-tag: New script, from coreutils.
19346         * modules/do-release-commit-and-tag: New file.
19347         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19348
19349 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19350
19351         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
19352         because test-select.c uses inet_pton.
19353
19354 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19355
19356         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
19357         GETADDRINFO_LIB.  Bump serial number.
19358         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
19359         Suggested by Eric Blake <ebb9@byu.net>.
19360
19361 2009-11-05  Eric Blake  <ebb9@byu.net>
19362
19363         strtod: detect darwin bug
19364         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
19365         Reported by Leo Davis.
19366
19367         freopen-safer: new module
19368         * modules/freopen-safer: New module.
19369         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
19370         * lib/freopen-safer.c (freopen_safer): New file.
19371         * lib/stdio-safer.h (freopen_safer): New declaration.
19372         * lib/stdio--.h (freopen): New override.
19373         * MODULES.html.sh (File stream based Input/Output): Mention it.
19374         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
19375         freopen-safer module.
19376         * doc/posix-functions/stderr.texi (stderr): Likewise.
19377         * doc/posix-functions/stdin.texi (stdin): Likewise.
19378         * doc/posix-functions/stdout.texi (stdout): Likewise.
19379         * modules/freopen-safer-tests: New test.
19380         * tests/test-reopen-safer.c: New file.
19381
19382 2009-11-05  Jim Meyering  <meyering@redhat.com>
19383
19384         maint.mk: Prohibit inclusion of "close-stream.h" without use.
19385         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19386
19387 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19388
19389         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
19390
19391 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19392
19393         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
19394
19395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19396
19397         Fix link error.
19398         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19399         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19400
19401 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19402
19403         * tests/test-func.c: Also test value of __func__.
19404
19405 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19406
19407         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
19408         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
19409
19410 2009-11-05  Bruno Haible  <bruno@clisp.org>
19411
19412         Fix link error.
19413         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19414         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19415         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
19416
19417 2009-11-05  Bruno Haible  <bruno@clisp.org>
19418
19419         Tests for module 'inet_pton'.
19420         * modules/inet_pton-tests: New file.
19421         * tests/test-inet_pton.c: New file.
19422
19423 2009-11-05  Bruno Haible  <bruno@clisp.org>
19424
19425         Tests for module 'inet_ntop'.
19426         * modules/inet_ntop-tests: New file.
19427         * tests/test-inet_ntop.c: New file.
19428
19429 2009-11-04  Eric Blake  <ebb9@byu.net>
19430
19431         stdlib-safer: wrap all mkstemp variants
19432         * modules/mkostemp (configure.ac): Set witness.
19433         * modules/mkostemps (configure.ac): Likewise.
19434         * modules/mkstemps (configure.ac): Likewise.
19435         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
19436         (mkstemps_safer): Wrap more functions.
19437         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
19438         wrapping.
19439         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
19440         (mkstemps_safer): Implement the wrappers.
19441
19442         mkstemps, mkostemps: new modules
19443         * modules/mkostemps: New module.
19444         * modules/mkstemps: Likewise.
19445         * lib/mkostemps.c (mkostemps): New file.
19446         * lib/mkstemps.c (mkstemps): Likewise.
19447         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
19448         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
19449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
19450         * modules/stdlib (Makefile.am): Substitute them.
19451         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
19452         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
19453         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19454         * doc/gnulib.texi (Glibc stdlib.h): Include them.
19455         * MODULES.html.sh (File system functions): Mention them.
19456
19457         tempname: resync from glibc
19458         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
19459         same values for __GT_FILE as glibc.  Abort even when assertions
19460         are disabled.
19461         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
19462         match its value otherwise.  Allow idempotent inclusion.
19463         * lib/mkdtemp.c (mkdtemp): Adjust caller.
19464         * lib/mkostemp.c (mkostemp): Likewise.
19465         * lib/mkstemp.c (mkstemp): Likewise.
19466         * lib/tmpfile.c (tmpfile): Likewise.
19467         * NEWS: Document this.
19468
19469         utimens: fix use of futimens on older Linux
19470         * lib/utimens.c (fdutimens): Use updated, rather than original,
19471         timespec to avoid bug in older Linux kernel.
19472         Reported by Simon Josefsson.
19473
19474 2009-11-04  Bruno Haible  <bruno@clisp.org>
19475
19476         Make num_processors more flexible and consistent.
19477         * lib/nproc.h (enum nproc_query): New type.
19478         (num_processors): Add a 'query' argument.
19479         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
19480         (num_processors): Add a 'query' argument. Test the value of the
19481         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
19482         mingw, count the number of CPUs available for the current process.
19483         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
19484         Check for sched_getaffinity and sched_getaffinity_np.
19485         * modules/nproc (Depends-on): Add c-ctype, extensions.
19486         * NEWS: Mention the change.
19487
19488 2009-11-03  Bruno Haible  <bruno@clisp.org>
19489
19490         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
19491
19492 2009-11-03  Jim Meyering  <meyering@redhat.com>
19493
19494         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
19495         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
19496         if it is defined.
19497
19498 2009-11-02  Eric Blake  <ebb9@byu.net>
19499
19500         mktime, timegm: share common declaration
19501         * lib/mktime-internal.h: New file.
19502         * lib/mktime.c: Use it rather than open-coding a declaration.
19503         * lib/timegm.c: Likewise.
19504         * modules/mktime (Files): Ship it.
19505         * modules/timegm (Files): Likewise.
19506         Suggested by Bruno Haible.
19507
19508         test-update-copyright: update test to match script changes
19509         * tests/test-update-copyright.sh: Avoid hard-coding perl
19510         location.  Don't update *.bak created by earlier runs.
19511
19512 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19513             Simon Josefsson  <simon@josefsson.org>
19514             Bruno Haible  <bruno@clisp.org>
19515
19516         Fix link error on Solaris 8.
19517         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19518         also in libnsl. Define also INET_PTON_LIB.
19519         * modules/inet_pton (Link): New section.
19520
19521 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19522             Bruno Haible  <bruno@clisp.org>
19523
19524         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19525         * modules/inet_ntop (Link): New section.
19526         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19527
19528 2009-11-02  Eric Blake  <ebb9@byu.net>
19529
19530         maint: avoid compiler warnings in m4 macros
19531         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19532         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19533
19534 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19535
19536         * m4/pmccabe2html.m4: Remove file.
19537         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19538         function.  Change maintainer.
19539         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19540         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19541         Courtès).
19542
19543 2009-10-31  Eric Blake  <ebb9@byu.net>
19544
19545         fseeko: fix m4 regression
19546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19547         regression from 2009-10-27.
19548         Reported by Ralf Wildenhues.
19549
19550 2009-10-31  Jim Meyering  <meyering@redhat.com>
19551
19552         inttostr: aesthetics and improved (compile-time) safety
19553         Define inttype_is_signed rather than inttype_is_unsigned,
19554         since the sole use is via "#if inttype_is_signed".
19555         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19556         inttype_is_unsigned.
19557         * lib/offtostr.c (inttype_is_signed): Likewise.
19558         * lib/uinttostr.c (inttype_is_signed): Likewise.
19559         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19560         * lib/inttostr.c (inttostr): Use verify to cross-check the
19561         inttype_is_signed value and the signedness of the actual type.
19562         * modules/inttostr (Depends-on): Add verify.
19563
19564 2009-10-30  Eric Blake  <ebb9@byu.net>
19565
19566         build: avoid compiler warnings
19567         * lib/fchmodat.c (lchmod): Mark unused variables.
19568         * lib/getopt.c (_getopt_initialize): Likewise.
19569         * lib/mktime.c (__mktime_internal): Provide prototype.
19570         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19571         older gcc that do not understand #pragma GCC diagnostic.
19572         * lib/uinttostr.c (inttype_is_unsigned): Define.
19573         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19574
19575 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19576
19577         stat: fix compilation on AIX
19578         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19579         only see struct stat64.
19580
19581 2009-10-30  Eric Blake  <ebb9@byu.net>
19582
19583         exclude: make more robust
19584         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19585         rather than masking a coding bug.
19586         Suggested by Bruno Haible.
19587
19588 2009-10-30  Jim Meyering  <meyering@redhat.com>
19589
19590         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19591         Rather than putting #!/usr/bin/perl on the first line,
19592         start with a variant of what's recommended by "man perlrun" that
19593         invokes the first "perl" program from your shell's search path.
19594         * build-aux/gitlog-to-changelog: Replace #!... as above.
19595         Add a "Local Variables" perl mode setting.
19596         Prompted by a patch from Ludovic Courtès.
19597         Improved by Eric Blake.
19598         * build-aux/useless-if-before-free: Likewise.
19599         * build-aux/announce-gen: Likewise.
19600         * build-aux/update-copyright: Likewise.
19601
19602 2009-10-29  Eric Blake  <ebb9@byu.net>
19603
19604         filenamecat-lgpl: adjust clients
19605         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19606         filenamecat.
19607         * modules/renameat (Depends-on): Likewise.
19608
19609         filenamecat: split into filenamecat-lgpl
19610         * modules/filenamecat-lgpl: New module.
19611         * modules/filenamecat (Files): Move library-safe files into
19612         filenamecat-lgpl.
19613         (Depends-on): Add filenamecat-lgpl.
19614         (configure.ac): Declare witness.
19615         * lib/filenamecat.h (file_name_concat): Only declare when using
19616         GPL module.
19617         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19618         Move...
19619         * lib/filenamecat-lgpl.c: ...into new file.
19620         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19621         (gl_FILE_NAME_CONCAT): Use it.
19622         * MODULES.html.sh (File system functions): Mention new module.
19623
19624         argp: avoid memory leak
19625         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19626         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19627         base_name, since the latter malloc()s and can call exit().
19628         Leak introduced 2006-07-03.
19629
19630         dirname-lgpl: adjust clients that don't need full dirname
19631         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19632         * modules/filenamecat (Depends-on): Likewise.
19633         * modules/linkat (Depends-on): Likewise.
19634         * modules/mkancesdirs (Depends-on): Likewise.
19635         * modules/mkdir (Depends-on): Likewise.
19636         * modules/openat (Depends-on): Likewise.
19637         * modules/savewd (Depends-on): Likewise.
19638         * modules/rename (Depends-on): Likewise.
19639         (License): Relax license.
19640         * modules/mkdir-tests (Depends-on): Drop progname.
19641         (Makefile.am): Delete unneeded LDADD.
19642         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19643
19644         dirname: split into dirname-lgpl
19645         * modules/dirname-lgpl: New module.
19646         * modules/dirname (Files): Move library-safe files into
19647         dirname-lgpl.
19648         (Depends-on): Add dirname-lgpl.
19649         (configure.ac): Declare witness.
19650         * modules/double-slash-root (License): Relax license.
19651         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19652         module.
19653         * lib/dirname.c (dir_len, mdir_name): Move...
19654         * lib/dirname-lgpl.c: ...into new file.
19655         * lib/basename.c (last_component, base_len): Move...
19656         * lib/basename-lgpl.c: ...into new file.
19657         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19658         (gl_DIRNAME): Use it.
19659         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19660         Mention new module.
19661         * modules/dirname-tests (Depends-on): Add progname.
19662         * tests/test-dirname.c (program_name): Delete.
19663
19664         mkdir: make safe for libraries
19665         * modules/mkdir (Depends-on): Drop xalloc.
19666         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19667         exit.
19668
19669         tests: avoid some compiler warnings
19670         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19671         literals.
19672         * tests/test-memchr.c (main): Avoid type mismatch.
19673         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19674         * tests/test-base64.c (main): Likewise.
19675         * tests/test-getdelim.c (main): Likewise.
19676         * tests/test-gethostname.c (main): Likewise.
19677         * tests/test-getline.c (main): Likewise.
19678         * tests/test-netinet_in.c (main): Likewise.
19679         * tests/test-select.c (open_server_socket, main): Likewise.
19680         * tests/test-select-stdin.c (main): Likewise.
19681         * tests/test-sockets.c (main): Likewise.
19682         * tests/test-strsignal.c (main): Likewise.
19683         * tests/test-sys_select.c (main): Likewise.
19684         * tests/test-sys_socket.c (main): Likewise.
19685         * tests/test-u64.c (main): Likewise.
19686         * tests/test-xfprintf-posix.c (main): Likewise.
19687         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19688
19689         sockets: avoid compiler warning
19690         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19691
19692         maint: detect usage(1) and other suspicious exits
19693         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19694
19695 2009-10-29  Jim Meyering  <meyering@redhat.com>
19696
19697         timespec: long-to-int truncation could make timespec_cmp malfunction
19698         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19699         a multiple of 2^32 nanoseconds as no difference.
19700
19701 2009-10-28  Jim Meyering  <meyering@redhat.com>
19702
19703         fprintftime: wrap macro code argument in "do {...} while(0)"
19704         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19705         cpy macro must be a statement that can be followed by a semicolon.
19706         Now that the else clause contains a comment and is hence longer
19707         than one line, I require curly braces.  That in turn requires
19708         that we wrap this code block in the standard do...while(0).
19709
19710         fprintftime: remove stray semicolon from previous change
19711         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19712
19713         fprintftime: avoid a warning about ignored fwrite return value
19714         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19715         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19716         that is unsafe.
19717         * modules/fprintftime (Depends-on): Add ignore-value.
19718
19719         exclude: avoid an unwarranted warning
19720         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19721
19722 2009-10-27  Eric Blake  <ebb9@byu.net>
19723
19724         fseek: avoid compilation failure when fflush is replaced
19725         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19726         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19727         module is in use.
19728         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19729         module is not in use; since REPLACE_FSEEK worked otherwise.
19730         (GNULIB_FTELLO): Likewise for ftell.
19731         Reported by Ian Beckwith and others.
19732
19733 2009-10-27  Bruno Haible  <bruno@clisp.org>
19734
19735         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19736         Reported by Jim Meyering.
19737
19738 2009-10-27  Jim Meyering  <jim@meyering.net>
19739             Bruno Haible  <bruno@clisp.org>
19740
19741         Avoid warning despite dropping the return value of fwrite.
19742         * lib/unicodeio.c: Include ignore-value.h.
19743         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19744         * modules/unicodeio (Depends-on): Add ignore-value.
19745
19746 2009-10-26  Eric Blake  <ebb9@byu.net>
19747
19748         areadlinkat: fix fallback path
19749         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19750         pointer and zero.
19751
19752 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19753
19754         Use a better IO block size for modern systems
19755         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19756         * lib/md2.c: Likewise.
19757         * lib/md4.c: Likewise.
19758         * lib/md5.c: Likewise.
19759         * lib/sha1.c: Likewise.
19760         * lib/sha256.c: Likewise.
19761         * lib/sha512.c: Likewise.
19762
19763 2009-10-22  Eric Blake  <ebb9@byu.net>
19764
19765         tests: avoid several compiler warnings
19766         * tests/test-getcwd.c (main): Avoid buffer underflow.
19767         * tests/test-getdate.c (main): String literals are not safe with
19768         putenv, so use setenv.  Declare unused argument.
19769         * modules/getdate-tests (Depends-on): Add setenv.
19770         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19771         problems with string literals in char *.
19772         * tests/test-hash.c (main): Avoid shadowing declaration.
19773         (insert_new): Treat string literals as char const *.
19774         * tests/test-getopt.h (test_getopt): Likewise.
19775         (getopt_loop): Alter types to minimize casting elsewhere.
19776         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19777         (test_getopt_long_posix): Likewise.
19778         (do_getopt_long): Add wrapper to minimize casting.
19779         * tests/test-atexit.c (clear_temp_file): Use void.
19780         * tests/test-areadlink-with-size.c (main): Declare unused
19781         arguments.
19782         * tests/test-areadlink.c (main): Likewise.
19783         * tests/test-areadlinkat-with-size.c (main): Likewise.
19784         * tests/test-areadlinkat.c (main): Likewise.
19785         * tests/test-canonicalize-lgpl.c (main): Likewise.
19786         * tests/test-canonicalize.c (main): Likewise.
19787         * tests/test-dirent-safer.c (main): Likewise.
19788         * tests/test-dirname.c (main): Likewise.
19789         * tests/test-dup2.c (main): Likewise.
19790         * tests/test-fchdir.c (main): Likewise.
19791         * tests/test-fcntl-h.c (main): Likewise.
19792         * tests/test-fcntl-safer.c (main): Likewise.
19793         * tests/test-fdopendir.c (main): Likewise.
19794         * tests/test-fdutimensat.c (main): Likewise.
19795         * tests/test-fflush.c (main): Likewise.
19796         * tests/test-filenamecat.c (main): Likewise.
19797         * tests/test-filevercmp.c (main): Likewise.
19798         * tests/test-fopen-safer.c (main): Likewise.
19799         * tests/test-fopen.c (main): Likewise.
19800         * tests/test-fpending.c (main): Likewise.
19801         * tests/test-fpurge.c (main): Likewise.
19802         * tests/test-freading.c (main): Likewise.
19803         * tests/test-fstatat.c (main): Likewise.
19804         * tests/test-fsync.c (main): Likewise.
19805         * tests/test-futimens.c (main): Likewise.
19806         * tests/test-getndelim2.c (main): Likewise.
19807         * tests/test-gettimeofday.c (main): Likewise.
19808         * tests/test-getopt.c (main): Likewise.
19809         * tests/test-i-ring.c (main): Likewise.
19810         * tests/test-inttypes.c (main): Likewise.
19811         * tests/test-link.c (main): Likewise.
19812         * tests/test-lstat.c (main): Likewise.
19813         * tests/test-math.c (main): Likewise.
19814         * tests/test-md5.c (main): Likewise.
19815         * tests/test-memchr2.c (main): Likewise.
19816         * tests/test-memrchr.c (main): Likewise.
19817         * tests/test-mkdir.c (main): Likewise.
19818         * tests/test-mkdirat.c (main): Likewise.
19819         * tests/test-mkfifoat.c (main): Likewise.
19820         * tests/test-open.c (main): Likewise.
19821         * tests/test-openat-safer.c (main): Likewise.
19822         * tests/test-openat.c (main): Likewise.
19823         * tests/test-quotearg.c (main): Likewise.
19824         * tests/test-rawmemchr.c (main): Likewise.
19825         * tests/test-readlink.c (main): Likewise.
19826         * tests/test-remove.c (main): Likewise.
19827         * tests/test-rename.c (main): Likewise.
19828         * tests/test-renameat.c (main): Likewise.
19829         * tests/test-rmdir.c (main): Likewise.
19830         * tests/test-sha1.c (main): Likewise.
19831         * tests/test-signal.c (main): Likewise.
19832         * tests/test-sigaction.c (main): Likewise.
19833         * tests/test-stat.c (main): Likewise.
19834         * tests/test-stat-time.c (main): Likewise.
19835         * tests/test-stddef.c (main): Likewise.
19836         * tests/test-stdint.c (main): Likewise.
19837         * tests/test-stdio.c (main): Likewise.
19838         * tests/test-stdlib.c (main): Likewise.
19839         * tests/test-strchrnul.c (main): Likewise.
19840         * tests/test-strerror.c (main): Likewise.
19841         * tests/test-string.c (main): Likewise.
19842         * tests/test-strtod.c (main): Likewise.
19843         * tests/test-strverscmp.c (main): Likewise.
19844         * tests/test-symlink.c (main): Likewise.
19845         * tests/test-symlinkat.c (main): Likewise.
19846         * tests/test-sys_stat.c (main): Likewise.
19847         * tests/test-sys_time.c (main): Likewise.
19848         * tests/test-time.c (main): Likewise.
19849         * tests/test-unistd.c (main): Likewise.
19850         * tests/test-unlink.c (main): Likewise.
19851         * tests/test-unlinkat.c (main): Likewise.
19852         * tests/test-utimens.c (main): Likewise.
19853         * tests/test-utimensat.c (main): Likewise.
19854         * tests/test-version-etc.c (main): Likewise.
19855         * tests/test-wchar.c (main): Likewise.
19856         * tests/test-wctype.c (main): Likewise.
19857         * tests/test-xprintf-posix.c (main): Likewise.
19858         * tests/test-posixtm.c (main): Likewise.
19859         (STREQ): Delete unused macro.
19860         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19861         shadowed variables.
19862         * tests/test-memchr.c (main): Likewise.
19863
19864 2009-10-21  Eric Blake  <ebb9@byu.net>
19865
19866         areadlinkat: avoid failure on older glibc
19867         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19868         rather than mis-comparing 0 against FUNC_RESULT of char*.
19869
19870 2009-10-21  Bruno Haible  <bruno@clisp.org>
19871
19872         * modules/stpncpy (License): Relicense under LGPLv2+.
19873         Reported by David Lutterkort <lutter@redhat.com>.
19874
19875 2009-10-20  Eric Blake  <ebb9@byu.net>
19876
19877         utimensat: work around Solaris 9 bug
19878         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19879         has trailing slash bugs.
19880         * tests/test-lutimens.h (test_lutimens): Enhance test.
19881         * tests/test-utimens.h (test_utimens): Likewise.
19882         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19883         * doc/posix-functions/utimes.texi (utimes): Likewise.
19884         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19885         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19886         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19887         * doc/posix-functions/futimens.texi (futimens): Likewise.
19888
19889         fdutimensat: new module
19890         * modules/fdutimensat: New file.
19891         * lib/fdutimensat.c (fdutimensat): Likewise.
19892         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19893         * MODULES.html.sh (File system functions): Mention module.
19894         * modules/fdutimensat-tests: New test.
19895         * tests/test-fdutimensat.c: Likewise.
19896
19897         doc: regenerate INSTALL
19898         * doc/INSTALL: Reflect recent autoconf update.
19899         * doc/INSTALL.ISO: Likewise.
19900         * doc/INSTALL.UTF-8: Likewise.
19901
19902 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19903
19904         acl: warn if ACL support is not detected
19905         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19906
19907 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19908
19909         * lib/nproc.h: Add extern "C" block for C++.
19910
19911 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19912             Bruno Haible  <bruno@clisp.org>
19913
19914         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19915         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19916         * doc/posix-functions/isalpha.texi: Likewise.
19917         * doc/posix-functions/isblank.texi: Likewise.
19918         * doc/posix-functions/iscntrl.texi: Likewise.
19919         * doc/posix-functions/isdigit.texi: Likewise.
19920         * doc/posix-functions/isgraph.texi: Likewise.
19921         * doc/posix-functions/islower.texi: Likewise.
19922         * doc/posix-functions/isprint.texi: Likewise.
19923         * doc/posix-functions/ispunct.texi: Likewise.
19924         * doc/posix-functions/isspace.texi: Likewise.
19925         * doc/posix-functions/isupper.texi: Likewise.
19926         * doc/posix-functions/isxdigit.texi: Likewise.
19927
19928 2009-10-18  Bruno Haible  <bruno@clisp.org>
19929
19930         Tests for module 'isblank'.
19931         * modules/isblank-tests: New file.
19932         * tests/test-isblank.c: New file.
19933
19934         New module 'isblank'.
19935         * lib/isblank.c: New file.
19936         * m4/isblank.m4: New file.
19937         * modules/isblank: New file.
19938         * doc/posix-functions/isblank.texi: Mention the new module.
19939
19940 2009-10-18  Bruno Haible  <bruno@clisp.org>
19941
19942         New module 'ctype'.
19943         * lib/ctype.in.h: New file.
19944         * m4/ctype.m4: New file.
19945         * modules/ctype: New file.
19946         * doc/posix-headers/ctype.texi: Mention the new module.
19947
19948 2009-10-18  Jim Meyering  <meyering@redhat.com>
19949
19950         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
19951         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
19952         right after its initialization, rather than farther down.
19953         Keeping these in close proximity makes it easier to ensure
19954         that each such variable is initialized.  E.g.,
19955
19956             LIB_CLOCK_GETTIME=
19957             AC_SUBST([LIB_CLOCK_GETTIME])
19958
19959         This change also increments these serial numbers.
19960         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
19961         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19963
19964 2009-10-18  Bruno Haible  <bruno@clisp.org>
19965
19966         Don't let environment variables perturb build.
19967         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
19968         (gl_PREREQ_GETHRXTIME): ... not here.
19969
19970 2009-10-18  Bruno Haible  <bruno@clisp.org>
19971
19972         Avoid symlink attack in localcharset module.
19973         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19974         (O_NOFOLLOW): Define fallback.
19975         (get_charset_aliases): Don't open the file if it is a symbolic link.
19976         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19977         gl_FCNTL_H.
19978         (gl_FCNTL_H): Require it.
19979         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19980         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19981         Reported by Fergal Glynn <fglynn@veracode.com>.
19982
19983 2009-10-18  Bruno Haible  <bruno@clisp.org>
19984
19985         Implement nproc for mingw.
19986         * lib/nproc.c: Include <windows.h>
19987         (num_processors): On native Windows platforms, try GetSystemInfo.
19988
19989 2009-10-18  Bruno Haible  <bruno@clisp.org>
19990
19991         Implement nproc for IRIX.
19992         * lib/nproc.c: Include <sys/sysmp.h>.
19993         (num_processors): On IRIX systems, try sysmp.
19994         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19995
19996 2009-10-18  Bruno Haible  <bruno@clisp.org>
19997
19998         Implement nproc for HP-UX.
19999         * lib/nproc.c: Include <sys/pstat.h>
20000         (num_processors): On HP-UX systems, try pstat_getdynamic.
20001         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
20002         pstat_getdynamic.
20003
20004 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
20005             Bruno Haible  <bruno@clisp.org>
20006
20007         Implement nproc for NetBSD, OpenBSD.
20008         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
20009         (ARRAY_SIZE): New macro.
20010         (num_processors): On BSD systems, try sysctl of HW_NCPU.
20011         * m4/nproc.m4: New file.
20012         * modules/nproc (Files): Add m4/nproc.m4.
20013         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
20014         (Makefile.am): Instead, augment lib_SOURCES.
20015
20016 2009-10-18  Bruno Haible  <bruno@clisp.org>
20017
20018         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
20019         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
20020         sys/param.h.
20021
20022 2009-10-16  Eric Blake  <ebb9@byu.net>
20023
20024         utimensat: new module
20025         * modules/utimensat: New file.
20026         * lib/utimensat.c (utimensat): Likewise.
20027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20028         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
20029         so we can work around Linux bugs.
20030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20031         * modules/sys_stat (Makefile.am): Substitute them.
20032         * lib/sys_stat.in.h (utimensat): Declare it.
20033         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20034         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20035         * modules/utimensat-tests: New test.
20036         * tests/test-utimensat.c: Likewise.
20037
20038         utimens: let lutimens work on non-symlinks
20039         * lib/utimens.c (lutimens): Fall back to utimens rather than
20040         failing with ENOSYS, when file is not a symlink.
20041         (utimens): Reduce redirection.
20042         * tests/test-lutimens.h (test_lutimens): Update test to cover
20043         non-symlinks.
20044         * tests/test-utimens.h (test_utimens): Update test to cover
20045         symlinks.
20046         * tests/test-utimens.c (main): Update caller.
20047
20048         utimens: cache whether utimensat syscall works
20049         * lib/utimens.c (utimensat_works_really): New cache variable.
20050         (fdutimens, lutimens): Use it to avoid failing syscall.
20051
20052         test-stat-time, test-utimens: improve portability
20053         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
20054         ext4 on alpha, and for cygwin.
20055         * tests/test-utimens-common.h: New file.
20056         (nap): Factor delays into single function.
20057         * tests/test-lutimens.h (test_lutimens): Use new header.
20058         * tests/test-futimens.h (test_futimens): Likewise.
20059         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
20060         timestamps to occur from same machine, as was done previously for
20061         test_utimens.
20062         * modules/utimens-tests (Files): Ship new file.
20063         * modules/futimens-tests (Files): Likewise.
20064         Reported in part by Jim Meyering.
20065
20066         sys_stat: sort replacement declarations
20067         * lib/sys_stat.in.h: Sort declarations.
20068         * lib/futimens.c (futimens): Fix typo.
20069
20070 2009-10-15  Jim Meyering  <meyering@redhat.com>
20071
20072         don't let environment settings perturb build
20073         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
20074         could cause a configure-time and/or build-time malfunction.
20075         Typically, a configure-time function-in-library test is performed
20076         via code like this:
20077
20078           LIB_VAR=
20079           AC_SUBST([LIB_VAR])
20080           prefix_saved_LIBS=$LIBS
20081             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
20082                        [test "$ac_cv_search_FUNC" = "none required" ||
20083                         LIB_VAR=$ac_cv_search_FUNC])
20084           LIBS=$prefix_saved_LIBS
20085
20086         However, in each of the files affected by this change, the LIB_VAR=
20087         initialization was omitted.  Thus, when set in the environment, its
20088         value would propagate into generated Makefiles when FUNC is not found
20089         in LIB_NAME.
20090         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
20091         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20093
20094 2009-10-14  Eric Blake  <ebb9@byu.net>
20095
20096         fchdir: avoid infinite recursion in mingw
20097         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
20098         recursing.
20099
20100         test-stat-time: port to mingw
20101         * tests/test-stat-time.c (force_unlink): Return a value.
20102         (test_ctime) [W32]: Fix compilation error.
20103         (nap): Don't call usleep with too large an argument.  Use
20104         force_unlink.
20105         * doc/pastposix-functions/usleep.texi (usleep): Document the
20106         portability issue.
20107
20108 2009-10-13  Jim Meyering  <meyering@redhat.com>
20109
20110         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20111         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20112         * modules/pipe-filter-ii: Likewise.
20113         * modules/sys_socket-tests: Likewise.
20114         * modules/tsearch-tests: Likewise.
20115         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20116         (check): Depend on it.
20117
20118 2009-10-12  Eric Blake  <ebb9@byu.net>
20119
20120         utimens-tests: port to NFS file systems
20121         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20122         comparisons to avoid spurious failures from timestamp drift
20123         between NFS machines.
20124
20125 2009-10-12  Eric Blake  <ebb9@byu.net>
20126
20127         stat-time-tests: minor cleanups
20128         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20129         * tests/test-stat-time.c (nap): Separate assignment from call.
20130         Suggested by Paolo Bonzini and Bruno Haible.
20131
20132         sys_stat: guarantee struct timespec
20133         * lib/sys_stat.in.h (includes): Always include <time.h>
20134         * modules/sys_stat (Depends-on): Add time.
20135         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20136         mode_t permission values.
20137         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20138         get at subsecond timestamps.
20139
20140 2009-10-10  Eric Blake  <ebb9@byu.net>
20141
20142         futimens: new module
20143         * modules/futimens: New file.
20144         * lib/futimens.c (futimens): Likewise.
20145         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20146         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20147         we can work around Linux bugs.
20148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20149         * modules/sys_stat (Makefile.am): Substitute them.
20150         * lib/sys_stat.in.h (futimens): Declare it.
20151         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20152         * doc/posix-functions/futimens.texi (futimens): Likewise.
20153         * modules/futimens-tests: New test.
20154         * tests/test-futimens.c: Likewise.
20155
20156         utimens: introduce fdutimens
20157         * lib/utimens.h (fdutimens): New prototype.
20158         * lib/utimens.c (gl_futimens): Move guts...
20159         (fdutimens): ...to new interface.
20160         * tests/test-utimens.c (do_fdutimens): Use it.
20161
20162         utimens: add UTIME_NOW and UTIME_OMIT support
20163         * lib/utimens.c (validate_timespec, update_timespec): New helper
20164         functions.
20165         (gl_futimens, lutimens): Use them.
20166         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20167         stdbool, sys_stat.
20168         (Link): Mention resulting library dependency.
20169         * modules/utimecmp (Link): Likewise.
20170         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20171         (Makefile.am): Pick up library dependency.
20172         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20173         definition.
20174         * tests/test-sys_stat.c: Test the definitions.
20175         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20176         * NEWS: Document library dependency.
20177
20178         utimecmp: support symlink timestamps
20179         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
20180         hashing when possible.  Use pathconf when available.
20181         (SYSCALL_RESOLUTION): Recognize tighter resolution.
20182         * modules/utimecmp (Depends-on): Add lstat.
20183
20184         utimens: add lutimens interface
20185         * lib/utimens.c (lutimens): New function.
20186         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
20187         * lib/utimens.h (lutimens): Declare new interface.
20188         * tests/test-utimens.c (main): Enhance test.
20189         * tests/test-lutimens.h (test_lutimens): New file.
20190         * modules/utimens-tests (Files): Distribute it.
20191         (Depends-on): Add symlink.
20192         (configure.ac): Check for usleep.
20193
20194         utimens: validate futimens usage
20195         * lib/utimens.c (gl_futimens): Require valid fd up front, using
20196         fewer syscalls on failure later on.  Avoid compiler warning on
20197         mingw.
20198         * modules/utimens (Depends-on): Add dup2.
20199
20200         utimens: add test
20201         * modules/utimens-tests: New test.
20202         * tests/test-utimens.h: New file.
20203         * tests/test-futimens.h: Likewise.
20204         * tests/test-utimens.c: Likewise.
20205
20206         doc: mention timestamp portability issues
20207         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
20208         instead.
20209         * doc/posix-functions/utime.texi (utime): Likewise.
20210         * doc/posix-functions/utimes.texi (utimes): Likewise.
20211         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
20212         instead.
20213         * doc/posix-functions/futimens.texi (futimens): Mention utimens
20214         module.
20215         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20216         Mention weakness with symlink timestamps.
20217         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
20218         to utimensat/futimens instead.
20219         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
20220
20221         test-dup2: enhance test
20222         * tests/test-dup2.c (main): Also check AT_FDCWD.
20223
20224         test-stat-time: avoid more spurious failures
20225         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
20226         xfs; and avoid race if the two timestamps cross quantization edge.
20227
20228         relocatable: prefer 'file system' over 'filesystem'
20229         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
20230         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
20231         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
20232         * doc/relocatable.texi (Enabling Relocatability): Likewise.
20233         * lib/relocatable.c (compute_curr_prefix): Likewise.
20234
20235 2009-10-10  Jim Meyering  <meyering@redhat.com>
20236
20237         stat-time-tests: check for the usleep function
20238         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
20239
20240 2009-10-10  Bruno Haible  <bruno@clisp.org>
20241
20242         * modules/xnanosleep: Put the Link section after the Include section.
20243
20244 2009-10-09  Eric Blake  <ebb9@byu.net>
20245
20246         dup2: work around FreeBSD 6.1 bug
20247         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
20248         * doc/posix-functions/dup2.texi (dup2): Document it.
20249         Reported by Nelson H. F. Beebe and Jim Meyering.
20250
20251         test-stat-time: port to buggy NFS clients
20252         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
20253         (test_ctime): Also skip test if mtime and ctime are skewed.
20254
20255         maint: prefer 'file system' over 'filesystem'
20256         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20257         * doc/posix-functions/lstat.texi (lstat): Likewise.
20258         * lib/file-has-acl.c (file_has_acl): Likewise.
20259         * lib/fwriteerror.c [TEST]: Likewise.
20260         * tests/test-areadlink.h (test_areadlink): Likewise.
20261         * tests/test-areadlinkat-with-size.c (main): Likewise.
20262         * tests/test-areadlinkat.c (main): Likewise.
20263         * tests/test-canonicalize-lgpl.c (main): Likewise.
20264         * tests/test-canonicalize.c (main): Likewise.
20265         * tests/test-fstatat.c (main): Likewise.
20266         * tests/test-linkat.c (main): Likewise.
20267         * tests/test-lstat.h (test_lstat_func): Likewise.
20268         * tests/test-mkdir.h (test_mkdir): Likewise.
20269         * tests/test-readlink.h (test_readlink): Likewise.
20270         * tests/test-remove.c (main): Likewise.
20271         * tests/test-rename.h (test_rename): Likewise.
20272         * tests/test-renameat.c (main): Likewise.
20273         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20274         * tests/test-symlink.h (test_symlink): Likewise.
20275         * tests/test-symlinkat.c (main): Likewise.
20276         * tests/test-unlink.h (test_unlink_func): Likewise.
20277         * tests/test-unlinkat.c (main): Likewise.
20278
20279         maint: make realtime library usage explicit
20280         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
20281         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
20282         * modules/settime (Link): Likewise.
20283         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
20284
20285         test-stat-time: speed up execution
20286         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
20287         warning on mingw.
20288         (nap): New helper function.
20289         (prepare_test): Use it to reduce sleep time.
20290         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
20291         execution.
20292         * modules/stat-time-tests (configure.ac): Check for usleep.
20293
20294 2009-10-09  Jim Meyering  <meyering@redhat.com>
20295
20296         selinux-h: always use getfilecon wrappers
20297         * lib/getfilecon.c: New file.
20298         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
20299         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
20300         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
20301         (fgetfilecon): Provide a stub.
20302         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
20303         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
20304         file unconditionally.
20305         When <selinux/selinux.h> is found, arrange to use wrappers.
20306         * modules/selinux-h (Files): Add getfilecon.c.
20307         (Makefile.am): Substitute include-next-related bits
20308         into the now-always-generated selinux/selinux.h file.
20309         * doc/glibc-functions/lgetfilecon.texi: New file.
20310         * doc/glibc-functions/fgetfilecon.texi: New file.
20311         * doc/glibc-functions/getfilecon.texi: New file.
20312         * doc/glibc-functions/getfilecon-desc.texi: New file.
20313         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
20314         which to pull in the new files.
20315         * MODULES.html.sh (Misc): Add selinux-h.
20316
20317 2009-10-08  Jim Meyering  <meyering@redhat.com>
20318
20319         unistd: fix comment typo
20320         * lib/unistd.in.h (euidaccess): Fix a comment typo.
20321
20322 2009-10-08  Eric Blake  <ebb9@byu.net>
20323
20324         areadlink: use SIZE_MAX consistently
20325         * modules/areadlink (Depends-on): Add stdint.
20326         * modules/areadlink-with-size (Depends-on): Likewise.
20327         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
20328         gives NULL; drop sys/types, since unistd gives size_t; and add
20329         stdint for SIZE_MAX.
20330         (SIZE_MAX): Rely on headers.
20331         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
20332         and add stdint.
20333         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
20334         (SIZE_MAX): Likewise.
20335         (INITIAL_BUF_SIZE): Turn into enum.
20336         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
20337
20338 2009-10-08  Jim Meyering  <meyering@redhat.com>
20339
20340         areadlinkat: avoid compilation failure
20341         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
20342         Fix typo in comment.
20343
20344 2009-10-07  Eric Blake  <ebb9@byu.net>
20345
20346         areadlinkat-with-size: new module
20347         * modules/areadlinkat-with-size: New module.
20348         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
20349         * lib/areadlink.h (areadlinkat): Declare it.
20350         * MODULES.html.sh (File system functions): Mention it.
20351         * modules/areadlinkat-with-size-tests: New test.
20352         * tests/test-areadlinkat-with-size.c: New file.
20353
20354         xreadlinkat: new module
20355         * modules/xreadlinkat: New module.
20356         * lib/xreadlinkat.c (xreadlinkat): New file.
20357         * lib/xreadlink.h (xreadlinkat): Declare it.
20358         * MODULES.html.sh (File system functions): Mention it.
20359
20360         areadlinkat: new module
20361         * lib/at-func.c (FUNC_FAIL): New define.
20362         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
20363         * modules/areadlinkat: New module.
20364         * lib/linkat.c (areadlinkat): Move...
20365         * lib/areadlinkat.c (areadlinkat): ...to new file.
20366         * lib/areadlink.h (areadlinkat): Declare it.
20367         * modules/linkat (Depends-on): Add areadlinkat.
20368         * MODULES.html.sh (File system functions): Mention it.
20369         * modules/areadlinkat-tests: New test.
20370         * tests/test-areadlinkat.c: New file.
20371
20372         areadlink, areadlink-with-size: add tests
20373         * modules/areadlink-tests: New test.
20374         * modules/areadlink-with-size-tests: Likewise.
20375         * tests/test-areadlink.h: New file.
20376         * tests/test-areadlink.c: Likewise.
20377         * tests/test-areadlink-with-size.c: Likewise.
20378
20379         maint: minor cleanups
20380         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
20381         _UNUSED_PARAMETER_ instead.
20382         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
20383         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
20384         * modules/linkat-tests (Files): Distribute test-link.h.
20385
20386         openat, utimens: whitespace cleanup
20387         * lib/openat.c: Prefer space throughout, rather than mix of 8
20388         spaces vs. tabs.
20389         * lib/at-func.c: Likewise.
20390         * lib/utimens.c: Likewise.
20391
20392         openat: avoid using wrong fd
20393         * lib/openat.c (openat_permissive): Reject user's fd if saving the
20394         working directory chooses same fd.
20395         * lib/at-func.c (AT_FUNC_NAME): Likewise.
20396
20397         mkdir, mkdirat: fix cygwin 1.5.x bug
20398         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
20399         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
20400         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
20401         bug.
20402         (gl_PREREQ_MKDIR): Delete unused macro.
20403         * modules/mkdir (Files): Track file rename.
20404         (configure.ac): Update macro name.
20405         * modules/openat (Depends-on): Add mkdir.
20406         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
20407
20408         mkdir, mkdirat: add tests
20409         * modules/mkdir-tests: New test.
20410         * tests/test-mkdir.h: New file.
20411         * tests/test-mkdir.c: Likewise.
20412         * tests/test-mkdirat.c: Likewise.
20413         * modules/openat-tests (Files): Add new files.
20414         (Makefile.am): Run new test.
20415
20416 2009-10-06  Eric Blake  <ebb9@byu.net>
20417
20418         doc: tweak *at function documentation
20419         * doc/posix-functions/faccessat.texi (faccessat): Mention
20420         known issue with replacement.
20421         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
20422         * doc/posix-functions/linkat.texi (linkat): Likewise.
20423         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20424         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20425         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20426         * doc/posix-functions/renameat.texi (renameat): Likewise.
20427         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20428
20429         openat: fix GNU/Hurd bug in unlinkat
20430         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
20431         broken.
20432         * doc/posix-functions/unlink.texi (unlink): Document this.
20433         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
20434
20435         fdopendir: fix GNU/Hurd bug
20436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
20437         allowing non-directory fds.
20438         * lib/fdopendir.c (rpl_fdopendir): Work around it.
20439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20440         * modules/dirent (Makefile.am): Substitute it.
20441         * lib/dirent.in.h (fdopendir): Declare replacement.
20442         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
20443         * tests/test-fdopendir.c (main): Test something other than
20444         /dev/null, since on Hurd that behaves like a directory.
20445
20446         test-symlink: port to GNU/Hurd
20447         * tests/test-symlink.h (test_symlink): Relax expected errno.
20448
20449         doc: tweak more cygwin information
20450         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
20451         now compatible with glibc.
20452         * doc/posix-functions/getopt.texi (getopt): Likewise.
20453
20454         getopt-gnu: add another test
20455         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
20456         guarantee behavior relied on by m4.
20457         * tests/test-getopt.c (main): Use it.
20458         * modules/getopt-posix-tests (Depends-on): Add setenv.
20459         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
20460
20461         getopt: fix compilation on darwin
20462         * lib/getopt.in.h (includes): Leave breadcrumbs during system
20463         include.
20464         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
20465         Reported by Ludovic Courtès.
20466
20467 2009-10-06  Bruno Haible  <bruno@clisp.org>
20468
20469         * modules/size_max (Description): Discourage its use.
20470         Reported by Simon Josefsson.
20471
20472 2009-10-06  Jim Meyering  <meyering@redhat.com>
20473
20474         linkat: avoid compilation failure
20475         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
20476
20477 2009-10-05  Eric Blake  <ebb9@byu.net>
20478
20479         linkat: support Linux 2.6.17
20480         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
20481         linkat on Linux, but allow cache variable override.
20482         * lib/linkat.c (rpl_linkat): Define override.
20483         * modules/linkat (Depends-on): Add symlinkat.
20484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
20485         * modules/unistd (Makefile.am): Substitute it.
20486         * lib/unistd.in.h (linkat): Declare replacement.
20487         Reported by Pádraig Brady.
20488
20489         quotearg: port test to systems with C.UTF-8 locale
20490         * tests/test-quotearg.c (struct result_strings): Add another
20491         member, differentiating between C.ASCII and C.UTF-8 handling.
20492         (compare_strings): Add parameter.
20493         (main): Adjust all callers.
20494
20495         getopt: avoid clash with FreeBSD _getopt_internal
20496         * lib/getopt.in.h (_getopt_internal): Override the name.
20497         * lib/getopt_int.h (includes): Pick up any overrides.
20498         Reported by Reuben Thomas.
20499
20500         hash: allow C89 compilation
20501         * lib/hash.c (check_tuning): Move declaration before statement.
20502         Reported by Reuben Thomas.
20503
20504 2009-10-05  Karl Berry  <karl@gnu.org>
20505
20506         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20507
20508 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20509             Bruno Haible  <bruno@clisp.org>
20510
20511         * lib/uname.c (uname): Use a table-driven algorithm to compute
20512         Windows NT versions.
20513
20514 2009-10-04  Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20517         program_invocation_short_name.
20518         * modules/progname (configure.ac): Test for presence of
20519         program_invocation_short_name.
20520         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20521
20522 2009-10-04  Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/progname.c (set_program_name): Fix comment.
20525         Reported by Jim Meyering.
20526
20527 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20528             Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/uname.c: Include <string.h>.
20531         (uname): Do only one call to GetVersionEx in the common case.
20532
20533 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20534             Bruno Haible  <bruno@clisp.org>
20535
20536         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20537         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20538         (uname): Add support for Windows CE and various non-x86 CPU types.
20539
20540 2009-10-03  Bruno Haible  <bruno@clisp.org>
20541
20542         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20543         invocation to tests/configure.ac.
20544         Reported by Ian Beckwith <ianb@erislabs.net>.
20545
20546 2009-10-02  Eric Blake  <ebb9@byu.net>
20547
20548         fchdir: avoid compiler warning
20549         * lib/fchdir.c (canonicalize_file_name)
20550         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20551
20552         test-open: support mingw errno values
20553         * tests/test-open.h (test_open): Relax test.
20554         * tests/test-fopen.h (test_fopen): Likewise.
20555         * tests/test-openat-safer.c (main): Likewise.
20556
20557         open: fix opening directory on mingw
20558         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20559
20560         test-open: on GNU/Hurd, /dev/null is a directory
20561         * tests/test-fopen.h (main): Rename...
20562         (test_fopen): ...to this.  Use a guaranteed non-directory when
20563         confirming open behavior on trailing slash.
20564         * tests/test-openat-safer.c (main): Likewise.
20565         * tests/test-open.h (main): Likewise....
20566         (test_open): ...to this.
20567         * tests/test-fopen.c (main): Adjust caller.
20568         * tests/test-fopen-safer.c (main): Likewise.
20569         * tests/test-open.c (main): Likewise.
20570         * tests/test-fcntl-safer.c (main): Likewise.
20571         Reported by Samuel Thibault.
20572
20573         rename, fchdir: don't ignore chdir failure
20574         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20575         * lib/rename.c (rpl_rename) [W32]: Likewise.
20576         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20577         an empty destination directory if source cannot be renamed,
20578         although there is still possibility for failure.
20579         * doc/posix-functions/rename.texi (rename): Document the race.
20580         Reported by Jim Meyering.
20581
20582         maint: cleanup whitespace in recent commits
20583         * lib/rename.c (rpl_rename): Remove tabs.
20584         * tests/test-link.h (test_link): Likewise.
20585         * lib/fchdir.c (get_name): Likewise.
20586         Reported by Jim Meyering.
20587
20588 2009-10-02  Ben Pfaff  <blp@gnu.org>
20589
20590         relocatable-prog-wrapper: Add missing dependency on
20591         double-slash-root.
20592         * modules/relocatable-prog-wrapper: Add dependency.
20593         Reported by Ian Beckwith <ianb@erislabs.net>.
20594
20595 2009-10-02  Eric Blake  <ebb9@byu.net>
20596
20597         renameat: fix Solaris bugs
20598         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20599         needed fixing.
20600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20601         * modules/stdio (Makefile.am): Substitute it.
20602         * lib/stdio.in.h (renameat): Declare replacement.
20603         * lib/renameat.c (rpl_renameat): Implement fix.
20604
20605         renameat: new module
20606         * modules/renameat: New file.
20607         * lib/renameat.c (renameat): Likewise.
20608         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20610         * modules/stdio (Makefile.am): Substitute them.
20611         * lib/stdio.in.h (renameat): Declare it.
20612         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20613         * doc/posix-functions/renameat.texi (renameat): Likewise.
20614         * modules/renameat-tests: New test.
20615         * tests/test-renameat.c: Likewise.
20616
20617         rename: fix mingw bugs
20618         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20619         directory overwrite bugs.
20620
20621         rename: fix another cygwin 1.5 bug
20622         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20623         checks.
20624         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20625         unnecessary cygwin workarounds.  Also work around bug with moving
20626         full directory onto an empty one.
20627         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20628
20629         rename-dest-slash: merge into rename module
20630         * modules/rename-dest-slash (Status): Mark obsolete.
20631         (Depends-on): Add rename.
20632         (Files): Let rename do it all.
20633         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20634         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20635         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20636         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20637         * lib/rename.c (rpl_rename): Update comments.
20638
20639         rename: fix cygwin 1.5.x bugs
20640         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20641         * lib/rename.c (rpl_rename): Work around them.
20642         * modules/rename (Depends-on): Add same-inode.
20643
20644         rename: fix Solaris 10 bug
20645         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20646         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20647         was the only bug.
20648
20649         rename: fix Solaris 9 bug
20650         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20651         on non-directory.  Avoid calling exit.
20652         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20653         strdup.
20654         * modules/rename-tests (Depends-on): Drop lstat.
20655         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20656         (gl_PREREQ_RENAME): Delete unused macro.
20657
20658         rename-dest-slash: fix NetBSD bug
20659         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20660         links.
20661         * modules/rename-dest-slash (Depends-on): Add same-inode.
20662
20663         rename-tests: new test, exposes several platform bugs
20664         * modules/rename-tests: New file.
20665         * tests/test-rename.h: Likewise.
20666         * tests/test-rename.c: Likewise.
20667         * doc/posix-functions/rename.texi (rename): Improve documentation,
20668         including bugs that will eventually be fixed in gnulib.
20669
20670 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20671
20672         * lib/uname.c: Include <stdlib.h>
20673         (uname): Assume version info is available.
20674
20675 2009-10-02  Jim Meyering  <meyering@redhat.com>
20676
20677         gnu-web-doc-update: correct --help output
20678         * build-aux/gnu-web-doc-update: Make --help output relevant.
20679
20680         gnu-web-doc-update: add standard options
20681         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20682
20683         gnu-web-doc-update: New module.
20684         Use this script to automatically update the on-line web documentation
20685         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20686         * modules/gnu-web-doc-update: New file, from coreutils.
20687         * build-aux/gnu-web-doc-update: New script.
20688
20689 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20690
20691         link: LoadLibrary is not needed.
20692         * lib/link.c: Use GetModuleHandle.
20693
20694 2009-10-01  Eric Blake  <ebb9@byu.net>
20695
20696         getopt: bump serial number
20697         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20698         change.
20699
20700         tests: tighten link, rmdir, and remove tests
20701         * tests/test-link.h (includes): No need to use <config.h> here.
20702         Clean up if directory hard link was created, otherwise test for
20703         trailing '.'.
20704         * tests/test-linkat.c (main): Simplify.
20705         * tests/test-remove.c (main): Enhance test for trailing '.'.
20706         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20707
20708 2009-10-01  Jim Meyering  <meyering@redhat.com>
20709
20710         maint.mk: requiring "make major" was annoying, for a "minor" release.
20711         What is intended is "stable", to contrast with alpha and beta,
20712         so require "make stable", not "make major".
20713         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20714         (get_tool_versions): Likewise.
20715         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20716
20717 2009-09-30  Ben Pfaff  <blp@gnu.org>
20718
20719         Fix broken build of replacement for Windows tmpfile().
20720         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20721         flags argument added along with the 'mkostemp' module.
20722
20723 2009-09-28  Bruno Haible  <bruno@clisp.org>
20724
20725         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20726         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20727         to 'remove_elt'.
20728         (gl_list_remove): Update.
20729         * lib/gl_list.c (gl_list_remove): Update.
20730         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20731         to 'remove_elt'.
20732         (gl_oset_remove): Update.
20733         * lib/gl_list.c (gl_oset_remove): Update.
20734         Reported by Eric Blake.
20735
20736 2009-09-28  Eric Blake  <ebb9@byu.net>
20737
20738         doc: mention yet more cygwin 1.7 status
20739         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20740         cygwin.
20741         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20742         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20743
20744         argp: fix test failure
20745         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20746         that are not upper-case.  Pass correct range to tolower.
20747
20748 2009-09-27  Jim Meyering  <meyering@redhat.com>
20749
20750         test-yesno: work around sparc-dash here-document infelicity
20751         Without this change, the literal \177 byte in a here document
20752         would make dash 0.5.5.1-3 access uninitialized memory.
20753         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20754         Instead, use a marker, "@", and filter through tr to create the desired
20755         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20756
20757 2009-09-27  Bruno Haible  <bruno@clisp.org>
20758
20759         Disable untested support for new flavours of ACLs on AIX.
20760         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20761         progress.
20762         * lib/set-mode-acl.c (qset_acl): Likewise.
20763
20764 2008-12-07  Bruno Haible  <bruno@clisp.org>
20765
20766         Add support for new flavours of ACLs on AIX. (Untested.)
20767         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20768         (file_has_acl): Add support for newer AIX.
20769         * lib/set-mode-acl.c (qset_acl): Likewise.
20770         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20771         Rainer Tammer <tammer@tammer.net>.
20772
20773 2009-09-26  Eric Blake  <ebb9@byu.net>
20774
20775         argp: fix compilation of getopt
20776         * lib/getopt.in.h (includes): Use different guard than glibc.
20777         Reported by Sergey Poznyakoff.
20778
20779         doc: mention more cygwin 1.7 status
20780         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20781         bug.
20782         * doc/posix-functions/execl.texi (execl): Likewise.
20783         * doc/posix-functions/execle.texi (execle): Likewise.
20784         * doc/posix-functions/execlp.texi (execlp): Likewise.
20785         * doc/posix-functions/execv.texi (execv): Likewise.
20786         * doc/posix-functions/execve.texi (execve): Likewise.
20787         * doc/posix-functions/execvp.texi (execvp): Likewise.
20788         * doc/glibc-functions/canonicalize_file_name.texi
20789         (canonicalize_file_name): Cygwin 1.7 now provides this.
20790         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20791         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20792         on AT_SYMLINK_NOFOLLOW.
20793
20794 2009-09-24  Eric Blake  <ebb9@byu.net>
20795
20796         test-linkat: make test more robust
20797         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20798
20799         getopt: fix inclusion guards for cygwin
20800         * modules/getopt-posix (Depends-on): Add include-next.
20801         (Makefile.am): Substitute more items in replacement header.
20802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20803         <getopt.h>.
20804         * lib/getopt.in.h (includes): Use split inclusion guard, and
20805         prefer <getopt.h> over include <unistd.h> when one is present.
20806         (option): Also override name of 'struct option'.
20807
20808         same-inode: revert prior change; it is not yet ready
20809         * NEWS: Undo mention of this change.
20810         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20811         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20812         * lib/cycle-check.c (cycle_check): Likewise.
20813         * lib/same.c (same_name): Likewise.
20814         * lib/at-func2.c (at_func2): Likewise.
20815
20816 2009-09-23  Eric Blake  <ebb9@byu.net>
20817
20818         linkat: new module
20819         * modules/linkat: New file.
20820         * lib/at-func2.c (at_func2): Likewise.
20821         * lib/linkat.c (linkat): Likewise.
20822         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20823         * lib/openat-priv.h (at_func2): Add declaration.
20824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20825         * modules/unistd (Makefile.am): Substitute them.
20826         * lib/unistd.in.h (linkat): Declare it.
20827         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20828         * doc/posix-functions/linkat.texi (linkat): Likewise.
20829         * doc/posix-functions/link.texi (link): Tweak wording.
20830         * tests/test-link.c (main): Move guts...
20831         * tests/test-link.h (test_link): ...into new file.
20832         * modules/linkat-tests: New test.
20833         * tests/test-linkat.c: Likewise.
20834         * modules/link-tests (Files): Ship new file.
20835         (Depends-on): Add stdbool.
20836
20837         dirname: add library-safe mdir_name
20838         * lib/dirname.h (mdir_name): New prototype.
20839         * lib/dirname.c (dir_name): Move guts...
20840         (mdir_name): ...to new function that avoids xalloc_die.
20841
20842         fchdir: another mingw fix
20843         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20844         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20845         on mingw (where it has not yet been ported), and make it optional
20846         elsewhere.
20847         (_gl_register_fd): Use it.
20848
20849         same-inode: make SAME_INODE tri-state, to port to mingw
20850         * NEWS: Mention this change.
20851         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20852         st_ino always being 0.
20853         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20854         * lib/cycle-check.c (cycle_check): Likewise.
20855         * lib/same.c (same_name): Likewise.
20856
20857         lstat: avoid mingw compilation error
20858         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20859         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20860         lstat ourselves.
20861         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20862         was adequate.
20863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20864         the checks for lstat.
20865         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20866
20867         link: fix test failure on Solaris 9
20868         * lib/link.c (rpl_link): Don't assume link will catch bogus
20869         trailing slash on source.
20870
20871         test-symlinkat: enhance test
20872         * tests/test-readlink.c (main): Move guts...
20873         * tests/test-readlink.h (test_readlink): ...into new file.
20874         * tests/test-symlink.c (main): Move guts...
20875         * tests/test-symlink.h (test_symlink): ...into new file.
20876         * tests/test-symlinkat.c (main): Use new files for further
20877         coverage.
20878         (do_symlink, do_readlink): New helper functions.
20879         * modules/symlink-tests (Files): Ship new file.
20880         (Depends-on): Add stdbool.
20881         * modules/readlink-tests (Files): Ship new file.
20882         (Depends-on): Add stdbool.
20883         * modules/symlinkat-tests (Files): Use new files.
20884
20885 2009-09-23  Eric Blake  <ebb9@byu.net>
20886
20887         readlink: document portability issue with symlink length
20888         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20889         systems have bogus st_size on symlinks, and mention the
20890         areadlink-with-size module.
20891         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20892         * doc/posix-functions/readlink.texi (readlink): Mention the
20893         areadlink module, and ERANGE failure.
20894         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20895         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20896
20897         readlink: fix Solaris 9 bug with trailing slash
20898         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20899         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20900         * doc/posix-functions/readlink.texi (readlink): Document this.
20901         * modules/readlink-tests: New test.
20902         * tests/test-readlink.c: Likewise.
20903
20904         readlink: fix cygwin 1.5.x bug with return type
20905         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20906         * lib/unistd.in.h (readlink): Use ssize_t.
20907         * lib/readlink.c (readlink): Likewise.
20908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20909         * modules/unistd (Makefile.am): Substitute it.
20910         * lib/unistd.in.h (readlink): Declare replacement.
20911         * doc/posix-functions/readlink.texi (readlink): Document this.
20912
20913         symlink: use throughout gnulib
20914         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20915         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20916         symlink is not used.
20917         * modules/symlinkat (Depends-on): Add symlink.
20918         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20919         * modules/canonicalize-tests (Depends-on): Likewise.
20920         * modules/lstat-tests (Depends-on): Likewise.
20921         * modules/openat-tests (Depends-on): Likewise.
20922         * modules/remove-tests (Depends-on): Likewise.
20923         * modules/rmdir-tests (Depends-on): Likewise.
20924         * modules/unlink-tests (Depends-on): Likewise.
20925         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20926         * tests/test-canonicalize.c (symlink): Likewise.
20927         * tests/test-fstatat.c (symlink): Likewise.
20928         * tests/test-lstat.c (symlink): Likewise.
20929         * tests/test-remove.c (symlink): Likewise.
20930         * tests/test-rmdir.c (symlink): Likewise.
20931         * tests/test-unlink.c (symlink): Likewise.
20932         * tests/test-unlinkat.c (symlink): Likewise.
20933
20934         symlink: new module, for Solaris 9 bug
20935         * modules/symlink: New file.
20936         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20937         * lib/symlink.c: Likewise.
20938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20939         * modules/unistd (Makefile.am): Substitute them.
20940         * lib/unistd.in.h (symlink): Declare replacement.
20941         * MODULES.html.sh (File system functions): Mention it.
20942         * doc/posix-functions/symlink.texi (symlink): Likewise.
20943         * modules/symlink-tests: New test.
20944         * tests/test-symlink.c: Likewise.
20945
20946 2009-09-23  Bruno Haible  <bruno@clisp.org>
20947
20948         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
20949         when needed.
20950         Test case: gnulib-tool --import --with-tests atexit inttypes.
20951         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
20952
20953 2009-09-23  Bruno Haible  <bruno@clisp.org>
20954
20955         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
20956         subcommand, not in a subshell.
20957
20958 2009-09-22  Eric Blake  <ebb9@byu.net>
20959
20960         unistd: sort replacement declarations
20961         * lib/unistd.in.h: Sort declarations.
20962
20963         open, openat: minor optimization
20964         * lib/open.c (open): If open succeeded, len is non-zero.
20965         * lib/openat.c (rpl_openat): Likewise.
20966
20967         link-follow: ensure correct result
20968         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
20969         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
20970         distinguish between possible failures.
20971
20972 2009-09-21  Eric Blake  <ebb9@byu.net>
20973
20974         fts: avoid compiler warning
20975         * lib/fts.c (dirent_inode_sort_may_be_useful)
20976         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20977
20978 2009-09-19  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/progreloc.c (canonicalize_file_name): New declaration.
20981
20982 2009-09-19  Eric Blake  <ebb9@byu.net>
20983
20984         link: fix quoting
20985         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20986
20987         openat: fix openat bugs on Solaris 9
20988         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20989         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20990         * modules/openat (Depends-on): Add open.
20991         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20992         * modules/fcntl-h (Makefile.am): Substitute it.
20993         * lib/fcntl.in.h (openat): Declare replacement.
20994         * doc/posix-functions/openat.texi (openat): Document this.
20995
20996         openat: move fstatat and unlinkat into correct files
20997         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20998         compiled.
20999         * lib/openat.c (fstatat, unlinkat): Move...
21000         * lib/fstatat.c (fstatat): ...into correct files.
21001         * lib/unlinkat.c (unlinkat): Likewise.
21002
21003         openat: fix unlinkat bugs on Solaris 9
21004         * lib/unlinkat.c (unlinkat): New file.
21005         * modules/openat (Depends-on): Add unlink.
21006         (Files): Distribute it.
21007         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
21008         trailing slash behavior is broken.
21009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21010         * modules/unistd (Makefile.am): Substitute it.
21011         * lib/unistd.in.h (unlinkat): Declare replacement.
21012         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
21013
21014         openat: fix fstatat bugs on Solaris 9
21015         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
21016         stat.
21017         * doc/posix-functions/fstatat.texi (fstatat): Document this.
21018
21019         test-unlinkat: enhance test, to expose Solaris 9 bug
21020         * tests/test-unlink.c (main): Factor guts...
21021         * tests/test-unlink.h (test_rmdir_func): ...into new file.
21022         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
21023         * tests/test-rmdir.c (main): Adjust caller.
21024         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
21025         (unlinker): New helper function.
21026         (rmdirat): Enhance check.
21027         * modules/rmdir-tests (Depends-on): Add stdbool.
21028         * modules/unlink-tests (Depends-on): Likewise.
21029         (Files): Add test-unlink.h.
21030         * modules/openat-tests (Files): Likewise.
21031         (Depends-on): Add unlinkdir.
21032
21033         test-fstatat: new test, to expose Solaris 9 bugs
21034         * tests/test-stat.c (main): Factor guts...
21035         * tests/test-stat.h (test_stat_func): ...into new file.
21036         * tests/test-lstat.c (main): Factor guts...
21037         * tests/test-lstat.h (test_lstat_func): ...into new file.
21038         * tests/test-fstatat.c: New file.
21039         * modules/stat-tests (Files): Add test-stat.h.
21040         * modules/lstat-tests (Files): Add test-lstat.h.
21041         (Depends-on): Add stdbool.
21042         * modules/openat-tests (Depends-on): Add pathmax.
21043         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
21044         (Makefile.am): Run new test.
21045
21046         remove: new module, for mingw and Solaris 9 bugs
21047         * modules/remove: New file.
21048         * lib/remove.c: Likewise.
21049         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
21050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21051         * modules/stdio (Makefile.am): Use them.
21052         * lib/stdio.in.h (remove): Declare replacement.
21053         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21054         * doc/posix-functions/remove.texi (remove): Likewise.
21055         * modules/remove-tests: New test.
21056         * tests/test-remove.c: Likewise.
21057
21058         unlink: new module, for Solaris 9 bug
21059         * modules/unlink: New file.
21060         * lib/unlink.c: Likewise.
21061         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21063         * modules/unistd (Makefile.am): Use them.
21064         * lib/unistd.in.h (stat): Declare replacement.
21065         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21066         * doc/posix-functions/unlink.texi (unlink): Likewise.
21067         * modules/unlink-tests: New test.
21068         * tests/test-unlink.c: Likewise.
21069
21070         lstat: fix Solaris 9 bug
21071         * lib/lstat.c (lstat): Also check for trailing slash on
21072         non-symlink, non-directories.  Use stat module to simplify logic.
21073         * doc/posix-functions/lstat.texi (lstat): Document it.
21074         * modules/lstat-tests (Depends-on): Add errno, same-inode.
21075         (configure.ac): Check for symlink.
21076         * tests/test-lstat.c (main): Add more tests.
21077
21078         stat: add as dependency to other modules
21079         * modules/chown (Depends-on): Add stat.
21080         * modules/euidaccess (Depends-on): Likewise.
21081         * modules/fchdir (Depends-on): Likewise.
21082         * modules/isdir (Depends-on): Likewise.
21083         * modules/link (Depends-on): Likewise.
21084         * modules/lstat (Depends-on): Likewise.
21085         * modules/mkdir-p (Depends-on): Likewise.
21086         * modules/modechange (Depends-on): Likewise.
21087         * modules/open (Depends-on): Likewise.
21088         * modules/readlink (Depends-on): Likewise.
21089         * modules/same (Depends-on): Likewise.
21090
21091         stat: fix Solaris 9 bug
21092         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
21093         slash.
21094         * lib/stat.c (rpl_stat): Work around it.
21095         * doc/posix-functions/stat.texi (stat): Update documentation.
21096
21097         stat: new module, for mingw bug
21098         * modules/stat: New file.
21099         * lib/stat.c: Likewise.
21100         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21102         * modules/sys_stat (Makefile.am): Use them.
21103         * lib/sys_stat.in.h (stat): Declare replacement.
21104         * lib/openat.c (fstatat): Deal with lstat and stat being function
21105         macros.
21106         * modules/openat (Depends-on): Add inline.
21107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21108         * doc/posix-functions/stat.texi (stat): Likewise.
21109         * modules/stat-tests: New test.
21110         * tests/test-stat.c: Likewise.
21111
21112 2009-09-19  Jim Meyering  <meyering@redhat.com>
21113
21114         syntax-check: detect unnecessary inclusion of canonicalize.h
21115         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21116
21117 2009-09-19  Eric Blake  <ebb9@byu.net>
21118
21119         canonicalize-lgpl: adjust clients to use correct header
21120         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21121         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21122         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21123         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21124         * lib/progreloc.c (includes): Likewise.
21125
21126 2009-09-19  Jim Meyering  <meyering@redhat.com>
21127
21128         test-posixtm.c: correct a comment
21129         * tests/test-posixtm.c: Correct first-line comment.
21130         Spotted by Eric Blake.
21131
21132 2009-09-16  Jim Meyering  <meyering@redhat.com>
21133
21134         posixtm-tests: make T const-correct; add a test case
21135         * tests/test-posixtm.c (T): Declare const.
21136         Add a test for -(2^31+1).
21137         Remove useless can-succeed-only-in-2002 test.
21138
21139         posixtm-tests: adjust the sole failing test
21140         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21141         expected output matches what mktime now produces.  Cross-checked via
21142         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21143
21144         posixtm: move #ifdef'd tests into a new module
21145         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21146         * tests/test-posixtm.c: ... this new file.
21147         * modules/posixtm-tests: New module.
21148
21149 2009-09-19  Eric Blake  <ebb9@byu.net>
21150
21151         openat: simplify use of at-func.c
21152         * lib/at-func.c (includes): Include prerequisites here, to
21153         simplify requirements on client files.
21154         * lib/openat-priv.h: Add double-inclusion guard.
21155         * lib/faccessat.c (includes): Simplify.
21156         * lib/fchmodat.c (includes): Likewise.
21157         * lib/fchownat.c (includes): Likewise.
21158         * lib/mkdirat.c (includes): Likewise.
21159         * lib/mkfifoat.c (includes): Likewise.
21160         * lib/symlinkat.c (includes): Likewise.
21161
21162         openat: allow return of fd 0
21163         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21164         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21165         unistd-safer.
21166         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21167         <fcntl.h>; this module does not leak fds.
21168         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21169         must be allowed to return 0, leaving openat_safer to add the
21170         safety.
21171         (openat_permissive): Avoid writing to just-opened fd 2 if
21172         restoring the current directory fails.
21173         * lib/openat-die.c (openat_restore_fail): Add comment.
21174         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21175         (save_cwd): Guarantee safe fd, but without use of open_safer.
21176         * tests/test-openat.c: New test.
21177         * modules/openat-tests (Files, Makefile.am): Distribute and build
21178         new file.
21179
21180         relocatable-prog-wrapper: fix build
21181         * modules/relocatable-prog-wrapper (Files): Update name of
21182         canonicalize m4 file, broken on 2009-09-17.
21183         Reported by emad hajjar <aleppos@hotmail.com>.
21184
21185 2009-09-19  Bruno Haible  <bruno@clisp.org>
21186
21187         * lib/safe-alloc.h: Use the standard header with GPL copyright.
21188         * lib/safe-alloc.c: Likewise.
21189         Reported by Ian Beckwith <ianb@erislabs.net>.
21190
21191 2009-09-18  Bruno Haible  <bruno@clisp.org>
21192
21193         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
21194         Reported by <erobles@sensacd.com.mx>.
21195
21196 2009-09-17  Eric Blake  <ebb9@byu.net>
21197
21198         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
21199         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
21200         slashes when checking if last component is missing.
21201         * tests/test-canonicalize.c (main): Test this.
21202
21203         canonicalize, canonicalize-lgpl: honor // if distinct from /
21204         * modules/canonicalize (Files): Add double-slash-root.m4.
21205         * modules/canonicalize-lgpl (Files): Likewise.
21206         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21207         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
21208         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
21209         fallback definition.
21210         (canonicalize_filename_mode): Use it to protect //.
21211         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
21212         (__realpath): Likewise.
21213         * tests/test-canonicalize.c (main): Test this.
21214         * tests/test-canonicalize-lgpl.c (main): Likewise.
21215         * modules/canonicalize-tests (Depends-on): Add same-inode.
21216         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21217
21218         canonicalize-lgpl: fix glibc bug with trailing slash
21219         * m4/canonicalize-lgpl.m4: Move contents...
21220         * m4/canonicalize.m4: ...here.
21221         (gl_CANONICALIZE_LGPL): Factor realpath check...
21222         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
21223         glibc 2.3.5 bug, fixed 2005-04-27.
21224         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
21225         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
21226         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
21227         * modules/canonicalize-lgpl (Files): Manage file rename.
21228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21229         * modules/stdlib (Makefile.am): Substitute witness.
21230         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
21231         is needed.
21232         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
21233         replacement is required.
21234         * lib/canonicalize.c (canonicalize_file_name): Likewise.
21235         * doc/glibc-functions/canonicalize_file_name.texi
21236         (canonicalize_file_name): Document this.
21237         * doc/posix-functions/realpath.texi (realpath): Likewise.
21238
21239         canonicalize-lgpl: reject non-directory with trailing slash
21240         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
21241         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
21242         catches failures in glibc 2.3.5.
21243         * tests/test-canonicalize.c (main): Likewise.
21244
21245         canonicalize-lgpl: use native realpath if it works
21246         * lib/canonicalize-lgpl.c (realpath): Guard with
21247         FUNC_REALPATH_WORKS.
21248         * lib/stdlib.in.h (realpath): Make declaration optional based on
21249         HAVE_REALPATH.
21250         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
21251         native realpath works.
21252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21253         * modules/stdlib (Makefile.am): Substitute witness.
21254
21255         canonicalize, canonicalize-lgpl: use <stdlib.h>
21256         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
21257         (Include): Mention <stdlib.h>.
21258         (configure.ac): Mention functions we provide.
21259         * modules/canonicalize (configure.ac): Likewise.
21260         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
21261         realpath if canonicalize_file_name is missing.
21262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
21263         * modules/stdlib (Makefile.am): Substitute witnesses.
21264         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
21265         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
21266         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
21267         * NEWS: Document this.
21268         * doc/glibc-functions/canonicalize_file_name.texi
21269         (canonicalize_file_name): Likewise.
21270         * doc/posix-functions/realpath.texi (realpath): Likewise.
21271         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
21272
21273         test-canonicalize: consolidate into single C program
21274         * tests/test-canonicalize.sh: Delete; move setup into...
21275         * tests/test-canonicalize.c (main): ...the program, making it
21276         easier to run in debugger.  Add some tests.
21277         * modules/canonicalize-tests (Files): Remove unused file.
21278         (Depends-on): Add progname.
21279         (configure.ac, Makefile.am): Simplify.
21280
21281         test-canonicalize-lgpl: consolidate into single C program
21282         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
21283         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
21284         easier to run in debugger.  Add some tests.
21285         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
21286         (configure.ac, Makefile.am): Simplify.
21287
21288         canonicalize: avoid resolvepath
21289         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
21290         unnecessary checks.
21291         * lib/canonicalize.c (includes): Simplify.
21292         (canonicalize_file_name): Drop resolvepath implementation.
21293         * modules/canonicalize (Depends-on): Drop filenamecat.
21294
21295         canonicalize: don't lose errno
21296         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
21297         over calls to free.
21298
21299         canonicalize: simplify errno handling
21300         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
21301         assignment.
21302
21303         canonicalize, canonicalize-lgpl: update module dependencies
21304         * modules/canonicalize (Depends-on): Add extensions, lstat,
21305         pathmax, stdlib.
21306         (Files): Drop pathmax.h.
21307         (configure.ac): Adjust macro name.
21308         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
21309         lstat, stdlib, sys_stat.
21310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
21311         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
21312         extensions.
21313         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
21314         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
21315         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
21316         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
21317         declaration, if available.
21318         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
21319         we can rely on the readlink module.
21320         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
21321         (includes): Use <unistd.h> unconditionally.
21322
21323 2009-09-17  Eric Blake  <ebb9@byu.net>
21324
21325         maint: make Include sections of modules consistent
21326         * modules/alloca: Use only header name; no need to list #include.
21327         * modules/alloca-opt: Likewise.
21328         * modules/arpa_inet: Likewise.
21329         * modules/canon-host: Likewise.
21330         * modules/configmake: Likewise.
21331         * modules/dirent: Likewise.
21332         * modules/eealloc: Likewise.
21333         * modules/environ: Likewise.
21334         * modules/fchdir: Likewise.
21335         * modules/fcntl: Likewise.
21336         * modules/fcntl-h: Likewise.
21337         * modules/gethrxtime: Likewise.
21338         * modules/gettime: Likewise.
21339         * modules/ignore-value: Likewise.
21340         * modules/inet_ntop: Likewise.
21341         * modules/inet_pton: Likewise.
21342         * modules/inttypes: Likewise.
21343         * modules/isnand-nolibm: Likewise.
21344         * modules/isnanf-nolibm: Likewise.
21345         * modules/mbchar: Likewise.
21346         * modules/mbfile: Likewise.
21347         * modules/mbiter: Likewise.
21348         * modules/mbuiter: Likewise.
21349         * modules/netdb: Likewise.
21350         * modules/netinet_in: Likewise.
21351         * modules/nproc: Likewise.
21352         * modules/pagealign_alloc: Likewise.
21353         * modules/poll: Likewise.
21354         * modules/printf-frexp: Likewise.
21355         * modules/pthread: Likewise.
21356         * modules/putenv: Likewise.
21357         * modules/random_r: Likewise.
21358         * modules/relocatable-prog: Likewise.
21359         * modules/search: Likewise.
21360         * modules/select: Likewise.
21361         * modules/selinux-h: Likewise.
21362         * modules/settime: Likewise.
21363         * modules/signal: Likewise.
21364         * modules/size_max: Likewise.
21365         * modules/socklen: Likewise.
21366         * modules/ssize_t: Likewise.
21367         * modules/stdarg: Likewise.
21368         * modules/stdbool: Likewise.
21369         * modules/stddef: Likewise.
21370         * modules/stdint: Likewise.
21371         * modules/stdio: Likewise.
21372         * modules/stdlib: Likewise.
21373         * modules/string: Likewise.
21374         * modules/strings: Likewise.
21375         * modules/sys_file: Likewise.
21376         * modules/sys_ioctl: Likewise.
21377         * modules/sys_select: Likewise.
21378         * modules/sys_socket: Likewise.
21379         * modules/sys_stat: Likewise.
21380         * modules/sys_time: Likewise.
21381         * modules/sys_times: Likewise.
21382         * modules/sys_utsname: Likewise.
21383         * modules/sys_wait: Likewise.
21384         * modules/sysexits: Likewise.
21385         * modules/time: Likewise.
21386         * modules/times: Likewise.
21387         * modules/tmpfile: Likewise.
21388         * modules/trim: Likewise.
21389         * modules/unistd: Likewise.
21390         * modules/wchar: Likewise.
21391         * modules/wctype: Likewise.
21392
21393 2009-09-17  Bruno Haible  <bruno@clisp.org>
21394
21395         Make getdate.y compile on QNX and NetBSD 5 / i386.
21396         * m4/getdate.m4 (gl_GETDATE): Conditionally define
21397         TIME_T_FITS_IN_LONG_INT.
21398         * lib/getdate.y (long_time_t): New type.
21399         (relative_time): Change type of 'seconds' field to long_time_t.
21400         (get_date): Update types of local variables. Check against overflow
21401         during conversion from long_time_t to time_t.
21402         Reported by Matt Kraai <kraai@ftbfs.org>
21403         and Hasso Tepper <hasso@netbsd.org>.
21404
21405 2009-09-17  Bruno Haible  <bruno@clisp.org>
21406
21407         * modules/COPYING: Update copyright years.
21408         * modules/README: Likeiwse.
21409         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
21410         Reported by Ian Beckwith <ianb@erislabs.net>.
21411
21412 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21413
21414         * users.txt: Update references for gnuit package.
21415
21416 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21417
21418         * m4/getdelim.m4: Fix typo in copyright line.
21419
21420 2009-09-17  Bruno Haible  <bruno@clisp.org>
21421
21422         * lib/atoll.c: Use the standard header with GPL copyright.
21423         * lib/argz.in.h: Likewise.
21424         * lib/glob.c: Likewise.
21425         * lib/glob-libc.h: Likewise.
21426         * lib/random_r.c: Likewise.
21427         * lib/siglist.h: Likewise.
21428         * lib/strsignal.c: Likewise.
21429         Reported by Ian Beckwith <ianb@erislabs.net>.
21430
21431 2009-09-17  Eric Blake  <ebb9@byu.net>
21432
21433         rmdir: ensure correct dependency order
21434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
21435
21436 2009-09-17  Bruno Haible  <bruno@clisp.org>
21437
21438         Disable assertion that fails on NetBSD 5 / i386.
21439         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
21440         Reported by Sam Steingold <sds@gnu.org>
21441         and Hasso Tepper <hasso@netbsd.org>.
21442
21443 2009-09-16  Eric Blake  <ebb9@byu.net>
21444
21445         unlinkdir: port to mingw
21446         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
21447         on which no one can unlink a directory.
21448
21449         stdlib: sort witness names
21450         * modules/stdlib (Makefile.am): Sort replacements.
21451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21452         * lib/stdlib.in.h: Likewise.
21453
21454         parse-duration-tests: avoid link failure
21455         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
21456         LIBINTL.
21457         Reported by Tom G. Christensen.
21458
21459         openat-tests: ensure unlinkat behaves like rmdir
21460         * tests/test-rmdir.c (main): Factor guts...
21461         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
21462         * modules/rmdir-tests (Files): Ship new file.
21463         * modules/openat-tests: New test.
21464         * tests/test-unlinkat.c: Likewise.
21465
21466         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
21467         * modules/rmdir-errno (Status, Notice): Now obsolete.
21468
21469         rmdir: work around cygwin 1.5.x and mingw bugs
21470         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
21471         * lib/rmdir.c (rmdir): Work around it.
21472         * modules/rmdir (Status, Notice): No longer obsolete.
21473         (Files): Add dos.m4.
21474         (Depends-on): Add unistd.
21475         (configure.ac): Set witnesses.
21476         (License): Relax to LGPLv2+.
21477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
21478         * modules/unistd (Makefile.am): Substitute witnesses.
21479         * lib/unistd.in.h (rmdir): Declare replacement.
21480         * doc/posix-functions/rmdir.texi (rmdir): Document this.
21481         * modules/rmdir-tests: New tests.
21482         * tests/test-rmdir.c: Likewise.
21483
21484 2009-09-15  Eric Blake  <ebb9@byu.net>
21485
21486         fchdir: improve use of replacement functions
21487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
21488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
21489         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
21490         REPLACE_CLOSEDIR.
21491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
21492         * modules/sys_stat (Makefile.am): Substitute correct witness.
21493         * modules/dirent (Makefile.am): Likewise.
21494         * modules/unistd (Makefile.am): Likewise.
21495         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
21496         * lib/unistd.in.h (dup): Likewise.
21497         * lib/sys_stat.in.h (fstat): Likewise.
21498
21499         maint: ignore gnulib-tool temp files
21500         * .gitignore: Ignore files created during gnulib-tool --test.
21501
21502 2009-09-13  Jim Meyering  <meyering@redhat.com>
21503
21504         posixtm: don't reject a time that specify "60" as the number of seconds
21505         * lib/posixtm.c (posixtime): The code to reject invalid dates
21506         would also reject a time specified with the .60 suffix.
21507         But POSIX allows that, in order to accommodate leap seconds.
21508         So don't reject it.
21509         (main): Adjust tests accordingly.
21510         * modules/posixtm (Depends-on): Add stpcpy.
21511
21512 2009-09-11  Jim Meyering  <meyering@redhat.com>
21513
21514         announce-gen: include [$release_type] in emitted Subject:
21515         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21516         e.g., [stable] in the emitted Subject: line.
21517
21518 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21519
21520         Remove obsolete macros from several modules.
21521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21522         obsolete Autoconf macros with their modern counterparts.
21523         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21524         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21527         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21530         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21531         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21532         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21533         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21535         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21536         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21537         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21538         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21539         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21540         * m4/time_r.m4 (gl_TIME_R): Likewise.
21541         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21542         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21543         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21544
21545         Fix copyright header in build-aux scripts.
21546         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21547         recommendation.
21548         * build-aux/ncftpput-ftp: Likewise.
21549         * build-aux/update-copyright: Likewise.
21550
21551 2009-09-09  Eric Blake  <ebb9@byu.net>
21552
21553         test-link: allow Linux choice of errno
21554         * tests/test-link.c (main): Relax test for alternate error.
21555
21556         strndup: fix improper m4 caching
21557         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21558         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21559         (gl_PREREQ_STRNDUP): Delete.
21560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21561         * modules/string (Makefile.am): Substitute it.
21562         * lib/string.in.h (strndup): Modernize prototype.
21563
21564         getcwd: port to mingw
21565         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21566         different from the POSIX assumptions made throughout the getcwd
21567         module; fortunately, the mingw getcwd does not need replacement.
21568         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21569         * modules/getcwd-tests: New test.
21570         * tests/test-getcwd.c: Likewise.
21571
21572         link: fix platform bugs
21573         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21574         * lib/link.c (link): Work around them.  Fix related mingw bug.
21575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21576         * modules/unistd (Makefile.am): Substitute it.
21577         * lib/unistd.in.h (link): Declare replacement.
21578         * doc/posix-functions/link.texi (link): Document this.
21579         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21580
21581         test-link: consolidate into single C program, test more cases
21582         * tests/test-link.sh: Delete.
21583         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21584         at least Cygwin and Solaris.
21585         * modules/link-tests (Files): Remove unused file.
21586         (Depends-on): Add errno, sys_stat.
21587         (Makefile.am): Simplify.
21588
21589 2009-09-08  Bruno Haible  <bruno@clisp.org>
21590
21591         Work around towlower, towupper bug on mingw.
21592         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21593         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21594         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21595         * doc/posix-functions/towupper.texi: Likewise.
21596         Reported by Eric Blake.
21597
21598 2009-09-08  Jim Meyering  <meyering@redhat.com>
21599
21600         build: don't try to run autoheader if we don't use it
21601         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21602         is not used in configure.ac.
21603
21604 2009-09-08  Eric Blake  <ebb9@byu.net>
21605
21606         euidaccess: fix compilation error
21607         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21608
21609         rawmemchr: relax license
21610         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21611         okay.
21612         Reported by Jim Meyering.
21613
21614         mkfifoat: new module
21615         * modules/mkfifoat: New file.
21616         * lib/mkfifoat.c: Likewise.
21617         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21618         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21619         * modules/sys_stat (Makefile.am): Use them.
21620         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21621         * MODULES.html.sh (File system functions): Mention module.
21622         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21623         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21624         * modules/mkfifoat-tests: New test.
21625         * tests/test-mkfifoat.c: Likewise.
21626
21627         strchrnul: relax license
21628         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21629         okay.
21630         Reported by Jim Meyering.
21631
21632 2009-09-08  Eric Blake  <ebb9@byu.net>
21633
21634         fstatat: fix compilation on Solaris
21635         * lib/fstatat.c (includes): Add fcntl.h.
21636         Reported by Pádraig Brady.
21637
21638 2009-09-07  Eric Blake  <ebb9@byu.net>
21639
21640         rename: modernize replacement
21641         * modules/rename (Depends-on): Add stdio.
21642         (configure.ac): Declare witness.
21643         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21644         stdio take care of replacement.
21645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21646         * modules/stdio (Makefile.am): Substitute them.
21647         * lib/stdio.in.h (rename): Declare replacement.
21648         * lib/rename.c (includes): Allow cross-compilation to non-windows
21649         machines.
21650         * doc/posix-functions/rename.texi (rename): Improve
21651         documentation.
21652
21653         stdio: sort witness names
21654         * modules/stdio (Makefile.am): Sort replacements.
21655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21656         * lib/stdio.in.h: Likewise.
21657
21658         getcwd: minor cleanups
21659         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21660         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21661
21662         openat: provide more convenience names
21663         * modules/faccessat (configure.ac): Add C witness.
21664         * lib/unistd.in.h (readlinkat): Fix typo.
21665         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21666         convenience wrappers.
21667         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21668         wrappers in syntax checks.
21669
21670 2009-09-06  Eric Blake  <ebb9@byu.net>
21671
21672         doc: fix comments in recent patches
21673         * lib/faccessat.c: Mention correct function.
21674         * lib/fchmodat.c: Likewise.
21675         * lib/fchownat.c: Likewise.
21676         * lib/symlinkat.c: Likewise.
21677         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21678         constants.
21679
21680         faccessat, symlinkat: continue cleanup of previous patch
21681         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21682         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21683         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21685         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21686         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21687         set.
21688
21689 2009-09-06  Bruno Haible  <bruno@clisp.org>
21690
21691         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21692         (fstatat): Declare if GNULIB_FSTATAT is set.
21693         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21694         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21695         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21696         * modules/fcntl-h (Files): Remove m4/openat.m4.
21697         * modules/sys_stat (Files): Remove m4/openat.m4.
21698         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21699         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21700         * modules/unistd (Files): Remove m4/openat.m4.
21701         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21702         GNULIB_OPENAT.
21703         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21704         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21706         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21707         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21708         gl_OPENAT_DEFAULTS.
21709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21710         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21711         Don't require gl_OPENAT_DEFAULTS.
21712         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21713         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21714         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21715         (gl_OPENAT_DEFAULTS): Remove macro.
21716
21717 2009-09-06  Bruno Haible  <bruno@clisp.org>
21718
21719         * modules/openat (configure.ac): Remove unneeded witness.
21720
21721 2009-09-06  Bruno Haible  <bruno@clisp.org>
21722
21723         Set errno to ENOSYS when a function is entirely unsupported.
21724         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21725         EOPNOTSUPP.
21726         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21727         * modules/chown (Depends-on): Remove errno.
21728
21729 2009-09-06  Bruno Haible  <bruno@clisp.org>
21730
21731         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21732
21733 2009-09-06  Bruno Haible  <bruno@clisp.org>
21734
21735         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21736
21737 2009-09-06  Ben Pfaff  <blp@gnu.org>
21738             Bruno Haible  <bruno@clisp.org>
21739
21740         Work around a glibc bug in strtok_r.
21741         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21742         Undefine if UNDEFINE_STRTOK_R is set.
21743         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21745         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21746         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21747         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21748         UNDEFINE_STRTOK_R.
21749         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21750
21751 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21752
21753         exclude: minor fix
21754         * lib/exclude.c: Include wctype.h
21755
21756 2009-09-06  Akim Demaille  <demaille@gostai.com>
21757
21758         bootstrap: improve error message
21759         * build-aux/bootstrap (find_tool): Upon failure, report the list
21760         of candidates.
21761         Honor the initial value of the envvar.
21762
21763 2009-09-05  Eric Blake  <ebb9@byu.net>
21764
21765         symlinkat: new module
21766         * modules/symlinkat: New file.
21767         * lib/symlinkat.c: Likewise.
21768         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21770         * modules/unistd (Makefile.am): Use them.
21771         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21772         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21773         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21774         * MODULES.html.sh (File system functions): Mention module.
21775         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21776         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21777         * modules/symlinkat-tests: New test.
21778         * tests/test-symlinkat.c: Likewise.
21779
21780         test-openat-safer: add more checks
21781         * tests/test-openat-safer.c (main): Check more code paths.
21782
21783 2009-09-05  Jim Meyering  <meyering@redhat.com>
21784
21785         syntax-check: detect unnecessary inclusion of openat.h
21786         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21787
21788 2009-09-05  Bruno Haible  <bruno@clisp.org>
21789
21790         Support towlower, towupper.
21791         * doc/posix-functions/towlower.texi: Mention module wctype.
21792         * doc/posix-functions/towupper.texi: Likewise.
21793         * lib/wctype.in.h (towlower, towupper): New functions.
21794         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21795         (ASSERT): New macro.
21796         (e): New variable.
21797         (main): Test also towlower, towupper. Test WEOF argument.
21798         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21799
21800 2009-09-05  Bruno Haible  <bruno@clisp.org>
21801
21802         Fix conversion behaviour when the input is invalid.
21803         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21804         mark occurring in first pass of indirect conversion.
21805         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21806         input.
21807         Found by clang's static analyzer.
21808
21809 2009-09-05  Bruno Haible  <bruno@clisp.org>
21810
21811         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21812         where direct conversion is possible.
21813
21814 2009-09-04  Eric Blake  <ebb9@byu.net>
21815
21816         openat: fail with ENOENT on empty name
21817         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21818         buffer.
21819
21820         link-follow: fix logic bug in prior patch
21821         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21822         reversed sense of yes and no in prior patch.  Avoid confusing
21823         compilation failure with desired semantics.
21824
21825         link-follow: accomodate mingw and cross-compilation
21826         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21827         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21828         cross-compilation results to -1, to make linkat easier to
21829         implement when cross-compiling.  Trivially support mingw.
21830         * modules/link-follow (configure.ac): Call new name.
21831         * NEWS: Mention this.
21832
21833 2009-09-03  Eric Blake  <ebb9@byu.net>
21834
21835         faccessat: compile replacement
21836         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21837         needed.
21838
21839         fts: fix compilation error
21840         * lib/fts.c (includes): Re-add "openat.h", for
21841         openat_needs_fchdir.
21842
21843         faccessat: new module
21844         * modules/faccessat: New file.
21845         * lib/faccessat.c: Likewise.
21846         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21848         * modules/unistd (Makefile.am): Use it.
21849         * lib/unistd.in.h (faccessat): Declare it.
21850         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21851         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21852         * MODULES.html.sh (File system functions): Mention it.
21853         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21854         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21855
21856         euidaccess: prefer POSIX over non-standard implementation
21857         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21858         * lib/euidaccess.c (euidaccess): Use it if available.
21859
21860         openat: make template easier to use
21861         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21862         AT_FUNC_F2 to be undefined.
21863         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21864         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21865         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21866         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21867         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21868         Likewise.
21869         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21870         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21871         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21872         Likewise.
21873
21874         openat: declare in POSIX headers
21875         * NEWS: Mention this.
21876         * modules/openat (configure.ac): Declare witnesses.
21877         (Depends-on): Add fcntl-h, sys_stat, unistd.
21878         (Include): Mention correct headers.
21879         * modules/fcntl-h (Depends-on): Add link-warning.
21880         (Files): Add openat.m4.
21881         (Makefile.am): Substitute witnesses.
21882         * modules/sys_stat (Files, Makefile.am): Likewise.
21883         * modules/unistd (Files, Makefile.am): Likewise.
21884         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21885         (gl_OPENAT_DEFAULTS): New macro.
21886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21888         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21889         (SYS_STAT_H): Remove unused variable.
21890         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21891         * lib/fcntl--.h (includes): Remove unneeded header.
21892         * lib/openat-safer.c (includes): Likewise.
21893         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21894         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21895         appropriate headers.
21896         (__OPENAT_PREFIX): Delete.
21897         * lib/fcntl.in.h (openat): Provide declaration.
21898         (AT_FDCWD): Fix Solaris bug.
21899         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21900         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21901         * lib/fchmodat.c (includes):  Adjust to find declaration.
21902         * lib/fchownat.c (includes): Likewise.
21903         * lib/mkdirat.c (includes): Likewise.
21904         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21905         still visible.
21906
21907 2009-09-02  Eric Blake  <ebb9@byu.net>
21908
21909         errno: use consistently
21910         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21911         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21912         * lib/canonicalize.c (ELOOP): Likewise.
21913         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21914         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21915         * lib/lchown.c (EOPNOTSUPP): Likewise.
21916         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21917         * lib/savewd.c (ESTALE): Likewise.
21918         * lib/settime.c (ENOSYS): Likewise.
21919         * lib/utimens.c (ENOSYS): Likewise.
21920         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21921         * lib/chdir-safer.c (ELOOP): Likewise.
21922         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21923         * modules/c-stack (Depends-on): Add errno.
21924         * modules/canonicalize (Depends-on): Likewise.
21925         * modules/chdir-safer (Depends-on): Likewise.
21926         * modules/fdopendir (Depends-on): Likewise.
21927         * modules/inet_ntop (Depends-on): Likewise.
21928         * modules/inet_pton (Depends-on): Likewise.
21929         * modules/lchown (Depends-on): Likewise.
21930         * modules/openat (Depends-on): Likewise.
21931         * modules/savewd (Depends-on): Likewise.
21932         * modules/settime (Depends-on): Likewise.
21933         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
21934
21935         fts: avoid leaking fds
21936         * modules/fts (Depends-on): Add cloexec.
21937         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
21938         flag.
21939
21940         fts: make directory fds more robust
21941         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
21942         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
21943
21944         backupfile, chdir-long, fts, savedir: make safer
21945         * lib/backupfile.c (includes): Use "dirent--.h", since
21946         numbered_backup can write to stderr during readdir.
21947         * lib/savedir.c (includes): Likewise.
21948         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
21949         emulation can write to stderr on failure.
21950         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
21951         * lib/getcwd.c: Document why opendir_safer is unused.
21952         * lib/glob.c: Likewise.
21953         * lib/scandir.c: Likewise.
21954         * lib/openat-proc.c: Likewise, for open_safer.
21955         * modules/backupfile (Depends-on): Add dirent-safer.
21956         * modules/savedir (Depends-on): Likewise.
21957         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
21958         * modules/chdir-long (Depends-on): Add openat-safer.
21959
21960         openat-safer: new module
21961         * modules/openat-safer: New file.
21962         * lib/openat-safer.c: Likewise.
21963         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
21964         * lib/fcntl-safer.h (openat_safer): Declare.
21965         * lib/fcntl--.h (openat): Override.
21966         * MODULES.html.sh (File descriptor based I/O): Mention it.
21967         * lib/openat.h: Add double-inclusion guards.
21968         * lib/openat.c (includes): Only include "fcntl-safer.h", not
21969         "fcntl--.h", so we can implement openat.
21970         * modules/openat-safer-tests: New test.
21971         * tests/test-openat-safer.c: New file.
21972
21973         dirent-safer: new module
21974         * modules/dirent-safer: New file.
21975         * lib/dirent--.h: Likewise.
21976         * lib/dirent-safer.h: Likewise.
21977         * lib/opendir-safer.c: Likewise.
21978         * m4/dirent-safer.m4: Likewise.
21979         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21980         * modules/dirent-safer-tests: New test.
21981         * tests/test-dirent-safer.c: New file.
21982         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21983
21984         fdopendir: optimize on mingw
21985         * lib/unistd.in.h (_gl_directory_name): New prototype.
21986         * lib/fchdir.c (_gl_directory_name): Implement it.
21987         (fchdir): Use it to simplify implementation.
21988         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21989         fchdir, when available, to avoid calling [f]chdir().
21990
21991         fdopendir: split into its own module
21992         * lib/openat.c (fdopendir): Move...
21993         * lib/fdopendir.c: ...into new file.
21994         * modules/fdopendir: New module.
21995         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21996         * modules/openat (Depends-on): Add fdopendir.
21997         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21998         fdopendir here.
21999         * modules/savedir (Depends-on): Only need fdopendir, not full
22000         openat.
22001         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
22002         * lib/openat.h (fdopendir): Drop prototype.
22003         * lib/dirent.in.h (fdopendir): Provide prototype.
22004         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
22005         * modules/dirent (Makefile.am): Substitute them.
22006         * MODULES.html.sh (File system functions): Mention it.
22007         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
22008         * modules/fdopendir-tests: New file.
22009         * tests/test-fdopendir.c: Likewise.
22010
22011         fchdir: use more consistent macro convention
22012         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
22013         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
22014         REPLACE_FCHDIR, rather than relying on config.h macros.
22015         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
22016         inside a single make-time REPLACE_FCHDIR block, rather than using
22017         the config.h FCHDIR_REPLACEMENT.
22018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
22019         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
22020         Manage fstat replacement.
22021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
22022         REPLACE_FCHDIR.
22023         * modules/sys_stat (Files): Add m4/unistd_h.m4.
22024         (Makefile.am): Substitute REPLACE_FCHDIR.
22025         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
22026         FCHDIR_REPLACEMENT.
22027         * lib/dup-safer.c (dup_safer): Likewise.
22028         * lib/dup2.c (rpl_dup2): Likewise.
22029         * lib/dup3.c (rpl_dup3): Likewise.
22030         * lib/open.c (rpl_open): Likewise.
22031
22032         fchdir: simplify error handling, and support dup3
22033         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
22034         stdbool, malloc-posix, realloc-posix.
22035         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
22036         (ensure_dirs_slot): Return false on allocation failure.
22037         (rpl_dup2): Delete.
22038         (_gl_register_dup): New function.
22039         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
22040         (_gl_register_fd): Close fd on allocation failure.
22041         * lib/fcntl.in.h (_gl_register_fd): Update signature.
22042         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
22043         prototype.
22044         (rpl_dup2_fchdir): Delete prototype.
22045         * lib/open.c (open): Update caller.
22046         * lib/dup2.c (dup2): Track fchdir metadata.
22047         * lib/dup3.c (dup3): Likewise.
22048         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
22049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
22050
22051 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22052
22053         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
22054         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
22055         don't pass arguments to AC_OUTPUT.
22056
22057 2009-09-02  Bruno Haible  <bruno@clisp.org>
22058
22059         * modules/mkdtemp (License): Relicense under LGPLv2+.
22060         Reported by Paolo Bonzini.
22061
22062 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22063
22064         Replace uses of obsolete autoconf macros in Jim's modules.
22065         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
22066         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
22067         can evoke a warning from autoconf when run with -Wobsolete
22068         enabled.  They were declared obsolete for good reasons (see
22069         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
22070         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
22071         should not continue using the deprecated macros.
22072         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
22073         obsolete Autoconf macros with modern counterparts.
22074         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22075         * m4/dos.m4 (gl_AC_DOS): Likewise.
22076         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
22077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22078         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
22079         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
22080         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
22081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
22083         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
22084         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22085         Likewise.
22086         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22088         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
22089         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
22090         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22091         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22092
22093 2009-09-01  Eric Blake  <ebb9@byu.net>
22094
22095         fchdir: fix off-by-one bug in previous patch
22096         * lib/fchdir.c (rpl_fstat): Use correct bounds.
22097         (_gl_unregister_fd): Delete useless if.
22098
22099 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
22100
22101         maint.mk: sort the list of syntax-check rules
22102         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22103         easier to get a sense of progress when the rules are run sequentially
22104         and take a long time.
22105
22106 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22107
22108         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22109         * modules/netinet_in: Likewise.
22110         * modules/sys_file: Likewise.
22111         * modules/sys_ioctl: Likewise.
22112         * modules/sys_select: Likewise.
22113         * modules/sys_socket: Likewise.
22114         * modules/sys_stat: Likewise.
22115         * modules/sys_time: Likewise.
22116         * modules/sys_times: Likewise.
22117         * modules/sys_utsname: Likewise.
22118         * modules/sys_wait: Likewise.
22119
22120 2009-09-01  Jim Meyering  <meyering@redhat.com>
22121
22122         fts: help ensure that return values are not ignored
22123         * lib/fts_.h (__GNUC_PREREQ): Define.
22124         (__attribute_warn_unused_result__): Define.
22125         (fts_children, fts_close, fts_open, fts_read): Declare with
22126         __attribute_warn_unused_result__.
22127
22128         fts: fts_close now fails also when closing a dir file descriptor fails
22129         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22130         and propagate to caller, along with errno.
22131
22132         announce-gen: correct formatting in --help output
22133         * build-aux/announce-gen (usage): Move the one-line description in
22134         --help output "up", to where it belongs, just after Usage:.
22135
22136 2009-08-31  Eric Blake  <ebb9@byu.net>
22137
22138         fchdir: port to mingw
22139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22140         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22141         opened, then use a substitute.
22142         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22143         replacement.
22144         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22145         (_gl_register_fd): No need to check stat if open already filters
22146         all directories.
22147         (fchdir): Fix error condition to match POSIX.
22148         * modules/fchdir (Depends-on): Add sys_stat.
22149         * doc/posix-functions/open.texi (open): Document the limitation.
22150         * modules/fchdir-tests: New file.
22151         * tests/test-fchdir.c: Likewise.
22152
22153         canonicalize: allow cross-testing from cygwin to mingw
22154         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22155         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22156         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22157         Likewise.
22158         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22159         target does not support symlinks.
22160         * tests/test-canonicalize-lgpl.sh: Likewise.
22161
22162         chown: avoid compilation warning on mingw
22163         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22164         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22165         mingw.
22166         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22167         * modules/chown (Depends-on): Add errno.
22168
22169 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22170
22171         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22172         command.
22173
22174 2009-08-31  Jim Meyering  <meyering@redhat.com>
22175
22176         canonicalize: remove useless initialization
22177         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
22178         initialization of local, "end".
22179
22180 2009-08-30  Bruno Haible  <bruno@clisp.org>
22181
22182         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
22183         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
22184         ENOSYS.
22185
22186 2009-08-30  Bruno Haible  <bruno@clisp.org>
22187
22188         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
22189         /usr/xpg4/bin/tr when it exists.
22190         * tests/test-pipe-filter-gi1.sh: Likewise.
22191
22192 2009-08-30  Bruno Haible  <bruno@clisp.org>
22193
22194         Work around deficient /usr/bin/id program on Solaris.
22195         * tests/test-file-has-acl.sh (ID): New variable.
22196         * tests/test-set-mode-acl.sh (ID): Likewise.
22197         * tests/test-copy-acl.sh (ID): Likewise.
22198         * tests/test-copy-file.sh (ID): Likewise.
22199
22200 2009-08-30  Bruno Haible  <bruno@clisp.org>
22201
22202         New module 'xstriconveh'.
22203         * lib/xstriconveh.h: New file.
22204         * lib/xstriconveh.c: New file.
22205         * modules/xstriconveh: New file.
22206
22207 2009-08-30  Bruno Haible  <bruno@clisp.org>
22208
22209         Make it easier to use mem_cd_iconveh.
22210         * lib/striconveh.h (iconveh_t): New type.
22211         (iconveh_open, iconveh_close): New declarations.
22212         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22213         with a single 'const iconveh_t *' argument.
22214         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
22215         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22216         with a single 'const iconveh_t *' argument.
22217         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
22218         * tests/test-striconveh.c (main): Update.
22219         * NEWS: Mention the change.
22220
22221 2009-08-30  Bruno Haible  <bruno@clisp.org>
22222
22223         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
22224         problem.
22225
22226 2009-08-30  Bruno Haible  <bruno@clisp.org>
22227
22228         Work around iconv_open problem on Solaris.
22229         * lib/iconv_open-solaris.gperf: New file.
22230         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
22231         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
22232         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
22233         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
22234         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
22235         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
22236
22237 2009-08-29  Jim Meyering  <meyering@redhat.com>
22238
22239         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
22240         * top/maint.mk (cvs-check): Remove target; it was just an alias
22241         to the better-named vc-diff-check.
22242         (maintainer-distcheck): Remove rule.  It was used only from
22243         the (alpha/beta/major) target, and all of its commands but one
22244         were coreutils-specific.
22245         (vc-dist): Remove rule.
22246         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
22247         Run vc-diff-check, not vc-dist.
22248         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
22249
22250 2009-08-27  Bruno Haible  <bruno@clisp.org>
22251
22252         * tests/test-bitrotate.c (main): Remove test that uses a shift count
22253         of 0.
22254
22255 2009-08-27  Bruno Haible  <bruno@clisp.org>
22256
22257         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
22258         compilers.
22259         * doc/func.texi: Document the SunPRO C bug.
22260
22261 2009-08-27  Bruno Haible  <bruno@clisp.org>
22262
22263         Fix link error on Solaris.
22264         * tests/test-parse-duration.c (xstrdup): Remove function.
22265
22266 2009-08-26  Pádraig Brady  <P@draigbrady.com>
22267
22268         ignore-value: handle pointer types, too
22269         * lib/ignore-value.h (__attribute__): Remove definition.
22270         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
22271         of a more concise and more-often effective "(void) i" statement.
22272         (ignore_ptr): New function to suppress warnings from functions that
22273         return pointers, and to make it explicit that one function doesn't
22274         handle all cases.
22275
22276 2009-08-25  Bruno Haible  <bruno@clisp.org>
22277
22278         dup2: work around a Linux bug.
22279         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
22280         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
22281         * doc/posix-functions/dup2.texi: Mention the Linux bug.
22282         Reported by Simon Josefsson.
22283
22284 2009-08-25  Jim Meyering  <meyering@redhat.com>
22285
22286         libguestfs uses gnulib
22287         * users.txt: Add libguestfs.
22288
22289 2009-08-24  Eric Blake  <ebb9@byu.net>
22290
22291         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
22292         * lib/pipe2.c (includes): Add binary-io.h.
22293         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
22294
22295 2009-08-24  Bruno Haible  <bruno@clisp.org>
22296
22297         Tolerate declared but missing accept4 syscall.
22298         * lib/accept4.c (accept4): Invoke original accept4 function first, if
22299         available.
22300         * lib/sys_socket.in.h (accept4): If the function is already present,
22301         override it.
22302         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
22303         * modules/accept4 (Makefile.am): Compile accept4.c always.
22304         Reported by Paolo Bonzini and Eric Blake.
22305
22306 2009-08-23  Bruno Haible  <bruno@clisp.org>
22307
22308         New module 'accept4'.
22309         * lib/sys_socket.in.h (accept4): New declaration.
22310         * lib/accept4.c: New file.
22311         * m4/accept4.m4: New file.
22312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22313         GNULIB_ACCEPT4, HAVE_ACCEPT4.
22314         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
22315         HAVE_ACCEPT4.
22316         * modules/accept4: New file.
22317         * doc/glibc-functions/accept4.texi: Mention the new module.
22318
22319 2009-08-24  Jim Meyering  <meyering@redhat.com>
22320
22321         progname: also set global program_invocation_name, when possible
22322         Before this change, a libtool-enabled program that calls glibc's
22323         error function would report the program name as
22324         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
22325         * modules/progname (configure.ac): Check for a declaration of
22326         program_invocation_name.
22327         * lib/progname.c:  Include <errno.h>.
22328         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
22329         Set program_invocation_name.
22330
22331 2009-08-23  Bruno Haible  <bruno@clisp.org>
22332
22333         * lib/dup3.c: Include <string.h>.
22334
22335 2009-08-23  Bruno Haible  <bruno@clisp.org>
22336
22337         * lib/dup3.c (dup3): Test only once whether the system actually exists.
22338         * lib/pipe2.c (pipe2): Likewise.
22339         Suggested by Eric Blake.
22340
22341 2009-08-23  Bruno Haible  <bruno@clisp.org>
22342
22343         Tolerate declared but missing dup3 syscall.
22344         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
22345         * lib/unistd.in.h (dup3): If the function is already present,
22346         override it.
22347         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
22348         * modules/dup3 (Makefile.am): Compile dup3.c always.
22349         Reported by Paolo Bonzini.
22350
22351 2009-08-23  Bruno Haible  <bruno@clisp.org>
22352
22353         Tolerate declared but missing pipe2 syscall.
22354         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
22355         available.
22356         * lib/unistd.in.h (pipe2): If the function is already present,
22357         override it.
22358         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
22359         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
22360         Reported by Paolo Bonzini.
22361
22362 2009-08-23  Bruno Haible  <bruno@clisp.org>
22363
22364         * lib/pipe2.c (pipe2): Move #ifs inside function.
22365
22366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22367
22368         quotearg: document limitations of quote_these_too
22369         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
22370         those limitations are created.
22371         * lib/quotearg.h (set_char_quoting): Document that digits and
22372         letters that are special after backslash are not permitted.
22373         (quotearg_char): Cross-reference set_char_quoting documentation.
22374
22375 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
22376
22377         quotearg: implement custom_quoting_style
22378         * lib/quotearg.c: (struct quoting_options): Add left_quote and
22379         right_quote fields.
22380         (set_custom_quoting): New public function.
22381         (quotearg_buffer_restyled): Add left_quote and right_quote
22382         arguments, handle them very much like locale quoting, and update
22383         all uses.
22384         (quotearg_n_custom): New public function.
22385         (quotearg_n_custom_mem): New public function.
22386         (quotearg_custom): New public function.
22387         (quotearg_custom_mem): New public function.
22388         * lib/quotearg.h: Prototype and document new public functions.
22389         (enum quoting_style): For escape_quoting_style and
22390         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
22391         ignored even though they're otherwise like c_quoting_style.
22392         Add custom_quoting_style member and document with comparison to
22393         clocale_quoting_style.
22394         * tests/test-quotearg.c (custom_quotes): New array.
22395         (custom_results): New array.
22396         (main): Extend to test custom quoting.
22397
22398 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22399
22400         quotearg: fix right quote escaping when it's in quote_these_too
22401         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
22402         quote, be sure to prepend only one backslash.
22403         * tests/test-quotearg.c (use_quote_double_quotes): New function.
22404         (main): Test it.
22405
22406 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22407
22408         quotearg-tests: test escaping of embedded locale quotes
22409         * tests/test-quotearg.c (struct result_strings): Add member for
22410         new input.
22411         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
22412         (inputs): Add new input.
22413         (results_g): Add expected results.
22414         (flag_results): Likewise.
22415         (locale_results): Likewise.
22416         (compare_strings): Check those.
22417
22418 2009-08-23  Bruno Haible  <bruno@clisp.org>
22419
22420         Tests for module 'dup3'.
22421         * modules/dup3-tests: New file.
22422         * tests/test-dup3.c: New file.
22423
22424         New module 'dup3'.
22425         * lib/unistd.in.h (dup3): New declaration.
22426         * lib/dup3.c: New file.
22427         * m4/dup3.m4: New file.
22428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
22429         HAVE_DUP3.
22430         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
22431         * modules/dup3: New file.
22432         * doc/glibc-functions/dup3.texi: Mention the new module.
22433
22434 2009-08-23  Bruno Haible  <bruno@clisp.org>
22435
22436         Tweak the dup2 test.
22437         * tests/test-dup2.c (main): Create the test file empty. Verify that an
22438         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
22439         the test file is still empty. Fix argument order of lseek.
22440
22441 2009-08-23  Bruno Haible  <bruno@clisp.org>
22442
22443         Avoid test link errors when the modules getopt-gnu, gettext are used.
22444         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
22445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22446
22447 2009-08-23  Bruno Haible  <bruno@clisp.org>
22448
22449         Fix getdtablesize() on mingw.
22450         * lib/getdtablesize.c (getdtablesize): Implement differently.
22451         * lib/unistd.in.h (getdtablesize): Improve comment.
22452
22453 2009-08-23  Bruno Haible  <bruno@clisp.org>
22454
22455         New module 'mkostemp'.
22456         Based on Ulrich Drepper's 2007-08-10 change in glibc.
22457         * lib/stdlib.in.h (mksotemp): New declaration.
22458         * lib/mkostemp.c: New file, from glibc with modifications.
22459         * lib/tempname.h (GT_FILE): Remove outdated comment.
22460         (gen_tempname): Add flags argument.
22461         * lib/tempname.c (__GT_BIGFILE): Remove macro.
22462         (__GT_FILE): Map to 1.
22463         (small_open, large_open): Remove macros.
22464         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
22465         * lib/mkstemp.c (mkstemp): Update.
22466         * lib/mkdtemp.c (mkdtemp): Likewise.
22467         * m4/mkostemp.m4: New file.
22468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
22469         HAVE_MKOSTEMP.
22470         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
22471         HAVE_MKOSTEMP.
22472         * modules/mkostemp: New file, based on modules/mkstemp.
22473         * doc/glibc-functions/mkostemp.texi: Mention the new module.
22474         * NEWS: Mention the change.
22475
22476 2009-08-23  Bruno Haible  <bruno@clisp.org>
22477
22478         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
22479         Reported by Eric Blake.
22480
22481 2009-08-23  Bruno Haible  <bruno@clisp.org>
22482
22483         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
22484         Reported by Eric Blake.
22485
22486 2009-08-23  Bruno Haible  <bruno@clisp.org>
22487
22488         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
22489         * modules/pipe2 (Depends-on): Likewise.
22490
22491 2009-08-23  Eric Blake  <ebb9@byu.net>
22492
22493         fcntl-h: add O_TTY_INIT support
22494         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
22495         * tests/test-fcntl-h.c (o): Test it.
22496         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22497
22498         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22499         * modules/fcntl: Move <fcntl.h> header replacement...
22500         * modules/fcntl-h: ...to new name, so as not to collide with
22501         like-named function.
22502         * tests/test-fcntl.c: Rename...
22503         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22504         * modules/fcntl-tests: Rename...
22505         * modules/fcntl-h-tests: ...to this.  Update test file name.
22506         * modules/chdir-long (Depends-on): Update clients.
22507         * modules/chdir-safer (Depends-on): Likewise.
22508         * modules/fcntl-safer (Depends-on): Likewise.
22509         * modules/fts (Depends-on): Likewise.
22510         * modules/mkancesdirs (Depends-on): Likewise.
22511         * modules/mkdir-p (Depends-on): Likewise.
22512         * modules/open (Depends-on): Likewise.
22513         * modules/savewd (Depends-on): Likewise.
22514         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22515         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22516
22517 2009-08-22  Bruno Haible  <bruno@clisp.org>
22518
22519         * modules/binary-io (License): Relicense under LGPL.
22520         * modules/pipe2 (License): Likewise.
22521
22522 2009-08-22  Bruno Haible  <bruno@clisp.org>
22523
22524         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22525         return value.
22526         * lib/pipe-filter-gi.c (filter_init): Likewise.
22527         Reported by Eric Blake.
22528
22529 2009-08-22  Bruno Haible  <bruno@clisp.org>
22530
22531         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22532         * modules/pipe (Depends-on): Add pipe2.
22533
22534 2009-08-22  Bruno Haible  <bruno@clisp.org>
22535
22536         Tests for module 'pipe2'.
22537         * modules/pipe2-tests: New file.
22538         * tests/test-pipe2.c: New file.
22539
22540         New module 'pipe2'.
22541         * lib/unistd.in.h (pipe2): New declaration.
22542         * lib/pipe2.c: New file.
22543         * m4/pipe2.m4: New file.
22544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22545         HAVE_PIPE2.
22546         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22547         * modules/pipe2: New file.
22548         * doc/glibc-functions/pipe2.texi: Mention the new module.
22549
22550 2009-08-22  Bruno Haible  <bruno@clisp.org>
22551
22552         Reference some new glibc functions.
22553         * doc/glibc-functions/accept4.texi: New file.
22554         * doc/glibc-functions/dup3.texi: New file.
22555         * doc/glibc-functions/mkostemp.texi: New file.
22556         * doc/glibc-functions/pipe2.texi: New file.
22557         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22558         (Glibc sys/socket.h): Refer to accept4.
22559         (Glibc unistd.h): Refer to dup3, pipe2.
22560         Reported by Eric Blake.
22561
22562 2009-08-22  Jim Meyering  <meyering@redhat.com>
22563             Bruno Haible  <bruno@clisp.org>
22564
22565         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22566         This makes it so packages using automake-1.11's silent-rules option
22567         can print e.g., a single "GEN    configmake.h" line, rather than
22568         the 30+ statements that perform the job.  If you want to see the
22569         actual commands, you can still run "make V=1".
22570         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22571         so that make output is abbreviated when those variables are defined
22572         appropriately.
22573         * modules/argz: Likewise.
22574         * modules/arpa_inet: Likewise.
22575         * modules/byteswap: Likewise.
22576         * modules/configmake: Likewise.
22577         * modules/dirent: Likewise.
22578         * modules/errno: Likewise.
22579         * modules/fcntl: Likewise.
22580         * modules/float: Likewise.
22581         * modules/fnmatch: Likewise.
22582         * modules/getopt-posix: Likewise.
22583         * modules/glob: Likewise.
22584         * modules/iconv_open: Likewise.
22585         * modules/inttypes: Likewise.
22586         * modules/localcharset: Likewise.
22587         * modules/locale: Likewise.
22588         * modules/math: Likewise.
22589         * modules/netdb: Likewise.
22590         * modules/netinet_in: Likewise.
22591         * modules/poll: Likewise.
22592         * modules/posix_spawnp-tests: Likewise.
22593         * modules/sched: Likewise.
22594         * modules/search: Likewise.
22595         * modules/selinux-h: Likewise.
22596         * modules/signal: Likewise.
22597         * modules/spawn: Likewise.
22598         * modules/stdarg: Likewise.
22599         * modules/stdbool: Likewise.
22600         * modules/stddef: Likewise.
22601         * modules/stdint: Likewise.
22602         * modules/stdio: Likewise.
22603         * modules/stdlib: Likewise.
22604         * modules/string: Likewise.
22605         * modules/strings: Likewise.
22606         * modules/sys_file: Likewise.
22607         * modules/sys_ioctl: Likewise.
22608         * modules/sys_select: Likewise.
22609         * modules/sys_socket: Likewise.
22610         * modules/sys_stat: Likewise.
22611         * modules/sys_time: Likewise.
22612         * modules/sys_times: Likewise.
22613         * modules/sys_utsname: Likewise.
22614         * modules/sys_wait: Likewise.
22615         * modules/sysexits: Likewise.
22616         * modules/time: Likewise.
22617         * modules/unistd: Likewise.
22618         * modules/wchar: Likewise.
22619         * modules/wctype: Likewise.
22620
22621 2009-08-22  Jim Meyering  <meyering@redhat.com>
22622
22623         announce-gen: detect write failure
22624         * build-aux/announce-gen: Add Coda at end.
22625         Remove equivalent-but-more-verbose block at top.
22626
22627 2009-08-19  Akim Demaille  <demaille@gostai.com>
22628
22629         bootstrap: --help to stdout.
22630         * bootstrap (usage): Don't send --help to stderr.
22631         Use a here doc instead of a long string.
22632
22633 2009-08-21  Eric Blake  <ebb9@byu.net>
22634
22635         test-popen-safer: split from test-popen
22636         * tests/test-popen.c (main): Move...
22637         * tests/test-popen.h: ...into new file.
22638         * tests/test-popen-safer2.c: New file.
22639         * modules/popen-tests (Files): Add test-popen.h.
22640         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22641         Suggested by Bruno Haible.
22642
22643         test-fcntl-safer: split from test-open
22644         * tests/test-open.c (main): Move...
22645         * tests/test-open.h: ...into new file.
22646         * tests/test-fcntl-safer.c: New file.
22647         * modules/open-tests (Files): Add test-open.h.
22648         * modules/fcntl-safer-tests: New file.
22649         Suggested by Bruno Haible.
22650
22651         test-fopen-safer: split from test-fopen
22652         * tests/test-fopen.c (main): Move...
22653         * tests/test-fopen.h: ...into new file.
22654         * tests/test-fopen-safer.c: New file.
22655         * modules/fopen-tests (Files): Add test-fopen.h.
22656         * modules/fopen-safer-tests: New file.
22657         Suggested by Bruno Haible.
22658
22659 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22660
22661         popen-safer: test O_CLOEXEC at run-time.
22662         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22663
22664 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22665
22666         fcntl: move more flags to the header
22667         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22668         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22669         * lib/fcntl.in.h: Do both things here.
22670
22671 2009-08-21  Jim Meyering  <meyering@redhat.com>
22672
22673         consistently remove $@-t before redirecting to it
22674         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22675         * modules/alloca-opt: Likewise.
22676         * modules/byteswap: Likewise.
22677         * modules/fnmatch: Likewise.
22678         * modules/getopt-posix: Likewise.
22679         * modules/glob: Likewise.
22680         * modules/poll: Likewise.
22681         * modules/posix_spawnp-tests: Likewise.
22682         * modules/sys_socket: Likewise.
22683         * modules/sysexits: Likewise.
22684
22685 2009-08-21  Eric Blake  <ebb9@byu.net>
22686
22687         popen: simplify access to original popen
22688         * lib/popen.c (rpl_popen): No need to worry about popen being a
22689         macro.
22690         Reported by Bruno Haible.
22691
22692 2009-08-20  Eric Blake  <ebb9@byu.net>
22693
22694         build: avoid some compiler warnings
22695         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22696         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22697         type.
22698         (new_exclude_segment, excluded_file_pattern_p)
22699         (excluded_file_name_p): Reduce scope.
22700         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22701         old-style declaration.
22702
22703 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22704
22705         * tests/test-exclude1.sh: Handle Windows EOL.
22706         * tests/test-exclude2.sh: Likewise.
22707         * tests/test-exclude3.sh: Likewise.
22708         * tests/test-exclude4.sh: Likewise.
22709         * tests/test-exclude5.sh: Likewise.
22710         * tests/test-exclude6.sh: Likewise.
22711         * tests/test-exclude7.sh: Likewise.
22712
22713 2009-08-19  Akim Demaille  <demaille@gostai.com>
22714
22715         bootstrap: find sha1sum when named gsha1sum.
22716         * bootstrap (find_tool): New.
22717         ($SHA1SUM): New.
22718         Use it.
22719
22720 2009-08-20  Jim Meyering  <meyering@redhat.com>
22721
22722         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22723         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22724         expression that converts "." in a file name to "\." in the resulting
22725         regexp.  Start with a dummy statement, so that prior shell variable
22726         definitions are expanded portably.  Reported by Simon Josefsson.
22727
22728 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22729
22730         Fix polling for writeability of a screen buffer.
22731         * lib/poll.c: Distinguish input and screen buffers for the
22732         Win32 implementation.
22733         * lib/select.c: Likewise.
22734
22735 2009-08-19  Eric Blake  <ebb9@byu.net>
22736
22737         popen-safer: prevent popen from clobbering std descriptors
22738         * modules/popen-safer: New file.
22739         * lib/popen-safer.c: Likewise.
22740         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22741         * lib/stdio--.h (popen): Provide override.
22742         * lib/stdio-safer.h (popen_safer): Provide declaration.
22743         * tests/test-popen.c (includes): Partially test this.
22744         * modules/popen-safer-tests: New file, for more tests.
22745         * tests/test-popen-safer.c: Likewise.
22746         * MODULES.html.sh (file stream based Input/Output): Mention it.
22747
22748         tests: test some of the *-safer modules
22749         * modules/fopen-safer (Depends-on): Add fopen.
22750         * modules/fcntl-safer (Depends-on): Add fcntl.
22751         * modules/stdlib-safer (Depends-on): Add stdlib.
22752         (configure.ac): Set indicator.
22753         * modules/unistd-safer (configure.ac): Likewise.
22754         * modules/tmpfile-safer (configure.ac): Likewise.
22755         (Depends-on): Add tmpfile.
22756         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22757         active.
22758         * tests/test-fopen.c (includes): Test safer versions when they are
22759         in use.
22760         * tests/test-open.c (includes): Likewise.
22761
22762         popen: fix cygwin 1.5 bug when stdin closed
22763         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22764         * modules/popen: New file.
22765         * modules/popen-tests: Likewise.
22766         * tests/test-popen.c: Likewise.
22767         * m4/popen.m4: Likewise.
22768         * lib/popen.c: Likewise.
22769         * lib/stdio.in.h (popen): New declaration.
22770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22771         * modules/stdio (Makefile.am): Likewise.
22772         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22773
22774 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22775
22776         maint.mk: give full control over update-copyright exclusions
22777         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22778         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22779         (update-copyright): Don't force inclusion of top-level
22780         ChangeLog.  Don't force exclusion of all COPYING files, but make
22781         them the default exclusion instead.
22782
22783 2009-08-16  Bruno Haible  <bruno@clisp.org>
22784
22785         Fix test failures on Solaris 10.
22786         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22787         tests when Solaris iconv() is used.
22788         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22789         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22790         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22791         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22792         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22793
22794 2009-08-16  Bruno Haible  <bruno@clisp.org>
22795
22796         Fix test failures on Solaris 10.
22797         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22798         'tr' program and pass it as first argument.
22799         * tests/test-pipe-filter-gi1.sh: Likewise.
22800         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22801         program as first argument.
22802         * tests/test-pipe-filter-gi1.c (main): Likewise.
22803
22804 2009-08-16  Eric Blake  <ebb9@byu.net>
22805
22806         fpurge: fix previous commits
22807         * modules/fpurge (Makefile.am): Make replacement conditional,
22808         partially reverting 2007-04-29 change; missed in previous
22809         attempt.
22810         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22811         is missing.
22812
22813 2009-08-16  Bruno Haible  <bruno@clisp.org>
22814
22815         Clarify fpurge's effect on the file position.
22816         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22817         * tests/test-fpurge.c (main): Make a second pass for checking the file
22818         position.
22819
22820 2009-08-16  Bruno Haible  <bruno@clisp.org>
22821
22822         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22823         declaration of fpurge is missing.
22824         * tests/test-fpurge.c (main): Check that the file has not more contents
22825         than expected. Close the file before removing it.
22826
22827 2009-08-15  Eric Blake  <ebb9@byu.net>
22828
22829         fpurge: don't wrap working cygwin implementation
22830         * lib/fpurge.c (fpurge): Fix comment typo.
22831         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22832         1.7 to avoid replacement.
22833         * tests/test-fpurge.c (main): Enhance test.
22834
22835 2009-08-15  Eric Blake  <ebb9@byu.net>
22836         and Jim Meyering  <meyering@redhat.com>
22837
22838         test-update-copyright: skip if perl is insufficient
22839         * tests/test-update-copyright.sh: Failure to run maintainer tool
22840         should not cause testsuite failure on cygwin 1.5.
22841
22842 2009-08-14  Eric Blake  <ebb9@byu.net>
22843
22844         doc: mention more functions added in cygwin 1.7.0
22845         * doc/posix-headers/limits.texi (limits.h): Update for recent
22846         cygwin additions.
22847         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22848         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22849         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22850         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22851         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22852
22853 2009-08-14  Eric Blake  <ebb9@byu.net>
22854
22855         maint.mk: simplify update-copyright rule
22856         * top/maint.mk (update-copyright-local): Delete, and document how
22857         to do it in cfg.mk instead.
22858         (update-copyright-exclude-regexp): Delete, and document how to do
22859         it in .x-update-copyright instead.
22860         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22861         exclude ChangeLog.
22862
22863 2009-08-14  Bruno Haible  <bruno@clisp.org>
22864
22865         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22866
22867 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22868
22869         maint.mk: support update-copyright-env
22870         * top/maint.mk (update-copyright-env): Define place-holder.
22871         (update-copyright): Expand $(update-copyright-env) before
22872         invoking update-copyright.
22873
22874 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22875
22876         update-copyright: implement forced reformatting
22877         * build-aux/update-copyright: Implement and document
22878         UPDATE_COPYRIGHT_FORCE.
22879         * tests/test-update-copyright.sh: Test it.
22880
22881 2009-08-14  Eric Blake  <ebb9@byu.net>
22882         and Bruno Haible  <bruno@clisp.org>
22883
22884         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22885         * tests/test-locale.c: Revert previous patch related to NULL.
22886         * tests/test-stdio.c: Likewise.
22887         * tests/test-stdlib.c: Likewise.
22888         * tests/test-string.c: Likewise.
22889         * tests/test-unistd.c: Likewise.
22890         * modules/time-tests (Depends-on): Add verify.
22891         * modules/wchar-tests (Depends-on): Likewise.
22892         * tests/test-time.c: Test for NULL compliance.
22893         * tests/test-wchar.c: Likewise.
22894         * modules/locale (Depends-on): Add stddef.
22895         * modules/stdio (Depends-on): Likewise.
22896         * modules/stdlib (Depends-on): Likewise.
22897         * modules/string (Depends-on): Likewise.
22898         * modules/time (Depends-on): Likewise.
22899         * modules/unistd (Depends-on): Likewise.
22900         * modules/wchar (Depends-on): Likewise.
22901         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22902         * lib/stdlib.in.h (includes): Likewise.
22903         * lib/string.in.h (includes): Likewise.
22904         * lib/time.in.h (includes): Likewise.
22905         * lib/unistd.in.h (includes): Likewise.
22906         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22907         replaced.
22908         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22909         * m4/stddef_h.m4: New file.
22910         * modules/stddef: Likewise.
22911         * lib/stddef.in.h: Likewise.
22912         * modules/stddef-tests: Likewise.
22913         * tests/test-stddef.c: Likewise.
22914         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22915         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22916         * doc/posix-headers/locale.texi (locale.h): Likewise.
22917         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22918         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22919         * doc/posix-headers/string.texi (string.h): Likewise.
22920         * doc/posix-headers/time.texi (time.h): Likewise.
22921         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22922         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22923
22924 2009-08-14  Eric Blake  <ebb9@byu.net>
22925
22926         doc: improve git diff of texinfo files
22927         * .gitattributes: Add rule for *.texi files, with hint on how to
22928         use it.
22929         Copied from m4, and based on a report by Bruno Haible.
22930
22931 2009-08-14  Bruno Haible  <bruno@clisp.org>
22932
22933         Disable multithread support by default on Cygwin 1.5.x for real.
22934         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
22935
22936 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22937
22938         update-copyright: much ado about intervals
22939         * build-aux/update-copyright: Implement and document
22940         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
22941         of copyright year intervals.
22942         Also, document UPDATE_COPYRIGHT_YEAR.
22943         * tests/test-update-copyright.sh: Test it.
22944
22945         update-copyright: convert 2-digit to 4-digit years
22946         * build-aux/update-copyright: Implement and document.
22947         * tests/test-update-copyright.sh: Update.
22948
22949 2009-08-14  Jim Meyering  <meyering@redhat.com>
22950
22951         test-exclude: avoid coreutils "make check" failure
22952         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
22953         just as in test-argmatch.c.
22954
22955 2009-08-13  Eric Blake  <ebb9@byu.net>
22956
22957         test-dup2: fix bad assumption
22958         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
22959         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
22960
22961         test-version-etc: fix CRLF portability issue
22962         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
22963         recognize \r.
22964         * tests/test-argp-version-etc-1.sh: Likewise.
22965
22966         getopt: update client modules
22967         * modules/argp (Depends-on): Use getopt-gnu.
22968         * modules/git-merge-changelog (Depends-on): Likewise.
22969         * modules/long-options (Depends-on): Likewise.
22970         * modules/xstrtol (Depends-on): Likewise.
22971
22972 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22973
22974         * tests/test-version-etc.sh: Don't fail on different
22975         project/version.  Don't fail on CRLF differences.  Rewrite to use
22976         multiple -e instead of multiple sed forks, suggested by Eric Blake
22977         <ebb9@byu.net>.
22978         * tests/test-argp-version-etc-1.sh: Likewise.
22979
22980 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22981
22982         * tests/test-version-etc.sh: Don't fail on different
22983         project/version.
22984
22985 2009-08-12  Bruno Haible  <bruno@clisp.org>
22986
22987         Tests for modules 'getopt-posix', 'getopt-gnu'.
22988         * modules/getopt-posix-tests: New file.
22989         * tests/test-getopt.c: New file.
22990         * tests/test-getopt.h: New file.
22991         * tests/test-getopt_long.h: New file.
22992
22993         New modules 'getopt-posix', 'getopt-gnu'.
22994         * modules/getopt-gnu: New file, renamed from modules/getopt.
22995         * modules/getopt-posix: New file.
22996         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22997         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22998         (gl_GETOPT): Remove macro.
22999         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
23000         Disable the test against BSD systems that declare optreset. Test
23001         against mingw bug. Test against lack of support of optional arguments
23002         on many platforms.
23003         * doc/glibc-headers/getopt.texi: Update module name and list of
23004         relevant platforms.
23005         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
23006         'getopt-gnu' and more portability problems.
23007         * NEWS: Mention the changes.
23008
23009 2009-08-12  Bruno Haible  <bruno@clisp.org>
23010
23011         Ensure that optarg etc. get declared by <unistd.h>.
23012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
23013         AC_USE_SYSTEM_EXTENSIONS.
23014         * modules/getopt (Depends-on): Add 'extensions'.
23015
23016 2009-08-12  Bruno Haible  <bruno@clisp.org>
23017
23018         Avoid test link errors.
23019         * modules/pipe-filter-ii-tests (Makefile.am): Define
23020         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
23021         * modules/pipe-filter-gi-tests (Makefile.am): Define
23022         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
23023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23024
23025 2009-08-12  Bruno Haible  <bruno@clisp.org>
23026
23027         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
23028         gl_GETOPT_SUBSTITUTE before.
23029         (gl_GETOPT): Use it.
23030         * m4/argp.m4 (gl_ARGP): Update.
23031         Reported by Sergey Poznyakoff.
23032
23033         * m4/getopt.m4: Reorder macros.
23034         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
23035         (gl_GETOPT_SUBSTITUTE): Remove macro.
23036
23037 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23038
23039         Minor improvement in gitlog-to-changelog
23040
23041         * build-aux/gitlog-to-changelog: New option `--format' makes
23042         output format string configurable.
23043
23044 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23045
23046         Optimize exclude: use hash tables for non-wildcard patterns.
23047
23048         * lib/exclude.c: Include hash.h and mbuiter.h
23049         (struct exclude_pattern, exclude_segment): New data types.
23050         (struct exclude): Rewrite.
23051         (fnmatch_pattern_has_wildcards): New function.
23052         (new_exclude_segment, free_exclude_segment): New functions.
23053         (excluded_file_pattern_p, excluded_file_name_p): New functions.
23054         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
23055         * lib/exclude.h (is_fnmatch_pattern): New prototype.
23056         * modules/exclude: Depend on hash and mbuiter.
23057
23058         * modules/exclude-tests: New file.
23059         * tests/test-exclude.c: New file.
23060         * tests/test-exclude1.sh: New file.
23061         * tests/test-exclude2.sh: New file.
23062         * tests/test-exclude3.sh: New file.
23063         * tests/test-exclude4.sh: New file.
23064         * tests/test-exclude5.sh: New file.
23065         * tests/test-exclude6.sh: New file.
23066         * tests/test-exclude7.sh: New file.
23067
23068 2009-08-12  Bruno Haible  <bruno@clisp.org>
23069
23070         Ensure that getopt() gets declared by <unistd.h>.
23071         * lib/unistd.in.h: Conditionally include getopt.h.
23072         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
23073         Set GNULIB_UNISTD_H_GETOPT.
23074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23075         GNULIB_UNISTD_H_GETOPT.
23076         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
23077
23078 2009-08-12  Bruno Haible  <bruno@clisp.org>
23079
23080         Clarify logic.
23081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
23082         gl_replace_getopt instead of GETOPT_H.
23083
23084 2009-08-12  Bruno Haible  <bruno@clisp.org>
23085
23086         * m4/getopt.m4: Add comments.
23087
23088 2009-08-12  Bruno Haible  <bruno@clisp.org>
23089
23090         Disable multithread support by default on Cygwin 1.5.x.
23091         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
23092         set gl_use_threads=no if not specified otherwise.
23093
23094 2009-08-11  Bruno Haible  <bruno@clisp.org>
23095
23096         Avoid compilation error on NetBSD 5.0.
23097         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
23098         * tests/test-stdio.c: Likewise.
23099         * tests/test-stdlib.c: Likewise.
23100         * tests/test-string.c: Likewise.
23101         * tests/test-unistd.c: Likewise.
23102         Reported by Greg Troxel <gdt@ir.bbn.com>
23103         at <https://savannah.gnu.org/support/?106973>.
23104
23105 2009-08-11  Bruno Haible  <bruno@clisp.org>
23106
23107         * modules/dup2-tests (Depends-on): Remove close.
23108
23109         Undo 2009-07-19 commit.
23110         * modules/acl-tests (Depends-on): Remove close.
23111         * modules/binary-io-tests (Depends-on): Likewise.
23112         * modules/closein-tests (Depends-on): Likewise.
23113         * modules/flock-tests (Depends-on): Likewise.
23114         * modules/fsync-tests (Depends-on): Likewise.
23115         * modules/lseek-tests (Depends-on): Likewise.
23116         * modules/pipe-tests (Depends-on): Likewise.
23117         * modules/posix_spawn-tests (Depends-on): Likewise.
23118         * modules/posix_spawnp-tests (Depends-on): Likewise.
23119         * modules/stat-time-tests (Depends-on): Likewise.
23120         * modules/yesno-tests (Depends-on): Likewise.
23121
23122 2009-08-10  Bruno Haible  <bruno@clisp.org>
23123
23124         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23125
23126 2009-08-10  Bruno Haible  <bruno@clisp.org>
23127
23128         Fix a gcc warning.
23129         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23130
23131 2009-08-10  Bruno Haible  <bruno@clisp.org>
23132
23133         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23134         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23135         not only the first time.
23136         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23137         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23138         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23139         is 1, not only the the first time.
23140
23141 2009-08-10  Bruno Haible  <bruno@clisp.org>
23142
23143         Make it possible to use module 'gethostname' without module 'close'.
23144         * lib/unistd.in.h (close): Evoke a link error only if
23145         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23147         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23148         * modules/unistd (Makefile.am): Substitute
23149         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23150         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23151         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23153         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23154         * modules/sys_ioctl (Makefile.am): Substitute
23155         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23156         * modules/socket (configure.ac): On native Windows, set
23157         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23158         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23159         Reported by Sam Steingold <sds@gnu.org>.
23160
23161 2009-08-10  Bruno Haible  <bruno@clisp.org>
23162
23163         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23164         * modules/ioctl (configure.ac): Likewise.
23165
23166 2009-08-10  Bruno Haible  <bruno@clisp.org>
23167
23168         Avoid collision between gnulib wrapper and libintl wrapper.
23169         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23170         already defined in intl/printf.c.
23171         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23172         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23173
23174 2009-08-09  Bruno Haible  <bruno@clisp.org>
23175
23176         Make <sys/select.h> really self-contained, also on Solaris 10.
23177         * lib/sys_select.in.h: Include <string.h>.
23178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
23179         Solaris 10 problem.
23180         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
23181         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
23182         Reported by Jim Meyering.
23183
23184 2009-08-09  Bruno Haible  <bruno@clisp.org>
23185
23186         Avoid warnings from 'aclocal' that are due to a use of macro name
23187         AM_XGETTEXT_OPTION that is not defined in automake.
23188         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
23189         automake.
23190         * modules/error (configure.ac): Likewise.
23191         * modules/propername (configure.ac): Likewise.
23192         * modules/vasprintf (configure.ac): Likewise.
23193         * modules/verror (configure.ac): Likewise.
23194         * modules/xprintf (configure.ac): Likewise.
23195         * modules/xvasprintf (configure.ac): Likewise.
23196
23197 2009-08-08  Bruno Haible  <bruno@clisp.org>
23198
23199         Avoid compilation error in C++ mode.
23200         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
23201         Reported by Sam Steingold <sds@gnu.org>.
23202
23203 2009-08-08  Bruno Haible  <bruno@clisp.org>
23204
23205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
23206         for the various Unix platforms.
23207         * doc/posix-headers/limits.texi: Update platforms list regarding
23208         HOST_NAME_MAX.
23209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23210
23211 2009-08-07  Jim Meyering  <meyering@redhat.com>
23212
23213         selinux-at: fix typo in a comment
23214         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
23215         Spotted by Paolo Bonzini.
23216
23217         selinux-at: remove redundant m4 code, add documentation
23218         * modules/selinux-at (configure.ac): Remove redundant code.
23219         LIB_SELINUX is already set via the dependent module, selinux-h.
23220         (Include): Add quotes around selinux-at.h.
23221         * lib/selinux-at.h: Add documentation.
23222         Reported by Bruno Haible in
23223         http://marc.info/?l=gnulib-bug&m=124958988300749
23224
23225 2009-08-07  Bruno Haible  <bruno@clisp.org>
23226
23227         Avoid link error on MacOS X 10.3 and 10.4.
23228         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
23229         on non-ELF systems.
23230         * lib/argp-pv.c (argp_program_version): Likewise.
23231         Reported by Simon Josefsson.
23232
23233 2009-08-07  Simon Josefsson  <simon@josefsson.org>
23234
23235         * tests/test-version-etc.sh: Use $EXEEXT.
23236
23237 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
23238
23239         update-copyright: update documentation to point to maint.mk
23240         * build-aux/update-copyright: Here.
23241
23242 2009-08-06  Jim Meyering  <meyering@redhat.com>
23243
23244         maint.mk: support update-copyright-local
23245         * top/maint.mk (update-copyright-local): Define place-holder.
23246         (update-copyright): Depend on $(update-copyright-local).
23247
23248 2009-08-06  Jim Meyering  <meyering@redhat.com>
23249
23250         selinux-at: new module
23251         Initially written for coreutils, this module will soon be
23252         used by findutils, too.
23253         * MODULES.html.sh [Misc]: Add selinux-at.
23254         * lib/selinux-at.h: New file, from coreutils.
23255         * lib/selinux-at.c: Likewise.
23256         * modules/selinux-at: Likewise.
23257         (License): Change from LGPL to GPL, since it depends
23258         on the GPL'd openat module.
23259
23260         doc: update README
23261         * README: Remove references to cogito.
23262         Remove cvs-repo-updating instructions from 2007.
23263         Don't imply that CVS is better if you have limited disk space.
23264
23265 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23266
23267         update-copyright: support C-style comments
23268         * build-aux/update-copyright: Implement and document.
23269         * tests/test-update-copyright.sh: Test.
23270
23271 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23272
23273         update-copyright: support omitted "(C)"
23274         * build-aux/update-copyright: Implement and document.  Also,
23275         allow variable whitespace before "(C)".
23276         * tests/test-update-copyright.sh: Test.
23277
23278 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23279
23280         update-copyright: don't trip on non-FSF copyright statements
23281         * build-aux/update-copyright: Fix so that the first correctly
23282         formatted FSF copyright statement is recognized no matter what
23283         appears before it.  Update documentation.
23284         * tests/test-update-copyright.sh: Test that.
23285
23286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23287
23288         update-copyright: clean up code a little
23289         * build-aux/update-copyright: Append "_re" to the name of any
23290         variable holding a regular expression.
23291         Replace "old" and "new" with "stmt" in variable names.
23292         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
23293         handled correctly.
23294         Format code more consistently.
23295
23296 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23297
23298         update-copyright-tests: improve portability
23299         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23300         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
23301
23302 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23303
23304         update-copyright: support @copyright{} and &copy;
23305         * build-aux/update-copyright: Implement and document.
23306         * tests/test-update-copyright.sh: Test.
23307
23308 2009-08-04  Jim Meyering  <meyering@redhat.com>
23309
23310         update-copyright-tests: correctly test EOL=\r\n handling
23311         * tests/test-update-copyright.sh: Put \r at the end of some lines
23312         for the dos-eol tests.  Based on a patch by Joel E. Denny.
23313
23314         maint.mk: make update-copyright exclusion list more configurable
23315         * top/maint.mk (update-copyright): Default to excluding COPYING,
23316         but allow an override, in case someone does want to update that file.
23317
23318         maint.mk: don't update copyright date in COPYING
23319         * top/maint.mk (update-copyright): Exclude COPYING.
23320
23321         maint.mk: add a copyright-updating rule
23322         * top/maint.mk (update-copyright): New rule.
23323         Derived from coreutils/Makefile.am.
23324
23325         update-copyright: rename some variables
23326         * build-aux/update-copyright: Rename a few variables for clarity.
23327         Tweak syntax.  List Joel E. Denny as coauthor.
23328
23329 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23330
23331         update-copyright: fix bug for 2-digit last year and add tests
23332         * build-aux/update-copyright: Fix bug.
23333         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
23334         specified.
23335         * modules/update-copyright-tests: New
23336         * tests/test-update-copyright.sh: New.
23337
23338 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23339
23340         update-copyright: handle leading tabs in line prefix
23341         * build-aux/update-copyright: Count leading tabs as 8 spaces
23342         when computing margin.  This helps with the formatting of
23343         ChangeLogs, for example.
23344         Fix documentation a little.
23345
23346 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23347
23348         update-copyright: support EOL=\r\n
23349         * build-aux/update-copyright: Implement that.
23350
23351 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23352
23353         update-copyright: automatically format copyright statements
23354         * build-aux/update-copyright: Implement that.
23355         Also, be a little more predictable and safer by always failing
23356         when the full copyright format is not perfectly recognized as an
23357         unbroken whole.  Discussed at
23358         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
23359         Rewrite documentation.
23360
23361 2009-08-03  Bruno Haible  <bruno@clisp.org>
23362
23363         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
23364
23365 2009-08-02  Bruno Haible  <bruno@clisp.org>
23366
23367         Tests for module 'uname'.
23368         * modules/uname-tests: New file.
23369         * tests/test-uname.c: New file.
23370
23371         New module 'uname'.
23372         * lib/uname.c: New file.
23373         * m4/uname.m4: New file.
23374         * modules/uname: New file.
23375         * doc/posix-functions/uname.texi: Mention the new module.
23376
23377 2009-08-02  Bruno Haible  <bruno@clisp.org>
23378
23379         Tests for module 'sys_utsname'.
23380         * modules/sys_utsname-tests: New file.
23381         * tests/test-sys_utsname.c: New file.
23382
23383         New module 'sys_utsname'.
23384         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
23385         * m4/sys_utsname_h.m4: New file.
23386         * modules/sys_utsname: New file.
23387         * doc/posix-headers/sys_utsname.texi: Mention the new module.
23388
23389 2009-08-02  Bruno Haible  <bruno@clisp.org>
23390
23391         Implicitly initialize the sockets library.
23392         * lib/gethostname.c: Include sockets.h.
23393         (rpl_gethostname): Invoke gl_sockets_startup.
23394         * lib/socket.c: Include sockets.h.
23395         (rpl_socket): Invoke gl_sockets_startup.
23396         * modules/gethostname (Depends-on): Add sockets.
23397         * modules/socket (Depends-on): Likewise.
23398         * tests/test-poll.c: Don't include sockets.h.
23399         (main): Don't invoke gl_sockets_startup.
23400         * tests/test-select.c: Don't include sockets.h.
23401         (main): Don't invoke gl_sockets_startup.
23402
23403 2009-08-02  Bruno Haible  <bruno@clisp.org>
23404
23405         Allow multiple calls to gl_sockets_startup.
23406         * lib/sockets.c (initialized_sockets_version): New variable.
23407         (gl_sockets_startup): Do nothing if already called for this or a higher
23408         version.
23409         (gl_sockets_cleanup): Reset initialized_sockets_version.
23410
23411 2009-08-03  Simon Josefsson  <simon@josefsson.org>
23412
23413         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
23414         different project/version.
23415
23416 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
23417             Bruno Haible  <bruno@clisp.org>
23418
23419         Tests for module 'pipe-filter-gi'.
23420         * modules/pipe-filter-gi-tests: New file.
23421         * tests/test-pipe-filter-gi1.sh: New file.
23422         * tests/test-pipe-filter-gi1.c: New file.
23423         * tests/test-pipe-filter-gi2.sh: New file.
23424         * tests/test-pipe-filter-gi2-main.c: New file.
23425         * tests/test-pipe-filter-gi2-child.c: New file.
23426
23427         New module 'pipe-filter-gi'.
23428         * lib/pipe-filter-gi.c: New file.
23429         * modules/pipe-filter-gi: New file.
23430
23431 2009-08-02  Bruno Haible  <bruno@clisp.org>
23432             Paolo Bonzini  <bonzini@gnu.org>
23433
23434         Tests for module 'pipe-filter-ii'.
23435         * modules/pipe-filter-ii-tests: New file.
23436         * tests/test-pipe-filter-ii1.sh: New file.
23437         * tests/test-pipe-filter-ii1.c: New file.
23438         * tests/test-pipe-filter-ii2.sh: New file.
23439         * tests/test-pipe-filter-ii2-main.c: New file.
23440         * tests/test-pipe-filter-ii2-child.c: New file.
23441
23442         New module 'pipe-filter-ii'.
23443         * lib/pipe-filter.h: New file.
23444         * lib/pipe-filter-ii.c: New file.
23445         * lib/pipe-filter-aux.h: New file.
23446         * modules/pipe-filter-ii: New file.
23447
23448 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23449
23450         * lib/gc-libgcrypt.c: Change copyright to FSF.
23451         * lib/gc-gnulib.c: Likewise.
23452
23453 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
23454
23455         * lib/gethostname.c: Include limits.h.
23456
23457 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23458             Bruno Haible  <bruno@clisp.org>
23459
23460         Ensure HOST_NAME_MAX as part of the gethostname module.
23461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
23462         define also HOST_NAME_MAX.
23463         * tests/test-gethostname.c: Include <limits.h>.
23464         (main): Check also HOST_NAME_MAX.
23465         * doc/posix-headers/limits.texi: Document the mingw problem.
23466
23467 2009-08-02  Bruno Haible  <bruno@clisp.org>
23468
23469         * lib/gethostname.c (gethostname): Fix handling of large len argument.
23470         Add comments.
23471
23472 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23473
23474         * lib/gethostname.c: Add Windows wrapper.
23475         * m4/gethostname.m4: Look for gethostname in -lws2_32.
23476         * modules/gethostname: Depend on sys_socket & errno, for also
23477         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
23478         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
23479
23480 2009-07-31  Jim Meyering  <meyering@redhat.com>
23481
23482         getloadavg: fix symbol name in comment
23483         * lib/getloadavg.c: Correct a typo I introduced when adding
23484         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
23485         Matt Kraai spotted the problem.
23486
23487 2009-07-29  Matt Kraai  <mkraai@beckman.com>
23488
23489         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
23490         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
23491         code also if ! defined N_NAME_POINTER.
23492         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
23493         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
23494         but the n_name member is a 12-byte array.
23495
23496 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23497
23498         update-copyright: generalize comment handling
23499         * build-aux/update-copyright: Handle copyright statements
23500         within more comment styles.
23501         Document usage.
23502         Report any file with an external copyright holder or parse failure.
23503
23504 2009-07-29  Jim Meyering  <meyering@redhat.com>
23505
23506         mktime: correct setting of REPLACE_MKTIME
23507         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23508
23509         update-copyright: new module
23510         * modules/update-copyright: New file.
23511         * build-aux/update-copyright: New file.
23512         * MODULES.html.sh (maint+release support): Add update-copyright.
23513
23514 2009-07-27  Bruno Haible  <bruno@clisp.org>
23515
23516         Fix compilation error when <ctime> is used and mktime is replaced.
23517         * lib/time.in.h (mktime): New declaration.
23518         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23519         REPLACE_MKTIME instead of defining mktime in config.h.
23520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23521         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23522         Reported by Ross McFarland <rwmcfa1@neces.com>.
23523
23524 2009-07-27  Bruno Haible  <bruno@clisp.org>
23525
23526         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23527         Reported by Matt Kraai <mkraai@beckman.com>.
23528
23529 2009-07-25  Jim Meyering  <meyering@redhat.com>
23530
23531         maint.mk: avoid warnings about missing files
23532         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23533         diagnostic when .prev-version does not exist.
23534         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23535         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23536         nonexistent cfg.mk.
23537         Suggestions from Simon Josefsson.
23538
23539 2009-07-25  Bruno Haible  <bruno@clisp.org>
23540
23541         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23542         defined as macros. Needed on QNX 6.4.1.
23543         Reported by Matt Kraai <mkraai@beckman.com>.
23544
23545 2009-07-23  Jim Meyering  <meyering@redhat.com>
23546
23547         maint.mk: invoke "make dist" with a working value of XZ_OPT
23548         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23549
23550 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23551
23552         Make fseeko.c compile on QNX.
23553         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23554
23555 2009-07-22  Peter Simons  <simons@cryp.to>
23556
23557         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23558         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23559         * lib/md4.h: Likewise.
23560         * lib/md5.h: Likewise.
23561         * lib/sha1.h: Likewise.
23562         * lib/sha256.h: Likewise.
23563         * lib/sha512.h: Likewise.
23564
23565         tests-sha1: don't assign literal string to 'char *' variable
23566         * tests/test-sha1.c (main): Declare locals with "const" to match
23567         attributes of the right hand side.
23568
23569 2009-07-21  Eric Blake  <ebb9@byu.net>
23570
23571         dup2: fix more mingw problems
23572         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23573         fd to itself.
23574         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23575         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23576         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23577         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23578         care of mingw bugs.
23579
23580 2009-07-21  Jim Meyering  <meyering@redhat.com>
23581
23582         vc-list-files: avoid failure when /bin/sh is dash
23583         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23584         On some Debian based systems, /bin/sh is a symlink to dash, and running
23585         this command would omit the "/" following each 'tests' prefix:
23586           dash -x build-aux/vc-list-files -C . tests
23587         That is because bash and dash work differently:
23588           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23589           bash ok
23590           dash odd
23591
23592 2009-07-21  Eric Blake  <ebb9@byu.net>
23593
23594         dup2-tests: test previous patch
23595         * modules/dup2-tests: New file.
23596         * tests/test-dup2.c: Likewise.
23597         * tests/test-open.c (main): Avoid unspecified behavior.
23598         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23599         test.
23600
23601         dup2: work around mingw and cygwin 1.5 bug
23602         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23604         * modules/unistd (Makefile.am): Substitute it.
23605         * lib/unistd.in.h (dup2): Declare the replacement.
23606         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23607         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23608         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23609         * modules/execute (Depends-on): Add dup2.
23610         * modules/fseterr (Depends-on): Likewise.
23611         * modules/pipe (Depends-on): Likewise.
23612         * modules/posix_spawn-internal (Depends-on): Likewise.
23613
23614 2009-07-21  Bruno Haible  <bruno@clisp.org>
23615
23616         * modules/.gitattributes: New file.
23617
23618 2009-07-20  Bruno Haible  <bruno@clisp.org>
23619
23620         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23621         (main): Use it.
23622
23623 2009-07-20  Eric Blake  <ebb9@byu.net>
23624
23625         test-pipe: make a bit more robust.
23626         * tests/test-pipe.c (myerr): Allow error messages regardless of
23627         what we do to stderr.
23628         (test_pipe): Rearrange to avoid deadlock.
23629         (child_main): Try a larger read, to ensure we avoided deadlock.
23630         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23631         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23632         if misused.
23633
23634 2009-07-19  Jim Meyering  <meyering@redhat.com>
23635
23636         fts: avoid false-positive cycle-detection
23637         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23638         for each new command line argument.
23639
23640 2009-07-19  Bruno Haible  <bruno@clisp.org>
23641
23642         Fix build error on mingw with the modules sys_select and unistd.
23643         * modules/acl-tests (Depends-on): Add close.
23644         * modules/binary-io-tests (Depends-on): Likewise.
23645         * modules/closein-tests (Depends-on): Likewise.
23646         * modules/flock-tests (Depends-on): Likewise.
23647         * modules/fsync-tests (Depends-on): Likewise.
23648         * modules/lseek-tests (Depends-on): Likewise.
23649         * modules/pipe-tests (Depends-on): Likewise.
23650         * modules/posix_spawn-tests (Depends-on): Likewise.
23651         * modules/posix_spawnp-tests (Depends-on): Likewise.
23652         * modules/stat-time-tests (Depends-on): Likewise.
23653         * modules/yesno-tests (Depends-on): Likewise.
23654
23655 2009-07-19  Bruno Haible  <bruno@clisp.org>
23656
23657         Unify conditionals.
23658         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23659         macros, not at the compiler macros.
23660         * lib/pipe.c: Likewise.
23661         * lib/execute.c: Likewise.
23662         * lib/spawni.c: Likewise.
23663
23664 2009-07-19  Bruno Haible  <bruno@clisp.org>
23665
23666         Fix handling of closed stdin/stdout/stderr on mingw.
23667         * lib/w32spawn.h: Include unistd.h.
23668         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23669         file descriptor with O_NOINHERIT flag.
23670         (fd_safer_noinherit): New function, based on fd-safer.c.
23671         (dup_safer_noinherit): New function, based on dup-safer.c.
23672         (undup_safer_noinherit): New function.
23673         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23674         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23675         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23676         instead of fd_safer.
23677         * tests/test-pipe.c: Include <windows.h>.
23678         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23679
23680         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23681         from main.
23682         (test_pipe): Pass an extra argument for disambiguation.
23683         (main): Invoke parent_main or child_main.
23684
23685         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23686         consistently.
23687
23688 2009-07-18  Eric Blake  <ebb9@byu.net>
23689
23690         test-pipe: fix mingw build
23691         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23692
23693 2009-07-18  Bruno Haible  <bruno@clisp.org>
23694
23695         * modules/pipe-tests (Makefile.am): Fix typo.
23696
23697 2009-07-18  Eric Blake  <ebb9@byu.net>
23698
23699         error: fix mingw build
23700         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23701         Reported by Bruno Haible.
23702
23703         error: avoid undefined use of stdout
23704         * lib/error.c (error, error_at_line): Check that fd 1 is open
23705         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23706         is handling faults and the close_stdout module wants to report the
23707         detection of closed stdout as an error.
23708
23709 2009-07-17  Eric Blake  <ebb9@byu.net>
23710
23711         pipe: be robust in face of closed fds
23712         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23713         should cause child to misbehave.
23714         * modules/pipe-tests: New module.
23715         * tests/test-pipe.c: New file.
23716         * tests/test-pipe.sh: New file.
23717         Reported by Akim Demaille.
23718
23719 2009-07-14  Bruno Haible  <bruno@clisp.org>
23720
23721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23722         Reported by anonymous kc.
23723
23724 2009-07-07  Jim Meyering  <meyering@redhat.com>
23725
23726         maint.mk: don't look for translatable strings in *.m4 or *.mk
23727         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23728         when searching for translatable strings.
23729
23730 2009-07-05  Jim Meyering  <meyering@redhat.com>
23731
23732         remove superfluous parentheses in STREQ definition
23733         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23734         * lib/getugroups.c (STREQ): Likewise.
23735         * lib/fnmatch.c (STREQ): Likewise.
23736         Spotted by Bruno Haible.
23737
23738 2009-07-04  Jim Meyering  <meyering@redhat.com>
23739
23740         argv-iter: new module
23741         * MODULES.html.sh: Add argv-iter.
23742         * lib/argv-iter.c, lib/argv-iter.h: New files.
23743         * modules/argv-iter: New file.
23744         * modules/argv-iter-tests: New file.
23745         * tests/test-argv-iter.c: Test it.
23746
23747 2009-07-04  Bruno Haible  <bruno@clisp.org>
23748
23749         Fix assertion.
23750         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23751         contains more exact copies of a given entry than file2, leave the extra
23752         copies unpaired rather than aborting.
23753         Reported by Eric Blake.
23754
23755 2009-07-02  Bruno Haible  <bruno@clisp.org>
23756
23757         Speedup git-merge-changelog for git cherry-pick.
23758         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23759         (entries_mapping_get): New function, extracted from compute_mapping.
23760         (entries_mapping_reverse_get): New function.
23761         (compute_mapping): Add a 'full' argument. Return the result in a
23762         'struct entries_mapping'.
23763         (main): Update. Access the mappings through entries_mapping_get.
23764         Reported by Eric Blake.
23765
23766 2009-07-02  Bruno Haible  <bruno@clisp.org>
23767
23768         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23769         best_i.
23770
23771 2009-07-02  Bruno Haible  <bruno@clisp.org>
23772
23773         Speed up approximate search for matching ChangeLog entries.
23774         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23775         argument. Call fstrcmp_bounded instead of fstrcmp.
23776         (compute_mapping, try_split_merged_entry, main): Update callers.
23777
23778 2009-07-02  Bruno Haible  <bruno@clisp.org>
23779
23780         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23781
23782 2009-06-30  Bruno Haible  <bruno@clisp.org>
23783
23784         Reduce the number of uc_is_cased calls.
23785         * lib/unicase.h (casing_suffix_context_t): Add
23786         'first_char_except_ignorable' field.
23787         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23788         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23789         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23790         Update initializer.
23791         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23792         case-ignorable characters.
23793         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23794         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23795         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23796         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23797         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23798
23799 2009-06-30  Bruno Haible  <bruno@clisp.org>
23800
23801         Tests for module 'unicase/ignorable'.
23802         * modules/unicase/ignorable-tests: New file.
23803         * tests/unicase/test-ignorable.c: New file, generated by
23804         gen-uni-tables.
23805
23806         Tests for module 'unicase/cased'.
23807         * modules/unicase/cased-tests: New file.
23808         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23809         * tests/unicase/test-predicate-part1.h: New file, derived from
23810         tests/unictype/test-predicate-part1.h.
23811         * tests/unicase/test-predicate-part2.h: New file, same as
23812         tests/unictype/test-predicate-part2.h.
23813
23814         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23815         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23816         (output_casing_properties): New function.
23817         (main): Call it.
23818         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23819         * lib/unicase/cased.c: Include unictype/bitmap.h.
23820         (uc_is_cased): Define through a bitmap lookup.
23821         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23822         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23823         (uc_is_case_ignorable): Define through a bitmap lookup.
23824         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23825         lib/unictype/bitmap.h.
23826         (Depends-on): Add inline. Clean up.
23827         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23828         lib/unictype/bitmap.h.
23829         (Depends-on): Add inline. Clean up.
23830         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23831         recognition.
23832         * tests/unicase/test-u16-tolower.c (main): Likewise.
23833         * tests/unicase/test-u32-tolower.c (main): Likewise.
23834
23835 2009-06-30  Bruno Haible  <bruno@clisp.org>
23836
23837         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23838         * lib/unicase/u16-casemap.c: Likewise.
23839         * lib/unicase/u32-casemap.c: Likewise.
23840
23841 2009-06-29  Bruno Haible  <bruno@clisp.org>
23842
23843         Define u32_casefold as a wrapper around u32_ct_casefold.
23844         * lib/unicase/u32-casefold.c: Update.
23845         * modules/unicase/u32-casefold (Depends-on): Add
23846         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23847         unicase/empty-suffix-context. Clean up.
23848
23849         Define u16_casefold as a wrapper around u16_ct_casefold.
23850         * lib/unicase/u16-casefold.c: Update.
23851         * modules/unicase/u16-casefold (Depends-on): Add
23852         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23853         unicase/empty-suffix-context. Clean up.
23854
23855         Define u8_casefold as a wrapper around u8_ct_casefold.
23856         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23857         * lib/unicase/u8-casefold.c: Update.
23858         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23859         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23860
23861         Define u32_totitle as a wrapper around u32_ct_totitle.
23862         * lib/unicase/u32-totitle.c: Update.
23863         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23864         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23865
23866         Define u16_totitle as a wrapper around u16_ct_totitle.
23867         * lib/unicase/u16-totitle.c: Update.
23868         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23869         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23870
23871         Define u8_totitle as a wrapper around u8_ct_totitle.
23872         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23873         functions.
23874         (FUNC): Delegate to U_CT_TOTITLE.
23875         * lib/unicase/u8-totitle.c: Update.
23876         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23877         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23878
23879         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23880         invocation.
23881         * modules/unicase/u32-tolower (Depends-on): Add
23882         unicase/empty-prefix-context, unicase/empty-suffix-context.
23883
23884         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23885         invocation.
23886         * modules/unicase/u16-tolower (Depends-on): Add
23887         unicase/empty-prefix-context, unicase/empty-suffix-context.
23888
23889         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23890         * modules/unicase/u8-tolower (Depends-on): Add
23891         unicase/empty-prefix-context, unicase/empty-suffix-context.
23892
23893         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23894         invocation.
23895         * modules/unicase/u32-toupper (Depends-on): Add
23896         unicase/empty-prefix-context, unicase/empty-suffix-context.
23897
23898         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23899         invocation.
23900         * modules/unicase/u16-toupper (Depends-on): Add
23901         unicase/empty-prefix-context, unicase/empty-suffix-context.
23902
23903         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23904         * modules/unicase/u8-toupper (Depends-on): Add
23905         unicase/empty-prefix-context, unicase/empty-suffix-context.
23906
23907         New module 'unicase/u32-ct-casefold'.
23908         * lib/unicase/u32-ct-casefold.c: New file.
23909         * modules/unicase/u32-ct-casefold: New file.
23910
23911         New module 'unicase/u16-ct-casefold'.
23912         * lib/unicase/u16-ct-casefold.c: New file.
23913         * modules/unicase/u16-ct-casefold: New file.
23914
23915         New module 'unicase/u8-ct-casefold'.
23916         * lib/unicase/u8-ct-casefold.c: New file.
23917         * lib/unicase/u-ct-casefold.h: New file, derived from
23918         lib/unicase/u-casefold.h.
23919         * modules/unicase/u8-ct-casefold: New file.
23920
23921         New module 'unicase/u32-ct-totitle'.
23922         * lib/unicase/u32-ct-totitle.c: New file.
23923         * modules/unicase/u32-ct-totitle: New file.
23924
23925         New module 'unicase/u16-ct-totitle'.
23926         * lib/unicase/u16-ct-totitle.c: New file.
23927         * modules/unicase/u16-ct-totitle: New file.
23928
23929         New module 'unicase/u8-ct-totitle'.
23930         * lib/unicase/u8-ct-totitle.c: New file.
23931         * lib/unicase/u-ct-totitle.h: New file, derived from
23932         lib/unicase/u-totitle.h.
23933         * modules/unicase/u8-ct-totitle: New file.
23934
23935         New module 'unicase/u32-ct-tolower'.
23936         * lib/unicase/u32-ct-tolower.c: New file.
23937         * modules/unicase/u32-ct-tolower: New file.
23938
23939         New module 'unicase/u16-ct-tolower'.
23940         * lib/unicase/u16-ct-tolower.c: New file.
23941         * modules/unicase/u16-ct-tolower: New file.
23942
23943         New module 'unicase/u8-ct-tolower'.
23944         * lib/unicase/u8-ct-tolower.c: New file.
23945         * modules/unicase/u8-ct-tolower: New file.
23946
23947         New module 'unicase/u32-ct-toupper'.
23948         * lib/unicase/u32-ct-toupper.c: New file.
23949         * modules/unicase/u32-ct-toupper: New file.
23950
23951         New module 'unicase/u16-ct-toupper'.
23952         * lib/unicase/u16-ct-toupper.c: New file.
23953         * modules/unicase/u16-ct-toupper: New file.
23954
23955         New module 'unicase/u8-ct-toupper'.
23956         * lib/unicase/u8-ct-toupper.c: New file.
23957         * modules/unicase/u8-ct-toupper: New file.
23958
23959         Add context arguments to u*_casemap functions.
23960         * lib/unicase/unicasemap.h: Include unicase.h.
23961         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
23962         suffix_context arguments.
23963         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
23964         functions.
23965         (FUNC): Add prefix_context and suffix_context arguments. Use
23966         uc_is_cased and uc_is_case_ignorable.
23967         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
23968         * lib/unicase/u16-casemap.c: Likewise.
23969         * lib/unicase/u32-casemap.c: Likewise.
23970         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
23971         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23972         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23973         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23974         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23975         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23976
23977         New module 'unicase/u32-suffix-context'.
23978         * lib/unicase/u32-suffix-context.c: New file.
23979         * modules/unicase/u32-suffix-context: New file.
23980
23981         New module 'unicase/u16-suffix-context'.
23982         * lib/unicase/u16-suffix-context.c: New file.
23983         * modules/unicase/u16-suffix-context: New file.
23984
23985         New module 'unicase/u8-suffix-context'.
23986         * lib/unicase/u8-suffix-context.c: New file.
23987         * lib/unicase/u-suffix-context.h: New file.
23988         * modules/unicase/u8-suffix-context: New file.
23989
23990         New module 'unicase/empty-suffix-context'.
23991         * lib/unicase/empty-suffix-context.c: New file.
23992         * modules/unicase/empty-suffix-context: New file.
23993
23994         New module 'unicase/u32-prefix-context'.
23995         * lib/unicase/u32-prefix-context.c: New file.
23996         * modules/unicase/u32-prefix-context: New file.
23997
23998         New module 'unicase/u16-prefix-context'.
23999         * lib/unicase/u16-prefix-context.c: New file.
24000         * modules/unicase/u16-prefix-context: New file.
24001
24002         New module 'unicase/u8-prefix-context'.
24003         * lib/unicase/u8-prefix-context.c: New file.
24004         * lib/unicase/u-prefix-context.h: New file.
24005         * lib/unicase/context.h: New file.
24006         * modules/unicase/u8-prefix-context: New file.
24007
24008         New module 'unicase/empty-prefix-context'.
24009         * lib/unicase/empty-prefix-context.c: New file.
24010         * modules/unicase/empty-prefix-context: New file.
24011
24012         New module 'unicase/ignorable'.
24013         * lib/unicase/ignorable.c: New file.
24014         * modules/unicase/ignorable: New file.
24015
24016         New module 'unicase/cased'.
24017         * lib/unicase/caseprop.h: New file.
24018         * lib/unicase/cased.c: New file.
24019         * modules/unicase/cased: New file.
24020
24021         New functions for case mapping of substrings.
24022         * lib/unicase.h (casing_prefix_context_t): New type.
24023         (unicase_empty_prefix_context): New variable.
24024         (u8_casing_prefix_context, u16_casing_prefix_context,
24025         u32_casing_prefix_context, u8_casing_prefixes_context,
24026         u16_casing_prefixes_context, u32_casing_prefixes_context): New
24027         declarations.
24028         (casing_suffix_context_t): New type.
24029         (unicase_empty_suffix_context): New variable.
24030         (u8_casing_suffix_context, u16_casing_suffix_context,
24031         u32_casing_suffix_context, u8_casing_suffixes_context,
24032         u16_casing_suffixes_context, u32_casing_suffixes_context,
24033         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
24034         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
24035         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
24036         declarations.
24037
24038 2009-06-28  Jim Meyering  <meyering@redhat.com>
24039
24040         boostrap: indent only with spaces
24041         * build-aux/bootstrap: Indent only with spaces, never TABs.
24042
24043         bootstrap: split long lines
24044         * build-aux/bootstrap: Keep line length < 80.
24045
24046         bootstrap: sync from coreutils
24047         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
24048         just as autoreconf does.  Verify a list of prerequisite
24049         package-name,version-number pairs if defined in bootstrap.conf.
24050         Refer to README-prereq, if prerequisites are not satisfied.
24051
24052 2009-06-27  Eric Blake  <ebb9@byu.net>
24053
24054         tests: add test for bogus NULL definition
24055         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
24056         * tests/test-stdlib.c: Likewise.
24057         * tests/test-string.c: Likewise.
24058         * tests/test-locale.c: Likewise.
24059         * tests/test-unistd.c: Likewise.
24060         * modules/stdio-tests (Depends-on): Add verify.
24061         * modules/stdlib-tests (Depends-on): Likewise.
24062         * modules/string-tests (Depends-on): Likewise.
24063         * modules/locale-tests (Depends-on): Likewise.
24064         * modules/unistd-tests (Depends-on): Likewise.
24065
24066 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
24067
24068         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
24069         self-explaining comment.
24070         * m4/selinux-selinux-h: Update serial.
24071         (gl_LIBSELINUX): New macro, adding a warning for missing development
24072         packages to code extracted from...
24073         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
24074         Add warning for missing development packages here, too.
24075
24076 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
24077
24078         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
24079
24080 2009-06-25  Eric Blake  <ebb9@byu.net>
24081
24082         version-etc: fix regression
24083         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
24084         gcc.
24085         (version_etc): Use it, to catch bugs with trailing NULL.
24086         * lib/version-etc.c (version_etc_arn): Delete unused argument.
24087         (version_etc_va): Fix logic bug.
24088         * modules/version-etc-tests: Add test.
24089         * tests/test-version-etc.c: New file.
24090         * tests/test-version-etc.sh: Likewise.
24091
24092 2009-06-25  Sam Steingold  <sds@gnu.org>
24093
24094         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
24095         mbtowc declaration.
24096
24097 2009-06-25  Eric Blake  <ebb9@byu.net>
24098
24099         fpurge: migrate into <stdio.h>
24100         * lib/fpurge.h: Delete...
24101         * lib/stdio.in.h (fpurge): ...and declare here, instead.
24102         * lib/fpurge.c (fpurge): Change declaring header.
24103         * modules/fpurge (Files): Drop deleted file.
24104         (Depends-on): Add stdio.
24105         (configure.ac): Set witness.
24106         * modules/stdio (Makefile.am): Support fpurge macros.
24107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24108         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24109         * lib/fflush.c: Update client.
24110         * tests/test-fpurge.c: Likewise.
24111         * NEWS: Mention the change.
24112
24113 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24114
24115         * lib/argp-version-etc.c (program_authors): Add const
24116         qualifier.
24117         * lib/version-etc.c: Fix typos in the comments.
24118         * modules/argp-version-etc: Depends on version-etc.
24119
24120 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24121
24122         argp-version-etc: new module.
24123
24124         * lib/argp-version-etc.c: New file.
24125         * lib/argp-version-etc.h: New file.
24126         * modules/argp-version-etc: New file.
24127         * modules/argp-version-etc-tests: New file.
24128         * tests/test-argp-version-etc.c: New test.
24129         * tests/test-argp-version-etc-1.sh: New test.
24130
24131 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24132
24133         Provide additional interfaces and documentation for version-etc
24134         module.
24135
24136         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24137         interfaces.
24138         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24139         prototypes.
24140
24141 2009-06-24  Bruno Haible  <bruno@clisp.org>
24142
24143         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24144         HAVE_LIB${NAME} macro.
24145         Reported by Sam Steingold <sds@gnu.org>.
24146
24147 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24148
24149         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24150         needed.
24151
24152 2009-06-21  Bruno Haible  <bruno@clisp.org>
24153
24154         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24155         work.
24156         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24157         together with LIB${NAME}, LTLIB${NAME}.
24158         Reported by Sam Steingold <sds@gnu.org>.
24159
24160 2009-06-20  Jim Meyering  <meyering@redhat.com>
24161
24162         tests: make sc_require_test_exit_idiom more generic
24163         * top/maint.mk (Exit_witness_file): New overridable variable.
24164         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24165         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24166
24167 2009-06-19  Jim Meyering  <meyering@redhat.com>
24168
24169         hash: reverse order of src/dst parameters in an internal interface
24170         * lib/hash.c (transfer_entries): Reverse order of parameters to
24171         put DST before SRC.  Adjust callers.
24172
24173         tests: test-hash: avoid wholesale duplication
24174         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24175         Instead, use a loop and add a single conditional.
24176
24177         tests: test-hash: allow seed selection via a command line argument
24178         * tests/test-hash.c (get_seed): New function.
24179         (main): Use it.
24180
24181 2009-06-19  Eric Blake  <ebb9@byu.net>
24182
24183         hash: avoid memory leak on allocation failure
24184         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
24185         failure.  Factor repeated algorithm...
24186         (transfer_entries): ...into new helper routine.
24187         (hash_delete): React to hash_rehash return value.
24188
24189         hash: reduce memory pressure in hash_rehash no-op case
24190         * lib/hash.c (next_prime): Avoid overflow.
24191         (hash_initialize): Factor bucket size computation...
24192         (compute_bucket_size): ...into new helper function.
24193         (hash_rehash): Use new function and open coding to reduce memory
24194         pressure, and avoid a memory leak in USE_OBSTACK code.
24195         Reported by Jim Meyering.
24196
24197 2009-06-18  Eric Blake  <ebb9@byu.net>
24198
24199         hash: make rotation more obvious
24200         * modules/hash (Depends-on): Add bitrotate and stdint.
24201         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
24202         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
24203         (SIZE_MAX): Rely on headers for definition.
24204         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
24205         (raw_hasher): Use rotr_sz.
24206         Suggested by Jim Meyering.
24207
24208         hash: fix memory leak in last patch
24209         * lib/hash.c (hash_rehash): Avoid memory leak.
24210
24211         hash: avoid no-op rehashing
24212         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
24213
24214         hash: provide default callback functions
24215         * lib/hash.c (raw_hasher, raw_comparator): New functions.
24216         (hash_initialize): Use them as defaults.
24217         * tests/test-hash.c (main): Test this.
24218
24219         hash: minor optimization
24220         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
24221         when possible.
24222         (hash_initialize): Document this promise.
24223         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
24224         * tests/test-hash.c (hash_compare_strings): Test this.
24225
24226 2009-06-18  Bruno Haible  <bruno@clisp.org>
24227
24228         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
24229         going to be replaced anyway.
24230
24231 2009-06-18  Bruno Haible  <bruno@clisp.org>
24232
24233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
24234         in one place.
24235         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
24236         be replaced anyway.
24237
24238 2009-06-18  Eric Blake  <ebb9@byu.net>
24239
24240         hash: check for resize before insertion
24241         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
24242         threshold before insertion, so that a pathological hash_rehash
24243         that fills every bucket can still trigger another rehash.
24244
24245 2009-06-18  Jim Meyering  <meyering@redhat.com>
24246
24247         hash-tests: add a loop around the small tests
24248         * tests/test-hash.c (main): Repeat small tests with selected
24249         small initial table sizes.
24250
24251 2009-06-17  Eric Blake  <ebb9@byu.net>
24252
24253         hash: minor cleanups
24254         * lib/hash.h (hash_entry): Make opaque, by moving...
24255         * lib/hash.c (hash_entry): ...here.
24256         (hash_insert): Clarify restrictions on what can be inserted.
24257         (hash_get_next): Clarify when it is safe to remove an element
24258         during traversal.
24259         (check_tuning): Skip verification when tuning is known safe.
24260         (hash_initialize): Clarify restrictions on tuning.
24261
24262 2009-06-17  Jim Meyering  <jim@meyering.net>
24263         and Eric Blake  <ebb9@byu.net>
24264
24265         hash-tests: new module
24266         * modules/hash-tests: New file.
24267         * tests/test-hash.c: New file.
24268
24269 2009-06-17  Eric Blake  <ebb9@byu.net>
24270
24271         strstr-simple: document new module
24272         * MODULES.html.sh: Document new module.
24273
24274         strstr, strcasestr: replace on platforms with broken memchr
24275         * modules/strstr: Split into...
24276         * modules/strstr-simple: ...new module that does not care about
24277         performance, but does care about glibc bug.
24278         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
24279         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
24280         if platform memchr is broken, per Debian bug 521737.
24281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
24282         memchr.
24283         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
24284         * doc/posix-functions/strstr.texi (strstr): Document the fix.
24285         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24286         * modules/mountlist (Depends-on): Add strstr-simple.
24287         * modules/gen-uni-tables (Depends-on): Likewise.
24288         * modules/argz (Depends-on): Add strstr.
24289
24290 2009-06-17  Bruno Haible  <bruno@clisp.org>
24291
24292         * modules/posix_spawn-internal (Depends-on): Add errno.
24293
24294 2009-06-17  Bruno Haible  <bruno@clisp.org>
24295
24296         Define missing ESTALE on Interix 3.5.
24297         * lib/errno.in.h (ESTALE): Assign a value if missing.
24298         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
24299         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
24300         missing.
24301         * doc/posix-headers/errno.texi: Mention the Interix bug.
24302         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
24303
24304 2009-06-15  Eric Blake  <ebb9@byu.net>
24305
24306         memchr, memchr2: add valgrind exception
24307         * lib/memchr.valgrind: New file.
24308         * lib/memchr2.valgrind: New file.
24309         * modules/memchr (Files): Distribute valgrind file.
24310         * modules/memchr2 (Files): Likewise.
24311
24312         docs: memchr is no longer obsolete
24313         * MODULES.html.sh: Move memchr from obsolete to string.h section.
24314         * lib/string.in.h (memchr): Simplify logic.
24315
24316 2009-06-14  Jim Meyering  <meyering@redhat.com>
24317
24318         link-follow: fix the "checking..." message to not mention trailing slash
24319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
24320         never considered trailing slashes.
24321
24322 2009-06-14  Bruno Haible  <bruno@clisp.org>
24323
24324         * m4/memchr.m4: Mention also the bug on IA-64.
24325         * doc/posix-functions/memchr.texi: Likewise.
24326
24327 2009-06-12  Eric Blake  <ebb9@byu.net>
24328
24329         memchr: detect broken x86_64 and alpha implementations
24330         * modules/memchr-tests (Depends-on): Move mmap detection...
24331         * modules/memchr (Depends-on): ...here.
24332         (configure.ac): Set indicator.
24333         * lib/string.in.h (memchr): Declare replacement.
24334         * modules/string (Makefile.am): Trigger replacement.
24335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24336         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
24337         bugs.
24338         * doc/posix-functions/memchr.texi (memchr): Document the bug.
24339         * modules/getpagesize (License): Relax license.
24340
24341 2009-06-11  Bruno Haible  <bruno@clisp.org>
24342
24343         * lib/idpriv.h: Add more references.
24344
24345 2009-06-08  Bruno Haible  <bruno@clisp.org>
24346
24347         Tests for module 'idpriv-droptemp'.
24348         * modules/idpriv-droptemp-tests: New file.
24349         * tests/test-idpriv-droptemp.sh: New file.
24350         * tests/test-idpriv-droptemp.su.sh: New file.
24351         * tests/test-idpriv-droptemp.c: New file.
24352
24353         New module 'idpriv-droptemp'.
24354         * lib/idpriv-droptemp.c: New file.
24355         * modules/idpriv-droptemp: New file.
24356
24357 2009-06-08  Bruno Haible  <bruno@clisp.org>
24358
24359         Tests for module 'idpriv-drop'.
24360         * modules/idpriv-drop-tests: New file.
24361         * tests/test-idpriv-drop.sh: New file.
24362         * tests/test-idpriv-drop.su.sh: New file.
24363         * tests/test-idpriv-drop.c: New file.
24364
24365         New module 'idpriv-drop'.
24366         * lib/idpriv.h: New file.
24367         * lib-idpriv-drop.c: New file.
24368         * m4/idpriv.m4: New file.
24369         * modules/idpriv-drop: New file.
24370
24371 2009-06-08  Bruno Haible  <bruno@clisp.org>
24372
24373         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
24374         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24375         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24376         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24377         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24378         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24379         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24380
24381 2009-06-08  Eric Blake  <ebb9@byu.net>
24382
24383         test-strstr: use memory fence, when possible
24384         * tests/test-strstr.c (main): Use memory fence, in order to be
24385         more likely to trigger Debian bug 521737.
24386         * modules/strstr-tests (Files): Pull in additional files.
24387
24388         memchr: no longer obsolete, for wider field testing
24389         * modules/memchr (Status, Notice): Delete, this module is no
24390         longer obsolete.
24391         * modules/vasnprintf (Depends-on): Add memchr.
24392
24393 2009-06-07  Jim Meyering  <meyering@redhat.com>
24394
24395         hash: declare some functions with the warn_unused_result attribute
24396         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
24397
24398 2009-06-07  Bruno Haible  <bruno@clisp.org>
24399
24400         * tests/test-alignof.c: Don't test int64_t if it does not exist.
24401         Reported by Eric Blake.
24402
24403 2009-06-06  Eric Blake  <ebb9@byu.net>
24404
24405         test-alignof: fix typo with long double
24406         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
24407         compiler error.
24408
24409 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
24410
24411         Escape non-texinfo { and }s.
24412         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
24413         markup error.
24414
24415 2009-06-04  Jim Meyering  <meyering@redhat.com>
24416
24417         gitlog-to-changelog: don't infloop on an empty commit log
24418         * build-aux/gitlog-to-changelog: Warn about an empty log message.
24419         Reported by Boris Petersen <transacid@centerim.org>.
24420
24421 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
24422
24423         version-etc: extend for packagers
24424         Add three new configure options, intended for packagers:
24425           --with-packager="packager name"
24426           --with-packager-version="packager-specific version"
24427           --with-packager-bug-reports="packager bug reporting"
24428         An example with coreutils:
24429           $ ./configure \
24430             --with-packager=Gentoo \
24431             --with-packager-bug-report=http://bugs.gentoo.org/ \
24432             --with-packager-version="patchset 1.6"
24433           $ ./src/ls --version | head -n2
24434           ls (GNU coreutils) 7.1-dirty
24435           Packaged by Gentoo (patchset 1.6)
24436         Note that the bug reporting info via --help doesn't show up because
24437         coreutils uses its own custom emit_bug_reporting_address() implementation
24438         in src/system.h.  If it didn't, it'd look like:
24439           $ ./src/ls --help | tail -n4
24440           Report bugs to <bug-coreutils@gnu.org>.
24441           Report Gentoo bugs to <http://bugs.gentoo.org/>.
24442           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
24443           General help using GNU software: <http://www.gnu.org/gethelp/>.
24444         * lib/version-etc.c: Print new information, if provided.
24445         * m4/version-etc.m4: New file.
24446         * modules/version-etc (Files): Add m4/version-etc.m4.
24447         (configure.ac): Add gl_VERSION_ETC.
24448
24449 2009-05-31  Bruno Haible  <bruno@clisp.org>
24450
24451         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
24452         and 'int64_t'.
24453         * modules/alignof-tests (Dependencies): Add stdint.
24454         Reported by Eric Blake.
24455
24456 2009-05-31  Bruno Haible  <bruno@clisp.org>
24457
24458         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
24459         restriction due to compiler bugs.
24460         Reported by Eric Blake.
24461
24462 2009-05-31  Simon Josefsson  <simon@josefsson.org>
24463             Bruno Haible  <bruno@clisp.org>
24464
24465         Fix test-alignof failure.
24466         * lib/alignof.h (alignof_slot): New macro.
24467         (alignof_type): New macro, with the same semantics as the previous
24468         'alignof'.
24469         (alignof): Alias to alignof_slot.
24470         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
24471         check that the results are usable as constant expressions.
24472
24473 2009-05-31  Bruno Haible  <bruno@clisp.org>
24474
24475         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
24476         * tests/test-memchr.c (main): Check that memchr does not read past the
24477         first occurrence of the byte.
24478         * tests/test-strstr.c (main): Update comment.
24479         Suggested by Eric Blake.
24480
24481 2009-05-30  Bruno Haible  <bruno@clisp.org>
24482
24483         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
24484         detail how to use dumpbin.
24485         Reported by David Byron <dbyron@dbyron.com>.
24486
24487 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24488
24489         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
24490
24491 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24492
24493         * m4/manywarnings.m4: Add GCC 4.4 warnings.
24494
24495 2009-05-28  Bruno Haible  <bruno@clisp.org>
24496
24497         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24498         build-aux/ files.
24499
24500 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24501
24502         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24503
24504 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24505
24506         * gnulib-tool (sed_transform_main_lib_file)
24507         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24508         regexps.
24509
24510 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24511
24512         * tests/test-strstr.c: Add another self-test.
24513         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24514         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24515
24516 2009-05-23  Bruno Haible  <bruno@clisp.org>
24517
24518         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24519         change.
24520
24521 2009-05-21  Bruno Haible  <bruno@clisp.org>
24522
24523         Simplify use of mode_t varargs.
24524         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24525         uses 'mode_t' or 'int'.
24526         * lib/openat.c (openat): Likewise.
24527         * lib/open-safer.c (open_safer): Likewise.
24528         * m4/mode_t.m4: New file.
24529         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24530         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24532         * modules/open (Files): Add m4/mode_t.m4.
24533         * modules/openat (Files): Likewise.
24534         * modules/fcntl-safer (Files): Likewise.
24535         Suggested by Eric Blake.
24536
24537 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24538
24539         * doc/glibc-functions/fallocate.texi: New file.
24540         * doc/gnulib.texi: Include it.
24541
24542 2009-05-21  Eric Blake  <ebb9@byu.net>
24543             Bruno Haible  <bruno@clisp.org>
24544
24545         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24546         invocations.
24547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24548
24549 2009-05-21  Eric Blake  <ebb9@byu.net>
24550             Bruno Haible  <bruno@clisp.org>
24551
24552         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24553         include_next. Fix of 2008-11-20 commit.
24554         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24555         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24556         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24557         NEXT_MATH_H.
24558         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24559         instead of NEXT_MATH_H.
24560
24561 2009-05-21  Bruno Haible  <bruno@clisp.org>
24562
24563         Avoid redefinition warnings for SIZE_MAX.
24564         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24565         Reported by Simon Josefsson.
24566
24567 2009-05-21  Bruno Haible  <bruno@clisp.org>
24568
24569         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24570         AC_CACHE_VAL.
24571
24572 2009-05-20  Bruno Haible  <bruno@clisp.org>
24573
24574         Make zeroptr.h work on mingw.
24575         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24576         mprotect.
24577         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24578         * modules/memchr2-tests (configure.ac): Likewise.
24579         * modules/memcmp-tests (configure.ac): Likewise.
24580         * modules/memmem-tests (configure.ac): Likewise.
24581         * modules/memrchr-tests (configure.ac): Likewise.
24582         Reported by Simon Josefsson.
24583
24584 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24585
24586         * tests/test-glob.c: Include string.h for strcmp prototype.
24587
24588 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24589
24590         * modules/getdelim (Depends-on): Add explicit stdint, although it
24591         was implicitly already pulled in via realloc-posix.
24592         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24593
24594 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24595
24596         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24597         G. Christensen" <tgc@jupiterrise.com>.
24598         * m4/sys_socket_h.m4: Check for sa_family_t.
24599         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24600         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24601         * tests/test-sys_socket.c: Check that sa_family_t works.
24602
24603 2009-05-18  Eric Blake  <ebb9@byu.net>
24604
24605         maint.mk: allow gnulib_dir in VPATH build
24606         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24607
24608 2009-05-15  Jim Meyering  <meyering@redhat.com>
24609
24610         maint.mk: Give gnulib_dir a default definition.
24611         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24612         Thus, most packages no longer need to specify this variable in cfg.mk
24613
24614 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24615
24616         rename.m4: fix typos that would make non-mingw cross-configure fail
24617         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24618
24619 2009-05-13  Eric Blake  <ebb9@byu.net>
24620
24621         mmap-anon: avoid out-of-order autoconf expansion
24622         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24623         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24624         * modules/memchr-tests (Depends-on): Add extensions.
24625         * modules/memchr2-tests (Depends-on): Add extensions.
24626         * modules/memcmp-tests (Depends-on): Add extensions.
24627         * modules/memmem-tests (Depends-on): Add extensions.
24628         * modules/memrchr-tests (Depends-on): Add extensions.
24629
24630 2009-05-13  Bruno Haible  <bruno@clisp.org>
24631
24632         Make some tests ISO C 99 compliant.
24633         * tests/zerosize-ptr.h: New file.
24634         * tests/test-memchr.c: Include zerosize-ptr.h.
24635         (main): Use a zero-size object pointer instead of NULL.
24636         * tests/test-memchr2.c: Include zerosize-ptr.h.
24637         (main): Use a zero-size object pointer instead of NULL.
24638         * tests/test-memcmp.c: Include zerosize-ptr.h.
24639         (main): Use a zero-size object pointer instead of NULL.
24640         * tests/test-memmem.c: Include zerosize-ptr.h.
24641         (main): Use a zero-size object pointer instead of NULL.
24642         * tests/test-memrchr.c: Include zerosize-ptr.h.
24643         (main): Use a zero-size object pointer instead of NULL.
24644         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24645         m4/mmap-anon.m4.
24646         (Depends-on): Add getpagesize.
24647         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24648         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24649         m4/mmap-anon.m4.
24650         (Depends-on): Add getpagesize.
24651         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24652         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24653         m4/mmap-anon.m4.
24654         (Depends-on): Add getpagesize.
24655         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24656         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24657         m4/mmap-anon.m4.
24658         (Depends-on): Add getpagesize.
24659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24660         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24661         m4/mmap-anon.m4.
24662         (Depends-on): Add getpagesize.
24663         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24664
24665 2009-05-12  Bruno Haible  <bruno@clisp.org>
24666
24667         Tests for module 'alignof'.
24668         * modules/alignof-tests: New file.
24669         * tests/test-alignof.c: New file.
24670
24671 2009-05-12  Bruno Haible  <bruno@clisp.org>
24672
24673         Fix alignof macro.
24674         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24675         vendor compilers that are always correct.
24676
24677 2009-05-12  Bruno Haible  <bruno@clisp.org>
24678
24679         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24680         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24681         not whether its fully works.
24682
24683 2009-05-12  Bruno Haible  <bruno@clisp.org>
24684
24685         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24686
24687 2009-05-12  Jim Meyering  <meyering@redhat.com>
24688
24689         * top/maint.mk: Adjust backslash alignment.
24690
24691 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24692
24693         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24694
24695 2009-05-11  Eric Blake  <ebb9@byu.net>
24696
24697         argp: avoid undefined behavior
24698         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24699         macros.
24700
24701 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24702
24703         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24704         user.name to prevent git commit from complaining.
24705
24706 2009-05-10  Bruno Haible  <bruno@clisp.org>
24707
24708         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24709         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24710         it rewrites every file name only once.
24711         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24712
24713 2009-05-08  Bruno Haible  <bruno@clisp.org>
24714
24715         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24716         instead of 'max'.
24717
24718 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24719
24720         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24721         sockaddr_storage test.
24722
24723 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24724
24725         * modules/sys_socket (Makefile.am): Substitute
24726         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24727         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24728         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24729         * tests/test-sys_socket.c: Check sockaddr_storage.
24730
24731 2009-05-08  Bruno Haible  <bruno@clisp.org>
24732
24733         New module 'alignof'.
24734         * lib/alignof.h: New file.
24735         * modules/alignof: New file.
24736
24737 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24738             Bruno Haible  <bruno@clisp.org>
24739
24740         Fix test-file-has-acl on FreeBSD.
24741         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24742         mask is implicitly added.
24743         * tests/test-file-has-acl.c: Include <signal.h>.
24744         (main): Terminate the test after 5 seconds.
24745         * modules/acl-tests (configure.ac): Check for alarm function.
24746
24747 2009-05-04  Bruno Haible  <bruno@clisp.org>
24748
24749         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24750         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24751         * modules/errno (configure.ac): Drop AC_REQUIRE.
24752         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24753         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24754
24755 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24756
24757         * modules/glob-tests: New module.
24758         * tests/test-glob.c: Add.
24759
24760 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24761
24762         * modules/fnmatch-tests: New module.
24763         * tests/test-fnmatch.c: Add.
24764
24765 2009-05-04  Eric Blake  <ebb9@byu.net>
24766
24767         maint: make the new no-submodule-changes rule VPATH-safe
24768         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24769
24770 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24771             Bruno Haible  <bruno@clisp.org>
24772
24773         acl: Fix infinite loop on FreeBSD.
24774         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24775         of return value from acl_get_entry.
24776         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24777         Likewise.
24778
24779 2009-05-03  Bruno Haible  <bruno@clisp.org>
24780
24781         * lib/acl-internal.h (acl_entries): Clarify return value.
24782         * lib/acl_entries.c (acl_entries): Likewise.
24783
24784 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24785
24786         Bug fix in acl module.
24787         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24788
24789 2009-05-03  Bruno Haible  <bruno@clisp.org>
24790
24791         Create gperf-generated file in the source dir, not in the build dir.
24792         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24793         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24794         * modules/unicase/locale-language (unicase/locale-languages.h):
24795         Likewise.
24796         * modules/unicase/special-casing (unicase/special-casing-table.h):
24797         Likewise.
24798         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24799         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24800         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24801         Reported by Ralf Wildenhues.
24802
24803 2009-05-03  Bruno Haible  <bruno@clisp.org>
24804
24805         * modules/fnmatch (Description, configure.ac): Taken from
24806         fnmatch-posix.
24807         * modules/fnmatch-posix: Turn into a symbolic reference to the
24808         'fnmatch' module, and deprecate.
24809         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24810
24811 2009-05-03  Bruno Haible  <bruno@clisp.org>
24812
24813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24814         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24815         Reported by Ralf Wildenhues.
24816
24817 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24818
24819         * m4/fnmatch.m4: Fix fnmatch re-define.
24820
24821 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24822
24823         priv-set: new module and tests; adapt write-any-file
24824         * lib/priv-set.c: New file.
24825         * lib/priv-set.h: New file.
24826         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24827         * lib/write-any-file.c: Simplify by using priv-set module.
24828         * m4/priv-set.m4: New file.
24829         * modules/priv-set: New file.
24830         * modules/unlinkdir: Add dependency on priv-set module.
24831         * modules/write-any-file: Likewise.
24832
24833         Tests for module 'priv-set'.
24834         * modules/priv-set-tests: New file.
24835         * tests/test-priv-set.c: New file.
24836
24837 2009-05-03  Jim Meyering  <meyering@redhat.com>
24838             Bruno Haible  <bruno@clisp.org>
24839
24840         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24841         use the converted UTF-8 variant of the name instead.
24842
24843 2009-05-03  Jim Meyering  <meyering@redhat.com>
24844
24845         tests: tighten some getdate tests
24846         * tests/test-getdate.c (main): Tighten tests: require equality,
24847         not just greater than.  Set TZ envvar to UTC0.
24848
24849 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24850
24851         getdate: correctly interpret "next monday" when run on a Monday
24852         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24853         that e.g., "next tues" (when run on a tuesday) results in a date
24854         that is one week in the future, and not today's date.
24855         I.e., add a week when the wday is the same as the current one.
24856         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24857         and earlier by Martin Bernreuther and Jan Minář.
24858         * tests/test-getdate.c (main): Check that "next DAY" is always in
24859         the future and that "last DAY" is always in the past.
24860
24861 2009-05-02  Jim Meyering  <meyering@redhat.com>
24862
24863         build: ensure that a release build fails when a submodule is unclean
24864         * top/maint.mk (no-submodule-changes): New rule.
24865         (alpha beta major): Depend on it.
24866
24867 2009-05-02  Bruno Haible  <bruno@clisp.org>
24868
24869         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24870         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24871         shell variable gl_fnmatch_required to detect which variant is
24872         requested.
24873         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24874         gl_FUNC_FNMATCH_POSIX.
24875         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24876         exclude fnmatch-posix.
24877
24878 2009-05-02  Bruno Haible  <bruno@clisp.org>
24879
24880         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24881         * modules/mbsrtowcs (License): Change to LGPLv2+.
24882         * modules/strnlen1 (License): Likewise.
24883         Reported by Simon Josefsson.
24884
24885 2009-05-02  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24888         "cross".
24889         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24890         gnulib-tool was called with option --source-base=lib.
24891
24892 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24893
24894         Use automake *-local hooks without commands, for extensibility.
24895         * modules/localcharset (Makefile.am): Rename install-exec-local
24896         rule to install-exec-localcharset, and make it a prerequisite of
24897         install-exec-local.  Likewise, rename the uninstall-local rule to
24898         uninstall-localcharset, and make it a prerequisite of the former.
24899
24900 2009-05-01  Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24903         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24904         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24906         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24907         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24908         m4/locale-zh.m4, m4/codeset.m4.
24909
24910         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24911         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24912         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24913         m4/locale-zh.m4.
24914
24915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24916         REPLACE_WCRTOMB if mbstate_t must be replaced.
24917         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24918         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24919
24920 2009-05-01  Bruno Haible  <bruno@clisp.org>
24921
24922         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24923         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24924         dngettext, dcngettext, textdomain, bindtextdomain,
24925         bind_textdomain_codeset): Undefine before redefining.
24926
24927 2009-04-30  Bruno Haible  <bruno@clisp.org>
24928
24929         Fix bug introduced on 2009-04-25.
24930         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
24931         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
24932         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
24933         is defined.
24934         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
24935         is defined.
24936         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
24937         is defined.
24938         Reported by Elbert_Pol <elbert.pol@gmail.com>.
24939
24940 2009-04-28  Bruno Haible  <bruno@clisp.org>
24941
24942         Comment tweaks.
24943         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
24944         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
24945         * lib/unicase.h (u*_casexfrm): Likewise.
24946         Reported by Paolo Bonzini.
24947
24948 2009-04-28  Bruno Haible  <bruno@clisp.org>
24949
24950         Fix a compilation error.
24951         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
24952         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24953         Reported by Jim Meyering.
24954
24955 2009-04-27  Bruno Haible  <bruno@clisp.org>
24956
24957         New module 'libunistring'.
24958         * modules/libunistring: New file.
24959         * m4/libunistring.m4: New file.
24960         * MODULES.html.sh (Unicode string functions): Add it.
24961
24962 2009-04-27  Eric Blake  <ebb9@byu.net>
24963
24964         maint.mk: allow package-specific header to provide <config.h>
24965         * top/maint.mk (sc_require_config_h): New variable.
24966         (sc_require_config_h, sc_require_config_h_first): Use it.
24967
24968 2009-04-27  Simon Josefsson  <simon@josefsson.org>
24969
24970         * top/maint.mk (sc_avoid_if_before_free): Except
24971         useless-if-before-free script.
24972
24973 2009-04-27  Eric Blake  <ebb9@byu.net>
24974
24975         maintainer-makefile: depend on all required helper scripts
24976         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24977         useless-if-before-free.
24978         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24979         version, rather than assuming gnulib checkout is available.
24980         Reported by Simen Josefsson.
24981
24982 2009-04-26  Bruno Haible  <bruno@clisp.org>
24983
24984         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24985         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24986         "../" or "..".
24987
24988 2009-04-26  Bruno Haible  <bruno@clisp.org>
24989
24990         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24991         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24992         AC_LIB_HAVE_LINKFLAGS.
24993
24994 2009-04-26  Bruno Haible  <bruno@clisp.org>
24995
24996         Simplify calling convention of u*_conv_from_encoding.
24997         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24998         u32_conv_from_encoding): Expect a resultbuf argument and return the
24999         result directly as a pointer.
25000         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
25001         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
25002         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
25003         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
25004         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
25005         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25006         Update.
25007         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
25008         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
25009         * lib/vasnprintf.c (VASNPRINTF): Update.
25010         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
25011         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
25012         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
25013         * NEWS: Mention the change.
25014
25015 2009-04-26  Bruno Haible  <bruno@clisp.org>
25016
25017         Simplify calling convention of u*_conv_to_encoding.
25018         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25019         u32_conv_to_encoding): Expect a resultbuf argument and return the
25020         result directly as a pointer.
25021         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25022         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
25023         freeing scaled_offsets if mem_iconveha failed.
25024         * lib/unicase/u-casexfrm.h (FUNC): Update.
25025         * lib/uninorm/u-normxfrm.h (FUNC): Update.
25026         * lib/vasnprintf.c (VASNPRINTF): Update.
25027         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
25028         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
25029         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
25030         * NEWS: Mention the change.
25031
25032 2009-04-26  Bruno Haible  <bruno@clisp.org>
25033
25034         Avoid test failures on AIX and OSF/1.
25035         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
25036         malloc(0).
25037         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25038         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25039         Likewise.
25040         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
25041         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
25042         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
25043         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
25044         * doc/posix-functions/malloc.texi: Document the portability problem
25045         related to malloc(0).
25046
25047 2009-04-26  Bruno Haible  <bruno@clisp.org>
25048
25049         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
25050         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
25051         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
25052
25053 2009-04-25  Bruno Haible  <bruno@clisp.org>
25054
25055         Avoid link error when creating a namespace clean library.
25056         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
25057         as macro with arguments if already defined as an alias.
25058         * lib/signbitf.c (gl_signbitf): Don't undefine.
25059         * lib/signbitd.c (gl_signbitd): Don't undefine.
25060         * lib/signbitl.c (gl_signbitl): Don't undefine.
25061
25062 2009-04-25  Jim Meyering  <meyering@redhat.com>
25063
25064         vc-list-files: fix another quoting bug
25065         * build-aux/vc-list-files: Avoid sed backslash expansion
25066         of pathological directory names.
25067
25068 2009-04-25  Eric Blake  <ebb9@byu.net>
25069
25070         vc-list-files: fix shell quoting error
25071         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
25072         timestamp.
25073
25074 2009-04-25  Jim Meyering  <meyering@redhat.com>
25075
25076         vc-list-files: restore lost functionality with subdir argument
25077         * build-aux/vc-list-files: When given a non-"." sub-directory
25078         argument, substitute the $dir/ prefix back onto each resulting name.
25079         Otherwise, coreutils' root_tests check would fail.
25080
25081 2009-04-24  Eric Blake  <ebb9@byu.net>
25082
25083         vc-list-files: ignore git symlinks
25084         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
25085         than ls-files, to ignore git symlinks.
25086
25087         maint.mk: import improvements from m4
25088         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
25089         (move_if_change): Delete unused macro.
25090         (news-date-check, vc-diff-check): Support VPATH builds.
25091         (announcement): Likewise.  Split --bootstrap-tools list...
25092         (boostrap-tools): ...into separate list, which can be overridden
25093         in cfg.mk.
25094         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
25095         requiring dependency on useless-if-before-free module.
25096         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
25097         Support VPATH builds.
25098
25099 2009-04-24  Jim Meyering  <meyering@redhat.com>
25100
25101         maint.mk: remove coreutils-specific rules and variables
25102         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25103         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25104         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25105
25106         maint.mk: remove obsolete rule
25107         * top/maint.mk (rel-check): Remove rule.
25108         (WGET, WGETFLAGS): Remove now-unused variables.
25109
25110 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25111
25112         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25113         consistency.
25114
25115         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25116         '$(PATH_SEPARATOR)' instead of ':'.
25117
25118 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25119
25120         * lib/getopt1.c (main): Use 'const' for static array.
25121
25122 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25123
25124         * top/maint.mk: Sync with coreutils.
25125         * NEWS: Explain incompatibilities.
25126
25127 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25128             Bruno Haible  <bruno@clisp.org>
25129
25130         Fix cross-compilation results.
25131         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25132         statement, as third argument of AC_TRY_RUN.
25133         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25134         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25135         Likewise.
25136         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25137         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25138         Likewise.
25139         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25141         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25142
25143 2009-04-20  Bruno Haible  <bruno@clisp.org>
25144
25145         Avoid test failure on mingw.
25146         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25147
25148 2009-04-20  Bruno Haible  <bruno@clisp.org>
25149
25150         Avoid compilation error on mingw.
25151         * modules/localename-tests (Depends-on): Add locale.
25152
25153 2009-04-19  Bruno Haible  <bruno@clisp.org>
25154
25155         Support for building a shared library on Windows platforms.
25156         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25157         (main): Test the presence of UNINORM_NFC here.
25158         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25159         (main): Test the presence of UNINORM_NFD here.
25160         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25161         (main): Test the presence of UNINORM_NFKC here.
25162         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25163         (main): Test the presence of UNINORM_NFKD here.
25164
25165 2009-04-19  Bruno Haible  <bruno@clisp.org>
25166
25167         Avoid a compiler warning.
25168         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25169         Change type of variable 'sequence'.
25170
25171 2009-04-19  Bruno Haible  <bruno@clisp.org>
25172
25173         * modules/configmake (Makefile.am): When the contents of configmake.h
25174         does not change, arrange to preserve its modification time.
25175
25176 2009-04-17  Simon Josefsson  <simon@josefsson.org>
25177
25178         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
25179         gettext domain.
25180
25181 2009-04-16  Jim Meyering  <meyering@redhat.com>
25182
25183         useless-if-before-free: improve conversion code
25184         * build-aux/useless-if-before-free: Adjust code-in-comment to match
25185         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
25186
25187 2009-04-14  Bruno Haible  <bruno@clisp.org>
25188
25189         * modules/fcntl (Depends-on): Add extensions.
25190         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
25191
25192 2009-04-12  Ben Pfaff  <blp@gnu.org>
25193
25194         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
25195         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
25196
25197 2009-03-20  Ben Pfaff  <blp@gnu.org>
25198
25199         Make rename replace existing destinations on Windows.
25200         * m4/rename.m4: Add test for Mingw.
25201         * lib/rename.c: Add rename replacement that uses MoveFileEx with
25202         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
25203         * doc/posix-functions/rename.texi: Document.
25204
25205 2009-04-10  Bruno Haible  <bruno@clisp.org>
25206
25207         New include file "iconveh.h".
25208         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
25209         * lib/striconveh.h: Include it.
25210         (enum iconv_ilseq_handler): Remove definition.
25211         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
25212         striconveh.h.
25213         * lib/striconveha.c: Include striconveh.h.
25214         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
25215         * modules/striconveh (Files): Add lib/iconveh.h.
25216         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
25217         lib/striconveh.h.
25218
25219 2009-04-10  Bruno Haible  <bruno@clisp.org>
25220
25221         * lib/uniconv.h: Update comment.
25222
25223 2009-04-10  Bruno Haible  <bruno@clisp.org>
25224
25225         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
25226         always.
25227         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25228         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25229         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25230         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
25231         "unistring-notinline.h", so that the function gets defined always.
25232         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25233         * lib/unistr/u8-uctomb.c: Likewise.
25234         * lib/unistr/u16-mbtouc.c: Likewise.
25235         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25236         * lib/unistr/u16-uctomb.c: Likewise.
25237         * lib/unistr/u32-mbtouc.c: Likewise.
25238         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25239         * lib/unistr/u32-uctomb.c: Likewise.
25240
25241 2009-04-10  Bruno Haible  <bruno@clisp.org>
25242
25243         Mark 'utime' obsolete.
25244         * modules/utime (Status, Notice): New sections.
25245         Suggested by Jim Meyering.
25246
25247         Fix cross-compile guess for utime test.
25248         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
25249         autoconf.
25250         * doc/posix-functions/utime.texi: Give more precisions.
25251         Reported by Jan <ipif@ymail.com>.
25252
25253 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
25254
25255         filevercmp: correct today's change
25256         * lib/filevercmp.c: Also handle coreutils' test inputs.
25257         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
25258
25259         Fix regression in 'filevercmp' module. Thanks Sven Joachim
25260         for reporting it.
25261         * lib/filevercmp.c: Special handle for "", "." and "..".
25262         * tests/test-filevercmp.c: Enlarge the set suite.
25263
25264 2009-04-07  Jim Meyering  <meyering@redhat.com>
25265
25266         useless-if-before-free: show how to remove braced useless free, too
25267         * build-aux/useless-if-before-free: still only in a comment, though.
25268
25269 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
25270
25271         maint.mk: import changes to syntax-check macros from coreutils
25272         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
25273         Use them in the relevant macros.
25274
25275 2009-04-06  Bruno Haible  <bruno@clisp.org>
25276
25277         Fix unportable use of bit-fields.
25278         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
25279         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
25280         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
25281
25282 2009-04-06  Bruno Haible  <bruno@clisp.org>
25283
25284         Avoid test failures on AIX and OSF/1.
25285         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
25286         that malloc(0) = NULL.
25287         * tests/unicase/test-u8-tolower.c (check): Likewise.
25288         * tests/unicase/test-u8-totitle.c (check): Likewise.
25289         * tests/unicase/test-u8-toupper.c (check): Likewise.
25290         * tests/unicase/test-u16-casefold.c (check): Likewise.
25291         * tests/unicase/test-u16-tolower.c (check): Likewise.
25292         * tests/unicase/test-u16-totitle.c (check): Likewise.
25293         * tests/unicase/test-u16-toupper.c (check): Likewise.
25294         * tests/unicase/test-u32-casefold.c (check): Likewise.
25295         * tests/unicase/test-u32-tolower.c (check): Likewise.
25296         * tests/unicase/test-u32-totitle.c (check): Likewise.
25297         * tests/unicase/test-u32-toupper.c (check): Likewise.
25298         * tests/uninorm/test-u8-nfc.c (check): Likewise.
25299         * tests/uninorm/test-u8-nfd.c (check): Likewise.
25300         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
25301         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
25302         * tests/uninorm/test-u16-nfc.c (check): Likewise.
25303         * tests/uninorm/test-u16-nfd.c (check): Likewise.
25304         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
25305         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
25306         * tests/uninorm/test-u32-nfc.c (check): Likewise.
25307         * tests/uninorm/test-u32-nfd.c (check): Likewise.
25308         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
25309         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
25310
25311 2009-04-05  Bruno Haible  <bruno@clisp.org>
25312
25313         Work around an autoconf limitation.
25314         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
25315         comment line if it would be longer than 3 KB.
25316
25317 2009-04-05  Bruno Haible  <bruno@clisp.org>
25318
25319         Avoid test failure with libiconv-1.13.
25320         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
25321         of the expected test results.
25322
25323 2009-04-05  Bruno Haible  <bruno@clisp.org>
25324
25325         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
25326         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
25327         that it should be installed.
25328
25329 2009-04-05  Bruno Haible  <bruno@clisp.org>
25330
25331         * gnulib-tool: New option --copy-file.
25332         (func_usage): Document it.
25333         (func_dest_tmpfilename): Moved out of func_import.
25334         (func_add_file, func_update_file): New functions, extracted from
25335         func_import.
25336         (func_import): Update.
25337
25338 2009-04-05  Karl Berry  <karl@gnu.org>
25339
25340         * README: prominently mention gnulib-tool.
25341         Rearrange sections so getting the code is near the top.
25342
25343 2009-04-05  Bruno Haible  <bruno@clisp.org>
25344
25345         * lib/unicase.h: Mention u*_cmp2.
25346         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25347         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
25348         * lib/unicase/ulc-casecmp.c: Likewise.
25349         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
25350         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
25351         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
25352         unistr/u8-cmp.
25353         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
25354         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
25355         unistr/u16-cmp.
25356         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
25357         unistr/u32-cmp.
25358
25359         * lib/uninorm.h: Mention u*_cmp2.
25360         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25361         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
25362         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
25363         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
25364         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
25365         unistr/u8-cmp.
25366         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
25367         unistr/u16-cmp.
25368         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
25369         unistr/u32-cmp.
25370
25371         New module 'unistr/u32-cmp2'.
25372         * lib/unistr/u32-cmp2.c: New file.
25373         * modules/unistr/u32-cmp2: New file.
25374
25375         New module 'unistr/u16-cmp2'.
25376         * lib/unistr/u16-cmp2.c: New file.
25377         * modules/unistr/u16-cmp2: New file.
25378
25379         New module 'unistr/u8-cmp2'.
25380         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
25381         * lib/unistr/u8-cmp2.c: New file.
25382         * lib/unistr/u-cmp2.h: New file.
25383         * modules/unistr/u8-cmp2: New file.
25384
25385 2009-04-05  Bruno Haible  <bruno@clisp.org>
25386
25387         * lib/unictype.h (uc_property_is_valid): New macro.
25388         * tests/unictype/test-pr_byname.c (main): Use it.
25389
25390         * lib/unistr.h: Doc fixes.
25391         * lib/uniconv.h: Doc fixes.
25392         * lib/unictype.h: Doc fixes.
25393
25394 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25395
25396         Port coreutils 7.2 to Solaris 8.
25397
25398         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
25399         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
25400         for Solaris 8.  This is a bit of a hack, as it means it's the
25401         caller's responsibility to add -lnsl if needed, but most likely it
25402         won't be needed since only getaddrinfo uses this and getaddrinfo
25403         isn't needed on Solaris 8.
25404
25405         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
25406         problem to Solaris 8 encountered with coreutils 7.2, which
25407         resulted in a message "fnmatch.c:292: warning: passing argument 4
25408         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
25409         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
25410
25411 2009-04-03  Simon Josefsson  <simon@josefsson.org>
25412
25413         * m4/ld-version-script.m4: Add FIXME comment.
25414
25415 2009-04-02  Simon Josefsson  <simon@josefsson.org>
25416
25417         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
25418         SOVERSION variable.
25419
25420 2009-04-02  Bruno Haible  <bruno@clisp.org>
25421
25422         * Makefile (info, html, dvi, pdf): Combine the rules.
25423         Suggested by Jim Meyering.
25424
25425 2009-04-01  Bruno Haible  <bruno@clisp.org>
25426
25427         * Makefile (info, html, dvi, pdf): New targets.
25428         Reported by Reuben Thomas <rrt@sc3d.org>.
25429
25430 2009-04-01  Bruno Haible  <bruno@clisp.org>
25431
25432         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
25433         can be put into PATH.
25434         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
25435
25436 2009-04-01  Bruno Haible  <bruno@clisp.org>
25437
25438         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
25439
25440 2009-04-01  Bruno Haible  <bruno@clisp.org>
25441
25442         Rename module 'visibility'.
25443         * modules/lib-symbol-visibility: Renamed from modules/visibility.
25444         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
25445         * doc/gnulib.texi: Update.
25446         * MODULES.html.sh (Misc): Update.
25447         * NEWS: Mention the change.
25448
25449 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25450
25451         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
25452         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
25453         Eric Blake <ebb9@byu.net> for review.
25454         * MODULES.html.sh: Add lib-msvc-compat.
25455         * doc/gnulib.texi: Link to new section.
25456         * m4/ld-output-def.m4: New file.
25457         * doc/ld-output-def.texi: New file.
25458
25459 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25460
25461         Rename ld-version-script to lib-symbol-versions.  Suggested by
25462         Bruno Haible <bruno@clisp.org>.
25463         * modules/ld-version-script: Renamed to lib-symbol-versions.
25464         * doc/ld-version-script.texi: Fix module name.
25465         * MODULES.html.sh: Add lib-symbol-versions.
25466
25467 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25468
25469         * modules/u64-tests: New file.
25470         * tests/test-u64.c: New file.
25471
25472 2009-03-04  Simon Josefsson  <simon@josefsson.org>
25473
25474         * MODULES.html.sh: Mention u64.
25475         * modules/u64: New module.
25476         * modules/crypto/sha512: Depend on u64 module instead of providing
25477         u64.h.
25478
25479 2009-03-27  Eric Blake  <ebb9@byu.net>
25480
25481         test-strerror: make debugging EAI_SYSTEM easier
25482         * modules/getaddrinfo-tests (Depends-on): Add strerror.
25483         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
25484         failure was EAI_SYSTEM.
25485
25486 2009-03-25  Bruno Haible  <bruno@clisp.org>
25487
25488         Fix a problem with --enable-relocatable on Solaris 7.
25489         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
25490         since 2008-02-24.
25491
25492 2009-03-25  Eric Blake  <ebb9@byu.net>
25493
25494         test-sockets: avoid gcc warning
25495         * tests/test-sockets.c (main): Silence compiler warning.
25496
25497 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         New modules nproc, pthread, contributed by Glen Lenker.
25500
25501         * MODULES.html.sh: Add pthread, nproc.
25502         * lib/nproc.c: New file.
25503         * lib/nproc.h: New file.
25504         * lib/pthread.in.h: New file.
25505         * m4/pthread.m4: New file.
25506         * modules/nproc: New file.
25507         * modules/pthread: New file.
25508
25509 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25510
25511         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25512         New variable.
25513
25514 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25515
25516         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25517         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25518         * tests/test-filevercmp.c: Add tests for backup suffixes.
25519
25520 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25521
25522         * modules/stdlib (Depends-on): Add stdint, needed when defining
25523         struct random_data on, for example, HP-UX 10.20.  Reported by
25524         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25525
25526 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25527
25528         * lib/readline.c (readline): Call fflush on stdout after printing
25529         prompt.
25530
25531 2009-03-20  Bruno Haible  <bruno@clisp.org>
25532
25533         Remove dependency from 'close' module to -lws2_32 on native Windows.
25534         * lib/close-hook.h: New file.
25535         * lib/close-hook.c: New file.
25536         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25537         w32sock.h.
25538         (_gl_close_fd_maybe_socket): Remove function.
25539         (rpl_close): Invoke execute_all_close_hooks instead of
25540         _gl_close_fd_maybe_socket.
25541         * lib/sockets.c: Include close-hook.h, w32sock.h.
25542         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25543         (close_sockets_hook): New variable.
25544         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25545         (gl_sockets_cleanup): Unregister it.
25546         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25547         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25548         * modules/close-hook: New file.
25549         * modules/close (Files): Remove lib/w32sock.h.
25550         (Depends-on): Add close-hook.
25551         (Link): Remove section.
25552         * modules/sockets (Files): Add lib/w32sock.h.
25553         (Depends-on): Add close-hook.
25554         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25555         invocation.
25556         * NEWS: Mention that LIB_CLOSE is gone.
25557
25558 2009-03-23  Eric Blake  <ebb9@byu.net>
25559
25560         signal-tests: test previous patch
25561         * tests/test-signal.c: New file.
25562         * modules/signal-tests: Likewise.
25563
25564         signal.h: always support 'volatile sig_atomic_t'
25565         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25566         (gl_SIGNAL_H_DEFAULTS): Add a default.
25567         * modules/signal (Makefile.am): Substitute if needed.
25568         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25569         users can blindly add volatile.
25570         * doc/posix-headers/signal.texi (signal.h): Document it.
25571         Reported by Matthew Woehlke.
25572
25573 2009-03-23  Jim Meyering  <meyering@redhat.com>
25574
25575         pathmax: PATH_MAX: use pathconf only when available
25576         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25577         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25578         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25579         This avoids a link failure in a PSP cross-compilation environment
25580         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25581
25582         * lib/vasnprintf.c (divide): Fix typo in comment.
25583
25584 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25585
25586         * gnulib-tool (func_filter_filelist): Fix comment.
25587
25588 2009-03-20  Bruno Haible  <bruno@clisp.org>
25589
25590         Make sockets.h self-contained.
25591         * lib/sockets.c: Include sockets.h first.
25592         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25593
25594 2009-03-19  Eric Blake  <ebb9@byu.net>
25595
25596         doc: mention more functions added in cygwin 1.7.0
25597         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25598         addition.
25599         * doc/posix-functions/log2f.texi: Likewise.
25600
25601 2009-03-19  Jim Meyering  <meyering@redhat.com>
25602
25603         fsusage: avoid syntax error due to statement-before-declaration
25604         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25605         after all declarations.  Reported by Matthew Woehlke in
25606         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25607
25608 2009-03-18  Eric Blake  <ebb9@byu.net>
25609
25610         build-aux/compile: sync from automake
25611         * build-aux/compile: New file, from automake.
25612         * config/srclist.txt: Mention build-aux/compile.
25613
25614 2009-03-17  Bruno Haible  <bruno@clisp.org>
25615
25616         * lib/git-merge-changelog.c: Fix typo in comment.
25617         Reported by Reuben Thomas <rrt@sc3d.org>.
25618
25619 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25620
25621         * m4/regex.m4: update and improve help for
25622         --without-included-regex.
25623
25624 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25625
25626         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25627         failure on missing include files.
25628
25629 2009-03-17  Eric Blake  <ebb9@byu.net>
25630
25631         doc: mention more functions added in cygwin 1.7.0
25632         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25633         addition.
25634         * doc/posix-functions/fwscanf.texi: Likewise.
25635         * doc/posix-functions/swprintf.texi: Likewise.
25636         * doc/posix-functions/swscanf.texi: Likewise.
25637         * doc/posix-functions/vfwprintf.texi: Likewise.
25638         * doc/posix-functions/vfwscanf.texi: Likewise.
25639         * doc/posix-functions/vswprintf.texi: Likewise.
25640         * doc/posix-functions/vswscanf.texi: Likewise.
25641         * doc/posix-functions/vwprintf.texi: Likewise.
25642         * doc/posix-functions/vwscanf.texi: Likewise.
25643         * doc/posix-functions/wcscasecmp.texi: Likewise.
25644         * doc/posix-functions/wcsdup.texi: Likewise.
25645         * doc/posix-functions/wcsftime.texi: Likewise.
25646         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25647         * doc/posix-functions/wprintf.texi: Likewise.
25648         * doc/posix-functions/wscanf.texi: Likewise.
25649         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25650
25651 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25652
25653         maint.mk: really add $(AM_MAKEFLAGS)
25654         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25655         was inadvertently omitted in the last commit.
25656         Spotted by Bruno Haible.
25657
25658         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25659         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25660         $(AM_MAKEFLAGS)' rather than plain `make'.
25661
25662         gnulib-tool: execute $MAKE not make
25663         * gnulib-tool: Default $MAKE to 'make'.
25664         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25665         than make.  Initialize $MAKE in the do-autobuild script.
25666
25667         gnulib-tool: use $MAKE not make in generated files
25668         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25669         make, in generated files.  Initialize $MAKE in the do-autobuild
25670         script.
25671
25672         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25673
25674         GNUmakefile: disable parallelism only for multiple, recursive targets
25675         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25676         additions in the Makefile.
25677         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25678         by Automake.
25679         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25680         are listed on the command line and at least one of them is
25681         listed in $(ALL_RECURSIVE_TARGETS).
25682
25683 2009-03-14  Bruno Haible  <bruno@clisp.org>
25684
25685         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25686         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25687         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25688         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25689         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25690         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25691         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25692         unistr/u8-uctomb.
25693         * modules/unistr/u8-strchr (Depends-on): Likewise.
25694         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25695         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25696         unistr/u16-uctomb.
25697         * modules/unistr/u16-strchr (Depends-on): Likewise.
25698         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25699
25700 2009-03-12  Bruno Haible  <bruno@clisp.org>
25701
25702         Work around select() bug on Interix 3.5.
25703         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25704         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25705         * m4/select.m4: New file.
25706         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25707         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25708         * modules/select (Files): Add m4/select.m4.
25709         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25710         * modules/nanosleep (Depends-on): Add select.
25711         * modules/poll (Depends-on): Likewise.
25712         * doc/posix-functions/select.texi: Mention the Interix bug.
25713         Reported by Markus Duft <mduft@gentoo.org>.
25714
25715         * lib/select.c: Renamed from lib/winsock-select.c.
25716         * modules/select (Files): Add lib/select.c, remove
25717         lib/winsock-select.c.
25718         (configure.ac): Update.
25719
25720 2009-03-12  Jim Meyering  <meyering@redhat.com>
25721
25722         avoid gcc warnings about unused macro definitions
25723         * lib/readtokens.c (STREQ): Remove unused definition.
25724         * lib/xmalloc.c (SIZE_MAX): Likewise.
25725         * lib/openat-die.c (N_): Likewise.
25726         * lib/mountlist.c (SIZE_MAX): Remove definition.
25727         Instead, include <stdint.h>.
25728         * lib/readutmp.c: Likewise.
25729         * modules/readutmp (Depends-on): Add stdint.
25730         * modules/mountlist (Depends-on): Add stdint.
25731         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25732
25733 2009-03-10  Bruno Haible  <bruno@clisp.org>
25734
25735         Tests for module 'mbmemcasecoll'.
25736         * modules/mbmemcasecoll-tests: New file.
25737         * tests/test-mbmemcasecoll1.sh: New file.
25738         * tests/test-mbmemcasecoll2.sh: New file.
25739         * tests/test-mbmemcasecoll3.sh: New file.
25740         * tests/test-mbmemcasecoll.c: New file.
25741
25742         New module 'mbmemcasecoll'.
25743         * lib/mbmemcasecoll.h: New file.
25744         * lib/mbmemcasecoll.c: New file.
25745         * modules/mbmemcasecoll: New file.
25746
25747         * tests/test-mbmemcasecmp.h: New file, extracted from
25748         tests/test-mbmemcasecmp.c.
25749         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25750         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25751         (main): Update.
25752         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25753
25754 2009-03-09  Bruno Haible  <bruno@clisp.org>
25755
25756         Tests for module 'mbmemcasecmp'.
25757         * modules/mbmemcasecmp-tests: New file.
25758         * tests/test-mbmemcasecmp1.sh: New file.
25759         * tests/test-mbmemcasecmp2.sh: New file.
25760         * tests/test-mbmemcasecmp3.sh: New file.
25761         * tests/test-mbmemcasecmp.c: New file.
25762
25763         New module 'mbmemcasecmp'.
25764         * lib/mbmemcasecmp.h: New file.
25765         * lib/mbmemcasecmp.c: New file.
25766         * modules/mbmemcasecmp: New file.
25767
25768 2009-03-09  Bruno Haible  <bruno@clisp.org>
25769
25770         Tests for module 'unicase/ulc-casecoll'.
25771         * modules/unicase/ulc-casecoll-tests: New file.
25772         * tests/unicase/test-ulc-casecoll1.sh: New file.
25773         * tests/unicase/test-ulc-casecoll2.sh: New file.
25774         * tests/unicase/test-ulc-casecoll.c: New file.
25775
25776         New module 'unicase/ulc-casecoll'.
25777         * lib/unicase.h (ulc_casecoll): New declaration.
25778         * lib/unicase/ulc-casecoll.c: New file.
25779         * modules/unicase/ulc-casecoll: New file.
25780
25781         New module 'unicase/ulc-casexfrm'.
25782         * lib/unicase.h (ulc_casexfrm): New declaration.
25783         * lib/unicase/ulc-casexfrm.c: New file.
25784         * modules/unicase/ulc-casexfrm: New file.
25785
25786 2009-03-09  Bruno Haible  <bruno@clisp.org>
25787
25788         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25789         invocations.
25790
25791         * m4/mbscasecmp.m4: Remove file.
25792         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25793         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25794
25795         * m4/mbscasestr.m4: Remove file.
25796         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25797         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25798
25799         * m4/mbschr.m4: Remove file.
25800         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25801         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25802
25803         * m4/mbscspn.m4: Remove file.
25804         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25805         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25806
25807         * m4/mbslen.m4: Remove file.
25808         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25809         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25810
25811         * m4/mbsncasecmp.m4: Remove file.
25812         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25813         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25814
25815         * m4/mbsnlen.m4: Remove file.
25816         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25817         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25818
25819         * m4/mbspbrk.m4: Remove file.
25820         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25821         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25822
25823         * m4/mbspcasecmp.m4: Remove file.
25824         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25825         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25826
25827         * m4/mbsrchr.m4: Remove file.
25828         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25829         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25830
25831         * m4/mbssep.m4: Remove file.
25832         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25833         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25834
25835         * m4/mbsspn.m4: Remove file.
25836         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25837         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25838
25839         * m4/mbsstr.m4: Remove file.
25840         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25841         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25842
25843         * m4/mbstok_r.m4: Remove file.
25844         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25845         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25846
25847         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25848
25849         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25850         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25851
25852         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25853
25854 2009-03-08  Bruno Haible  <bruno@clisp.org>
25855
25856         Tests for module 'unicase/ulc-casecmp'.
25857         * modules/unicase/ulc-casecmp-tests: New file.
25858         * tests/unicase/test-ulc-casecmp1.sh: New file.
25859         * tests/unicase/test-ulc-casecmp2.sh: New file.
25860         * tests/unicase/test-ulc-casecmp.c: New file.
25861
25862         New module 'unicase/ulc-casecmp'.
25863         * lib/unicase.h (ulc_casecmp): New declaration.
25864         * lib/unicase/ulc-casecmp.c: New file.
25865         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25866         'const SRC_UNIT *'.
25867         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25868         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25869         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25870         * modules/unicase/ulc-casecmp: New file.
25871
25872         Tests for module 'unicase/u32-is-cased'.
25873         * modules/unicase/u32-is-cased-tests: New file.
25874         * tests/unicase/test-u32-is-cased.c: New file.
25875
25876         Tests for module 'unicase/u16-is-cased'.
25877         * modules/unicase/u16-is-cased-tests: New file.
25878         * tests/unicase/test-u16-is-cased.c: New file.
25879
25880         Tests for module 'unicase/u8-is-cased'.
25881         * modules/unicase/u8-is-cased-tests: New file.
25882         * tests/unicase/test-u8-is-cased.c: New file.
25883         * tests/unicase/test-is-cased.h: New file.
25884
25885         New module 'unicase/u32-is-cased'.
25886         * lib/unicase/u32-is-cased.c: New file.
25887         * modules/unicase/u32-is-cased: New file.
25888
25889         New module 'unicase/u16-is-cased'.
25890         * lib/unicase/u16-is-cased.c: New file.
25891         * modules/unicase/u16-is-cased: New file.
25892
25893         New module 'unicase/u8-is-cased'.
25894         * lib/unicase/u8-is-cased.c: New file.
25895         * lib/unicase/u-is-cased.h: New file.
25896         * modules/unicase/u8-is-cased: New file.
25897
25898         Tests for module 'unicase/u32-is-casefolded'.
25899         * modules/unicase/u32-is-casefolded-tests: New file.
25900         * tests/unicase/test-u32-is-casefolded.c: New file.
25901
25902         Tests for module 'unicase/u16-is-casefolded'.
25903         * modules/unicase/u16-is-casefolded-tests: New file.
25904         * tests/unicase/test-u16-is-casefolded.c: New file.
25905
25906         Tests for module 'unicase/u8-is-casefolded'.
25907         * modules/unicase/u8-is-casefolded-tests: New file.
25908         * tests/unicase/test-u8-is-casefolded.c: New file.
25909         * tests/unicase/test-is-casefolded.h: New file.
25910
25911         New module 'unicase/u32-is-casefolded'.
25912         * lib/unicase/u32-is-casefolded.c: New file.
25913         * modules/unicase/u32-is-casefolded: New file.
25914
25915         New module 'unicase/u16-is-casefolded'.
25916         * lib/unicase/u16-is-casefolded.c: New file.
25917         * modules/unicase/u16-is-casefolded: New file.
25918
25919         New module 'unicase/u8-is-casefolded'.
25920         * lib/unicase/u8-is-casefolded.c: New file.
25921         * modules/unicase/u8-is-casefolded: New file.
25922
25923         Tests for module 'unicase/u32-is-titlecase'.
25924         * modules/unicase/u32-is-titlecase-tests: New file.
25925         * tests/unicase/test-u32-is-titlecase.c: New file.
25926
25927         Tests for module 'unicase/u16-is-titlecase'.
25928         * modules/unicase/u16-is-titlecase-tests: New file.
25929         * tests/unicase/test-u16-is-titlecase.c: New file.
25930
25931         Tests for module 'unicase/u8-is-titlecase'.
25932         * modules/unicase/u8-is-titlecase-tests: New file.
25933         * tests/unicase/test-u8-is-titlecase.c: New file.
25934         * tests/unicase/test-is-titlecase.h: New file.
25935
25936         New module 'unicase/u32-is-titlecase'.
25937         * lib/unicase/u32-is-titlecase.c: New file.
25938         * modules/unicase/u32-is-titlecase: New file.
25939
25940         New module 'unicase/u16-is-titlecase'.
25941         * lib/unicase/u16-is-titlecase.c: New file.
25942         * modules/unicase/u16-is-titlecase: New file.
25943
25944         New module 'unicase/u8-is-titlecase'.
25945         * lib/unicase/u8-is-titlecase.c: New file.
25946         * modules/unicase/u8-is-titlecase: New file.
25947
25948         Tests for module 'unicase/u32-is-lowercase'.
25949         * modules/unicase/u32-is-lowercase-tests: New file.
25950         * tests/unicase/test-u32-is-lowercase.c: New file.
25951
25952         Tests for module 'unicase/u16-is-lowercase'.
25953         * modules/unicase/u16-is-lowercase-tests: New file.
25954         * tests/unicase/test-u16-is-lowercase.c: New file.
25955
25956         Tests for module 'unicase/u8-is-lowercase'.
25957         * modules/unicase/u8-is-lowercase-tests: New file.
25958         * tests/unicase/test-u8-is-lowercase.c: New file.
25959         * tests/unicase/test-is-lowercase.h: New file.
25960
25961         New module 'unicase/u32-is-lowercase'.
25962         * lib/unicase/u32-is-lowercase.c: New file.
25963         * modules/unicase/u32-is-lowercase: New file.
25964
25965         New module 'unicase/u16-is-lowercase'.
25966         * lib/unicase/u16-is-lowercase.c: New file.
25967         * modules/unicase/u16-is-lowercase: New file.
25968
25969         New module 'unicase/u8-is-lowercase'.
25970         * lib/unicase/u8-is-lowercase.c: New file.
25971         * modules/unicase/u8-is-lowercase: New file.
25972
25973         Tests for module 'unicase/u32-is-uppercase'.
25974         * modules/unicase/u32-is-uppercase-tests: New file.
25975         * tests/unicase/test-u32-is-uppercase.c: New file.
25976
25977         Tests for module 'unicase/u16-is-uppercase'.
25978         * modules/unicase/u16-is-uppercase-tests: New file.
25979         * tests/unicase/test-u16-is-uppercase.c: New file.
25980
25981         Tests for module 'unicase/u8-is-uppercase'.
25982         * modules/unicase/u8-is-uppercase-tests: New file.
25983         * tests/unicase/test-u8-is-uppercase.c: New file.
25984         * tests/unicase/test-is-uppercase.h: New file.
25985
25986         New module 'unicase/u32-is-uppercase'.
25987         * lib/unicase/u32-is-uppercase.c: New file.
25988         * modules/unicase/u32-is-uppercase: New file.
25989
25990         New module 'unicase/u16-is-uppercase'.
25991         * lib/unicase/u16-is-uppercase.c: New file.
25992         * modules/unicase/u16-is-uppercase: New file.
25993
25994         New module 'unicase/u8-is-uppercase'.
25995         * lib/unicase/u8-is-uppercase.c: New file.
25996         * modules/unicase/u8-is-uppercase: New file.
25997
25998         New module 'unicase/u32-is-invariant'.
25999         * lib/unicase/u32-is-invariant.c: New file.
26000         * modules/unicase/u32-is-invariant: New file.
26001
26002         New module 'unicase/u16-is-invariant'.
26003         * lib/unicase/u16-is-invariant.c: New file.
26004         * modules/unicase/u16-is-invariant: New file.
26005
26006         New module 'unicase/u8-is-invariant'.
26007         * lib/unicase/u8-is-invariant.c: New file.
26008         * lib/unicase/invariant.h: New file.
26009         * lib/unicase/u-is-invariant.h: New file.
26010         * modules/unicase/u8-is-invariant: New file.
26011
26012         Tests for module 'unicase/u32-casecoll'.
26013         * modules/unicase/u32-casecoll-tests: New file.
26014         * tests/unicase/test-u32-casecoll.c: New file.
26015
26016         Tests for module 'unicase/u16-casecoll'.
26017         * modules/unicase/u16-casecoll-tests: New file.
26018         * tests/unicase/test-u16-casecoll.c: New file.
26019
26020         Tests for module 'unicase/u8-casecoll'.
26021         * modules/unicase/u8-casecoll-tests: New file.
26022         * tests/unicase/test-u8-casecoll.c: New file.
26023
26024         New module 'unicase/u32-casecoll'.
26025         * lib/unicase/u32-casecoll.c: New file.
26026         * modules/unicase/u32-casecoll: New file.
26027
26028         New module 'unicase/u16-casecoll'.
26029         * lib/unicase/u16-casecoll.c: New file.
26030         * modules/unicase/u16-casecoll: New file.
26031
26032         New module 'unicase/u8-casecoll'.
26033         * lib/unicase/u8-casecoll.c: New file.
26034         * lib/unicase/u-casecoll.h: New file.
26035         * modules/unicase/u8-casecoll: New file.
26036
26037         New module 'unicase/u32-casexfrm'.
26038         * lib/unicase/u32-casexfrm.c: New file.
26039         * modules/unicase/u32-casexfrm: New file.
26040
26041         New module 'unicase/u16-casexfrm'.
26042         * lib/unicase/u16-casexfrm.c: New file.
26043         * modules/unicase/u16-casexfrm: New file.
26044
26045         New module 'unicase/u8-casexfrm'.
26046         * lib/unicase/u8-casexfrm.c: New file.
26047         * lib/unicase/u-casexfrm.h: New file.
26048         * modules/unicase/u8-casexfrm: New file.
26049
26050         Tests for module 'unicase/u32-casecmp'.
26051         * modules/unicase/u32-casecmp-tests: New file.
26052         * tests/unicase/test-u32-casecmp.c: New file.
26053
26054         Tests for module 'unicase/u16-casecmp'.
26055         * modules/unicase/u16-casecmp-tests: New file.
26056         * tests/unicase/test-u16-casecmp.c: New file.
26057
26058         Tests for module 'unicase/u8-casecmp'.
26059         * modules/unicase/u8-casecmp-tests: New file.
26060         * tests/unicase/test-u8-casecmp.c: New file.
26061         * tests/unicase/test-casecmp.h: New file.
26062
26063         New module 'unicase/u32-casecmp'.
26064         * lib/unicase/u32-casecmp.c: New file.
26065         * modules/unicase/u32-casecmp: New file.
26066
26067         New module 'unicase/u16-casecmp'.
26068         * lib/unicase/u16-casecmp.c: New file.
26069         * modules/unicase/u16-casecmp: New file.
26070
26071         New module 'unicase/u8-casecmp'.
26072         * lib/unicase/u8-casecmp.c: New file.
26073         * lib/unicase/u-casecmp.h: New file.
26074         * modules/unicase/u8-casecmp: New file.
26075
26076         Tests for module 'unicase/u32-casefold'.
26077         * modules/unicase/u32-casefold-tests: New file.
26078         * tests/unicase/test-u32-casefold.c: New file.
26079
26080         Tests for module 'unicase/u16-casefold'.
26081         * modules/unicase/u16-casefold-tests: New file.
26082         * tests/unicase/test-u16-casefold.c: New file.
26083
26084         Tests for module 'unicase/u8-casefold'.
26085         * modules/unicase/u8-casefold-tests: New file.
26086         * tests/unicase/test-u8-casefold.c: New file.
26087
26088         New module 'unicase/u32-casefold'.
26089         * lib/unicase/u32-casefold.c: New file.
26090         * modules/unicase/u32-casefold: New file.
26091
26092         New module 'unicase/u16-casefold'.
26093         * lib/unicase/u16-casefold.c: New file.
26094         * modules/unicase/u16-casefold: New file.
26095
26096         New module 'unicase/u8-casefold'.
26097         * lib/unicase/u8-casefold.c: New file.
26098         * lib/unicase/u-casefold.h: New file.
26099         * modules/unicase/u8-casefold: New file.
26100
26101         New module 'unicase/tocasefold'.
26102         * lib/unicase/casefold.h: New file.
26103         * lib/unicase/tocasefold.c: New file.
26104         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26105         * modules/unicase/tocasefold: New file.
26106
26107         Tests for module 'unicase/u32-totitle'.
26108         * modules/unicase/u32-totitle-tests: New file.
26109         * tests/unicase/test-u32-totitle.c: New file.
26110
26111         Tests for module 'unicase/u16-totitle'.
26112         * modules/unicase/u16-totitle-tests: New file.
26113         * tests/unicase/test-u16-totitle.c: New file.
26114
26115         Tests for module 'unicase/u8-totitle'.
26116         * modules/unicase/u8-totitle-tests: New file.
26117         * tests/unicase/test-u8-totitle.c: New file.
26118
26119         New module 'unicase/u32-totitle'.
26120         * lib/unicase/u32-totitle.c: New file.
26121         * modules/unicase/u32-totitle: New file.
26122
26123         New module 'unicase/u16-totitle'.
26124         * lib/unicase/u16-totitle.c: New file.
26125         * modules/unicase/u16-totitle: New file.
26126
26127         New module 'unicase/u8-totitle'.
26128         * lib/unicase/u8-totitle.c: New file.
26129         * lib/unicase/u-totitle.h: New file.
26130         * modules/unicase/u8-totitle: New file.
26131
26132         Tests for module 'unicase/u32-tolower'.
26133         * modules/unicase/u32-tolower-tests: New file.
26134         * tests/unicase/test-u32-tolower.c: New file.
26135
26136         Tests for module 'unicase/u16-tolower'.
26137         * modules/unicase/u16-tolower-tests: New file.
26138         * tests/unicase/test-u16-tolower.c: New file.
26139
26140         Tests for module 'unicase/u8-tolower'.
26141         * modules/unicase/u8-tolower-tests: New file.
26142         * tests/unicase/test-u8-tolower.c: New file.
26143
26144         New module 'unicase/u32-tolower'.
26145         * lib/unicase/u32-tolower.c: New file.
26146         * modules/unicase/u32-tolower: New file.
26147
26148         New module 'unicase/u16-tolower'.
26149         * lib/unicase/u16-tolower.c: New file.
26150         * modules/unicase/u16-tolower: New file.
26151
26152         New module 'unicase/u8-tolower'.
26153         * lib/unicase/u8-tolower.c: New file.
26154         * modules/unicase/u8-tolower: New file.
26155
26156         Tests for module 'unicase/u32-toupper'.
26157         * modules/unicase/u32-toupper-tests: New file.
26158         * tests/unicase/test-u32-toupper.c: New file.
26159
26160         Tests for module 'unicase/u16-toupper'.
26161         * modules/unicase/u16-toupper-tests: New file.
26162         * tests/unicase/test-u16-toupper.c: New file.
26163
26164         Tests for module 'unicase/u8-toupper'.
26165         * modules/unicase/u8-toupper-tests: New file.
26166         * tests/unicase/test-u8-toupper.c: New file.
26167
26168         New module 'unicase/u32-toupper'.
26169         * lib/unicase/u32-toupper.c: New file.
26170         * modules/unicase/u32-toupper: New file.
26171
26172         New module 'unicase/u16-toupper'.
26173         * lib/unicase/u16-toupper.c: New file.
26174         * modules/unicase/u16-toupper: New file.
26175
26176         New module 'unicase/u8-toupper'.
26177         * lib/unicase/u8-toupper.c: New file.
26178         * modules/unicase/u8-toupper: New file.
26179
26180         New module 'unicase/u32-casemap'.
26181         * lib/unicase/u32-casemap.c: New file.
26182         * modules/unicase/u32-casemap: New file.
26183
26184         New module 'unicase/u16-casemap'.
26185         * lib/unicase/u16-casemap.c: New file.
26186         * modules/unicase/u16-casemap: New file.
26187
26188         New module 'unicase/u8-casemap'.
26189         * lib/unicase/unicasemap.h: New file.
26190         * lib/unicase/u8-casemap.c: New file.
26191         * lib/unicase/u-casemap.h: New file.
26192         * modules/unicase/u8-casemap: New file.
26193
26194         New module 'unicase/special-casing'.
26195         * lib/unicase/special-casing.h: New file.
26196         * lib/unicase/special-casing.c: New file.
26197         * lib/unicase/special-casing-table.gperf: New file, generated by
26198         gen-uni-tables.c.
26199         * modules/unicase/special-casing: New file.
26200
26201         Tests for module 'unicase/locale-language'.
26202         * modules/unicase/locale-language-tests: New file.
26203         * tests/unicase/test-locale-language.sh: New file.
26204         * tests/unicase/test-locale-language.c: New file.
26205
26206         New module 'unicase/locale-language'.
26207         * lib/unicase/locale-language.c: New file.
26208         * lib/unicase/locale-languages.gperf: New file.
26209         * modules/unicase/locale-language: New file.
26210
26211         Generate more tables for case conversion and case folding.
26212         * lib/gen-uni-tables.c (SCC_*): New enum items.
26213         (struct special_casing_rule): New type.
26214         (casing_rules, num_casing_rules, allocated_casing_rules): New
26215         variables.
26216         (add_casing_rule, fill_casing_rules): New functions.
26217         (struct casefold_rule): New type.
26218         (casefolding_rules, num_casefolding_rules,
26219         allocated_casefolding_rules): New variables.
26220         (fill_casefolding_rules): New function.
26221         (unicode_casefold): New variable.
26222         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
26223         sort_casing_rules, output_casing_rules): New functions.
26224         (main): Accept to more arguments: SpecialCasing.txt and
26225         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
26226         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
26227         Output mapping for casefolding.
26228
26229         * lib/unicase.h: Include stdbool.h, uninorm.h.
26230         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
26231         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
26232         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
26233         arguments.
26234         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
26235         resultp arguments.
26236         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
26237         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
26238         resultp arguments.
26239         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
26240         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
26241         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
26242         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
26243         declarations.
26244         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
26245
26246 2009-03-08  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26249         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
26250         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
26251         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26252
26253 2009-03-07  Bruno Haible  <bruno@clisp.org>
26254
26255         Adjust u*_normcmp, u*_normcoll API.
26256         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26257         u16_normcoll, u32_normcoll): Change failure conventions.
26258         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
26259         errno and return -1.
26260         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26261
26262 2009-03-07  Bruno Haible  <bruno@clisp.org>
26263
26264         Tests for module 'uninorm/u32-normcoll'.
26265         * modules/uninorm/u32-normcoll-tests: New file.
26266         * tests/uninorm/test-u32-normcoll.c: New file.
26267
26268         Tests for module 'uninorm/u16-normcoll'.
26269         * modules/uninorm/u16-normcoll-tests: New file.
26270         * tests/uninorm/test-u16-normcoll.c: New file.
26271
26272         Tests for module 'uninorm/u8-normcoll'.
26273         * modules/uninorm/u8-normcoll-tests: New file.
26274         * tests/uninorm/test-u8-normcoll.c: New file.
26275
26276 2009-03-07  Bruno Haible  <bruno@clisp.org>
26277
26278         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
26279         tests/uninorm/test-u32-normcmp.c.
26280         * tests/uninorm/test-u32-normcmp.c: Include it.
26281         (test_nonascii): New function, extracted from main. Add some more
26282         tests.
26283         (main): Invoke test_ascii and test_nonascii.
26284         * modules/uninorm/u32-normcmp-tests (Files): Add
26285         tests/uninorm/test-u32-normcmp.h.
26286         (Depends-on): Remove uninorm/u32-normcmp.
26287
26288         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
26289         tests/uninorm/test-u16-normcmp.c.
26290         * tests/uninorm/test-u16-normcmp.c: Include it.
26291         (test_nonascii): New function, extracted from main. Add some more
26292         tests.
26293         (main): Invoke test_ascii and test_nonascii.
26294         * modules/uninorm/u16-normcmp-tests (Files): Add
26295         tests/uninorm/test-u16-normcmp.h.
26296         (Depends-on): Remove uninorm/u16-normcmp.
26297
26298         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
26299         tests/uninorm/test-u8-normcmp.c.
26300         * tests/uninorm/test-u8-normcmp.c: Include it.
26301         (test_nonascii): New function, extracted from main. Add some more
26302         tests.
26303         (main): Invoke test_ascii and test_nonascii.
26304         * modules/uninorm/u8-normcmp-tests (Files): Add
26305         tests/uninorm/test-u8-normcmp.h.
26306         (Depends-on): Remove uninorm/u8-normcmp.
26307
26308 2009-03-07  Bruno Haible  <bruno@clisp.org>
26309
26310         New module 'uninorm/u32-normcoll'.
26311         * lib/uninorm/u32-normcoll.c: New file.
26312         * modules/uninorm/u32-normcoll: New file.
26313
26314         New module 'uninorm/u16-normcoll'.
26315         * lib/uninorm/u16-normcoll.c: New file.
26316         * modules/uninorm/u16-normcoll: New file.
26317
26318         New module 'uninorm/u8-normcoll'.
26319         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
26320         declarations.
26321         * lib/uninorm/u8-normcoll.c: New file.
26322         * lib/uninorm/u-normcoll.h: New file.
26323         * modules/uninorm/u8-normcoll: New file.
26324
26325         New module 'uninorm/u32-normxfrm'.
26326         * lib/uninorm/u32-normxfrm.c: New file.
26327         * modules/uninorm/u32-normxfrm: New file.
26328
26329         New module 'uninorm/u16-normxfrm'.
26330         * lib/uninorm/u16-normxfrm.c: New file.
26331         * modules/uninorm/u16-normxfrm: New file.
26332
26333         New module 'uninorm/u8-normxfrm'.
26334         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
26335         declarations.
26336         * lib/uninorm/u8-normxfrm.c: New file.
26337         * lib/uninorm/u-normxfrm.h: New file.
26338         * modules/uninorm/u8-normxfrm: New file.
26339
26340 2009-03-07  Bruno Haible  <bruno@clisp.org>
26341
26342         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
26343         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
26344         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
26345
26346 2009-03-07  Bruno Haible  <bruno@clisp.org>
26347
26348         New module 'memxfrm'.
26349         * lib/memxfrm.h: New file.
26350         * lib/memxfrm.c: New file.
26351         * modules/memxfrm: New file.
26352
26353 2009-03-07  Bruno Haible  <bruno@clisp.org>
26354
26355         New module 'memcmp2'.
26356         * lib/memcmp2.h: New file.
26357         * lib/memcmp2.c: New file.
26358         * modules/memcmp2: New file.
26359
26360 2009-03-07  Bruno Haible  <bruno@clisp.org>
26361
26362         Tests for module 'uninorm/decomposing-form'.
26363         * modules/uninorm/decomposing-form-tests: New file.
26364         * tests/uninorm/test-decomposing-form.c: New file.
26365
26366         New module 'uninorm/decomposing-form'.
26367         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
26368         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
26369         Add 'decomposing_variant' field.
26370         * lib/uninorm/decomposing-form.c: New file.
26371         * lib/uninorm/nfc.c (uninorm_nfc): Update.
26372         * lib/uninorm/nfd.c (uninorm_nfd): Update.
26373         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
26374         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
26375         * modules/uninorm/decomposing-form: New file.
26376         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
26377         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
26378
26379 2009-03-07  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
26382         strings.
26383
26384 2009-03-06  Bruno Haible  <bruno@clisp.org>
26385
26386         Tests for module 'uninorm/u32-normcmp'.
26387         * tests/uninorm/test-u32-normcmp.c: New file.
26388         * modules/uninorm/u32-normcmp-tests: New file.
26389
26390         Tests for module 'uninorm/u16-normcmp'.
26391         * tests/uninorm/test-u16-normcmp.c: New file.
26392         * modules/uninorm/u16-normcmp-tests: New file.
26393
26394         Tests for module 'uninorm/u8-normcmp'.
26395         * tests/uninorm/test-u8-normcmp.c: New file.
26396         * modules/uninorm/u8-normcmp-tests: New file.
26397
26398         New module 'uninorm/u32-normcmp'.
26399         * lib/uninorm/u32-normcmp.c: New file.
26400         * modules/uninorm/u32-normcmp: New file.
26401
26402         New module 'uninorm/u16-normcmp'.
26403         * lib/uninorm/u16-normcmp.c: New file.
26404         * modules/uninorm/u16-normcmp: New file.
26405
26406         New module 'uninorm/u8-normcmp'.
26407         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
26408         declarations.
26409         * lib/uninorm/u8-normcmp.c: New file.
26410         * lib/uninorm/u-normcmp.h: New file.
26411         * modules/uninorm/u8-normcmp: New file.
26412
26413 2009-03-06  Bruno Haible  <bruno@clisp.org>
26414
26415         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
26416         Reported by Eric Blake.
26417
26418 2009-03-06  Eric Blake  <ebb9@byu.net>
26419             Bruno Haible  <bruno@clisp.org>
26420
26421         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
26422         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
26423         condition.
26424         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26425         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
26426         condition.
26427         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26428
26429 2009-03-06  Eric Blake  <ebb9@byu.net>
26430
26431         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
26432         to avoid compiler warnings.
26433         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
26434
26435 2009-03-05  Bruno Haible  <bruno@clisp.org>
26436
26437         * tests/test-ftell.c (main): Disable test beyond end of file on
26438         FreeMiNT.
26439         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26440
26441 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
26442
26443         * lib/filevercmp.c: Move hidden files up in ordering.
26444         * tests/test-filevercmp.c: Add tests for hidden files.
26445
26446 2009-03-04  Bruno Haible  <bruno@clisp.org>
26447
26448         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
26449         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
26450         AM_CFLAGS.
26451         Reported by Simon Josefsson.
26452
26453 2009-03-03  Bruno Haible  <bruno@clisp.org>
26454
26455         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
26456         Reported by Simon Josefsson.
26457
26458         * doc/ld-version-script.texi: Update node reference.
26459
26460 2009-03-03  Bruno Haible  <bruno@clisp.org>
26461
26462         * modules/visibility (License): Change to 'unlimited'.
26463         Suggested by Simon Josefsson.
26464
26465 2009-03-03  Jim Meyering  <meyering@redhat.com>
26466
26467         unlinkdir: cannot_unlink_dir may modify process state
26468         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
26469         it's neither thread-safe nor appropriate for use in a library.
26470
26471 2009-03-03  Eric Blake  <ebb9@byu.net>
26472
26473         test-closein: silence test under Darwin
26474         * tests/test-closein.sh: Ignore stderr from cat, since we don't
26475         care if it dies from EPIPE or EBADF.
26476
26477 2009-03-03  Bruno Haible  <bruno@clisp.org>
26478
26479         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
26480         earlier.
26481         * doc/visibility.texi: Fix @node and @section.
26482
26483 2009-03-03  Simon Josefsson  <simon@josefsson.org>
26484
26485         * doc/gnulib.texi: Link to sections for ld version script and
26486         visibility.
26487         * doc/visibility.texi: Add @node and @section.
26488         * modules/ld-version-script: New module.
26489         * m4/ld-version-script.m4: New file.
26490         * doc/ld-version-script.texi: New file.
26491
26492 2009-03-02  David Lutterkort  <lutter@redhat.com>
26493
26494         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
26495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26496
26497 2009-03-02  Bruno Haible  <bruno@clisp.org>
26498
26499         * doc/visibility.texi: Mention libtool's -export-symbols option.
26500
26501 2009-03-02  Jim Meyering  <meyering@redhat.com>
26502
26503         announce-gen: new option: --no-print-checksums
26504         * build-aux/announce-gen (usage): Describe it.
26505         (print_checksums): Print a newline here, not in the [*] footnote.
26506         (main): Honor it.
26507
26508 2009-03-01  Bruno Haible  <bruno@clisp.org>
26509
26510         Use socklen_t in the native Windows replacements prototypes.
26511         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26512         instead of 'int'.
26513         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26514         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26515         * modules/getsockopt (Depends-on): Add socklen.
26516         * modules/setsockopt (Depends-on): Add socklen.
26517
26518 2009-03-01  Bruno Haible  <bruno@clisp.org>
26519
26520         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26521         least 4.2.
26522
26523 2009-03-01  Eric Blake  <ebb9@byu.net>
26524             Bruno Haible  <bruno@clisp.org>
26525
26526         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26527         error messages.
26528         * lib/wait-process.c (wait_subprocess): Omit error message about
26529         deadly signal sent to the child of termsigp != NULL.
26530
26531 2009-03-01  Eric Blake  <ebb9@byu.net>
26532
26533         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26534
26535 2009-03-01  Bruno Haible  <bruno@clisp.org>
26536
26537         Avoid a gcc warning.
26538         * tests/test-sched.c (b): Make global.
26539         Reported by Eric Blake.
26540
26541 2009-01-19  Martin Lambers  <marlam@marlam.de>
26542
26543         Provide POSIX semantics for socket timeout options on W32.
26544         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26545         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26546         * modules/setsockopt: Depend on sys_time module for struct timeval.
26547         * modules/getsockopt: Depend on sys_time module for struct timeval.
26548
26549 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26550
26551         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26552         __USE_GNU, for consistency with netdb.in.h.
26553         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26554
26555 2009-03-01  Bruno Haible  <bruno@clisp.org>
26556
26557         More support for FreeMiNT.
26558         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26559         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26560
26561 2009-03-01  Bruno Haible  <bruno@clisp.org>
26562
26563         More support for FreeMiNT.
26564         * lib/fpurge.c (fpurge): Correct last commit.
26565         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26566
26567 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26568
26569         Fix unportable awk script in vc-list-files.
26570         * build-aux/vc-list-files: In the replacement awk script, use
26571         substr with a second argument of 1, not zero.
26572         Report by Simon Josefsson.
26573
26574 2009-02-28  Bruno Haible  <bruno@clisp.org>
26575
26576         More support for FreeMiNT.
26577         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26578         to FreeMiNT today.
26579         * lib/fwriting.c (fwriting): Likewise.
26580         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26581
26582 2009-02-28  Bruno Haible  <bruno@clisp.org>
26583
26584         * tests/test-freadseek.c (main): Disable test beyond end of file on
26585         FreeMiNT.
26586         * tests/test-ftello.c (main): Likewise.
26587         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26588
26589 2009-02-28  Bruno Haible  <bruno@clisp.org>
26590
26591         Add tentative support for FreeMiNT.
26592         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26593         * lib/fpurge.c (fpurge): Likewise.
26594         * lib/freadable.c (freadable): Likewise.
26595         * lib/freading.c (freading): Likewise.
26596         * lib/freadptr.c (freadptr): Likewise.
26597         * lib/freadseek.c (freadptrinc): Likewise.
26598         * lib/fseeko.c (rpl_fseeko): Likewise.
26599         * lib/fseterr.c (fseterr): Likewise.
26600         * lib/fwritable.c (fwritable): Likewise.
26601         * lib/fwriting.c (fwriting): Likewise.
26602         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26603         Hourihane.
26604         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26605
26606 2009-02-28  Bruno Haible  <bruno@clisp.org>
26607
26608         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26609         SIGCHLD.
26610         Reported by Jim Meyering.
26611
26612 2009-02-28  Bruno Haible  <bruno@clisp.org>
26613
26614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26615         Mention the results of these tests on various platforms.
26616         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26617         order.
26618         * doc/posix-functions/printf.texi: Likewise.
26619         * doc/posix-functions/snprintf.texi: Likewise.
26620         * doc/posix-functions/sprintf.texi: Likewise.
26621         * doc/posix-functions/vfprintf.texi: Likewise.
26622         * doc/posix-functions/vprintf.texi: Likewise.
26623         * doc/posix-functions/vsnprintf.texi: Likewise.
26624         * doc/posix-functions/vsprintf.texi: Likewise.
26625         * doc/glibc-functions/obstack_printf.texi: Likewise.
26626         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26627
26628 2009-02-28  Bruno Haible  <bruno@clisp.org>
26629
26630         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26631         Reported by Loïc Minier <lool@dooz.org>.
26632
26633 2009-02-27  Bruno Haible  <bruno@clisp.org>
26634
26635         * gnulib-tool (func_import): Make the sed expression used to create the
26636         sed script for updating the .gitignore file POSIX compliant.
26637         Reported by Eric Blake.
26638
26639 2009-02-27  Bruno Haible  <bruno@clisp.org>
26640
26641         * gnulib-tool (sed): Don't alias as "sed --posix".
26642         Reported by Eric Blake.
26643
26644 2009-02-27  Bruno Haible  <bruno@clisp.org>
26645
26646         Avoid test link errors.
26647         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26648         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26649         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26650         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26652
26653 2009-02-27  Bruno Haible  <bruno@clisp.org>
26654
26655         Avoid spurious "(cached)" in configure output.
26656         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26657         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26658         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26659         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26660         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26661         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26662         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26663         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26664         Reported by Eric Blake.
26665
26666 2009-02-27  Eric Blake  <ebb9@byu.net>
26667
26668         printf: fix regression in previous patch
26669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26670
26671 2009-02-27  Bruno Haible  <bruno@clisp.org>
26672
26673         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26674         value.
26675         * lib/stdint.in.h: Likewise.
26676         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26677
26678 2009-02-27  Eric Blake  <ebb9@byu.net>
26679
26680         doc: mention more functions added in cygwin 1.7.0
26681         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26682         addition.
26683         * doc/posix-functions/open_wmemstream.texi: Likewise.
26684         * doc/posix-functions/wcsnlen.texi: Likewise.
26685         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26686         * doc/posix-functions/wcstod.texi: Likewise.
26687         * doc/posix-functions/wcstof.texi: Likewise.
26688         * doc/posix-functions/wcstoimax.texi: Likewise.
26689         * doc/posix-functions/wcstok.texi: Likewise.
26690         * doc/posix-functions/wcstoumax.texi: Likewise.
26691
26692         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26694         * doc/posix-functions/fprintf.texi: Update.
26695         * doc/posix-functions/printf.texi: Update.
26696         * doc/posix-functions/snprintf.texi: Update.
26697         * doc/posix-functions/sprintf.texi: Update.
26698         * doc/posix-functions/vfprintf.texi: Update.
26699         * doc/posix-functions/vprintf.texi: Update.
26700         * doc/posix-functions/vsnprintf.texi: Update.
26701         * doc/posix-functions/vsprintf.texi: Update.
26702         * doc/glibc-functions/obstack_printf.texi: Update.
26703         * doc/glibc-functions/obstack_vprintf.texi: Update.
26704
26705 2009-02-26  Eric Blake  <ebb9@byu.net>
26706
26707         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26708         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26709         compilation bug by using runtime conversion.
26710         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26711         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26712         * modules/ceill-tests (Files): Use nan.h.
26713         * modules/floorl-tests (Files): Likewise.
26714         * modules/frexpl-tests (Files): Likewise.
26715         * modules/isnanl-tests (Files): Likewise.
26716         * modules/ldexpl-tests (Files): Likewise.
26717         * modules/roundl-tests (Files): Likewise.
26718         * modules/truncl-tests (Files): Likewise.
26719         * tests/test-ceill.c (main): Use a working NaN.
26720         * tests/test-floorl.c (main): Likewise.
26721         * tests/test-frexpl.c (main): Likewise.
26722         * tests/test-isnan.c (test_long_double): Likewise.
26723         * tests/test-isnanl.h (main): Likewise.
26724         * tests/test-ldexpl.h (main): Likewise.
26725         * tests/test-roundl.h (main): Likewise.
26726         * tests/test-truncl.h (main): Likewise.
26727         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26728
26729 2009-02-26  Eric Blake  <ebb9@byu.net>
26730             Bruno Haible  <bruno@clisp.org>
26731
26732         Work around a *printf bug with %ls on Solaris.
26733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26734         precision is specified, sprintf stops converting the wide string
26735         argument when the number of bytes that have been produced by this
26736         conversion equals or exceeds the precision.
26737         * doc/posix-functions/fprintf.texi: Update.
26738         * doc/posix-functions/printf.texi: Update.
26739         * doc/posix-functions/snprintf.texi: Update.
26740         * doc/posix-functions/sprintf.texi: Update.
26741         * doc/posix-functions/vfprintf.texi: Update.
26742         * doc/posix-functions/vprintf.texi: Update.
26743         * doc/posix-functions/vsnprintf.texi: Update.
26744         * doc/posix-functions/vsprintf.texi: Update.
26745         * doc/glibc-functions/obstack_printf.texi: Update.
26746         * doc/glibc-functions/obstack_vprintf.texi: Update.
26747
26748 2009-02-26  Eric Blake  <ebb9@byu.net>
26749
26750         stdlib: favor compiler check of random.h
26751         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26752         to avoid an ObjC random.h installed by Swarm.
26753
26754 2009-02-26  Bruno Haible  <bruno@clisp.org>
26755
26756         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26757         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26758         Reported by Gary V. Vaughan <gary@gnu.org>.
26759
26760 2009-02-26  Bruno Haible  <bruno@clisp.org>
26761
26762         Fix *printf behaviour regarding the %ls directive.
26763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26764         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26765         NEED_PRINTF_DIRECTIVE_LS.
26766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26767         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26769         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26770         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26771         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26772         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26777         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26781         * doc/posix-functions/fprintf.texi: Update.
26782         * doc/posix-functions/printf.texi: Update.
26783         * doc/posix-functions/snprintf.texi: Update.
26784         * doc/posix-functions/sprintf.texi: Update.
26785         * doc/posix-functions/vfprintf.texi: Update.
26786         * doc/posix-functions/vprintf.texi: Update.
26787         * doc/posix-functions/vsnprintf.texi: Update.
26788         * doc/posix-functions/vsprintf.texi: Update.
26789         * doc/glibc-functions/obstack_printf.texi: Update.
26790         * doc/glibc-functions/obstack_vprintf.texi: Update.
26791         Reported by Eric Blake.
26792
26793 2009-02-25  Bruno Haible  <bruno@clisp.org>
26794
26795         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26796         with known value.
26797         Reported by Gary V. Vaughan <gary@gnu.org>.
26798
26799 2009-02-25  Bruno Haible  <bruno@clisp.org>
26800
26801         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26802         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26803         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26804         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26805         Reported by Gary V. Vaughan <gary@gnu.org>.
26806
26807 2009-02-25  Bruno Haible  <bruno@clisp.org>
26808
26809         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26810         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26811         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26812         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26813         Reported by Gary V. Vaughan <gary@gnu.org>.
26814
26815 2009-02-25  Eric Blake  <ebb9@byu.net>
26816
26817         tests: skip fseek/ftell tests if ungetc is broken
26818         * m4/ungetc.m4: New file.
26819         * modules/fseek-tests: Split test, so ungetc dependency is
26820         separate from rest of test.
26821         * modules/fseeko-tests: Likewise.
26822         * modules/ftell-tests: Likewise.
26823         * modules/ftello-tests: Likewise.
26824         * tests/test-fseek.c (main): Isolate ungetc dependency.
26825         * tests/test-fseeko.c (main): Likewise.
26826         * tests/test-ftell.c (main): Likewise.
26827         * tests/test-ftello.c (main): Likewise.
26828         * tests/test-fseek2.sh: New file.
26829         * tests/test-fseeko2.sh: Likewise.
26830         * tests/test-ftell2.sh: Likewise.
26831         * tests/test-ftello2.sh: Likewise.
26832
26833 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26834
26835         test-getaddrinfo: fix usage of skip return code 77
26836         * tests/test-gettaddrinfo.c: Return skip code 77 only
26837         for first occurance of skip (4x77 is not 77)
26838
26839 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26840
26841         strtod: avoid C99 decl-after-statement
26842         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26843
26844 2009-02-24  Eric Blake  <ebb9@byu.net>
26845
26846         strtod: detect HP-UX 11.31 bug
26847         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26848         Reported by Gary V. Vaughan.
26849
26850 2009-02-23  Bruno Haible  <bruno@clisp.org>
26851
26852         Fix invalid read past end of memory block.
26853         * lib/vasnprintf.c (DCHAR_SET): Define.
26854         (local_wcslen): Define only when needed.
26855         (local_strnlen, local_wcsnlen): New functions.
26856         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26857         directives that involve a conversion ourselves.
26858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26859         wcsnlen, mbrtowc, wcrtomb.
26860         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26861         * tests/test-vasprintf-posix.c (test_function): Likewise.
26862         * tests/test-snprintf-posix.h (test_function): Likewise.
26863         * tests/test-sprintf-posix.h (test_function): Likewise.
26864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26865
26866 2009-02-22  Bruno Haible  <bruno@clisp.org>
26867
26868         Implement new clarified decomposition of Hangul syllables.
26869         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26870         of type LTV, return only a pairwise decomposition.
26871         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26872         Likewise.
26873         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26874         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26875         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26876
26877 2009-02-22  Bruno Haible  <bruno@clisp.org>
26878
26879         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26880         zero-length results and shrink excess allocated memory.
26881         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26882         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26883         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26884         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26885         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26886         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26887         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26888         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26889         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26890         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26891         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26892         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26893
26894 2009-02-21  Bruno Haible  <bruno@clisp.org>
26895
26896         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26897         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26898         spaces after a period. Put a space between a macro name and its
26899         argument list. Trivial rewordings.
26900         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26901         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26902         (main): Return 0 explicitly.
26903
26904 2009-02-21  Bruno Haible  <bruno@clisp.org>
26905
26906         Tests for module 'uninorm/filter'.
26907         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26908         * modules/uninorm/filter-tests: New file.
26909
26910         New module 'uninorm/filter'.
26911         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26912         uninorm_filter_flush, uninorm_filter_free): New declarations.
26913         * lib/uninorm/uninorm-filter.c: New file.
26914         * modules/uninorm/filter: New file.
26915
26916 2009-02-21  Bruno Haible  <bruno@clisp.org>
26917
26918         Tests for module 'uninorm/nfkc'.
26919         * tests/uninorm/test-nfkc.c: New file.
26920         * tests/uninorm/test-u8-nfkc.c: New file.
26921         * tests/uninorm/test-u16-nfkc.c: New file.
26922         * tests/uninorm/test-u32-nfkc.c: New file.
26923         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26924         * tests/uninorm/test-u32-nfkc-big.c: New file.
26925         * modules/uninorm/nfkc-tests: New file.
26926
26927         New module 'uninorm/nfkc'.
26928         * lib/uninorm/nfkc.c: New file.
26929         * modules/uninorm/nfkc: New file.
26930
26931         Tests for module 'uninorm/nfkd'.
26932         * tests/uninorm/test-nfkd.c: New file.
26933         * tests/uninorm/test-u8-nfkd.c: New file.
26934         * tests/uninorm/test-u16-nfkd.c: New file.
26935         * tests/uninorm/test-u32-nfkd.c: New file.
26936         * tests/uninorm/test-u32-nfkd-big.sh: New file.
26937         * tests/uninorm/test-u32-nfkd-big.c: New file.
26938         * modules/uninorm/nfkd-tests: New file.
26939
26940         New module 'uninorm/nfkd'.
26941         * lib/uninorm/nfkd.c: New file.
26942         * modules/uninorm/nfkd: New file.
26943
26944         Tests for module 'uninorm/nfc'.
26945         * tests/uninorm/test-nfc.c: New file.
26946         * tests/uninorm/test-u8-nfc.c: New file.
26947         * tests/uninorm/test-u16-nfc.c: New file.
26948         * tests/uninorm/test-u32-nfc.c: New file.
26949         * tests/uninorm/test-u32-nfc-big.sh: New file.
26950         * tests/uninorm/test-u32-nfc-big.c: New file.
26951         * modules/uninorm/nfc-tests: New file.
26952
26953         New module 'uninorm/nfc'.
26954         * lib/uninorm/nfc.c: New file.
26955         * modules/uninorm/nfc: New file.
26956
26957         Tests for module 'uninorm/nfd'.
26958         * tests/uninorm/test-nfd.c: New file.
26959         * tests/uninorm/test-u8-nfd.c: New file.
26960         * tests/uninorm/test-u16-nfd.c: New file.
26961         * tests/uninorm/test-u32-nfd.c: New file.
26962         * tests/uninorm/test-u32-nfd-big.sh: New file.
26963         * tests/uninorm/test-u32-nfd-big.c: New file.
26964         * tests/uninorm/test-u32-normalize-big.h: New file.
26965         * tests/uninorm/test-u32-normalize-big.c: New file.
26966         * tests/uninorm/NormalizationTest.txt: New file, created from
26967         Unicode 5.1.0 NormalizationTest.txt.
26968         * modules/uninorm/nfd-tests: New file.
26969
26970         New module 'uninorm/nfd'.
26971         * lib/uninorm/nfd.c: New file.
26972         * modules/uninorm/nfd: New file.
26973
26974         New module 'uninorm/u32-normalize'.
26975         * lib/uninorm/u32-normalize.c: New file.
26976         * modules/uninorm/u32-normalize: New file.
26977
26978         New module 'uninorm/u16-normalize'.
26979         * lib/uninorm/u16-normalize.c: New file.
26980         * modules/uninorm/u16-normalize: New file.
26981
26982         New module 'uninorm/u8-normalize'.
26983         * lib/uninorm/u8-normalize.c: New file.
26984         * lib/uninorm/normalize-internal.h: New file.
26985         * lib/uninorm/u-normalize-internal.h: New file.
26986         * modules/uninorm/u8-normalize: New file.
26987
26988         New module 'uninorm/decompose-internal'.
26989         * lib/uninorm/decompose-internal.c: New file.
26990         * modules/uninorm/decompose-internal: New file.
26991
26992         Tests for module 'uninorm/composition'.
26993         * tests/uninorm/test-composition.c: New file.
26994         * modules/uninorm/composition-tests: New file.
26995
26996         New module 'uninorm/composition'.
26997         * lib/uninorm/composition.c: New file.
26998         * lib/uninorm/composition-table.gperf: New file, generated by
26999         gen-uni-tables.
27000         * modules/uninorm/composition: New file.
27001
27002         Tests for module 'uninorm/compat-decomposition'.
27003         * tests/uninorm/test-compat-decomposition.c: New file.
27004         * modules/uninorm/compat-decomposition-tests: New file.
27005
27006         New module 'uninorm/compat-decomposition'.
27007         * lib/uninorm/decompose-internal.h: New file.
27008         * lib/uninorm/compat-decomposition.c: New file.
27009         * modules/uninorm/compat-decomposition: New file.
27010
27011         Tests for module 'uninorm/canonical-decomposition'.
27012         * tests/uninorm/test-canonical-decomposition.c: New file.
27013         * modules/uninorm/canonical-decomposition-tests: New file.
27014
27015         New module 'uninorm/canonical-decomposition'.
27016         * lib/uninorm/canonical-decomposition.c: New file.
27017         * modules/uninorm/canonical-decomposition: New file.
27018
27019         Tests for module 'uninorm/decomposition'.
27020         * tests/uninorm/test-decomposition.c: New file.
27021         * modules/uninorm/decomposition-tests: New file.
27022
27023         New module 'uninorm/decomposition'.
27024         * lib/uninorm/decomposition.c: New file.
27025         * modules/uninorm/decomposition: New file.
27026
27027         New module 'uninorm/decomposition-table'.
27028         * lib/uninorm/decomposition-table.h: New file.
27029         * lib/uninorm/decomposition-table.c: New file.
27030         * lib/uninorm/decomposition-table1.h: New file, generated by
27031         gen-uni-tables.
27032         * lib/uninorm/decomposition-table2.h: New file, generated by
27033         gen-uni-tables.
27034         * modules/uninorm/decomposition-table: New file.
27035
27036         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
27037         (UC_DECOMP_*): New enumeration items.
27038         (get_decomposition): New function.
27039         (struct decomp_table): New type.
27040         (output_decomposition, output_decomposition_tables): New functions.
27041         (unicode_composition_exclusions): New variable.
27042         (fill_composition_exclusions, debug_output_composition_tables): New
27043         functions.
27044         (main): Accept one more argument. Invoke fill_composition_exclusions.
27045         Output decomposition and composition tables.
27046
27047         New module 'uninorm/base'.
27048         * lib/uninorm.h: New file.
27049         * lib/unictype.h: Update comment.
27050         * modules/uninorm/base: New file.
27051
27052 2009-02-21  David Lutterkort  <lutter@redhat.com>
27053
27054         Tests for module 'safe-alloc'.
27055         * tests/test-safe-alloc.c: New file.
27056         * modules/safe-alloc-tests: New file.
27057
27058         New module 'safe-alloc'.
27059         * lib/safe-alloc.h: New file.
27060         * lib/safe-alloc.c: New file.
27061         * m4/safe-alloc.m4: New file.
27062         * modules/safe-alloc: New file.
27063         * doc/safe-alloc.texi: New file.
27064         * doc/gnulib.texi: Include it.
27065         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27066         safe-alloc.
27067
27068 2009-02-18  Bruno Haible  <bruno@clisp.org>
27069
27070         Fix link error on non-glibc systems.
27071         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
27072         variable.
27073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27074
27075 2009-02-18  Jim Meyering  <meyering@redhat.com>
27076
27077         fts: avoid used-uninitialized error due to recent change
27078         * lib/fts.c (fts_read): Guard uses of the new member,
27079         parent->fts_n_dirs_remaining, since it's not relevant for
27080         the parent of a directory specified on the command-line.
27081
27082 2009-02-17  James Youngman  <jay@gnu.org>
27083             Bruno Haible  <bruno@clisp.org>
27084
27085         * m4/include_next.m4: Reformulate comment.
27086
27087 2009-02-16  Jim Meyering  <meyering@redhat.com>
27088
27089         fts: add #if guards so that the fts_lgpl module still builds
27090         * lib/fts.c: Guard just-added hash-table-using parts with
27091         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
27092         Reported by Simon Josefsson.
27093
27094 2009-02-15  Bruno Haible  <bruno@clisp.org>
27095
27096         * modules/array-mergesort-tests: New file.
27097         * tests/test-array-mergesort.c: New file.
27098
27099         New module 'array-mergesort'.
27100         * modules/array-mergesort: New file.
27101         * lib/array-mergesort.h: New file.
27102
27103 2009-02-15  Bruno Haible  <bruno@clisp.org>
27104
27105         Fix 2009-02-07 commit.
27106         * lib/gen-uni-tables.c (output_predicate, output_category,
27107         output_combclass, output_bidi_category, output_decimal_digit,
27108         output_digit, output_numeric, output_mirror, output_scripts,
27109         output_ident_category, output_simple_mapping): Fix format directives.
27110         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27111
27112 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27113
27114         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27115         fixes are available from IBM.
27116
27117 2009-02-13  Jim Meyering  <meyering@redhat.com>
27118
27119         fts: arrange not to stat non-directories in more cases
27120         This makes GNU find (when it doesn't need to stat each file)
27121         *much* more efficient at traversing reiserfs file systems.
27122         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27123         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27124         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27125         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27126         (leaf_optimization_applies): New function.
27127         (LCO_hash, LCO_compare): New helper functions.
27128         (link_count_optimize_ok): New function.
27129         (fts_stat): Initialize new member (if dir).
27130         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27131         we've just stat'ed a directory.  Skip the stat call when possible.
27132         ---
27133         Note this AFS-related exchange:
27134         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27135         and note find's pioctl call in find/fstype.c.
27136         But that is necessary only if you want to enable the
27137         optimization for AFS, and for now, I don't.
27138
27139         fts: move a function definition "up" (no semantic change)
27140         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27141         "up" to precede upcoming use of a related function.
27142
27143 2009-02-11  Jim Meyering  <meyering@redhat.com>
27144
27145         fts: correct internal computation of nlinks (optimization-related)
27146         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27147         whether the current entry is a directory, so don't test it.
27148
27149 2009-02-10  Bruno Haible  <bruno@clisp.org>
27150
27151         Tests for module 'uniwbrk/ulc-wordbreaks'.
27152         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27153         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27154         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27155
27156         Tests for module 'uniwbrk/u32-wordbreaks'.
27157         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27158         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27159
27160         Tests for module 'uniwbrk/u16-wordbreaks'.
27161         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27162         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27163
27164         Tests for module 'uniwbrk/u8-wordbreaks'.
27165         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27166         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27167
27168 2009-02-10  Bruno Haible  <bruno@clisp.org>
27169
27170         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27171         property.
27172         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27173         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27174         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27175
27176 2009-02-10  Simon Josefsson  <simon@josefsson.org>
27177
27178         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
27179         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
27180
27181 2009-02-10  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
27184         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
27185         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
27186         * lib/unilbrk/u8-possible-linebreaks.c: Update.
27187         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
27188         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
27189
27190 2009-02-09  Simon Josefsson  <simon@josefsson.org>
27191
27192         * lib/sockets.h (gl_fd_to_handle): New function.
27193
27194         * tests/test-sockets.c: Call gl_fd_to_handle.
27195
27196 2009-02-09  Bruno Haible  <bruno@clisp.org>
27197
27198         * doc/havelib.texi: Document the conventions on bi-arch systems.
27199
27200 2009-02-08  Bruno Haible  <bruno@clisp.org>
27201
27202         Document the AC_LIB_LINKFLAGS macro.
27203         * doc/havelib.texi: New file, mostly written on 2005-05-24.
27204         * doc/gnulib.texi: Include it.
27205
27206 2009-02-08  Bruno Haible  <bruno@clisp.org>
27207
27208         Fix wrong order of sections, compared to TOC.
27209         * doc/gnulib.texi: Include relocatable-maint.texi after the
27210         "Regular expressions" node, not before.
27211
27212 2009-02-08  Bruno Haible  <bruno@clisp.org>
27213
27214         Tests for module 'unicase/totitle'.
27215         * modules/unicase/totitle-tests: New file.
27216
27217         Tests for module 'unicase/tolower'.
27218         * modules/unicase/tolower-tests: New file.
27219
27220         Tests for module 'unicase/toupper'.
27221         * modules/unicase/toupper-tests: New file.
27222         * tests/unicase/test-mapping-part1.h: New file.
27223         * tests/unicase/test-mapping-part2.h: New file.
27224
27225         New module 'unicase/totitle'.
27226         * modules/unicase/totitle: New file.
27227         * lib/unicase/totitle.c: New file.
27228
27229         New module 'unicase/tolower'.
27230         * modules/unicase/tolower: New file.
27231         * lib/unicase/tolower.c: New file.
27232
27233         New module 'unicase/toupper'.
27234         * modules/unicase/toupper: New file.
27235         * lib/unicase/toupper.c: New file.
27236         * lib/unicase/simple-mapping.h: New file.
27237
27238         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
27239         (mapping_table): New structure.
27240         (output_simple_mapping): New function.
27241         (main): Invoke output_simple_mapping_test and output_simple_mapping.
27242         * modules/gen-uni-tables (Description): Update.
27243         * lib/unicase/toupper.h: New file, automatically generated by
27244         gen-uni-tables.
27245         * lib/unicase/tolower.h: New file, automatically generated by
27246         gen-uni-tables.
27247         * lib/unicase/totitle.h: New file, automatically generated by
27248         gen-uni-tables.
27249         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
27250         gen-uni-tables.
27251         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
27252         gen-uni-tables.
27253         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
27254         gen-uni-tables.
27255
27256         New module 'unicase/base'.
27257         * modules/unicase/base: New file.
27258         * lib/unicase.h: New file.
27259
27260 2009-02-08  Bruno Haible  <bruno@clisp.org>
27261
27262         New module 'uniwbrk/ulc-wordbreaks'.
27263         * modules/uniwbrk/ulc-wordbreaks: New file.
27264         * lib/uniwbrk/ulc-wordbreaks.c: New file.
27265
27266         New module 'uniwbrk/u32-wordbreaks'.
27267         * modules/uniwbrk/u32-wordbreaks: New file.
27268         * lib/uniwbrk/u32-wordbreaks.c: New file.
27269
27270         New module 'uniwbrk/u16-wordbreaks'.
27271         * modules/uniwbrk/u16-wordbreaks: New file.
27272         * lib/uniwbrk/u16-wordbreaks.c: New file.
27273
27274         New module 'uniwbrk/u8-wordbreaks'.
27275         * modules/uniwbrk/u8-wordbreaks: New file.
27276         * lib/uniwbrk/u8-wordbreaks.c: New file.
27277         * lib/uniwbrk/u-wordbreaks.h: New file.
27278
27279         New module 'uniwbrk/table'.
27280         * modules/uniwbrk/table: New file.
27281         * lib/uniwbrk/wbrktable.h: New file.
27282         * lib/uniwbrk/wbrktable.c: New file.
27283
27284         New module 'uniwbrk/wordbreak-property'.
27285         * modules/uniwbrk/wordbreak-property: New file.
27286         * lib/uniwbrk/wordbreak-property.c: New file.
27287
27288         * lib/gen-uni-tables.c (WBP_*): New enum items.
27289         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
27290         (unicode_org_wbp): New variable.
27291         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
27292         New functions.
27293         (wbp_table): New structure.
27294         (output_wbp, output_wbrk_tables): New functions.
27295         (main): Accept additional argument. Invoke fill_org_wbp,
27296         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
27297         output_wbrk_tables.
27298         * modules/gen-uni-tables (Description): Update.
27299         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
27300         gen-uni-tables.
27301
27302         New module 'uniwbrk/base'.
27303         * modules/uniwbrk/base: New file.
27304         * lib/uniwbrk.h: New file.
27305
27306 2009-02-08  Bruno Haible  <bruno@clisp.org>
27307
27308         Update to Unicode 5.1.0.
27309         * lib/gen-uni-tables.c (is_property_alphabetic): Include
27310         U+2185..U+2188.
27311         (is_property_default_ignorable_code_point): Don't include characters
27312         of category Cc or Cs and not-a-characters.
27313         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
27314         U+0D79, U+109E, U+109F, U+A60C.
27315         * lib/unictype/bidi_of.h: Regenerated.
27316         * lib/unictype/blocks.h: Regenerated.
27317         * lib/unictype/categ_C.h: Regenerated.
27318         * lib/unictype/categ_Cf.h: Regenerated.
27319         * lib/unictype/categ_Cn.h: Regenerated.
27320         * lib/unictype/categ_L.h: Regenerated.
27321         * lib/unictype/categ_Ll.h: Regenerated.
27322         * lib/unictype/categ_Lm.h: Regenerated.
27323         * lib/unictype/categ_Lo.h: Regenerated.
27324         * lib/unictype/categ_Lu.h: Regenerated.
27325         * lib/unictype/categ_M.h: Regenerated.
27326         * lib/unictype/categ_Mc.h: Regenerated.
27327         * lib/unictype/categ_Me.h: Regenerated.
27328         * lib/unictype/categ_Mn.h: Regenerated.
27329         * lib/unictype/categ_N.h: Regenerated.
27330         * lib/unictype/categ_Nd.h: Regenerated.
27331         * lib/unictype/categ_Nl.h: Regenerated.
27332         * lib/unictype/categ_No.h: Regenerated.
27333         * lib/unictype/categ_P.h: Regenerated.
27334         * lib/unictype/categ_Pd.h: Regenerated.
27335         * lib/unictype/categ_Pe.h: Regenerated.
27336         * lib/unictype/categ_Pf.h: Regenerated.
27337         * lib/unictype/categ_Pi.h: Regenerated.
27338         * lib/unictype/categ_Po.h: Regenerated.
27339         * lib/unictype/categ_Ps.h: Regenerated.
27340         * lib/unictype/categ_S.h: Regenerated.
27341         * lib/unictype/categ_Sk.h: Regenerated.
27342         * lib/unictype/categ_Sm.h: Regenerated.
27343         * lib/unictype/categ_So.h: Regenerated.
27344         * lib/unictype/categ_of.h: Regenerated.
27345         * lib/unictype/combining.h: Regenerated.
27346         * lib/unictype/ctype_alnum.h: Regenerated.
27347         * lib/unictype/ctype_alpha.h: Regenerated.
27348         * lib/unictype/ctype_graph.h: Regenerated.
27349         * lib/unictype/ctype_lower.h: Regenerated.
27350         * lib/unictype/ctype_print.h: Regenerated.
27351         * lib/unictype/ctype_punct.h: Regenerated.
27352         * lib/unictype/ctype_upper.h: Regenerated.
27353         * lib/unictype/decdigit.h: Regenerated.
27354         * lib/unictype/digit.h: Regenerated.
27355         * lib/unictype/mirror.h: Regenerated.
27356         * lib/unictype/numeric.h: Regenerated.
27357         * lib/unictype/pr_alphabetic.h: Regenerated.
27358         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
27359         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
27360         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
27361         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
27362         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
27363         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
27364         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
27365         * lib/unictype/pr_combining.h: Regenerated.
27366         * lib/unictype/pr_dash.h: Regenerated.
27367         * lib/unictype/pr_decimal_digit.h: Regenerated.
27368         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
27369         * lib/unictype/pr_deprecated.h: Regenerated.
27370         * lib/unictype/pr_diacritic.h: Regenerated.
27371         * lib/unictype/pr_extender.h: Regenerated.
27372         * lib/unictype/pr_format_control.h: Regenerated.
27373         * lib/unictype/pr_grapheme_base.h: Regenerated.
27374         * lib/unictype/pr_grapheme_extend.h: Regenerated.
27375         * lib/unictype/pr_grapheme_link.h: Regenerated.
27376         * lib/unictype/pr_id_continue.h: Regenerated.
27377         * lib/unictype/pr_id_start.h: Regenerated.
27378         * lib/unictype/pr_ideographic.h: Regenerated.
27379         * lib/unictype/pr_ignorable_control.h: Regenerated.
27380         * lib/unictype/pr_lowercase.h: Regenerated.
27381         * lib/unictype/pr_math.h: Regenerated.
27382         * lib/unictype/pr_numeric.h: Regenerated.
27383         * lib/unictype/pr_other_alphabetic.h: Regenerated.
27384         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
27385         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
27386         * lib/unictype/pr_other_id_continue.h: Regenerated.
27387         * lib/unictype/pr_other_lowercase.h: Regenerated.
27388         * lib/unictype/pr_other_math.h: Regenerated.
27389         * lib/unictype/pr_punctuation.h: Regenerated.
27390         * lib/unictype/pr_sentence_terminal.h: Regenerated.
27391         * lib/unictype/pr_soft_dotted.h: Regenerated.
27392         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
27393         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
27394         * lib/unictype/pr_unified_ideograph.h: Regenerated.
27395         * lib/unictype/pr_uppercase.h: Regenerated.
27396         * lib/unictype/pr_xid_continue.h: Regenerated.
27397         * lib/unictype/pr_xid_start.h: Regenerated.
27398         * lib/unictype/pr_zero_width.h: Regenerated.
27399         * lib/unictype/scripts.h: Regenerated.
27400         * lib/unictype/scripts_byname.gperf: Regenerated.
27401         * lib/unictype/sy_java_ident.h: Regenerated.
27402         * lib/unilbrk/lbrkprop1.h: Regenerated.
27403         * lib/unilbrk/lbrkprop2.h: Regenerated.
27404         * tests/unictype/test-categ_C.c: Regenerated.
27405         * tests/unictype/test-categ_Cf.c: Regenerated.
27406         * tests/unictype/test-categ_Cn.c: Regenerated.
27407         * tests/unictype/test-categ_L.c: Regenerated.
27408         * tests/unictype/test-categ_Ll.c: Regenerated.
27409         * tests/unictype/test-categ_Lm.c: Regenerated.
27410         * tests/unictype/test-categ_Lo.c: Regenerated.
27411         * tests/unictype/test-categ_Lu.c: Regenerated.
27412         * tests/unictype/test-categ_M.c: Regenerated.
27413         * tests/unictype/test-categ_Mc.c: Regenerated.
27414         * tests/unictype/test-categ_Me.c: Regenerated.
27415         * tests/unictype/test-categ_Mn.c: Regenerated.
27416         * tests/unictype/test-categ_N.c: Regenerated.
27417         * tests/unictype/test-categ_Nd.c: Regenerated.
27418         * tests/unictype/test-categ_Nl.c: Regenerated.
27419         * tests/unictype/test-categ_No.c: Regenerated.
27420         * tests/unictype/test-categ_P.c: Regenerated.
27421         * tests/unictype/test-categ_Pd.c: Regenerated.
27422         * tests/unictype/test-categ_Pe.c: Regenerated.
27423         * tests/unictype/test-categ_Pf.c: Regenerated.
27424         * tests/unictype/test-categ_Pi.c: Regenerated.
27425         * tests/unictype/test-categ_Po.c: Regenerated.
27426         * tests/unictype/test-categ_Ps.c: Regenerated.
27427         * tests/unictype/test-categ_S.c: Regenerated.
27428         * tests/unictype/test-categ_Sk.c: Regenerated.
27429         * tests/unictype/test-categ_Sm.c: Regenerated.
27430         * tests/unictype/test-categ_So.c: Regenerated.
27431         * tests/unictype/test-ctype_alnum.c: Regenerated.
27432         * tests/unictype/test-ctype_alpha.c: Regenerated.
27433         * tests/unictype/test-ctype_graph.c: Regenerated.
27434         * tests/unictype/test-ctype_lower.c: Regenerated.
27435         * tests/unictype/test-ctype_print.c: Regenerated.
27436         * tests/unictype/test-ctype_punct.c: Regenerated.
27437         * tests/unictype/test-ctype_upper.c: Regenerated.
27438         * tests/unictype/test-decdigit.h: Regenerated.
27439         * tests/unictype/test-digit.h: Regenerated.
27440         * tests/unictype/test-numeric.h: Regenerated.
27441         * tests/unictype/test-pr_alphabetic.c: Regenerated.
27442         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
27443         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
27444         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
27445         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
27446         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
27447         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
27448         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
27449         * tests/unictype/test-pr_combining.c: Regenerated.
27450         * tests/unictype/test-pr_dash.c: Regenerated.
27451         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
27452         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
27453         * tests/unictype/test-pr_deprecated.c: Regenerated.
27454         * tests/unictype/test-pr_diacritic.c: Regenerated.
27455         * tests/unictype/test-pr_extender.c: Regenerated.
27456         * tests/unictype/test-pr_format_control.c: Regenerated.
27457         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
27458         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
27459         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
27460         * tests/unictype/test-pr_id_continue.c: Regenerated.
27461         * tests/unictype/test-pr_id_start.c: Regenerated.
27462         * tests/unictype/test-pr_ideographic.c: Regenerated.
27463         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
27464         * tests/unictype/test-pr_lowercase.c: Regenerated.
27465         * tests/unictype/test-pr_math.c: Regenerated.
27466         * tests/unictype/test-pr_numeric.c: Regenerated.
27467         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
27468         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
27469         Regenerated.
27470         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
27471         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
27472         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
27473         * tests/unictype/test-pr_other_math.c: Regenerated.
27474         * tests/unictype/test-pr_punctuation.c: Regenerated.
27475         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
27476         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
27477         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
27478         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
27479         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
27480         * tests/unictype/test-pr_uppercase.c: Regenerated.
27481         * tests/unictype/test-pr_xid_continue.c: Regenerated.
27482         * tests/unictype/test-pr_xid_start.c: Regenerated.
27483         * tests/unictype/test-pr_zero_width.c: Regenerated.
27484
27485         Update to Unicode 5.1.0.
27486         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
27487         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
27488         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
27489         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
27490         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
27491         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
27492         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
27493         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
27494         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
27495         (nonspacing_table_ind): Update.
27496         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27497
27498         Update to Unicode 5.1.0.
27499         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27500         code transform.
27501         * lib/uniname/uniname.c (unicode_character_name,
27502         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27503         * lib/uniname/uninames.h: Regenerated.
27504         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27505
27506 2009-02-07  Bruno Haible  <bruno@clisp.org>
27507
27508         Merge gen-ctype and gen-lbrk into a single program.
27509         * lib/gen-uni-tables.c: New file, incorporating
27510         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27511         Add directory prefixes to the names of the generated files.
27512         * lib/unictype/gen-ctype.c: Remove file.
27513         * lib/unilbrk/gen-lbrk.c: Remove file.
27514         * modules/gen-uni-tables: New file.
27515         * modules/unictype/gen-ctype: Remove file.
27516         * modules/unilbrk/gen-lbrk: Remove file.
27517
27518 2009-02-07  Bruno Haible  <bruno@clisp.org>
27519
27520         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27521
27522         New module 'unistr/u32-strcoll'.
27523         * modules/unistr/u32-strcoll: New file.
27524         * lib/unistr/u32-strcoll.c: New file.
27525
27526         New module 'unistr/u16-strcoll'.
27527         * modules/unistr/u16-strcoll: New file.
27528         * lib/unistr/u16-strcoll.c: New file.
27529
27530         New module 'unistr/u8-strcoll'.
27531         * modules/unistr/u8-strcoll: New file.
27532         * lib/unistr/u8-strcoll.c: New file.
27533         * lib/unistr/u-strcoll.h: New file.
27534
27535 2009-02-07  Bruno Haible  <bruno@clisp.org>
27536
27537         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27538         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27539         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27540         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27541         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27542         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27543
27544 2009-02-07  Bruno Haible  <bruno@clisp.org>
27545
27546         Make 64-bit clean.
27547         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27548         output_combclass, output_bidi_category, output_decimal_digit,
27549         output_digit, output_numeric, output_mirror, output_scripts,
27550         output_ident_category): Use proper width specifier in format strings.
27551
27552 2009-02-07  Bruno Haible  <bruno@clisp.org>
27553
27554         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27555         failure behaviour.
27556
27557 2009-02-07  Jim Meyering  <meyering@redhat.com>
27558
27559         regex: avoid compilation failure with upcoming gcc-4.4
27560         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27561         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27562         "... error: integer overflow in preprocessor expression".
27563
27564 2009-02-05  Ben Pfaff  <blp@gnu.org>
27565
27566         Fix link errors on Windows when close module is used.
27567         * modules/close: Add $(LIB_CLOSE) to Link section.
27568         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27569         $(LIB_CLOSE) on Windows.
27570
27571 2009-02-05  Jim Meyering  <meyering@redhat.com>
27572
27573         still avoid unused-parameter warnings, but do it cleanly
27574         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27575         (get_fs_usage): Cast to void instead.
27576         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27577         (dev_from_mount_options, read_file_system_list): Cast to void.
27578         Prompted by Bruno Haible.
27579
27580 2009-02-04  Jim Meyering  <meyering@redhat.com>
27581
27582         fsusage.c: correct copyright year
27583         * lib/fsusage.c: Reflect year in which the change is pushed into
27584
27585         avoid misc. warnings
27586         * lib/fsusage.c (UNUSED_PARAM): Define.
27587         (get_fs_usage): Mark parameter "disk" as unused.
27588         * lib/getugroups.c (getgrent): Use "void" in prototype.
27589         * lib/mountlist.c: Mark unused parameters.
27590         (read_file_system_list): Declare a local with "const".
27591         * lib/nanosleep.c (getnow): Declare static.
27592         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27593
27594         dirfd: set errno upon failure
27595         * lib/dirfd.c: Include <errno.h>.
27596         Set errno to ENOTSUP when returning -1.
27597         * modules/dirfd (Depends-on): Add errno.
27598         Suggested by John Kodis <kodis@comcast.net>.
27599
27600 2009-02-01  Bruno Haible  <bruno@clisp.org>
27601
27602         Don't assume sizeof (long) >= sizeof (void *).
27603         * lib/memcmp.c: Include stdint.h.
27604         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27605         srcp2 to 'const byte *'.
27606         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27607         types to uintptr_t.
27608         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27609         * modules/memcmp (Depends-on): Add stdint.
27610         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27611
27612 2009-01-30  Eric Blake  <ebb9@byu.net>
27613
27614         fix more require-before-expand issues
27615         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27616         expand, AC_PROG_AWK.
27617         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27618
27619 2009-01-28  Eric Blake  <ebb9@byu.net>
27620
27621         version-etc: use consistent URL formatting
27622         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27623         Improve formatting.  Use fputs for string without %.
27624
27625 2009-01-28  Jim Meyering  <meyering@redhat.com>
27626
27627         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27628         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27629         "underquoted definition of NAME" from autoconf-2.59.
27630
27631 2009-01-28  Bruno Haible  <bruno@clisp.org>
27632
27633         * doc/gnulib.texi: Add "Obsolete modules" to index.
27634
27635 2009-01-28  Jim Meyering  <meyering@redhat.com>
27636
27637         useless-if-before-free: recognize more variants
27638         * build-aux/useless-if-before-free: Also recognize e.g.,
27639         if (NULL != p) free (p);
27640
27641 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27642
27643         test-getaddrinfo: skip (don't fail) this test when there's no network
27644         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27645         on the presumption that it means you lack network access.
27646
27647 2009-01-26  Jim Meyering  <meyering@redhat.com>
27648
27649         fflush: avoid warnings on modern systems
27650         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27651         pos and result, into scopes where they're used.
27652
27653 2009-01-26  Eric Blake  <ebb9@byu.net>
27654
27655         Silence warning reintroduced by recent extensions patch.
27656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27657         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27658         autoconf.
27659
27660         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27661         * m4/00gnulib.m4: New file.
27662         * gnulib-tool (func_get_filelist): Always use it.
27663         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27664         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27665
27666 2009-01-25  Bruno Haible  <bruno@clisp.org>
27667
27668         Make test-quotearg work on MacOS X and AIX.
27669         * tests/test-quotearg.sh: New file.
27670         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27671         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27672         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27673         include <libintl.h>.
27674         (fake_locale): Remove variable.
27675         (gettext, dgettext, dcgettext): Remove functions.
27676         (main): Instead of setting a fake locale, set a real locale. Call
27677         textdomain and bindtextdomain.
27678         * modules/quotearg-tests (Files): Add the new files.
27679         (Depends-on): Add gettext, setenv, unsetenv.
27680         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27681         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27682         Augment TESTS_ENVIRONMENT.
27683
27684 2009-01-25  Bruno Haible  <bruno@clisp.org>
27685
27686         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27687         fr_FR.ISO8859-1 locale on MacOS X.
27688         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27689         ja_JP.eucJP locale on MacOS X.
27690         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27691         zh_CN.GB18030 locale on MacOS X.
27692
27693 2009-01-25  Bruno Haible  <bruno@clisp.org>
27694
27695         Avoid link errors on MacOS X 10.3.
27696         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27697         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27698
27699 2009-01-25  Bruno Haible  <bruno@clisp.org>
27700
27701         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27702         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27703         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27704         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27705         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27706         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27707         posix_spawnattr_init, posix_spawnattr_setsigmask,
27708         posix_spawnattr_setflags, posix_spawnattr_destroy.
27709
27710         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27711         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27712         * modules/execute (Files): Remove m4/posix_spawn.m4.
27713         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27714         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27715         posix_spawnattr_init, posix_spawnattr_setsigmask,
27716         posix_spawnattr_setflags, posix_spawnattr_destroy.
27717
27718 2009-01-25  Bruno Haible  <bruno@clisp.org>
27719
27720         * lib/glthread/threadlib.c: Include <stdlib.h>.
27721
27722 2009-01-25  Bruno Haible  <bruno@clisp.org>
27723
27724         * lib/glthread/threadlib.c (dummy): New declaration.
27725
27726 2009-01-25  Bruno Haible  <bruno@clisp.org>
27727
27728         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27729         multibyte characters also for the GB18030 encoding. Don't crash when
27730         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27731
27732 2009-01-25  Bruno Haible  <bruno@clisp.org>
27733
27734         Avoid redefining 'struct random_data' on OSF/1 5.1.
27735         * lib/stdlib.in.h: Include <random.h> if it exists.
27736         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27737         HAVE_RANDOM_H. Include <random.h> when testing whether
27738         'struct random_data' exists.
27739         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27740
27741 2009-01-25  Bruno Haible  <bruno@clisp.org>
27742
27743         Don't install charset.alias on MacOS X >= 10.3.
27744         * lib/localcharset.c (DARWIN7): New macro.
27745         (get_charset_aliases): Hardcode the result for Darwin7.
27746         * modules/localcharset (install-exec-local): Don't install
27747         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27748
27749 2009-01-25  Bruno Haible  <bruno@clisp.org>
27750
27751         Don't install charset.alias on mingw and Cygwin.
27752         * modules/localcharset (install-exec-local): Don't install
27753         charset.alias on mingw and Cygwin, if the file does not yet exist.
27754         The result for these platforms is hardcoded in localcharset.c.
27755
27756 2009-01-25  Bruno Haible  <bruno@clisp.org>
27757
27758         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27760         before requiring AC_USE_SYSTEM_EXTENSIONS.
27761
27762 2009-01-25  Jim Meyering  <meyering@redhat.com>
27763
27764         c-strtod: avoid warnings
27765         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27766         "assignment discards qualifiers from pointer target type" warnings.
27767
27768 2009-01-24  Bruno Haible  <bruno@clisp.org>
27769
27770         Add support for non-UTF-8 locales on MacOS X.
27771         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27772         canonical encodings. For Darwin 7 and newer, don't map traditional
27773         encodings to UTF-8.
27774         Reported by Vincent Lefevre <vincent@vinc17.org>
27775         at <http://savannah.gnu.org/bugs/?25235>.
27776
27777 2009-01-24  Bruno Haible  <bruno@clisp.org>
27778
27779         * doc/gnulib.texi (Obsolete modules): New section.
27780         Reported by Mike Frysinger <vapier@gentoo.org>.
27781
27782 2009-01-24  Bruno Haible  <bruno@clisp.org>
27783
27784         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27785         (%.dvi): New rule.
27786
27787 2009-01-24  Bruno Haible  <bruno@clisp.org>
27788
27789         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27790         Reported by Eric Blake.
27791
27792 2009-01-24  Bruno Haible  <bruno@clisp.org>
27793
27794         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27795         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27796         Reported by Gary V. Vaughan <gary@gnu.org>.
27797
27798 2009-01-24  Bruno Haible  <bruno@clisp.org>
27799
27800         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27801
27802 2009-01-23  Bruno Haible  <bruno@clisp.org>
27803
27804         Make c-strtod, c-strtold usable in libraries.
27805         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27806         (C_STRTOD): Call strdup instead of xstrdup.
27807         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27808         * modules/c-strtold (Depends-on): Likewise.
27809         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27810         * NEWS: Mention the change.
27811         Reported by Michael Gold <mgold@ncf.ca>.
27812
27813 2009-01-23  Jim Meyering  <meyering@redhat.com>
27814
27815         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27816         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27817         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27818
27819 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27820
27821         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27822         GNU CoreUtils.
27823         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27824         * modules/version-etc (Description): Update.
27825
27826 2009-01-22  Bruno Haible  <bruno@clisp.org>
27827
27828         Cache the C locale object.
27829         * lib/c-strtod.c (c_locale_cache): New variable.
27830         (c_locale): New function.
27831         (C_STRTOD): Use it, and don't call freelocale.
27832         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27833         Suggested by Paolo Bonzini.
27834
27835 2009-01-21  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27838         conditions other than overflow.
27839
27840 2009-01-21  Bruno Haible  <bruno@clisp.org>
27841
27842         * lib/c-strtod.c: Include errno.h.
27843         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27844         value from STRTOD_L and STRTOD.
27845
27846 2009-01-21  Bruno Haible  <bruno@clisp.org>
27847         and Jim Meyering  <meyering@redhat.com>
27848
27849         nanosleep: skip configure test (fail it) for apple universal builds
27850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27851         universal builds, assume that nanosleep does not work.
27852         * modules/nanosleep (Depends-on): Add multiarch.
27853
27854         mktime: skip configure test (fail it) for apple universal builds
27855         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27856         universal builds, assume that mktime does not work.
27857         * modules/mktime (Depends-on): Add multiarch.
27858
27859 2009-01-21  Eric Blake  <ebb9@byu.net>
27860
27861         multiarch: avoid expand-before-require warning
27862         * modules/multiarch (configure.ac): Require, rather than expand,
27863         gl_MULTIARCH.
27864         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27865         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27866         enforce that all clients require it.  Partial reversion of
27867         2008-12-29 patch.
27868
27869         error: avoid expand-before-require warning
27870         * modules/errno (configure.ac): Require, rather than expand,
27871         gl_HEADER_ERRNO_H.
27872         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27873         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27874         enforce that all clients require it.
27875
27876         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27877         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27878         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27879         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27880
27881 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27882
27883         Revert:
27884         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27885
27886         regex: do not depend on obsolete modules.
27887         * modules/regex: Remove memcmp and memmove.
27888
27889 2009-01-20  Bruno Haible  <bruno@clisp.org>
27890
27891         Make the 'link' module link on Windows NT 4.
27892         * lib/link.c (_WIN32_WINNT): Don't define.
27893         (CreateHardLinkFuncType): New type.
27894         (CreateHardLinkFunc, initialized): New variables.
27895         (initialize): New function.
27896         (link): Invoke CreateHardLink indirectly through the function pointer.
27897
27898 2009-01-20  Bruno Haible  <bruno@clisp.org>
27899
27900         Fix compilation failure on mingw.
27901         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27902
27903 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27904
27905         * doc/c-strtod.texi: Mention a couple of restrictions.
27906
27907 2009-01-20  Jim Meyering  <meyering@redhat.com>
27908
27909         gettimeofday: move more declarations out of functions
27910         * lib/gettimeofday.c: Move extern declarations of tzset and
27911         gmtime out of containing functions.  Prompted by Bruno Haible.
27912
27913 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27914
27915         regex: do not depend on obsolete modules.
27916         * modules/regex: Remove memcmp and memmove.
27917
27918 2009-01-19  Bruno Haible  <bruno@clisp.org>
27919
27920         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27921         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27922         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27923         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27924         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27925
27926 2009-01-19  Bruno Haible  <bruno@clisp.org>
27927
27928         * tests/test-link.c: Include <errno.h>.
27929         (main): Exit with code 77 when a hard link cannot be created due to
27930         the file system.
27931         * tests/test-link.sh: Skip test when a hard link cannot be created due
27932         to the file system.
27933         Suggested by Eric Blake.
27934
27935 2009-01-19  Martin Lambers  <marlam@marlam.de>
27936
27937         * modules/link-tests: New file.
27938         * tests/test-link.sh: New file.
27939         * tests/test-link.c: New file.
27940
27941 2009-01-19  Eric Blake  <ebb9@byu.net>
27942
27943         doc: mention another function added in cygwin 1.7.0
27944         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
27945         Another new function in cygwin 1.7.
27946
27947 2009-01-19  Bruno Haible  <bruno@clisp.org>
27948
27949         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27950         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
27951         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
27952         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27953         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27954         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27955         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27956         * m4/md4.m4 (gl_MD4): Likewise.
27957         * m4/md5.m4 (gl_MD5): Likewise.
27958         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
27959         * m4/sha1.m4 (gl_SHA1): Likewise.
27960         * m4/sha256.m4 (gl_SHA256): Likewise.
27961         * m4/sha512.m4 (gl_SHA512): Likewise.
27962
27963 2009-01-19  Bruno Haible  <bruno@clisp.org>
27964
27965         * modules/uniname/uniname-tests (Depends-on): Add progname.
27966         * tests/uniname/test-uninames.c: Include progname.h.
27967         (main): Call set_program_name.
27968
27969         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
27970         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
27971         (main): Call set_program_name.
27972
27973         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27974         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27975         (main): Call set_program_name.
27976
27977         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27978         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27979         (main): Call set_program_name.
27980
27981         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27982         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27983         (main): Call set_program_name.
27984
27985         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27986         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27987         (main): Call set_program_name.
27988
27989         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27990         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27991         (main): Call set_program_name.
27992
27993         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27994         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27995         (main): Call set_program_name.
27996
27997         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27998         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27999         (main): Call set_program_name.
28000
28001 2009-01-19  Eric Blake  <ebb9@byu.net>
28002
28003         test-unistd: test previous patch
28004         * tests/test-unistd.c: Test *_FILENO macros.
28005
28006         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
28007         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28008         Guarantee a definition.
28009         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
28010         * modules/unistd-safer (Depends-on): Add dependency on unistd.
28011         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
28012         * lib/dup-safer.c (STDERR_FILENO): Likewise.
28013         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28014         Likewise.
28015         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
28016         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
28017         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28018         Likewise.
28019         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
28020         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
28021         (STDERR_FILENO): Likewise.
28022         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
28023         (STDERR_FILENO): Likewise.
28024         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
28025         (STDERR_FILENO): Likewise.
28026         Reported by Elbert Pol.
28027
28028 2009-01-19  Eric Blake  <ebb9@byu.net>
28029
28030         doc: mention more functions added in cygwin 1.7.0
28031         * doc/posix-functions/abort.texi (abort): Update wording related
28032         to cygwin.
28033         * doc/posix-functions/daylight.texi (daylight): Likewise.
28034         * doc/posix-functions/optarg.texi (optarg): Likewise.
28035         * doc/posix-functions/optarg.texi (opterr): Likewise.
28036         * doc/posix-functions/optarg.texi (optind): Likewise.
28037         * doc/posix-functions/optarg.texi (optopt): Likewise.
28038         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
28039         worked in 1.5.x, and was withdrawn in 1.7.
28040         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
28041         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
28042         cygwin versions.
28043         * doc/posix-functions/perror.texi (perror): Likewise.
28044         * doc/posix-functions/printf.texi (printf): Likewise.
28045         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
28046         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
28047         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
28048         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
28049         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28050         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
28051         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28052         Likewise.
28053         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28054         Likewise.
28055         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
28056         this function.
28057         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
28058         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
28059         Likewise.
28060         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
28061         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
28062         * doc/posix-functions/confstr.texi (confstr): Likewise.
28063         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
28064         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
28065         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
28066         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
28067         * doc/posix-functions/fputws.texi (fputws): Likewise.
28068         * doc/posix-functions/fwide.texi (fwide): Likewise.
28069         * doc/posix-functions/getwc.texi (getwc): Likewise.
28070         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
28071         * doc/posix-functions/putwc.texi (putwc): Likewise.
28072         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
28073         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
28074         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
28075         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
28076         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
28077         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
28078         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
28079         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
28080         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
28081         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
28082         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
28083
28084 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28085
28086         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
28087         * lib/ioctl.c: Include <sys/ioctl.h>.
28088
28089 2009-01-19  Simon Josefsson  <simon@josefsson.org>
28090
28091         * modules/getdate-tests (Depends-on): Add progname.
28092         * tests/test-getdate.c: Use progname module, to avoid link errors
28093         on non-glibc systems.
28094
28095 2009-01-18  Simon Josefsson  <simon@josefsson.org>
28096
28097         * modules/filenamecat-tests (Depends-on): Add progname.
28098         * modules/fstrcmp-tests (Depends-on): Likewise.
28099
28100         * tests/test-filenamecat.c: Use progname module, to avoid link
28101         errors on non-glibc systems.
28102         * tests/test-fstrcmp.c: Likewise.
28103
28104 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28105
28106         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28107         * lib/gettimeofday.c: Move extern declaration out of function.
28108
28109 2009-01-18  Bruno Haible  <bruno@clisp.org>
28110
28111         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28112         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28113         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28114
28115 2009-01-18  Bruno Haible  <bruno@clisp.org>
28116
28117         * lib/strftime.c (MEMPCPY): Remove unused macro.
28118         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28119
28120 2009-01-18  Martin Lambers  <marlam@marlam.de>
28121
28122         New module 'link'.
28123         * lib/unistd.in.h (link): New declaration.
28124         * lib/link.c: New file.
28125         * m4/link.m4: New file.
28126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28127         HAVE_LINK.
28128         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28129         * modules/link: New file.
28130         * doc/posix-functions/link.texi: Mention the new module.
28131
28132 2009-01-18  Bruno Haible  <bruno@clisp.org>
28133
28134         * tests/test-avltree_list.c (main): Call set_program_name.
28135         * tests/test-avltree_oset.c (main): Likewise.
28136         * tests/test-obstack-printf.c: Include progname.h.
28137         (main): Call set_program_name.
28138         * tests/test-quotearg.c: Include progname.h.
28139         (main): Call set_program_name.
28140         * tests/test-xmemdup0.c: Include progname.h.
28141         (main): Call set_program_name.
28142
28143 2009-01-18  Bruno Haible  <bruno@clisp.org>
28144
28145         New module 'alphasort'.
28146         * lib/dirent.in.h (alphasort): New declaration.
28147         * lib/alphasort.c: New file, from glibc with modifications.
28148         * m4/alphasort.m4: New file.
28149         * modules/alphasort: New file.
28150         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28151         HAVE_ALPHASORT.
28152         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28153         HAVE_ALPHASORT.
28154         * doc/posix-functions/alphasort.texi: Mention the new module and the
28155         portability problems.
28156
28157 2009-01-18  Bruno Haible  <bruno@clisp.org>
28158
28159         New module 'scandir'.
28160         * lib/dirent.in.h (scandir): New declaration.
28161         * lib/scandir.c: New file, from glibc with modifications.
28162         * m4/scandir.m4: New file.
28163         * modules/scandir: New file.
28164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28165         HAVE_SCANDIR.
28166         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28167         HAVE_SCANDIR.
28168         * doc/posix-functions/scandir.texi: Mention the new module and the
28169         portability problems.
28170
28171 2009-01-17  Bruno Haible  <bruno@clisp.org>
28172
28173         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28174         Update documentation.
28175         (func_remove_suffix): Escape all dots in the suffix. Update
28176         documentation.
28177         (func_filter_filelist): Update documentation.
28178         Reported by Ralf Wildenhues.
28179
28180 2009-01-17  Bruno Haible  <bruno@clisp.org>
28181
28182         * modules/dprintf-posix-tests: New file.
28183         * tests/test-dprintf-posix.sh: New file.
28184         * tests/test-dprintf-posix.c: New file.
28185
28186         New modules 'dprintf', 'dprintf-posix'.
28187         * lib/stdio.in.h (dprintf): New declaration.
28188         * lib/dprintf.c: New file.
28189         * m4/dprintf.m4: New file.
28190         * m4/dprintf-posix.m4: New file.
28191         * modules/dprintf: New file.
28192         * modules/dprintf-posix: New file.
28193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
28194         HAVE_DPRINTF, REPLACE_DPRINTF.
28195         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
28196         HAVE_DPRINTF, REPLACE_DPRINTF.
28197         * doc/posix-functions/dprintf.texi: Mention the new modules.
28198
28199 2009-01-17  Bruno Haible  <bruno@clisp.org>
28200
28201         * modules/vdprintf-posix-tests: New file.
28202         * tests/test-vdprintf-posix.sh: New file.
28203         * tests/test-vdprintf-posix.c: New file.
28204
28205         New modules 'vdprintf', 'vdprintf-posix'.
28206         * lib/stdio.in.h (vdprintf): New declaration.
28207         * lib/vdprintf.c: New file.
28208         * m4/vdprintf.m4: New file.
28209         * m4/vdprintf-posix.m4: New file.
28210         * modules/vdprintf: New file.
28211         * modules/vdprintf-posix: New file.
28212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
28213         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28214         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
28215         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28216         * doc/posix-functions/vdprintf.texi: Mention the new modules.
28217
28218 2009-01-17  Bruno Haible  <bruno@clisp.org>
28219
28220         Fix replacement of fopen on mingw.
28221         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
28222         mingw.
28223
28224 2009-01-17  Bruno Haible  <bruno@clisp.org>
28225
28226         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
28227         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
28228
28229 2009-01-17  Bruno Haible  <bruno@clisp.org>
28230
28231         Avoid test-fflush2.sh failure on mingw.
28232         * tests/test-fflush2.c: Include binary-io.h.
28233         (main): Put standard input into binary mode.
28234         * modules/fflush-tests (Depends-on): Add binary-io.
28235
28236 2009-01-17  Bruno Haible  <bruno@clisp.org>
28237
28238         * lib/wchar.in.h: In another particular situation, include only the
28239         system's <wchar.h> file.
28240         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
28241         Reported by Albert Chin-A-Young <china@thewrittenword.com>
28242         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
28243
28244 2009-01-17  Bruno Haible  <bruno@clisp.org>
28245
28246         Support for stripping executables in --enable-relocatable.
28247         * build-aux/install-reloc: Expect one more argument, or an environment
28248         variable RELOC_STRIP_PROG. If set, strip the destination program and
28249         its wrapper.
28250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
28251         RELOC_STRIP_PROG.
28252         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
28253         to set RELOCATABLE_STRIP.
28254         * NEWS: Mention the new Makefile requirement.
28255
28256 2009-01-17  Bruno Haible  <bruno@clisp.org>
28257
28258         * build-aux/install-reloc: Remove debugging information left over by
28259         C compiler on MacOS X.
28260
28261 2009-01-17  Bruno Haible  <bruno@clisp.org>
28262
28263         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
28264         * lib/progreloc.c (find_executable): Fix type of pointer passed to
28265         _NSGetExecutablePath.
28266
28267 2009-01-16  Jim Meyering  <meyering@redhat.com>
28268
28269         strerror: avoid warnings about discarding "const"
28270         * lib/strerror.c (rpl_strerror): Instead of returning a const
28271         string from each and every "case", use a variable, and add a single
28272         cast after the switch.
28273
28274 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
28275
28276         * lib/arpa_inet.in.h: Add extern "C" block for C++.
28277
28278 2009-01-16  Bruno Haible  <bruno@clisp.org>
28279
28280         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
28281         array initializer syntax that also works in C++ mode.
28282         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28283
28284 2009-01-16  Jim Meyering  <meyering@redhat.com>
28285
28286         poll: suppress a warning
28287         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
28288         to ignore "...unsigned expression < 0 is always false" warnings.
28289
28290 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
28291
28292         poll: remove declarations of unused variables
28293         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
28294         sockbuf and optlen.
28295
28296 2009-01-15  Bruno Haible  <bruno@clisp.org>
28297
28298         Make fflush-after-ungetc POSIX compliant on BSD systems.
28299         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
28300         (clear_ungetc_buffer): Implement also for other systems.
28301         (rpl_fflush): On glibc systems, invoke
28302         clear_ungetc_buffer_preserving_position. Otherwise, invoke
28303         clear_ungetc_buffer after fetching the stream's position, not before.
28304
28305 2009-01-15  Bruno Haible  <bruno@clisp.org>
28306
28307         Make fflush-after-ungetc POSIX compliant on glibc systems.
28308         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
28309         after ungetc.
28310         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
28311         (rpl_fflush): On glibc systems, simply call the system's fflush
28312         function after clearing the ungetc buffer.
28313         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
28314         Instead, lseek only to the end of file, then use the system's fseeko
28315         for the rest. On glibc systems, reset the EOF indicator bit.
28316
28317 2009-01-15  Jim Meyering  <meyering@redhat.com>
28318
28319         openmp.m4: revert quote-adding change, for portability to older autoconf
28320         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
28321         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
28322         Simon Josefsson noticed the problem when using autoconf-2.61.
28323
28324 2009-01-15  Bruno Haible  <bruno@clisp.org>
28325
28326         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
28327         * tests/test-fflush2.c (ASSERT): Always fail.
28328         (main): Add two tests for fflush() after ungetc(), taking into account
28329         the Austin Group's clarification.
28330         Suggested by Eric Blake.
28331
28332 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
28333
28334         mktime.m4: remove K&R-style function prototypes
28335         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
28336         for the Sun C++ compiler.
28337
28338 2009-01-14  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
28341         while including <wchar.h>.
28342         * lib/wchar.in.h: In two particular situations on HP-UX, include only
28343         the system's <wchar.h> file.
28344         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28345
28346 2009-01-14  Bruno Haible  <bruno@clisp.org>
28347
28348         * m4/csharp.m4: Don't mention gettext on the serial number line.
28349         * m4/csharpexec.m4: Likewise.
28350         * m4/eaccess.m4: Likewise.
28351         * m4/javaexec.m4: Likewise.
28352         * m4/sig_atomic_t.m4: Likewise.
28353         * m4/tmpdir.m4: Likewise.
28354         * m4/intldir.m4: Bump gettext version.
28355         * m4/lib-ld.m4: Likewise.
28356
28357 2009-01-14  Bruno Haible  <bruno@clisp.org>
28358
28359         * lib/progname.c (set_program_name): Add more comments.
28360         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28361
28362 2009-01-14  Simon Josefsson  <simon@josefsson.org>
28363
28364         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
28365         were sys/stat.h does not define it.
28366
28367 2009-01-14  Jim Meyering  <meyering@redhat.com>
28368
28369         many *.m4 files: improve m4 quoting
28370         99% of this change was performed by running the following commands:
28371         git ls-files | grep '\.m4$' | xargs perl -pi \
28372           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
28373           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28374           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28375           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
28376         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
28377         The remainder were to add Copyright dates, increment serial numbers,
28378         undo some changes in comments, exclude m4/intl.m4, and add quotes
28379         around the "1" in ",1" where the unusual spacing prohibited the
28380         above regexps from doing the job.  For more details, see
28381         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
28382         * m4/acl.m4: Modified.
28383         * m4/afs.m4: Likewise.
28384         * m4/alloca.m4: Likewise.
28385         * m4/argp.m4: Likewise.
28386         * m4/argz.m4: Likewise.
28387         * m4/atexit.m4: Likewise.
28388         * m4/bison-i18n.m4: Likewise.
28389         * m4/bison.m4: Likewise.
28390         * m4/byteswap.m4: Likewise.
28391         * m4/c-stack.m4: Likewise.
28392         * m4/c-strtod.m4: Likewise.
28393         * m4/calloc.m4: Likewise.
28394         * m4/canonicalize-lgpl.m4: Likewise.
28395         * m4/chown.m4: Likewise.
28396         * m4/clock_time.m4: Likewise.
28397         * m4/codeset.m4: Likewise.
28398         * m4/copy-file.m4: Likewise.
28399         * m4/csharp.m4: Likewise.
28400         * m4/csharpcomp.m4: Likewise.
28401         * m4/csharpexec.m4: Likewise.
28402         * m4/d-ino.m4: Likewise.
28403         * m4/d-type.m4: Likewise.
28404         * m4/dirfd.m4: Likewise.
28405         * m4/double-slash-root.m4: Likewise.
28406         * m4/eaccess.m4: Likewise.
28407         * m4/eealloc.m4: Likewise.
28408         * m4/environ.m4: Likewise.
28409         * m4/errno_h.m4: Likewise.
28410         * m4/euidaccess.m4: Likewise.
28411         * m4/execute.m4: Likewise.
28412         * m4/fatal-signal.m4: Likewise.
28413         * m4/fchdir.m4: Likewise.
28414         * m4/fcntl_h.m4: Likewise.
28415         * m4/fileblocks.m4: Likewise.
28416         * m4/filenamecat.m4: Likewise.
28417         * m4/findprog.m4: Likewise.
28418         * m4/flexmember.m4: Likewise.
28419         * m4/fnmatch.m4: Likewise.
28420         * m4/fopen.m4: Likewise.
28421         * m4/fpending.m4: Likewise.
28422         * m4/fprintf-posix.m4: Likewise.
28423         * m4/free.m4: Likewise.
28424         * m4/frexp.m4: Likewise.
28425         * m4/frexpl.m4: Likewise.
28426         * m4/fsusage.m4: Likewise.
28427         * m4/ftruncate.m4: Likewise.
28428         * m4/gc-camellia.m4: Likewise.
28429         * m4/gc-random.m4: Likewise.
28430         * m4/gc.m4: Likewise.
28431         * m4/getaddrinfo.m4: Likewise.
28432         * m4/getcwd-abort-bug.m4: Likewise.
28433         * m4/getcwd-path-max.m4: Likewise.
28434         * m4/getdate.m4: Likewise.
28435         * m4/getdomainname.m4: Likewise.
28436         * m4/getgroups.m4: Likewise.
28437         * m4/gethostname.m4: Likewise.
28438         * m4/gethrxtime.m4: Likewise.
28439         * m4/getline.m4: Likewise.
28440         * m4/getloadavg.m4: Likewise.
28441         * m4/getndelim2.m4: Likewise.
28442         * m4/getpass.m4: Likewise.
28443         * m4/gettext.m4: Likewise.
28444         * m4/gettime.m4: Likewise.
28445         * m4/gettimeofday.m4: Likewise.
28446         * m4/gnulib-common.m4: Likewise.
28447         * m4/group-member.m4: Likewise.
28448         * m4/host-os.m4: Likewise.
28449         * m4/iconv.m4: Likewise.
28450         * m4/iconv_open.m4: Likewise.
28451         * m4/inet_ntop.m4: Likewise.
28452         * m4/inet_pton.m4: Likewise.
28453         * m4/inline.m4: Likewise.
28454         * m4/intldir.m4: Likewise.
28455         * m4/intlmacosx.m4: Likewise.
28456         * m4/intmax.m4: Likewise.
28457         * m4/intmax_t.m4: Likewise.
28458         * m4/inttypes.m4: Likewise.
28459         * m4/inttypes_h.m4: Likewise.
28460         * m4/inttypes-pri.m4: Likewise.
28461         * m4/isapipe.m4: Likewise.
28462         * m4/isnand.m4: Likewise.
28463         * m4/isnanf.m4: Likewise.
28464         * m4/isnanl.m4: Likewise.
28465         * m4/javacomp.m4: Likewise.
28466         * m4/javaexec.m4: Likewise.
28467         * m4/jm-winsz1.m4: Likewise.
28468         * m4/jm-winsz2.m4: Likewise.
28469         * m4/lchown.m4: Likewise.
28470         * m4/lcmessage.m4: Likewise.
28471         * m4/ldexpl.m4: Likewise.
28472         * m4/lib-ld.m4: Likewise.
28473         * m4/lib-link.m4: Likewise.
28474         * m4/libsigsegv.m4: Likewise.
28475         * m4/link-follow.m4: Likewise.
28476         * m4/localcharset.m4: Likewise.
28477         * m4/locale-fr.m4: Likewise.
28478         * m4/locale-ja.m4: Likewise.
28479         * m4/locale-tr.m4: Likewise.
28480         * m4/locale-zh.m4: Likewise.
28481         * m4/lock.m4: Likewise.
28482         * m4/longlong.m4: Likewise.
28483         * m4/ls-mntd-fs.m4: Likewise.
28484         * m4/lstat.m4: Likewise.
28485         * m4/malloc.m4: Likewise.
28486         * m4/mathl.m4: Likewise.
28487         * m4/mbrtowc.m4: Likewise.
28488         * m4/mbstate_t.m4: Likewise.
28489         * m4/mbswidth.m4: Likewise.
28490         * m4/memchr.m4: Likewise.
28491         * m4/memcmp.m4: Likewise.
28492         * m4/memcpy.m4: Likewise.
28493         * m4/memmem.m4: Likewise.
28494         * m4/memmove.m4: Likewise.
28495         * m4/mempcpy.m4: Likewise.
28496         * m4/memrchr.m4: Likewise.
28497         * m4/memset.m4: Likewise.
28498         * m4/minmax.m4: Likewise.
28499         * m4/mkdir-slash.m4: Likewise.
28500         * m4/mkdtemp.m4: Likewise.
28501         * m4/mktime.m4: Likewise.
28502         * m4/mmap-anon.m4: Likewise.
28503         * m4/mountlist.m4: Likewise.
28504         * m4/nanosleep.m4: Likewise.
28505         * m4/nls.m4: Likewise.
28506         * m4/nocrash.m4: Likewise.
28507         * m4/open.m4: Likewise.
28508         * m4/openat.m4: Likewise.
28509         * m4/openmp.m4: Likewise.
28510         * m4/pathmax.m4: Likewise.
28511         * m4/perl.m4: Likewise.
28512         * m4/physmem.m4: Likewise.
28513         * m4/pipe.m4: Likewise.
28514         * m4/po.m4: Likewise.
28515         * m4/poll.m4: Likewise.
28516         * m4/posixtm.m4: Likewise.
28517         * m4/posixver.m4: Likewise.
28518         * m4/printf-frexp.m4: Likewise.
28519         * m4/printf-frexpl.m4: Likewise.
28520         * m4/printf-posix.m4: Likewise.
28521         * m4/printf-posix-rpl.m4: Likewise.
28522         * m4/printf.m4: Likewise.
28523         * m4/progtest.m4: Likewise.
28524         * m4/putenv.m4: Likewise.
28525         * m4/readline.m4: Likewise.
28526         * m4/readlink.m4: Likewise.
28527         * m4/readutmp.m4: Likewise.
28528         * m4/realloc.m4: Likewise.
28529         * m4/regex.m4: Likewise.
28530         * m4/relocatable.m4: Likewise.
28531         * m4/relocatable-lib.m4: Likewise.
28532         * m4/rename-dest-slash.m4: Likewise.
28533         * m4/rename.m4: Likewise.
28534         * m4/rmdir-errno.m4: Likewise.
28535         * m4/rmdir.m4: Likewise.
28536         * m4/roundf.m4: Likewise.
28537         * m4/roundl.m4: Likewise.
28538         * m4/rpmatch.m4: Likewise.
28539         * m4/save-cwd.m4: Likewise.
28540         * m4/selinux-selinux-h.m4: Likewise.
28541         * m4/setenv.m4: Likewise.
28542         * m4/settime.m4: Likewise.
28543         * m4/sig2str.m4: Likewise.
28544         * m4/sig_atomic_t.m4: Likewise.
28545         * m4/signalblocking.m4: Likewise.
28546         * m4/signbit.m4: Likewise.
28547         * m4/sigpipe.m4: Likewise.
28548         * m4/sockets.m4: Likewise.
28549         * m4/sockpfaf.m4: Likewise.
28550         * m4/st_dm_mode.m4: Likewise.
28551         * m4/stat-time.m4: Likewise.
28552         * m4/stdbool.m4: Likewise.
28553         * m4/stdint.m4: Likewise.
28554         * m4/stdint_h.m4: Likewise.
28555         * m4/stpcpy.m4: Likewise.
28556         * m4/stpncpy.m4: Likewise.
28557         * m4/strcase.m4: Likewise.
28558         * m4/strchrnul.m4: Likewise.
28559         * m4/strcspn.m4: Likewise.
28560         * m4/strdup.m4: Likewise.
28561         * m4/strftime.m4: Likewise.
28562         * m4/strndup.m4: Likewise.
28563         * m4/strnlen.m4: Likewise.
28564         * m4/strpbrk.m4: Likewise.
28565         * m4/strptime.m4: Likewise.
28566         * m4/strsep.m4: Likewise.
28567         * m4/strtod.m4: Likewise.
28568         * m4/strtoimax.m4: Likewise.
28569         * m4/strtok_r.m4: Likewise.
28570         * m4/strtol.m4: Likewise.
28571         * m4/strtoll.m4: Likewise.
28572         * m4/strtoul.m4: Likewise.
28573         * m4/strtoull.m4: Likewise.
28574         * m4/strtoumax.m4: Likewise.
28575         * m4/strverscmp.m4: Likewise.
28576         * m4/threadlib.m4: Likewise.
28577         * m4/timegm.m4: Likewise.
28578         * m4/tm_gmtoff.m4: Likewise.
28579         * m4/tmpdir.m4: Likewise.
28580         * m4/tmpfile.m4: Likewise.
28581         * m4/tzset.m4: Likewise.
28582         * m4/uintmax_t.m4: Likewise.
28583         * m4/unlinkdir.m4: Likewise.
28584         * m4/unlocked-io.m4: Likewise.
28585         * m4/uptime.m4: Likewise.
28586         * m4/userspec.m4: Likewise.
28587         * m4/utimbuf.m4: Likewise.
28588         * m4/utime.m4: Likewise.
28589         * m4/utimes-null.m4: Likewise.
28590         * m4/utimes.m4: Likewise.
28591         * m4/vararrays.m4: Likewise.
28592         * m4/vasnprintf.m4: Likewise.
28593         * m4/vfprintf-posix.m4: Likewise.
28594         * m4/vprintf-posix.m4: Likewise.
28595         * m4/wait-process.m4: Likewise.
28596         * m4/wchar_t.m4: Likewise.
28597         * m4/wint_t.m4: Likewise.
28598         * m4/write-any-file.m4: Likewise.
28599         * m4/yield.m4: Likewise.
28600
28601 2009-01-13  Bruno Haible  <bruno@clisp.org>
28602
28603         Avoid test-copy-file.sh failures when ACL support insufficient.
28604         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28605         TESTS_ENVIRONMENT.
28606         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28607         Reported by Jim Meyering.
28608
28609 2009-01-13  Bruno Haible  <bruno@clisp.org>
28610
28611         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28612         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28613         * modules/unistdio/u8-printf-parse (Files): Likewise.
28614         * modules/unistdio/u32-printf-parse (Files): Likewise.
28615         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28616
28617 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28618
28619         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28620         and m4/inttypes_h.m4 too.
28621
28622 2009-01-12  Eric Blake  <ebb9@byu.net>
28623
28624         tests: IRIX 6.2 cc can't compile -0.0 into .data
28625         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28626         rather than at compile-time.
28627         * tests/test-floorl.c (minus_zero): Likewise.
28628         * tests/test-frexpl.c (minus_zero): Likewise.
28629         * tests/test-isnan.c (minus_zerol): Likewise.
28630         * tests/test-isnanl.h (minus_zero): Likewise.
28631         * tests/test-ldexpl.c (minus_zero): Likewise.
28632         * tests/test-roundl.c (minus_zero): Likewise.
28633         * tests/test-signbit.c (minus_zerol): Likewise.
28634         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28635         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28636         * tests/test-truncl.c (minus_zero): Likewise.
28637         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28638         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28639         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28640
28641 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28642
28643         regex: fix glibc bug 9697
28644         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28645         handling.
28646
28647 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28648
28649         regex: fix glibc bug 697
28650         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28651         being NULL also if there are no backreferences.
28652
28653 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28654
28655         regex: merge glibc changes
28656         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28657         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28658         re_string_skip_chars, re_string_reconstruct): Likewise.
28659         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28660
28661 2009-01-07  Jim Meyering  <meyering@redhat.com>
28662
28663         poll: filter through cppi
28664         * lib/poll.c: Indent cpp directives to reflect nesting.
28665
28666 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28667
28668         poll: don't return uninitialized
28669         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28670
28671 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28672
28673         avoid compile failure on AIX 6.1
28674         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28675         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28676
28677 2009-01-04  Jim Meyering  <meyering@redhat.com>
28678
28679         remove duplicate inclusion of <stdio.h>
28680         * tests/test-fprintf-posix.c: Likewise.
28681         * tests/test-printf-posix.c: Likewise.
28682         * tests/test-snprintf-posix.c: Likewise.
28683         * tests/test-sprintf-posix.c: Likewise.
28684         * tests/test-vasprintf-posix.c: Likewise.
28685         * tests/test-vfprintf-posix.c: Likewise.
28686         * tests/test-vprintf-posix.c: Likewise.
28687         * tests/test-vsnprintf-posix.c: Likewise.
28688         * tests/test-vsprintf-posix.c: Likewise.
28689
28690 2009-01-03  Jim Meyering  <meyering@redhat.com>
28691
28692         gnulib-tool: fix sed-based filtering
28693         * gnulib-tool (func_filter_filelist): Remove extra backslash
28694         in sed_fff_filter definition.
28695
28696 2009-01-02  Jim Meyering  <meyering@redhat.com>
28697
28698         strftime: avoid compilation failure on Solaris 2.6
28699         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28700         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28701         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28702         be available.  Reported by Tom G. Christensen.  Details in
28703         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28704
28705 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28706             Bruno Haible  <bruno@clisp.org>
28707
28708         Speed up gnulib-tool by doing more string processing through shell
28709         built-ins.
28710         * gnulib-tool (fast_func_append): New variable.
28711         (func_remove_prefix, func_remove_suffix): New functions.
28712         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28713         (func_filter_filelist): New function.
28714         (func_get_dependencies): Use func_remove_suffix instead of sed.
28715         (func_get_automake_snippet): Use func_filter_filelist instead of a
28716         subshell and sed invocation.
28717
28718 2009-01-01  Bruno Haible  <bruno@clisp.org>
28719
28720         Fix a security bug.
28721         * gnulib-tool (func_import, import, update): Don't allow the characters
28722         '"', '$', '`', '\' in macro arguments that become part of commands that
28723         are evaluated.
28724
28725 2009-01-01  Bruno Haible  <bruno@clisp.org>
28726
28727         * gnulib-tool (func_reset_sigpipe): Add more comments.
28728
28729 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28730
28731         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28732         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28733         already know the answer.
28734
28735 2009-01-01  Jim Meyering  <meyering@redhat.com>
28736
28737         * lib/version-etc.c (version_etc_va): Update copyright year.
28738
28739 2008-12-30  Bruno Haible  <bruno@clisp.org>
28740
28741         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28742         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28743         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28744
28745 2008-12-29  Eric Blake  <ebb9@byu.net>
28746
28747         multiarch: avoid autoconf AC_REQUIRE bug
28748         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28749         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28750         2.63 and older.
28751         Reported by Bruno Haible, and analyzed in
28752         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28753
28754 2008-12-29  Bruno Haible  <bruno@clisp.org>
28755
28756         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28757         files in subdirectories correctly.
28758         Reported by Ralf Wildenhues.
28759
28760 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28761
28762         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28763         rather than 'join FILE -', for Solaris join.
28764
28765 2008-12-29  Bruno Haible  <bruno@clisp.org>
28766
28767         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28768         quoting.
28769         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28770         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28771         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28772         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28773         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28774         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28775         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28776         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28777         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28778         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28779         * m4/nls.m4 (AM_NLS): Likewise.
28780         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28781         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28782         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28783         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28784         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28785         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28786         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28787         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28788         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28789         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28790         * m4/xsize.m4 (gl_XSIZE): Likewise.
28791         Suggested by Jim Meyering.
28792
28793 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28794
28795         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28796         * lib/parse-duration.c: use a switch instead of cascading if's.
28797
28798 2008-12-29  Eric Blake  <ebb9@byu.net>
28799
28800         wchar.h: supply WEOF on Irix 5.3
28801         * lib/wchar.in.h (wint_t): Also supply WEOF.
28802         * lib/wctype.in.h (wint_t): Likewise.
28803         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28804         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28805         Reported by Tom G. Christensen.
28806
28807 2008-12-26  Bruno Haible  <bruno@clisp.org>
28808
28809         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28810         i486, i586, i686.
28811
28812 2008-12-26  Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28815
28816 2008-12-26  Bruno Haible  <bruno@clisp.org>
28817
28818         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28819         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28820         not __STDC_CONSTANT_MACROS.
28821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28822
28823 2008-12-25  Bruno Haible  <bruno@clisp.org>
28824
28825         Add support for universal builds to vasnprintf.
28826         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28827         universal builds, guess no.
28828         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28829         * modules/vasprintf-posix (Depends-on): Likewise.
28830         * modules/fprintf-posix (Depends-on): Likewise.
28831         * modules/vfprintf-posix (Depends-on): Likewise.
28832         * modules/snprintf-posix (Depends-on): Likewise.
28833         * modules/vsnprintf-posix (Depends-on): Likewise.
28834         * modules/sprintf-posix (Depends-on): Likewise.
28835         * modules/vsprintf-posix (Depends-on): Likewise.
28836         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28837         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28838         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28839         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28840         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28841         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28842         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28843
28844         Add support for universal builds to <inttypes.h>.
28845         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28846         _SCNu64_PREFIX): In Apple
28847         universal builds, define directly, using _LP64.
28848         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28849         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28850         * modules/inttypes (Depends-on): Add multiarch.
28851         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28852
28853         Add support for universal builds to <stdint.h>.
28854         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28855         universal builds, define directly, using _LP64.
28856         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28857         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28858         and size_t.
28859         * modules/stdint (Depends-on): Add multiarch.
28860         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28861
28862         New module 'multiarch'.
28863         * modules/multiarch: New file.
28864         * m4/multiarch.m4: New file.
28865
28866 2008-12-25  Bruno Haible  <bruno@clisp.org>
28867
28868         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28869
28870 2008-12-25  Bruno Haible  <bruno@clisp.org>
28871
28872         * modules/btowc (License): Relicense under LGPLv2+.
28873         * modules/mbsinit (License): Likewise.
28874         * modules/mbrtowc (License): Likewise.
28875         * modules/wcrtomb (License): Likewise.
28876         * modules/streq (License): Likewise.
28877         Reported by David Lutterkort <lutter@redhat.com>.
28878
28879 2008-12-23  Bruno Haible  <bruno@clisp.org>
28880
28881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28882
28883 2008-12-23  Bruno Haible  <bruno@clisp.org>
28884
28885         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28887         GETADDRINFO_LIB, not in LIBS.
28888         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28889         * modules/canon-host (Link): Likewise.
28890         * NEWS: Mention the change.
28891         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28892         GETADDRINFO_LIB.
28893
28894 2008-12-22  Bruno Haible  <bruno@clisp.org>
28895
28896         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28897         * doc/posix-functions/iswalpha_l.texi: Likewise.
28898         * doc/posix-functions/iswblank_l.texi: Likewise.
28899         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28900         * doc/posix-functions/iswctype_l.texi: Likewise.
28901         * doc/posix-functions/iswdigit_l.texi: Likewise.
28902         * doc/posix-functions/iswgraph_l.texi: Likewise.
28903         * doc/posix-functions/iswlower_l.texi: Likewise.
28904         * doc/posix-functions/iswprint_l.texi: Likewise.
28905         * doc/posix-functions/iswpunct_l.texi: Likewise.
28906         * doc/posix-functions/iswspace_l.texi: Likewise.
28907         * doc/posix-functions/iswupper_l.texi: Likewise.
28908         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28909         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28910         * doc/posix-functions/open_wmemstream.texi: Likewise.
28911         * doc/posix-functions/swscanf.texi: Likewise.
28912         * doc/posix-functions/towctrans_l.texi: Likewise.
28913         * doc/posix-functions/towlower.texi: Likewise.
28914         * doc/posix-functions/towlower_l.texi: Likewise.
28915         * doc/posix-functions/towupper.texi: Likewise.
28916         * doc/posix-functions/towupper_l.texi: Likewise.
28917         * doc/posix-functions/vfwprintf.texi: Likewise.
28918         * doc/posix-functions/vfwscanf.texi: Likewise.
28919         * doc/posix-functions/vswscanf.texi: Likewise.
28920         * doc/posix-functions/vwprintf.texi: Likewise.
28921         * doc/posix-functions/vwscanf.texi: Likewise.
28922         * doc/posix-functions/wcpcpy.texi: Likewise.
28923         * doc/posix-functions/wcpncpy.texi: Likewise.
28924         * doc/posix-functions/wcscasecmp.texi: Likewise.
28925         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28926         * doc/posix-functions/wcscoll_l.texi: Likewise.
28927         * doc/posix-functions/wcsdup.texi: Likewise.
28928         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28929         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
28930         * doc/posix-functions/wcsnlen.texi: Likewise.
28931         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28932         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28933         * doc/posix-functions/wctrans_l.texi: Likewise.
28934         * doc/posix-functions/wctype_l.texi: Likewise.
28935         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
28936         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
28937         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
28938         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
28939         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
28940         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
28941         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
28942         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
28943         * doc/glibc-functions/wcschrnul.texi: Likewise.
28944         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28945         * doc/glibc-functions/wcstod_l.texi: Likewise.
28946         * doc/glibc-functions/wcstof_l.texi: Likewise.
28947         * doc/glibc-functions/wcstol_l.texi: Likewise.
28948         * doc/glibc-functions/wcstold_l.texi: Likewise.
28949         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28950         * doc/glibc-functions/wcstoq.texi: Likewise.
28951         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28952         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28953         * doc/glibc-functions/wcstouq.texi: Likewise.
28954         * doc/glibc-functions/wmempcpy.texi: Likewise.
28955
28956 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
28957             Eric Blake  <ebb9@byu.net>
28958             Paolo Bonzini  <bonzini@gnu.org>
28959             Bruno Haible  <bruno@clisp.org>
28960
28961         Make c-stack work on Haiku.
28962         * lib/c-stack.c (SA_ONSTACK): Define fallback.
28963         (c_stack_action): Use SA_ONSTACK flag.
28964
28965 2008-12-22  Bruno Haible  <bruno@clisp.org>
28966
28967         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
28968
28969 2008-12-22  Bruno Haible  <bruno@clisp.org>
28970
28971         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
28972         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28973         being overridden.
28974         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28975         New macros.
28976         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28978         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28979         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28980
28981 2008-12-22  Bruno Haible  <bruno@clisp.org>
28982
28983         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28984         from test code.
28985
28986 2008-12-22  Eric Blake  <ebb9@byu.net>
28987
28988         Avoid gcc warnings on cygwin.
28989         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28990         Avoid unused variable.
28991         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28992         Likewise.
28993
28994 2008-12-22  Bruno Haible  <bruno@clisp.org>
28995
28996         Remove HAVE_MBRTOWC conditionals.
28997         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28998         (mbscasecmp): Assume mbrtowc function.
28999         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
29000         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
29001         * lib/mbschr.c: Include mbuiter.h unconditionally.
29002         (mbschr): Assume mbrtowc function.
29003         * lib/mbscspn.c: Include mbuiter.h unconditionally.
29004         (mbscspn): Assume mbrtowc function.
29005         * lib/mbslen.c: Include mbuiter.h unconditionally.
29006         (mbslen): Assume mbrtowc function.
29007         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
29008         (mbsncasecmp): Assume mbrtowc function.
29009         * lib/mbsnlen.c: Include mbiter.h unconditionally.
29010         (mbsnlen): Assume mbrtowc function.
29011         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
29012         (mbspbrk): Assume mbrtowc function.
29013         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
29014         (mbspcasecmp): Assume mbrtowc function.
29015         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
29016         (mbsrchr): Assume mbrtowc function.
29017         * lib/mbssep.c: Include mbuiter.h unconditionally.
29018         (mbssep): Assume mbrtowc function.
29019         * lib/mbsspn.c: Include mbuiter.h unconditionally.
29020         (mbsspn): Assume mbrtowc function.
29021         * lib/mbsstr.c: Include mbuiter.h unconditionally.
29022         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
29023         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
29024         (mbstok_r): Assume mbrtowc function.
29025         * lib/propername.c: Include mbuiter.h unconditionally.
29026         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
29027         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
29028         (trim2): Assume mbrtowc function.
29029         * lib/mbswidth.c (mbsinit): Remove fallback definition.
29030         (mbsnwidth): Assume mbrtowc function.
29031         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
29032         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
29033         fallback definitions.
29034         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
29035
29036 2008-12-22  Bruno Haible  <bruno@clisp.org>
29037
29038         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
29039
29040 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
29041
29042         * modules/regex: Request emulations for the mb*/wc* functions we need.
29043         * m4/regex.m4: Don't look for those functions here.
29044         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
29045
29046 2008-12-22  Bruno Haible  <bruno@clisp.org>
29047
29048         * modules/fnmatch (Depends-on): Remove duplicated dependency.
29049
29050 2008-12-21  Bruno Haible  <bruno@clisp.org>
29051
29052         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
29053         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
29054         (Include): Remove conditionalization.
29055         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
29056         (Include): Remove conditionalization.
29057         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
29058         (Include): Remove conditionalization.
29059         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
29060         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29061         * NEWS: Mention the change.
29062         Reported by Alan Hourihane <alanh@fairlite.co.uk>
29063         via Sergey Poznyakoff <gray@gnu.org.ua>.
29064
29065 2008-12-21  Bruno Haible  <bruno@clisp.org>
29066
29067         * MODULES.html.sh (Extended multibyte and wide character utilities
29068         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
29069         wcrtomb, wcsrtombs.
29070         (Support for systems lacking POSIX:2008): Add accept, bind, close,
29071         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
29072         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
29073         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
29074
29075 2008-12-21  Bruno Haible  <bruno@clisp.org>
29076
29077         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
29078
29079 2008-12-21  Bruno Haible  <bruno@clisp.org>
29080
29081         * modules/wcsnrtombs-tests: New file.
29082         * tests/test-wcsnrtombs1.sh: New file.
29083         * tests/test-wcsnrtombs2.sh: New file.
29084         * tests/test-wcsnrtombs3.sh: New file.
29085         * tests/test-wcsnrtombs4.sh: New file.
29086         * tests/test-wcsnrtombs.c: New file.
29087
29088         New module 'wcsnrtombs'.
29089         * lib/wchar.in.h (wcsnrtombs): New declaration.
29090         * lib/wcsnrtombs.c: New file.
29091         * lib/wcsrtombs-state.c: New file.
29092         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
29093         (internal_state): Remove variable.
29094         * m4/wcsnrtombs.m4: New file.
29095         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
29096         compilation units.
29097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
29098         HAVE_WCSNRTOMBS.
29099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
29100         HAVE_WCSNRTOMBS.
29101         * modules/wcsnrtombs: New file.
29102         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29103         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29104
29105 2008-12-21  Bruno Haible  <bruno@clisp.org>
29106
29107         * modules/wcsrtombs-tests: New file.
29108         * tests/test-wcsrtombs1.sh: New file.
29109         * tests/test-wcsrtombs2.sh: New file.
29110         * tests/test-wcsrtombs3.sh: New file.
29111         * tests/test-wcsrtombs4.sh: New file.
29112         * tests/test-wcsrtombs.c: New file.
29113
29114         New module 'wcsrtombs'.
29115         * lib/wchar.in.h (wcsrtombs): New declaration.
29116         * lib/wcsrtombs.c: New file.
29117         * m4/wcsrtombs.m4: New file.
29118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29119         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29121         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29122         * modules/wcsrtombs: New file.
29123         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29124         bugs.
29125
29126 2008-12-21  Bruno Haible  <bruno@clisp.org>
29127
29128         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29129         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29130         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29131         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29132         if not correct.
29133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29134         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29135         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29136         m4/locale-zh.m4, m4/codeset.m4.
29137         * doc/posix-functions/wcrtomb.texi: Document the bug.
29138
29139 2008-12-21  Bruno Haible  <bruno@clisp.org>
29140
29141         Work around a btowc() bug on IRIX 6.5.
29142         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29143         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29144         REPLACE_WTOBC if not.
29145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29146         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29147         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29148
29149 2008-12-21  Bruno Haible  <bruno@clisp.org>
29150
29151         * modules/wcrtomb-tests: New file.
29152         * tests/test-wcrtomb.sh: New file.
29153         * tests/test-wcrtomb.c: New file.
29154
29155         New module 'wcrtomb'.
29156         * lib/wchar.in.h (wcrtomb): New declaration.
29157         * lib/wcrtomb.c: New file.
29158         * m4/wcrtomb.m4: New file.
29159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29160         HAVE_WCRTOMB.
29161         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29162         HAVE_WCRTOMB.
29163         * modules/wcrtomb: New file.
29164         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29165
29166 2008-12-21  Bruno Haible  <bruno@clisp.org>
29167
29168         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29169         * modules/mbsrtowcs (Files): Likewise.
29170         * modules/wctob (Files): Likewise.
29171         * modules/c-strcase-tests (Files): Likewise.
29172         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29173         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29174         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29175         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29176         * modules/vasnprintf-posix-tests (Files): Likewise.
29177
29178 2008-12-21  William Pursell  <bill.pursell@gmail.com>
29179
29180         gitlog-to-changelog: pass all command-line arguments to git-log
29181         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
29182         it is sometimes convenient to filter the commits in various ways.
29183         gitlog-to-changelog only allows --since to specify a start date,
29184         but git-log itself supports many other filtering mechanisms.
29185         At the moment, I want to filter by branch name.  Rather than
29186         adding a --branch option to gitlog-to-changelog, it seems more
29187         flexible to simply pass all options directly to git-log and let
29188         git do the work.  Notice that this effectively makes --since a
29189         redundant option for gitlog-to-changelog, but removing it would
29190         require current usage to change since calls would then require
29191         an additional '--'.
29192
29193 2008-12-21  Bruno Haible  <bruno@clisp.org>
29194
29195         * modules/mbsnrtowcs-tests: New file.
29196         * tests/test-mbsnrtowcs1.sh: New file.
29197         * tests/test-mbsnrtowcs2.sh: New file.
29198         * tests/test-mbsnrtowcs3.sh: New file.
29199         * tests/test-mbsnrtowcs4.sh: New file.
29200         * tests/test-mbsnrtowcs.c: New file.
29201
29202         New module 'mbsnrtowcs'.
29203         * lib/wchar.in.h (mbsnrtowcs): New declaration.
29204         * lib/mbsnrtowcs.c: New file.
29205         * lib/mbsrtowcs-state.c: New file.
29206         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
29207         (internal_state): Remove variable.
29208         * m4/mbsnrtowcs.m4: New file.
29209         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
29210         compilation units.
29211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
29212         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29213         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
29214         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29215         * modules/mbsnrtowcs: New file.
29216         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
29217         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
29218         portability problem.
29219
29220 2008-12-21  Bruno Haible  <bruno@clisp.org>
29221
29222         Work around mbsrtowcs bug.
29223         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
29224         (gl_FUNC_MBSRTOWCS): Invoke it.
29225         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29226         m4/locale-zh.m4.
29227         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
29228
29229 2008-12-21  Bruno Haible  <bruno@clisp.org>
29230
29231         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
29232
29233 2008-12-21  Bruno Haible  <bruno@clisp.org>
29234
29235         Update doc for AIX.
29236         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
29237         16-bit wchar_t type.
29238         * doc/posix-functions/btowc.texi: Likewise.
29239         * doc/posix-functions/fgetwc.texi: Likewise.
29240         * doc/posix-functions/fgetws.texi: Likewise.
29241         * doc/posix-functions/fputwc.texi: Likewise.
29242         * doc/posix-functions/fputws.texi: Likewise.
29243         * doc/posix-functions/fwide.texi: Likewise.
29244         * doc/posix-functions/fwprintf.texi: Likewise.
29245         * doc/posix-functions/fwscanf.texi: Likewise.
29246         * doc/posix-functions/getwchar.texi: Likewise.
29247         * doc/posix-functions/getwc.texi: Likewise.
29248         * doc/posix-functions/iswalnum.texi: Likewise.
29249         * doc/posix-functions/iswalpha.texi: Likewise.
29250         * doc/posix-functions/iswblank.texi: Likewise.
29251         * doc/posix-functions/iswcntrl.texi: Likewise.
29252         * doc/posix-functions/iswctype.texi: Likewise.
29253         * doc/posix-functions/iswdigit.texi: Likewise.
29254         * doc/posix-functions/iswgraph.texi: Likewise.
29255         * doc/posix-functions/iswlower.texi: Likewise.
29256         * doc/posix-functions/iswprint.texi: Likewise.
29257         * doc/posix-functions/iswpunct.texi: Likewise.
29258         * doc/posix-functions/iswspace.texi: Likewise.
29259         * doc/posix-functions/iswupper.texi: Likewise.
29260         * doc/posix-functions/iswxdigit.texi: Likewise.
29261         * doc/posix-functions/mbrtowc.texi: Likewise.
29262         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29263         * doc/posix-functions/mbstowcs.texi: Likewise.
29264         * doc/posix-functions/mbtowc.texi: Likewise.
29265         * doc/posix-functions/putwchar.texi: Likewise.
29266         * doc/posix-functions/putwc.texi: Likewise.
29267         * doc/posix-functions/swprintf.texi: Likewise.
29268         * doc/posix-functions/tolower.texi: Likewise.
29269         * doc/posix-functions/toupper.texi: Likewise.
29270         * doc/posix-functions/towctrans.texi: Likewise.
29271         * doc/posix-functions/ungetwc.texi: Likewise.
29272         * doc/posix-functions/vswprintf.texi: Likewise.
29273         * doc/posix-functions/wcrtomb.texi: Likewise.
29274         * doc/posix-functions/wcscat.texi: Likewise.
29275         * doc/posix-functions/wcschr.texi: Likewise.
29276         * doc/posix-functions/wcscmp.texi: Likewise.
29277         * doc/posix-functions/wcscoll.texi: Likewise.
29278         * doc/posix-functions/wcscpy.texi: Likewise.
29279         * doc/posix-functions/wcscspn.texi: Likewise.
29280         * doc/posix-functions/wcsftime.texi: Likewise.
29281         * doc/posix-functions/wcslen.texi: Likewise.
29282         * doc/posix-functions/wcsncat.texi: Likewise.
29283         * doc/posix-functions/wcsncmp.texi: Likewise.
29284         * doc/posix-functions/wcsncpy.texi: Likewise.
29285         * doc/posix-functions/wcspbrk.texi: Likewise.
29286         * doc/posix-functions/wcsrchr.texi: Likewise.
29287         * doc/posix-functions/wcsrtombs.texi: Likewise.
29288         * doc/posix-functions/wcsspn.texi: Likewise.
29289         * doc/posix-functions/wcsstr.texi: Likewise.
29290         * doc/posix-functions/wcstod.texi: Likewise.
29291         * doc/posix-functions/wcstof.texi: Likewise.
29292         * doc/posix-functions/wcstoimax.texi: Likewise.
29293         * doc/posix-functions/wcstok.texi: Likewise.
29294         * doc/posix-functions/wcstold.texi: Likewise.
29295         * doc/posix-functions/wcstoll.texi: Likewise.
29296         * doc/posix-functions/wcstol.texi: Likewise.
29297         * doc/posix-functions/wcstombs.texi: Likewise.
29298         * doc/posix-functions/wcstoull.texi: Likewise.
29299         * doc/posix-functions/wcstoul.texi: Likewise.
29300         * doc/posix-functions/wcstoumax.texi: Likewise.
29301         * doc/posix-functions/wcswidth.texi: Likewise.
29302         * doc/posix-functions/wcsxfrm.texi: Likewise.
29303         * doc/posix-functions/wctob.texi: Likewise.
29304         * doc/posix-functions/wctomb.texi: Likewise.
29305         * doc/posix-functions/wctrans.texi: Likewise.
29306         * doc/posix-functions/wctype.texi: Likewise.
29307         * doc/posix-functions/wcwidth.texi: Likewise.
29308         * doc/posix-functions/wmemchr.texi: Likewise.
29309         * doc/posix-functions/wmemcmp.texi: Likewise.
29310         * doc/posix-functions/wmemcpy.texi: Likewise.
29311         * doc/posix-functions/wmemmove.texi: Likewise.
29312         * doc/posix-functions/wmemset.texi: Likewise.
29313         * doc/posix-functions/wprintf.texi: Likewise.
29314         * doc/posix-functions/wscanf.texi: Likewise.
29315
29316 2008-12-21  Bruno Haible  <bruno@clisp.org>
29317
29318         Update doc for HP-UX 11.11.
29319         * doc/posix-functions/btowc.texi: Clarify that the function is missing
29320         in HP-UX version 11.00, not in all versions of HP-UX 11.
29321         * doc/posix-functions/fwide.texi: Likewise.
29322         * doc/posix-functions/fwprintf.texi: Likewise.
29323         * doc/posix-functions/fwscanf.texi: Likewise.
29324         * doc/posix-functions/inet_ntop.texi: Likewise.
29325         * doc/posix-functions/inet_pton.texi: Likewise.
29326         * doc/posix-functions/mbrlen.texi: Likewise.
29327         * doc/posix-functions/mbrtowc.texi: Likewise.
29328         * doc/posix-functions/mbsinit.texi: Likewise.
29329         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29330         * doc/posix-functions/swprintf.texi: Likewise.
29331         * doc/posix-functions/swscanf.texi: Likewise.
29332         * doc/posix-functions/towctrans.texi: Likewise.
29333         * doc/posix-functions/vfwprintf.texi: Likewise.
29334         * doc/posix-functions/vswprintf.texi: Likewise.
29335         * doc/posix-functions/vwprintf.texi: Likewise.
29336         * doc/posix-functions/wcrtomb.texi: Likewise.
29337         * doc/posix-functions/wcsrtombs.texi: Likewise.
29338         * doc/posix-functions/wcsstr.texi: Likewise.
29339         * doc/posix-functions/wctob.texi: Likewise.
29340         * doc/posix-functions/wctrans.texi: Likewise.
29341         * doc/posix-functions/wmemchr.texi: Likewise.
29342         * doc/posix-functions/wmemcmp.texi: Likewise.
29343         * doc/posix-functions/wmemcpy.texi: Likewise.
29344         * doc/posix-functions/wmemmove.texi: Likewise.
29345         * doc/posix-functions/wmemset.texi: Likewise.
29346         * doc/posix-functions/wprintf.texi: Likewise.
29347         * doc/posix-functions/wscanf.texi: Likewise.
29348
29349 2008-12-21  Bruno Haible  <bruno@clisp.org>
29350
29351         Work around a portability problem.
29352         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
29353         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
29354
29355 2008-12-20  Bruno Haible  <bruno@clisp.org>
29356
29357         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
29358         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
29359         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
29360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
29361         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
29362
29363         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
29364         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
29365         set.
29366         (GNULIB_defined_mbstate_t): New macro.
29367         (mbsinit): Redefine if REPLACE_MBSINIT is set.
29368         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
29369         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
29370         reuses the system's mbrtowc function but works around the bugs.
29371         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
29372         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
29373         macros.
29374         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
29375         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
29376         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
29377         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
29378         REPLACE_MBSINIT if mbsinit needs to be overridden.
29379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
29380         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29381         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
29382         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29383         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29384         m4/locale-zh.m4.
29385         (Depends): Add mbsinit.
29386         * modules/mbsinit (Depends): Add mbrtowc.
29387         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
29388
29389 2008-12-20  Bruno Haible  <bruno@clisp.org>
29390
29391         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
29392         so that there are no conversion errors on AIX.
29393         * tests/test-mbsrtowcs.c (main): LIkewise.
29394
29395 2008-12-20  Bruno Haible  <bruno@clisp.org>
29396
29397         Work around wctob bug on Solaris <= 9.
29398         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
29399         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
29400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
29401         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
29402         * modules/wctob (Files): Add m4/locale-fr.m4.
29403         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
29404
29405 2008-12-20  Bruno Haible  <bruno@clisp.org>
29406
29407         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
29408         /dev/null.
29409         * tests/test-select-in.sh: Likewise.
29410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29411
29412 2008-12-20  Bruno Haible  <bruno@clisp.org>
29413
29414         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
29415         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
29416         Cygwin 1.5.x.
29417
29418 2008-12-20  Bruno Haible  <bruno@clisp.org>
29419
29420         Ensure mbstate_t is defined on HP-UX 11.11.
29421         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
29422         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
29423         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
29424         AC_USE_SYSTEM_EXTENSIONS.
29425         * modules/fnmatch (Depends-on): Add extensions.
29426         * modules/mbrlen (Depends-on): Likewise.
29427         * modules/mbrtowc (Depends-on): Likewise.
29428         * modules/mbsinit (Depends-on): Likewise.
29429         * modules/mbsrtowcs (Depends-on): Likewise.
29430         * modules/mbswidth (Depends-on): Likewise.
29431         * modules/quotearg (Depends-on): Likewise.
29432         * modules/strftime (Depends-on): Likewise.
29433
29434 2008-12-20  Bruno Haible  <bruno@clisp.org>
29435
29436         Ensure wctob is declared on IRIX 6.5.
29437         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
29438         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
29439         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
29440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
29441         of HAVE_WCTOB.
29442         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
29443         HAVE_WCTOB.
29444         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
29445
29446 2008-12-19  Bruno Haible  <bruno@clisp.org>
29447
29448         * modules/mbsrtowcs-tests: New file.
29449         * tests/test-mbsrtowcs1.sh: New file.
29450         * tests/test-mbsrtowcs2.sh: New file.
29451         * tests/test-mbsrtowcs3.sh: New file.
29452         * tests/test-mbsrtowcs4.sh: New file.
29453         * tests/test-mbsrtowcs.c: New file.
29454
29455         New module 'mbsrtowcs'.
29456         * lib/wchar.in.h (mbsrtowcs): New declaration.
29457         * lib/mbsrtowcs.c: New file.
29458         * m4/mbsrtowcs.m4: New file.
29459         * modules/mbsrtowcs: New file.
29460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
29461         HAVE_MBSRTOWCS.
29462         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
29463         HAVE_MBSRTOWCS.
29464         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
29465
29466 2008-12-19  Bruno Haible  <bruno@clisp.org>
29467
29468         New module 'mbrlen'.
29469         * lib/wchar.in.h (mbrlen): New declaration.
29470         * lib/mbrlen.c: New file.
29471         * m4/mbrlen.m4: New file.
29472         * modules/mbrlen: New file.
29473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
29474         HAVE_MBRLEN.
29475         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
29476         HAVE_MBRLEN.
29477         * doc/posix-functions/mbrlen.texi: Document the new module.
29478
29479 2008-12-19  Bruno Haible  <bruno@clisp.org>
29480
29481         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
29482         * modules/mbrtowc (Depends-on): Add verify.
29483         Suggested by Paul Eggert.
29484
29485 2008-12-18  Bruno Haible  <bruno@clisp.org>
29486
29487         * modules/mbsinit-tests: New file.
29488         * tests/test-mbsinit.sh: New file.
29489         * tests/test-mbsinit.c: New file.
29490
29491 2008-12-18  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/mbrtowc-tests: New file.
29494         * tests/test-mbrtowc1.sh: New file.
29495         * tests/test-mbrtowc2.sh: New file.
29496         * tests/test-mbrtowc3.sh: New file.
29497         * tests/test-mbrtowc4.sh: New file.
29498         * tests/test-mbrtowc.c: New file.
29499
29500         New module 'mbrtowc'.
29501         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29502         mbsinit and mbrtowc.
29503         (mbrtowc): New declaration.
29504         * lib/mbrtowc.c: New file.
29505         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29506         * modules/mbrtowc: New file.
29507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29508         HAVE_MBRTOWC.
29509         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29510         HAVE_MBRTOWC.
29511         * doc/posix-functions/mbrtowc.texi: Document the new module.
29512
29513 2008-12-18  Bruno Haible  <bruno@clisp.org>
29514
29515         New module 'wctob'.
29516         * lib/wchar.in.h (wctob): New declaration.
29517         * lib/wctob.c: New file.
29518         * m4/wctob.m4: New file.
29519         * modules/wctob: New file.
29520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29521         HAVE_WCTOB.
29522         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29523         * doc/posix-functions/wctob.texi: Document the new module.
29524
29525 2008-12-18  Bruno Haible  <bruno@clisp.org>
29526
29527         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29528         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29529
29530 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29531
29532         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29533         G. Christensen" <tgc@jupiterrise.com>.
29534
29535         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29536         G. Christensen" <tgc@jupiterrise.com>.
29537
29538         * lib/flock.c: Need to include string.h.  Reported by "Tom
29539         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29540         <ebb9@byu.net>.
29541
29542 2008-12-18  Bruno Haible  <bruno@clisp.org>
29543
29544         * m4/locale-ja.m4: New file, from GNU gettext.
29545
29546 2008-12-17  Bruno Haible  <bruno@clisp.org>
29547
29548         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29549         Suggested by Eric Blake.
29550
29551 2008-12-17  Bruno Haible  <bruno@clisp.org>
29552
29553         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29554
29555 2008-12-17  Bruno Haible  <bruno@clisp.org>
29556
29557         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29558         * modules/mbsinit (Depends-on): Add verify.
29559         Suggested by Paul Eggert.
29560
29561 2008-12-17  Bruno Haible  <bruno@clisp.org>
29562
29563         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29564         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29565         gl_FUNC_MBRTOWC.
29566         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29567         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29568         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29569         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29570         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29571         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29572         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29573         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29574         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29575         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29576         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29577         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29578         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29579         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29580         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29581         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29582         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29583         * modules/trim (configure.ac): Likewise.
29584
29585 2008-12-17  Bruno Haible  <bruno@clisp.org>
29586
29587         * modules/btowc-tests: New file.
29588         * tests/test-btowc1.sh: New file.
29589         * tests/test-btowc2.sh: New file.
29590         * tests/test-btowc.c: New file.
29591
29592         New module 'btowc'.
29593         * lib/wchar.in.h (btowc): New declaration.
29594         * lib/btowc.c: New file.
29595         * m4/btowc.m4: New file.
29596         * modules/btowc: New file.
29597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29598         HAVE_BTOWC.
29599         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29600         * doc/posix-functions/btowc.texi: Document the new module.
29601
29602 2008-12-17  Bruno Haible  <bruno@clisp.org>
29603
29604         New module 'mbsinit'.
29605         * lib/wchar.in.h (mbsinit): New declaration.
29606         * lib/mbsinit.c: New file.
29607         * m4/mbsinit.m4: New file.
29608         * modules/mbsinit: New file.
29609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29610         HAVE_MBSINIT.
29611         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29612         HAVE_MBSINIT.
29613         * doc/posix-functions/mbsinit.texi: Document the new module.
29614
29615 2008-12-16  Bruno Haible  <bruno@clisp.org>
29616
29617         * lib/unistd.in.h: Add comment.
29618         * tests/test-environ.c: Don't include <stdlib.h>.
29619
29620 2008-12-16  Bruno Haible  <bruno@clisp.org>
29621
29622         * lib/parse-duration.h (parse_duration): Document return value
29623         convention.
29624         * lib/parse-duration.c: Include specification header first. Add
29625         comments.
29626         (_): Remove macro.
29627         (parse_year_month_day, parse_hour_minute_second): Move side effects
29628         outside of strchr call.
29629         (parse_non_iso8601): Move side effects outside of isspace call.
29630         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29631         call.
29632
29633 2008-12-16  Bruno Haible  <bruno@clisp.org>
29634
29635         * tests/test-parse-duration.sh: Produce no output when the test
29636         succeeds.
29637
29638 2008-12-16  Bruno Haible  <bruno@clisp.org>
29639
29640         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29641         expressions.
29642
29643 2008-12-15  Bruno Haible  <bruno@clisp.org>
29644
29645         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29646         * doc/glibc-functions/flistxattr.texi: Likewise.
29647         * doc/glibc-functions/fopencookie.texi: Likewise.
29648         * doc/glibc-functions/fremovexattr.texi: Likewise.
29649         * doc/glibc-functions/fsetxattr.texi: Likewise.
29650         * doc/glibc-functions/getxattr.texi: Likewise.
29651         * doc/glibc-functions/lgetxattr.texi: Likewise.
29652         * doc/glibc-functions/listxattr.texi: Likewise.
29653         * doc/glibc-functions/llistxattr.texi: Likewise.
29654         * doc/glibc-functions/lremovexattr.texi: Likewise.
29655         * doc/glibc-functions/lsetxattr.texi: Likewise.
29656         * doc/glibc-functions/removexattr.texi: Likewise.
29657         * doc/glibc-functions/setxattr.texi: Likewise.
29658         * doc/posix-functions/open_memstream.texi: Likewise.
29659
29660 2008-12-15  Eric Blake  <ebb9@byu.net>
29661
29662         Update doc for cygwin 1.7.
29663         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29664         functions.
29665         * doc/posix-functions/fchmodat.texi: Likewise.
29666         * doc/posix-functions/fchownat.texi: Likewise.
29667         * doc/posix-functions/fdopendir.texi: Likewise.
29668         * doc/posix-functions/fmemopen.texi: Likewise.
29669         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29670         * doc/posix-functions/fstatat.texi: Likewise.
29671         * doc/posix-functions/futimens.texi: Likewise.
29672         * doc/posix-functions/gai_strerror.texi: Likewise.
29673         * doc/posix-functions/getaddrinfo.texi: Likewise.
29674         * doc/posix-functions/getnameinfo.texi: Likewise.
29675         * doc/posix-functions/if_freenameindex.texi: Likewise.
29676         * doc/posix-functions/if_indextoname.texi: Likewise.
29677         * doc/posix-functions/if_nameindex.texi: Likewise.
29678         * doc/posix-functions/if_nametoindex.texi: Likewise.
29679         * doc/posix-functions/insque.texi: Likewise.
29680         * doc/posix-functions/linkat.texi: Likewise.
29681         * doc/posix-functions/llrint.texi: Likewise.
29682         * doc/posix-functions/llrintf.texi: Likewise.
29683         * doc/posix-functions/llrintl.texi: Likewise.
29684         * doc/posix-functions/lockf.texi: Likewise.
29685         * doc/posix-functions/lrintl.texi: Likewise.
29686         * doc/posix-functions/mkdirat.texi: Likewise.
29687         * doc/posix-functions/mkfifoat.texi: Likewise.
29688         * doc/posix-functions/mknodat.texi: Likewise.
29689         * doc/posix-functions/mq_close.texi: Likewise.
29690         * doc/posix-functions/mq_getattr.texi: Likewise.
29691         * doc/posix-functions/mq_notify.texi: Likewise.
29692         * doc/posix-functions/mq_open.texi: Likewise.
29693         * doc/posix-functions/mq_receive.texi: Likewise.
29694         * doc/posix-functions/mq_send.texi: Likewise.
29695         * doc/posix-functions/mq_setattr.texi: Likewise.
29696         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29697         * doc/posix-functions/mq_timedsend.texi: Likewise.
29698         * doc/posix-functions/mq_unlink.texi: Likewise.
29699         * doc/posix-functions/open_memstream.texi: Likewise.
29700         * doc/posix-functions/openat.texi: Likewise.
29701         * doc/posix-functions/posix_fadvise.texi: Likewise.
29702         * doc/posix-functions/posix_fallocate.texi: Likewise.
29703         * doc/posix-functions/posix_madvise.texi: Likewise.
29704         * doc/posix-functions/posix_memalign.texi: Likewise.
29705         * doc/posix-functions/posix_openpt.texi: Likewise.
29706         * doc/posix-functions/readlinkat.texi: Likewise.
29707         * doc/posix-functions/remque.texi: Likewise.
29708         * doc/posix-functions/renameat.texi: Likewise.
29709         * doc/posix-functions/rintl.texi: Likewise.
29710         * doc/posix-functions/sem_unlink.texi: Likewise.
29711         * doc/posix-functions/shm_open.texi: Likewise.
29712         * doc/posix-functions/shm_unlink.texi: Likewise.
29713         * doc/posix-functions/signgam.texi: Likewise.
29714         * doc/posix-functions/sigset.texi: Likewise.
29715         * doc/posix-functions/stpcpy.texi: Likewise.
29716         * doc/posix-functions/stpncpy.texi: Likewise.
29717         * doc/posix-functions/strerror.texi: Likewise.
29718         * doc/posix-functions/strtod.texi: Likewise.
29719         * doc/posix-functions/symlinkat.texi: Likewise.
29720         * doc/posix-functions/unlinkat.texi: Likewise.
29721         * doc/posix-functions/utimensat.texi: Likewise.
29722         * doc/glibc-functions/bindresvport.texi: Likewise.
29723         * doc/glibc-functions/dn_expand.texi: Likewise.
29724         * doc/glibc-functions/exp10.texi: Likewise.
29725         * doc/glibc-functions/exp10f.texi: Likewise.
29726         * doc/glibc-functions/fgetxattr.texi: Likewise.
29727         * doc/glibc-functions/flistxattr.texi: Likewise.
29728         * doc/glibc-functions/fopencookie.texi: Likewise.
29729         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29730         * doc/glibc-functions/fremovexattr.texi: Likewise.
29731         * doc/glibc-functions/fsetxattr.texi: Likewise.
29732         * doc/glibc-functions/getifaddrs.texi: Likewise.
29733         * doc/glibc-functions/getxattr.texi: Likewise.
29734         * doc/glibc-functions/lgetxattr.texi: Likewise.
29735         * doc/glibc-functions/listxattr.texi: Likewise.
29736         * doc/glibc-functions/llistxattr.texi: Likewise.
29737         * doc/glibc-functions/lremovexattr.texi: Likewise.
29738         * doc/glibc-functions/lsetxattr.texi: Likewise.
29739         * doc/glibc-functions/pow10.texi: Likewise.
29740         * doc/glibc-functions/pow10f.texi: Likewise.
29741         * doc/glibc-functions/rcmd_af.texi: Likewise.
29742         * doc/glibc-functions/removexattr.texi: Likewise.
29743         * doc/glibc-functions/res_init.texi: Likewise.
29744         * doc/glibc-functions/res_mkquery.texi: Likewise.
29745         * doc/glibc-functions/res_query.texi: Likewise.
29746         * doc/glibc-functions/res_querydomain.texi: Likewise.
29747         * doc/glibc-functions/res_send.texi: Likewise.
29748         * doc/glibc-functions/rresvport_af.texi: Likewise.
29749         * doc/glibc-functions/setxattr.texi: Likewise.
29750         * doc/glibc-functions/strcasestr.texi: Likewise.
29751
29752 2008-12-15  Bruno Haible  <bruno@clisp.org>
29753
29754         Fix compilation error on OSF/1 4.0.
29755         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29756         <sys/time.h>, simply delegate to the system header.
29757         Reported by Daniel Richard G. <oss@teragram.com>.
29758
29759 2008-12-15  Bruno Haible  <bruno@clisp.org>
29760
29761         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29762         * doc/posix-functions/fchmodat.texi: Likewise.
29763         * doc/posix-functions/fchownat.texi: Likewise.
29764         * doc/posix-functions/fdopendir.texi: Likewise.
29765         * doc/posix-functions/fstatat.texi: Likewise.
29766         * doc/posix-functions/mkdirat.texi: Likewise.
29767         * doc/posix-functions/unlinkat.texi: Likewise.
29768
29769 2008-12-14  Bruno Haible  <bruno@clisp.org>
29770
29771         Update doc for POSIX:2008.
29772         * doc/posix-functions/faccessat.texi: New file.
29773         * doc/posix-functions/fchmodat.texi: New file.
29774         * doc/posix-functions/fchownat.texi: New file.
29775         * doc/posix-functions/fdopendir.texi: New file.
29776         * doc/posix-functions/fstatat.texi: New file.
29777         * doc/posix-functions/futimens.texi: New file.
29778         * doc/posix-functions/linkat.texi: New file.
29779         * doc/posix-functions/mkdirat.texi: New file.
29780         * doc/posix-functions/mkfifoat.texi: New file.
29781         * doc/posix-functions/mknodat.texi: New file.
29782         * doc/posix-functions/open_wmemstream.texi: New file.
29783         * doc/posix-functions/openat.texi: New file.
29784         * doc/posix-functions/psiginfo.texi: New file.
29785         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29786         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29787         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29788         * doc/posix-functions/readlinkat.texi: New file.
29789         * doc/posix-functions/renameat.texi: New file.
29790         * doc/posix-functions/strerror_l.texi: New file.
29791         * doc/posix-functions/symlinkat.texi: New file.
29792         * doc/posix-functions/unlinkat.texi: New file.
29793         * doc/posix-functions/utimensat.texi: New file.
29794         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29795
29796 2008-12-14  Bruno Haible  <bruno@clisp.org>
29797
29798         Update doc for POSIX:2008.
29799         * doc/posix-functions/alphasort.texi: Renamed from
29800         doc/glibc-functions/alphasort.texi.
29801         * doc/posix-functions/dirfd.texi: Renamed from
29802         doc/glibc-functions/dirfd.texi.
29803         * doc/posix-functions/dprintf.texi: Renamed from
29804         doc/glibc-functions/dprintf.texi.
29805         * doc/posix-functions/duplocale.texi: Renamed from
29806         doc/glibc-functions/duplocale.texi.
29807         * doc/posix-functions/fexecve.texi: Renamed from
29808         doc/glibc-functions/fexecve.texi.
29809         * doc/posix-functions/fmemopen.texi: Renamed from
29810         doc/glibc-functions/fmemopen.texi.
29811         * doc/posix-functions/freelocale.texi: Renamed from
29812         doc/glibc-functions/freelocale.texi.
29813         * doc/posix-functions/getdate_err.texi: Renamed from
29814         doc/glibc-functions/getdate_err.texi.
29815         * doc/posix-functions/isalnum_l.texi: Renamed from
29816         doc/glibc-functions/isalnum_l.texi.
29817         * doc/posix-functions/isalpha_l.texi: Renamed from
29818         doc/glibc-functions/isalpha_l.texi.
29819         * doc/posix-functions/isblank_l.texi: Renamed from
29820         doc/glibc-functions/isblank_l.texi.
29821         * doc/posix-functions/iscntrl_l.texi: Renamed from
29822         doc/glibc-functions/iscntrl_l.texi.
29823         * doc/posix-functions/isdigit_l.texi: Renamed from
29824         doc/glibc-functions/isdigit_l.texi.
29825         * doc/posix-functions/isgraph_l.texi: Renamed from
29826         doc/glibc-functions/isgraph_l.texi.
29827         * doc/posix-functions/islower_l.texi: Renamed from
29828         doc/glibc-functions/islower_l.texi.
29829         * doc/posix-functions/isprint_l.texi: Renamed from
29830         doc/glibc-functions/isprint_l.texi.
29831         * doc/posix-functions/ispunct_l.texi: Renamed from
29832         doc/glibc-functions/ispunct_l.texi.
29833         * doc/posix-functions/isspace_l.texi: Renamed from
29834         doc/glibc-functions/isspace_l.texi.
29835         * doc/posix-functions/isupper_l.texi: Renamed from
29836         doc/glibc-functions/isupper_l.texi.
29837         * doc/posix-functions/iswalnum_l.texi: Renamed from
29838         doc/glibc-functions/iswalnum_l.texi.
29839         * doc/posix-functions/iswalpha_l.texi: Renamed from
29840         doc/glibc-functions/iswalpha_l.texi.
29841         * doc/posix-functions/iswblank_l.texi: Renamed from
29842         doc/glibc-functions/iswblank_l.texi.
29843         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29844         doc/glibc-functions/iswcntrl_l.texi.
29845         * doc/posix-functions/iswctype_l.texi: Renamed from
29846         doc/glibc-functions/iswctype_l.texi.
29847         * doc/posix-functions/iswdigit_l.texi: Renamed from
29848         doc/glibc-functions/iswdigit_l.texi.
29849         * doc/posix-functions/iswgraph_l.texi: Renamed from
29850         doc/glibc-functions/iswgraph_l.texi.
29851         * doc/posix-functions/iswlower_l.texi: Renamed from
29852         doc/glibc-functions/iswlower_l.texi.
29853         * doc/posix-functions/iswprint_l.texi: Renamed from
29854         doc/glibc-functions/iswprint_l.texi.
29855         * doc/posix-functions/iswpunct_l.texi: Renamed from
29856         doc/glibc-functions/iswpunct_l.texi.
29857         * doc/posix-functions/iswspace_l.texi: Renamed from
29858         doc/glibc-functions/iswspace_l.texi.
29859         * doc/posix-functions/iswupper_l.texi: Renamed from
29860         doc/glibc-functions/iswupper_l.texi.
29861         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29862         doc/glibc-functions/iswxdigit_l.texi.
29863         * doc/posix-functions/isxdigit_l.texi: Renamed from
29864         doc/glibc-functions/isxdigit_l.texi.
29865         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29866         doc/glibc-functions/mbsnrtowcs.texi.
29867         * doc/posix-functions/mkdtemp.texi: Renamed from
29868         doc/glibc-functions/mkdtemp.texi.
29869         * doc/posix-functions/newlocale.texi: Renamed from
29870         doc/glibc-functions/newlocale.texi.
29871         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29872         doc/glibc-functions/nl_langinfo_l.texi.
29873         * doc/posix-functions/open_memstream.texi: Renamed from
29874         doc/glibc-functions/open_memstream.texi.
29875         * doc/posix-functions/opterr.texi: Renamed from
29876         doc/glibc-functions/opterr.texi.
29877         * doc/posix-functions/optind.texi: Renamed from
29878         doc/glibc-functions/optind.texi.
29879         * doc/posix-functions/optopt.texi: Renamed from
29880         doc/glibc-functions/optopt.texi.
29881         * doc/posix-functions/psignal.texi: Renamed from
29882         doc/glibc-functions/psignal.texi.
29883         * doc/posix-functions/scandir.texi: Renamed from
29884         doc/glibc-functions/scandir.texi.
29885         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29886         doc/glibc-functions/sched_get_priority_min.texi.
29887         * doc/posix-functions/signgam.texi: Renamed from
29888         doc/glibc-functions/signgam.texi.
29889         * doc/posix-functions/stpcpy.texi: Renamed from
29890         doc/glibc-functions/stpcpy.texi.
29891         * doc/posix-functions/stpncpy.texi: Renamed from
29892         doc/glibc-functions/stpncpy.texi.
29893         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29894         doc/glibc-functions/strcasecmp_l.texi.
29895         * doc/posix-functions/strcoll_l.texi: Renamed from
29896         doc/glibc-functions/strcoll_l.texi.
29897         * doc/posix-functions/strfmon_l.texi: Renamed from
29898         doc/glibc-functions/strfmon_l.texi.
29899         * doc/posix-functions/strftime_l.texi: Renamed from
29900         doc/glibc-functions/strftime_l.texi.
29901         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29902         doc/glibc-functions/strncasecmp_l.texi.
29903         * doc/posix-functions/strndup.texi: Renamed from
29904         doc/glibc-functions/strndup.texi.
29905         * doc/posix-functions/strnlen.texi: Renamed from
29906         doc/glibc-functions/strnlen.texi.
29907         * doc/posix-functions/strsignal.texi: Renamed from
29908         doc/glibc-functions/strsignal.texi.
29909         * doc/posix-functions/strxfrm_l.texi: Renamed from
29910         doc/glibc-functions/strxfrm_l.texi.
29911         * doc/posix-functions/timer_gettime.texi: Renamed from
29912         doc/glibc-functions/timer_gettime.texi.
29913         * doc/posix-functions/tolower_l.texi: Renamed from
29914         doc/glibc-functions/tolower_l.texi.
29915         * doc/posix-functions/toupper_l.texi: Renamed from
29916         doc/glibc-functions/toupper_l.texi.
29917         * doc/posix-functions/towctrans_l.texi: Renamed from
29918         doc/glibc-functions/towctrans_l.texi.
29919         * doc/posix-functions/towlower_l.texi: Renamed from
29920         doc/glibc-functions/towlower_l.texi.
29921         * doc/posix-functions/towupper_l.texi: Renamed from
29922         doc/glibc-functions/towupper_l.texi.
29923         * doc/posix-functions/uselocale.texi: Renamed from
29924         doc/glibc-functions/uselocale.texi.
29925         * doc/posix-functions/vdprintf.texi: Renamed from
29926         doc/glibc-functions/vdprintf.texi.
29927         * doc/posix-functions/wcpcpy.texi:
29928         Renamed from doc/glibc-functions/wcpcpy.texi.
29929         * doc/posix-functions/wcpncpy.texi: Renamed from
29930         doc/glibc-functions/wcpncpy.texi.
29931         * doc/posix-functions/wcscasecmp.texi: Renamed from
29932         doc/glibc-functions/wcscasecmp.texi.
29933         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
29934         doc/glibc-functions/wcscasecmp_l.texi.
29935         * doc/posix-functions/wcscoll_l.texi: Renamed from
29936         doc/glibc-functions/wcscoll_l.texi.
29937         * doc/posix-functions/wcsdup.texi: Renamed from
29938         doc/glibc-functions/wcsdup.texi.
29939         * doc/posix-functions/wcsncasecmp.texi: Renamed from
29940         doc/glibc-functions/wcsncasecmp.texi.
29941         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
29942         doc/glibc-functions/wcsncasecmp_l.texi.
29943         * doc/posix-functions/wcsnlen.texi: Renamed from
29944         doc/glibc-functions/wcsnlen.texi.
29945         * doc/posix-functions/wcsnrtombs.texi: Renamed from
29946         doc/glibc-functions/wcsnrtombs.texi.
29947         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
29948         doc/glibc-functions/wcsxfrm_l.texi.
29949         * doc/posix-functions/wctrans_l.texi: Renamed from
29950         doc/glibc-functions/wctrans_l.texi.
29951         * doc/posix-functions/wctype_l.texi: Renamed from
29952         doc/glibc-functions/wctype_l.texi.
29953         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29954         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
29955         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
29956         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
29957         these subsections.
29958         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
29959         Remove sections.
29960
29961 2008-12-14  Bruno Haible  <bruno@clisp.org>
29962
29963         Update doc for POSIX:2008.
29964         * doc/posix-functions/*.texi: Update URL of POSIX specification.
29965
29966 2008-12-14  Bruno Haible  <bruno@clisp.org>
29967
29968         Update doc for POSIX:2008.
29969         * doc/pastposix-functions/bcmp.texi: Renamed from
29970         doc/posix-functions/bcmp.texi.
29971         * doc/pastposix-functions/bcopy.texi: Renamed from
29972         doc/posix-functions/bcopy.texi.
29973         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29974         doc/posix-functions/bsd_signal.texi.
29975         * doc/pastposix-functions/bzero.texi: Renamed from
29976         doc/posix-functions/bzero.texi.
29977         * doc/pastposix-functions/ecvt.texi: Renamed from
29978         doc/posix-functions/ecvt.texi.
29979         * doc/pastposix-functions/fcvt.texi: Renamed from
29980         doc/posix-functions/fcvt.texi.
29981         * doc/pastposix-functions/ftime.texi: Renamed from
29982         doc/posix-functions/ftime.texi.
29983         * doc/pastposix-functions/gcvt.texi: Renamed from
29984         doc/posix-functions/gcvt.texi.
29985         * doc/pastposix-functions/getcontext.texi: Renamed from
29986         doc/posix-functions/getcontext.texi.
29987         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29988         doc/posix-functions/gethostbyaddr.texi.
29989         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29990         doc/posix-functions/gethostbyname.texi.
29991         * doc/pastposix-functions/getwd.texi: Renamed from
29992         doc/posix-functions/getwd.texi.
29993         * doc/pastposix-functions/h_errno.texi: Renamed from
29994         doc/posix-functions/h_errno.texi.
29995         * doc/pastposix-functions/index.texi: Renamed from
29996         doc/posix-functions/index.texi.
29997         * doc/pastposix-functions/makecontext.texi: Renamed from
29998         doc/posix-functions/makecontext.texi.
29999         * doc/pastposix-functions/mktemp.texi: Renamed from
30000         doc/posix-functions/mktemp.texi.
30001         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
30002         doc/posix-functions/pthread_attr_getstackaddr.texi.
30003         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
30004         doc/posix-functions/pthread_attr_setstackaddr.texi.
30005         * doc/pastposix-functions/rindex.texi: Renamed from
30006         doc/posix-functions/rindex.texi.
30007         * doc/pastposix-functions/scalb.texi: Renamed from
30008         doc/posix-functions/scalb.texi.
30009         * doc/pastposix-functions/setcontext.texi: Renamed from
30010         doc/posix-functions/setcontext.texi.
30011         * doc/pastposix-functions/swapcontext.texi: Renamed from
30012         doc/posix-functions/swapcontext.texi.
30013         * doc/pastposix-functions/ualarm.texi: Renamed from
30014         doc/posix-functions/ualarm.texi.
30015         * doc/pastposix-functions/usleep.texi: Renamed from
30016         doc/posix-functions/usleep.texi.
30017         * doc/pastposix-functions/vfork.texi: Renamed from
30018         doc/posix-functions/vfork.texi.
30019         * doc/pastposix-functions/wcswcs.texi: Renamed from
30020         doc/posix-functions/wcswcs.texi.
30021         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
30022         (Function Substitutes): Update.
30023
30024 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30025
30026         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
30027         m4/strerror.m4.
30028
30029 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30030             Bruno Haible  <bruno@clisp.org>
30031
30032         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
30033
30034 2008-12-13  Bruno Haible  <bruno@clisp.org>
30035
30036         * modules/strtoull (Depends-on): Remove unistd.
30037
30038 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30039
30040         * modules/strtoull (Depends-on): Add stdlib.
30041
30042 2008-12-11  Simon Josefsson  <simon@josefsson.org>
30043
30044         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
30045
30046 2008-12-10  Jim Meyering  <meyering@redhat.com>
30047
30048         gl_ASSERT: don't say assertions are disabled when they're not
30049         * m4/assert.m4 (gl_ASSERT): Do not make configure report
30050         "checking whether to enable assertions... no", when they are in
30051         fact enabled.  This is solely a bug in the output of configure.
30052         In spite of saying "no", NDEBUG was not defined in that case.
30053         Also, as noted by Eric Blake, leave assertions enabled upon
30054         --enable-assert=INVALID.
30055
30056 2008-12-10  Bruno Haible  <bruno@clisp.org>
30057
30058         Change MODULES.html to refer to POSIX:2008 where possible.
30059         * MODULES.html.sh (POSIX2008_URL): New variable.
30060         (posix_headers): Remove sys/timeb, ucontext.
30061         (posix2001_headers): New variable.
30062         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
30063         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
30064         index, makecontext, mktemp, pthread_attr_getstackaddr,
30065         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
30066         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
30067         (posix2001_functions): New variable.
30068         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
30069         otherwise.
30070
30071 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30072
30073         add missing include to parse-duration.c
30074         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
30075         * modules/parse-duration (Depends-on): Add xalloc.
30076
30077         fix sed script reading maint.mk
30078         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
30079         (syntax-check-rules): Use it.
30080
30081 2008-12-09  Bruno Haible  <bruno@clisp.org>
30082
30083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
30084         MacOS X 10.4/PowerPC.
30085         Reported by Simon Josefsson.
30086
30087 2008-12-08  Jim Meyering  <meyering@redhat.com>
30088
30089         work around mingw's lack of some S_IF definitions
30090         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
30091         Reported by Simon Josefsson.
30092
30093 2008-12-08  Bruno Haible  <bruno@clisp.org>
30094
30095         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
30096         applied to variables. Needed on MacOS X 10.4/PowerPC.
30097         Reported by Simon Josefsson.
30098
30099 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
30100         and Eric Blake  <ebb9@byu.net>
30101
30102         assert: honor --enable-assert
30103         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30104         order to honor --enable-assert, rather than treating it as a
30105         synonym for --disable-assert.
30106
30107 2008-12-08  Jim Meyering  <meyering@redhat.com>
30108
30109         * lib/posixtm.c: Remove now-useless declaration of mktime.
30110
30111         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30112
30113 2008-12-07  Bruno Haible  <bruno@clisp.org>
30114
30115         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30116         test_once): Mark functions as static.
30117         * tests/test-tls.c (test_tls): Likewise.
30118
30119 2008-12-07  Bruno Haible  <bruno@clisp.org>
30120
30121         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30122         iconv_register_autodetect.
30123
30124 2008-12-07  Jim Meyering  <meyering@redhat.com>
30125
30126         posixtm.c: avoid a warning
30127         * lib/posixtm.c (posixtime): Don't initialize tm0.
30128         It's no longer needed to placate gcc4's -Wuninitialized,
30129         and the attempt to placate would elicit a new warning.
30130
30131         unicodeio.c: mark unused parameters
30132         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30133         (fallback_failure_callback): Likewise.
30134
30135 2008-12-07  Bruno Haible  <bruno@clisp.org>
30136
30137         * gnulib-tool (func_create_testdir): When building the tests
30138         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30139         Reported by Simon Josefsson.
30140
30141 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30142
30143         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30144
30145 2008-12-06  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30148         Suggested by Eric Blake.
30149
30150 2008-12-06  Bruno Haible  <bruno@clisp.org>
30151
30152         Fix a c-stack test failure on MacOS X.
30153         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30154         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30155         handler for SIGBUS as well.
30156         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30157         install a signal handler for SIGBUS as well.
30158         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30159
30160 2008-12-06  Bruno Haible  <bruno@clisp.org>
30161
30162         Advocacy documentation.
30163         * doc/gnulib-intro.texi (Benefits): New section.
30164         * doc/gnulib.texi: Update.
30165
30166 2008-12-06  Bruno Haible  <bruno@clisp.org>
30167
30168         Document the 'manywarnings' module.
30169         * doc/manywarnings.texi: New file.
30170         * doc/gnulib.texi: Include it.
30171
30172 2008-12-05  Eric Blake  <ebb9@byu.net>
30173
30174         tests: silence some gcc warnings
30175         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30176         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
30177         type mismatches.
30178
30179 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30180             Bruno Haible  <bruno@clisp.org>
30181
30182         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
30183
30184 2008-11-29  Jim Meyering  <meyering@redhat.com>
30185
30186         unicodeio.c: mark unused parameters
30187         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30188         (fallback_failure_callback): Likewise.
30189
30190         fts: fix a thinko
30191         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
30192         (set_stat_type): Return S_IF*-valued "type" directly.
30193         Prompted by James Youngman's spotting a related bug.
30194         Confirmed by further testing through find.
30195
30196         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
30197         * lib/fts.c (D_TYPE): Define.
30198         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
30199         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
30200         (s_ifmt_shift_bits): New function.
30201         (set_stat_type): New function.
30202         (fts_build): When not calling fts_stat, call set_stat_type
30203         to propagate dirent.d_type info to fts_read caller.
30204         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
30205         fts_statp->st_mode type information may be valid.
30206
30207 2008-11-28  Simon Josefsson  <simon@josefsson.org>
30208
30209         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
30210         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
30211         <sds@gnu.org>.
30212
30213 2008-11-20  Bruno Haible  <bruno@clisp.org>
30214
30215         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
30216         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
30217         INCLUDE_NEXT.
30218         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
30219         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
30220         * modules/math (Makefile.am): Substitute
30221         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
30222         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30223
30224 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30225             Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/stdint.in.h: Define all type macros so that their expansion is
30228         a single typedef'ed token. Fixes a compilation failure in Boost which
30229         does "using ::int8_t;".
30230
30231 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30232
30233         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
30234         gl_MANYWARN_ALL_GCC.
30235         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
30236         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
30237         * modules/manywarnings: New file.
30238         * MODULES.html.sh: Mention manywarnings module.
30239
30240 2008-11-18  Bruno Haible  <bruno@clisp.org>
30241
30242         * doc/gnulib-tool.texi (Unit tests): New section.
30243
30244 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30245
30246         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
30247         paths like 'lib/po/foo.po'.
30248
30249 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30250
30251         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
30252         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
30253
30254 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30255
30256         * m4/warnings.m4: Use CPPFLAGS to really check whether the
30257         parameter works.
30258
30259 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30260
30261         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
30262
30263 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30264
30265         * modules/parse-duration-tests: New file.
30266         * tests/test-parse-duration.sh: New file.
30267         * tests/test-parse-duration.c: New file.
30268
30269         New module 'parse-duration'.
30270         * lib/parse-duration.h: New file.
30271         * lib/parse-duration.c: New file.
30272         * modules/parse-duration: New file.
30273
30274 2008-11-17  Bruno Haible  <bruno@clisp.org>
30275
30276         * tests/test-select-out.sh: Comment out the first pipe test.
30277         Reported by Simon Josefsson.
30278
30279 2008-11-17  Bruno Haible  <bruno@clisp.org>
30280
30281         * modules/getaddrinfo (Depends-on): Add servent, hostent.
30282         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
30283         gl_HOSTENT.
30284
30285 2008-11-17  Bruno Haible  <bruno@clisp.org>
30286
30287         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
30288         -lnetwork and -lnet. Needed for Haiku and BeOS.
30289
30290 2008-11-16  Bruno Haible  <bruno@clisp.org>
30291
30292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
30293
30294 2008-11-16  Bruno Haible  <bruno@clisp.org>
30295
30296         Avoid test failure on Haiku.
30297         * tests/test-fsync.c: Include <errno.h>.
30298         (main): Don't require that fsync (0) fails.
30299
30300 2008-11-15  Bruno Haible  <bruno@clisp.org>
30301
30302         New module 'hostent'.
30303         * modules/hostent: New file.
30304         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
30305
30306 2008-11-15  Bruno Haible  <bruno@clisp.org>
30307
30308         New module 'servent'.
30309         * modules/servent: New file.
30310         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
30311
30312 2008-11-15  Bruno Haible  <bruno@clisp.org>
30313
30314         Avoid generating same test program with two different rules.
30315         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
30316         test-frexp to test-frexp-nolibm.
30317         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
30318         test-frexpl to test-frexpl-nolibm.
30319
30320 2008-11-15  Bruno Haible  <bruno@clisp.org>
30321
30322         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
30323         $(FREXPL_LIBM).
30324
30325 2008-11-15  Bruno Haible  <bruno@clisp.org>
30326
30327         * lib/netdb.in.h: Activate the definitions also when the system's
30328         <netdb.h> has 'struct addrinfo'.
30329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
30330         EAI_OVERFLOW or AI_NUMERICSERV.
30331         * doc/posix-headers/netdb.texi: Document the problem.
30332
30333 2008-11-15  Bruno Haible  <bruno@clisp.org>
30334
30335         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
30336
30337         Make the 'sched' module work on platforms where <sched.h> exists but
30338         is incomplete (such as Haiku).
30339         * lib/sched.in.h; Include the system's <sched.h> if it exists.
30340         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
30341         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
30342         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
30343         HAVE_STRUCT_SCHED_PARAM.
30344         * modules/sched (Depends-on): Add include_next.
30345         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
30346         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
30347         * doc/posix-headers/sched.texi: Document the issue.
30348
30349 2008-11-13  Jim Meyering  <meyering@redhat.com>
30350
30351         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
30352         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
30353         test would fail due to the difference in the Report bugs to ...
30354         line.  The expected address is empty, "<>", while the actual
30355         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
30356
30357 2008-11-12  Bruno Haible  <bruno@clisp.org>
30358
30359         lstat: don't compile lstat.c on systems lacking lstat
30360         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
30361         which don't have lstat; this is handled by lib/sys_stat.in.h already.
30362         Reported by Daniel P. Berrange via Jim Meyering.
30363
30364 2008-11-12  Jim Meyering  <meyering@redhat.com>
30365
30366         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
30367
30368 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30369
30370         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
30371         instead.
30372
30373 2008-11-12  Bruno Haible  <bruno@clisp.org>
30374
30375         * lib/unicodeio.c: Include unistr.h.
30376         (utf8_wctomb): Remove function.
30377         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
30378
30379 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30380
30381         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
30382         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
30383         <bruno@clisp.org>.
30384         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
30385
30386 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30387
30388         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
30389         * doc/gnulib.texi: Add section for warnings.
30390
30391 2008-11-11  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/sockets.h: Add a comment.
30394
30395 2008-11-11  Karl Berry  <karl@gnu.org>
30396
30397         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
30398
30399 2008-11-11  Eric Blake  <ebb9@byu.net>
30400
30401         fdl.texi: avoid git symlinks
30402         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
30403
30404 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30405
30406         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
30407
30408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30409
30410         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
30411         (gl_WARN_ADD): Substitute $2 if literal.
30412
30413 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30414
30415         * m4/warning.m4: Remove.
30416
30417 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30418
30419         * m4/warnings.m4: Almost complete rewrite. :-)
30420
30421 2008-11-10  Simon Josefsson  <simon@josefsson.org>
30422
30423         * modules/warnings: New module.
30424         * m4/warnings.m4: New file.
30425         * MODULES.html.sh: Mention warnings module.
30426         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
30427         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30428
30429 2008-11-10  Eric Blake  <ebb9@byu.net>
30430
30431         fdl.texi: make a symlink to the latest version
30432         * doc/standards.texi: Revert today's earlier change.
30433         * doc/fdl-1.2.texi: Rename from old fdl.texi...
30434         * doc/fdl.texi: ...and replace this with a symlink to the newer
30435         fdl-1.3.texi.
30436
30437 2008-11-10  Bruno Haible  <bruno@clisp.org>
30438
30439         * tests/test-select-fd.c (main): Accept the result file name as fourth
30440         argument.
30441         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
30442         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
30443
30444 2008-11-10  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
30447         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
30448         as autoconf-substituted macros.
30449         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
30450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
30451         gl_NETDB_H_DEFAULTS. Set these variables.
30452         * modules/netdb (Makefile.am): Substitute these variables.
30453
30454 2008-11-10  Eric Blake  <ebb9@byu.net>
30455
30456         standards.texi: include correct file for FDL 1.3
30457         * doc/standards.texi (GNU Free Documentation License): Change
30458         include file to pull in FDL 1.3, not 1.2.
30459
30460         fdl.texi: revert accidental change to license
30461         * doc/fdl.texi: This is FDL 1.2, not 1.3.
30462
30463 2008-11-10  Bruno Haible  <bruno@clisp.org>
30464
30465         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
30466         cross-compiling guesses also when the native compile gives no result.
30467
30468 2008-11-10  Bruno Haible  <bruno@clisp.org>
30469
30470         * lib/spawni.c (__spawni): Force variable into the stack.
30471
30472 2008-11-10  Bruno Haible  <bruno@clisp.org>
30473
30474         Add support for Haiku.
30475         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
30476         glibc and BeOS, but also on Haiku.
30477         * lib/fpurge.c (fpurge): Likewise.
30478         * lib/freadable.c (freadable): Likewise.
30479         * lib/freadahead.c (freadahead): Likewise.
30480         * lib/freading.c (freading): Likewise.
30481         * lib/freadptr.c (freadptr): Likewise.
30482         * lib/freadseek.c (freadptrinc): Likewise.
30483         * lib/fseeko.c (rpl_fseeko): Likewise.
30484         * lib/fseterr.c (fseterr): Likewise.
30485         * lib/fwritable.c (fwritable): Likewise.
30486         * lib/fwriting.c (fwriting): Likewise.
30487         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
30488
30489 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30490
30491         * lib/config.charset: Treat Haiku like BeOS.
30492
30493 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30494
30495         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
30496         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30497
30498 2008-11-08  Bruno Haible  <bruno@clisp.org>
30499
30500         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30501         AC_CACHE_CHECK.
30502
30503 2008-11-08  Bruno Haible  <bruno@clisp.org>
30504
30505         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30506
30507 2008-11-08  Bruno Haible  <bruno@clisp.org>
30508
30509         * tests/test-select-fd.c: New file.
30510         * tests/test-select-in.sh: New file.
30511         * tests/test-select-out.sh: New file.
30512         * tests/test-select-stdin.c: New file.
30513         * modules/select-tests (Files): Add the new files.
30514         (Depends-on): Add gettimeofday.
30515         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30516         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30517         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30518
30519 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30520             Bruno Haible  <bruno@clisp.org>
30521
30522         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30523
30524 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30525
30526         * build-aux/pmccabe2html: Added support for C++ source files.
30527
30528 2008-11-05  Ben Pfaff  <blp@gnu.org>
30529
30530         Fix lib/close.c build on Windows.
30531         * modules/close (Files): Add lib/w32sock.h.
30532
30533 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30534
30535         Accept Bison's NEWS format.
30536         * build-aux/announce-gen (print_news_deltas): Tweak
30537         $re_prefix.
30538
30539 2008-11-04  Bruno Haible  <bruno@clisp.org>
30540
30541         * modules/random_r (Maintainer): Add glibc.
30542
30543 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30544
30545         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30546         by karl@freefriends.org (Karl Berry).
30547         * doc/alloca.texi: Likewise.
30548         * doc/c-ctype.texi: Likewise.
30549         * doc/c-strcase.texi: Likewise.
30550         * doc/c-strcaseeq.texi: Likewise.
30551         * doc/c-strcasestr.texi: Likewise.
30552         * doc/c-strstr.texi: Likewise.
30553         * doc/c-strtod.texi: Likewise.
30554         * doc/c-strtold.texi: Likewise.
30555         * doc/ctime.texi: Likewise.
30556         * doc/error.texi: Likewise.
30557         * doc/fdl.texi: Likewise.
30558         * doc/gcd.texi: Likewise.
30559         * doc/getdate.texi: Likewise.
30560         * doc/gnulib-intro.texi: Likewise.
30561         * doc/gnulib-tool.texi: Likewise.
30562         * doc/gnulib.texi: Likewise.
30563         * doc/inet_ntoa.texi: Likewise.
30564         * doc/maintain.texi: Likewise.
30565         * doc/make-stds.texi: Likewise.
30566         * doc/quote.texi: Likewise.
30567         * doc/regexprops-generic.texi: Likewise.
30568         * doc/standards.texi: Likewise.
30569         * doc/verify.texi: Likewise.
30570         * doc/visibility.texi: Likewise.
30571         * doc/gnulib.texi (GNU Free Documentation License): Include
30572         fdl-1.3.texi instead of fdl.texi.
30573
30574 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30575
30576         * doc/fdl-1.3.texi: New file, from
30577         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30578         * modules/fdl-1.3: Add.
30579         * MODULES.html.sh: Add fdl-1.3.
30580
30581 2008-11-03  Bruno Haible  <bruno@clisp.org>
30582
30583         Make determination of absolute name of header file work with AIX xlc.
30584         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30585         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30586         preprocessing.
30587         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30588         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30589
30590 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30591
30592         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30593         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30594         <ludo@gnu.org>.
30595
30596 2008-11-02  Bruno Haible  <bruno@clisp.org>
30597
30598         Mark 'strpbrk' obsolete.
30599         * modules/strpbrk (Status, Notice): New sections.
30600         * modules/strtok_r (Depends-on): Add strpbrk.
30601
30602 2008-11-02  Bruno Haible  <bruno@clisp.org>
30603
30604         Mark 'strdup' obsolete.
30605         * modules/strdup (Status, Notice): New sections.
30606         * modules/findprog (Depends-on): Add strdup.
30607         * modules/getaddrinfo (Depends-on): Likewise.
30608         * modules/localename (Depends-on): Likewise.
30609         * modules/relocatable-lib (Depends-on): Likewise.
30610         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30611         * modules/relocatable-prog (Depends-on): Likewise.
30612         * modules/trim (Depends-on): Likewise.
30613         * modules/unictype/gen-ctype (Depends-on): Likewise.
30614         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30615
30616 2008-11-02  Bruno Haible  <bruno@clisp.org>
30617
30618         Mark 'strcspn' obsolete.
30619         * modules/strcspn (Status, Notice): New sections.
30620
30621 2008-11-02  Bruno Haible  <bruno@clisp.org>
30622
30623         Mark 'rmdir' obsolete.
30624         * modules/rmdir (Status, Notice): New sections.
30625         * modules/clean-temp (Depends-on): Add rmdir.
30626         * modules/openat (Depends-on): Likewise.
30627
30628 2008-11-02  Bruno Haible  <bruno@clisp.org>
30629
30630         Mark 'raise' obsolete.
30631         * modules/raise (Status, Notice): New sections.
30632         (Include): Specify <signal.h>.
30633         * modules/stdio (Depends-on): Add raise.
30634         * modules/write (Depends-on): Likewise.
30635
30636 2008-11-02  Bruno Haible  <bruno@clisp.org>
30637
30638         Mark 'memset' obsolete.
30639         * modules/memset (Status, Notice): New sections.
30640
30641 2008-11-02  Bruno Haible  <bruno@clisp.org>
30642
30643         Mark 'memmove' obsolete.
30644         * modules/memmove (Status, Notice): New sections.
30645         * modules/argp (Depends-on): Add memmove.
30646         * modules/argz (Depends-on): Likewise.
30647         * modules/canonicalize (Depends-on): Likewise.
30648         * modules/canonicalize-lgpl (Depends-on): Likewise.
30649         * modules/fts (Depends-on): Likewise.
30650         * modules/getcwd (Depends-on): Likewise.
30651         * modules/human (Depends-on): Likewise.
30652         * modules/regex (Depends-on): Likewise.
30653         * modules/striconveh (Depends-on): Likewise.
30654         * modules/trim (Depends-on): Likewise.
30655         * modules/unistr/u8-move (Depends-on): Likewise.
30656         * modules/unistr/u16-move (Depends-on): Likewise.
30657         * modules/unistr/u32-move (Depends-on): Likewise.
30658
30659 2008-11-02  Bruno Haible  <bruno@clisp.org>
30660
30661         Mark 'memcpy' obsolete.
30662         * modules/memcpy (Status, Notice): New sections.
30663
30664 2008-11-02  Bruno Haible  <bruno@clisp.org>
30665
30666         Mark 'memcmp' obsolete.
30667         * modules/memcmp (Status, Notice): New sections.
30668         * modules/argmatch (Depends-on): Add memchr.
30669         * modules/backupfile (Depends-on): Likewise.
30670         * modules/c-strcasestr (Depends-on): Likewise.
30671         * modules/crypto/des (Depends-on): Likewise.
30672         * modules/csharpcomp (Depends-on): Likewise.
30673         * modules/fnmatch (Depends-on): Likewise.
30674         * modules/git-merge-changelog (Depends-on): Likewise.
30675         * modules/isnand (Depends-on): Likewise.
30676         * modules/isnand-nolibm (Depends-on): Likewise.
30677         * modules/isnanf (Depends-on): Likewise.
30678         * modules/isnanf-nolibm (Depends-on): Likewise.
30679         * modules/isnanl (Depends-on): Likewise.
30680         * modules/isnanl-nolibm (Depends-on): Likewise.
30681         * modules/mbchar (Depends-on): Likewise.
30682         * modules/memcoll (Depends-on): Likewise.
30683         * modules/quotearg (Depends-on): Likewise.
30684         * modules/regex (Depends-on): Likewise.
30685         * modules/relocatable-prog (Depends-on): Likewise.
30686         * modules/same (Depends-on): Likewise.
30687         * modules/signbit (Depends-on): Likewise.
30688         * modules/strcasestr-simple (Depends-on): Likewise.
30689         * modules/unictype/gen-ctype (Depends-on): Likewise.
30690         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30691         * modules/uniname/uniname (Depends-on): Likewise.
30692         * modules/unistr/u8-cmp (Depends-on): Likewise.
30693
30694 2008-11-02  Bruno Haible  <bruno@clisp.org>
30695
30696         Mark 'memchr' obsolete.
30697         * modules/memchr (Status, Notice): New sections.
30698         * modules/argp (Depends-on): Add memchr.
30699         * modules/base64 (Depends-on): Likewise.
30700         * modules/c-strcasestr (Depends-on): Likewise.
30701         * modules/chdir-long (Depends-on): Likewise.
30702         * modules/fnmatch (Depends-on): Likewise.
30703         * modules/getsubopt (Depends-on): Likewise.
30704         * modules/git-merge-changelog (Depends-on): Likewise.
30705         * modules/glob (Depends-on): Likewise.
30706         * modules/strcasestr-simple (Depends-on): Likewise.
30707         * modules/strnlen (Depends-on): Likewise.
30708
30709 2008-11-02  Bruno Haible  <bruno@clisp.org>
30710
30711         Mark 'atexit' obsolete.
30712         * modules/atexit (Status, Notice): New sections.
30713         * modules/chdir-long (Depends-on): Add atexit.
30714         * modules/wait-process (Depends-on): Likewise.
30715
30716 2008-11-02  Bruno Haible  <bruno@clisp.org>
30717
30718         * gnulib-tool: New option --with-obsolete.
30719         (func_usage): Document it.
30720         (func_modules_transitive_closure): Drop obsolete dependencies if
30721         incobsolete is not true.
30722         (func_import): Read and save the incobsolete variable to the cache.
30723
30724 2008-11-02  Bruno Haible  <bruno@clisp.org>
30725
30726         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30727         * gnulib-tool: New option --extract-status.
30728         (func_usage): Document it.
30729         (sed_extract_prog): Recognize it.
30730         (func_get_status): New function.
30731
30732 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30733
30734         * modules/sockets (License): Change from LGPL to LGPLv2+.
30735
30736 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30737
30738         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30739
30740 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30741
30742         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30743         Mention times and sys_times.
30744         * modules/sys_times, modules/sys_times-tests: New modules.
30745         * modules/times, modules/times-tests: Likewise
30746         * m4/sys_times_h.m4: New file.
30747         * lib/sys_times.in.h: Likewise
30748         * lib/times.c: Likewise.
30749         * tests/test-sys_times.c: Likewise.
30750         * tests/test-times.c: Likewise.
30751         * doc/posix-headers/sys_times.texi: Update.
30752         * doc/posix-functions/times.texi: Update.
30753
30754 2008-10-28  Jim Meyering  <meyering@redhat.com>
30755
30756         * modules/tempname (Depends-on): Add lstat.
30757
30758         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30759
30760 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30761
30762         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30763         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30764         using idiom used elsewhere in gnulib.
30765
30766 2008-10-27  Jim Meyering  <meyering@redhat.com>
30767
30768         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30769
30770 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30771
30772         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30773         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30774         programs.
30775         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30776
30777 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30778
30779         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30780
30781 2008-10-27  Bruno Haible  <bruno@clisp.org>
30782
30783         * tests/test-lstat.c: Include <stdio.h>.
30784
30785 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30786
30787         * modules/lstat-tests: New module.
30788         * tests/test-lstat.c: New file.
30789
30790 2008-10-26  Jim Meyering  <meyering@redhat.com>
30791
30792         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30793
30794 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30795             Bruno Haible  <bruno@clisp.org>
30796
30797         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30798         * modules/configmake (Include): Add a note that the include must come
30799         after all system headers.
30800         * lib/javaversion.c: Include configmake.h after all other includes.
30801
30802 2008-10-26  Bruno Haible  <bruno@clisp.org>
30803
30804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30805         HAVE_STRUCT_RANDOM_DATA to 1.
30806         (gl_STDLIB_H): Simplify.
30807
30808 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30809
30810         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30811         substitute HAVE_STRUCT_RANDOM_DATA.
30812         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30813         random_data.
30814         * modules/stdlib (Makefile.am): Substitute
30815         HAVE_STRUCT_RANDOM_DATA.
30816
30817 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30818
30819         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30820         * doc/gnulib-intro.texi (Copyright): Likewise.
30821
30822 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30823
30824         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30825         findings.
30826
30827 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30828             Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/unistd.in.h: Include <winsock2.h>.
30831         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30832         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30833         Provide dummy declarations.
30834         (gethostname): Override.
30835         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30836         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30837         gl_PREREQ_SYS_H_WINSOCK2.
30838         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30839         * doc/posix-functions/gethostname.texi: More details.
30840
30841 2008-10-25  Bruno Haible  <bruno@clisp.org>
30842
30843         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30844         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30845         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30846
30847         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30848         here ...
30849         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30851         gl_UNISTD_H_DEFAULTS.
30852
30853 2008-10-25  Eric Blake  <ebb9@byu.net>
30854
30855         signbit: avoid spurious compiler failure
30856         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30857         declarations inside function.
30858
30859 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30860             Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30863         * modules/random_r (Depends-on): Add stdint.
30864
30865 2008-10-24  Bruno Haible  <bruno@clisp.org>
30866
30867         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30868         Eggert.
30869         * modules/strerror (License): Likewise.
30870
30871 2008-10-24  Jim Meyering  <meyering@redhat.com>
30872
30873         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30874         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30875
30876 2008-10-24  Eric Blake  <ebb9@byu.net>
30877
30878         getgroups: fix compilation when getgroups is available
30879         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30880         but with <config.h> override of getgroups disabled.
30881
30882 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30883
30884         * doc/gnulib.texi (Header files): Add note about C++ problems.
30885         Explained by Bruno Haible <bruno@clisp.org>.
30886
30887 2008-10-23  Bruno Haible  <bruno@clisp.org>
30888
30889         Define a dummy SA_NODEFER macro on Interix.
30890         * lib/signal.in.h (SA_NODEFER): Define fallback.
30891         Reported by Aleksey Cheusov <cheusov@tut.by> via
30892         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30893
30894 2008-10-23  Bruno Haible  <bruno@clisp.org>
30895
30896         * modules/freadahead (License): Change to LGPLv2+.
30897         Suggested by Simon Josefsson.
30898
30899 2008-10-23  Jim Meyering  <meyering@redhat.com>
30900
30901         random_r: new module
30902         * modules/random_r: New file.
30903         * m4/random_r.m4: New file.
30904         * lib/random_r.c: New file, from glibc.
30905         * modules/random_r-tests: New file.
30906         * tests/test-random_r.c: New file.
30907         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30908          Declare.
30909         (RAND_MAX): Define.
30910         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30911         * modules/stdlib: Substitute them, too.
30912         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30913         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30914         * doc/glibc-functions/random_r.texi: Likewise.
30915         * doc/glibc-functions/setstate_r.texi: Likewise.
30916         * doc/glibc-functions/srandom_r.texi: Likewise.
30917         * config/srclist.txt: Mention it.
30918
30919 2008-10-23  David Lutterkort  <lutter@redhat.com>
30920
30921         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30922         link requirement
30923
30924 2008-10-23  Jim Meyering  <meyering@redhat.com>
30925
30926         selinux-h: mark parameters of stub functions as intentionally unused
30927         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30928         * lib/se-context.in.h: Likewise.
30929
30930 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30931
30932         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
30933
30934 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30935
30936         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
30937
30938 2008-10-22  Eric Blake  <ebb9@byu.net>
30939
30940         glthread/thread: avoid compiler warning
30941         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
30942         Add unreachable abort to silence compiler.
30943
30944 2008-10-22  Eric Blake  <ebb9@byu.net>
30945
30946         netdb: also supply struct addrinfo for cygwin 1.5.x
30947         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
30948         older cygwin.
30949         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
30950         cygwin.
30951         * doc/posix-headers/netdb.texi (netdb.h): Document this.
30952
30953 2008-10-22  Bruno Haible  <bruno@clisp.org>
30954
30955         * users.txt: Update entry about pspp.
30956
30957 2008-10-21  Bruno Haible  <bruno@clisp.org>
30958
30959         Simplification.
30960         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
30961         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
30962
30963         Simplification.
30964         * lib/ioctl.c (ioctl): Don't undefine.
30965         * lib/socket.c (socket): Don't undefine.
30966
30967         Remove unused module indicator macros.
30968         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
30969         GNULIB_$1 as a C macro.
30970
30971         * doc/posix-functions/close.texi: Undo last change.
30972         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30973         Windows platforms.
30974
30975 2008-10-21  Bruno Haible  <bruno@clisp.org>
30976
30977         Add gethostname() declaration to <unistd.h>.
30978         * lib/unistd.in.h (gethostname): New declaration.
30979         * lib/gethostname.c: Include <unistd.h>.
30980         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30981         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30983         and HAVE_GETHOSTNAME.
30984         * modules/gethostname (Depends-on): Add unistd.
30985         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30986         (Include): Specify <unistd.h>.
30987         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30988         HAVE_GETHOSTNAME.
30989         * tests/test-gethostname.c: Include <unistd.h> first.
30990
30991 2008-10-21  Bruno Haible  <bruno@clisp.org>
30992
30993         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30994         * modules/select-tests (Depends-on): Likewise.
30995         Reported by Simon Josefsson.
30996
30997 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30998
30999         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
31000         * lib/accept.c: New file, based on winsock.c.
31001         * lib/bind.c: New file, based on winsock.c.
31002         * lib/connect.c: New file, based on winsock.c.
31003         * lib/getpeername.c: New file, based on winsock.c.
31004         * lib/getsockname.c: New file, based on winsock.c.
31005         * lib/getsockopt.c: New file, based on winsock.c.
31006         * lib/ioctl.c: New file, based on winsock.c.
31007         * lib/listen.c: New file, based on winsock.c.
31008         * lib/recv.c: New file, based on winsock.c.
31009         * lib/recvfrom.c: New file, based on winsock.c.
31010         * lib/send.c: New file, based on winsock.c.
31011         * lib/sendto.c: New file, based on winsock.c.
31012         * lib/setsockopt.c: New file, based on winsock.c.
31013         * lib/shutdown.c: New file, based on winsock.c.
31014         * lib/socket.c: New file, based on winsock.c.
31015         * lib/w32sock.h: New file, based on winsock.c.
31016         * lib/winsock.c: Remove file.
31017         * modules/accept: Likewise.
31018         * modules/bind: Likewise.
31019         * modules/connect: Likewise.
31020         * modules/getpeername: Likewise.
31021         * modules/getsockname: Likewise.
31022         * modules/getsockopt: Likewise.
31023         * modules/ioctl: Likewise.
31024         * modules/listen: Likewise.
31025         * modules/recv: Likewise.
31026         * modules/recvfrom: Likewise.
31027         * modules/send: Likewise.
31028         * modules/sendto: Likewise.
31029         * modules/setsockopt: Likewise.
31030         * modules/shutdown: Likewise.
31031         * modules/socket: Use socket.c instead of winsock.c.
31032         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
31033         * doc/posix-functions/accept.texi: Doc fix.
31034         * doc/posix-functions/bind.texi: Doc fix.
31035         * doc/posix-functions/close.texi: Doc fix.
31036         * doc/posix-functions/connect.texi: Doc fix.
31037         * doc/posix-functions/getpeername.texi: Doc fix.
31038         * doc/posix-functions/getsockname.texi: Doc fix.
31039         * doc/posix-functions/getsockopt.texi: Doc fix.
31040         * doc/posix-functions/ioctl.texi: Doc fix.
31041         * doc/posix-functions/listen.texi: Doc fix.
31042         * doc/posix-functions/recv.texi: Doc fix.
31043         * doc/posix-functions/recvfrom.texi: Doc fix.
31044         * doc/posix-functions/send.texi: Doc fix.
31045         * doc/posix-functions/sendto.texi: Doc fix.
31046         * doc/posix-functions/setsockopt.texi: Doc fix.
31047         * doc/posix-functions/shutdown.texi: Doc fix.
31048         * doc/posix-functions/socket.texi: Doc fix.
31049
31050 2008-10-20  Bruno Haible  <bruno@clisp.org>
31051
31052         Take into account the role of SIGABRT_COMPAT on Windows 2008.
31053         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
31054         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
31055         as an alias for SIGABRT.
31056         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
31057         (sigaction): Map it to SIGABRT.
31058         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
31059
31060 2008-10-20  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/fts.c: Don't include lstat.h.
31063         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
31064
31065         Move the lstat() declaration to <sys/stat.h>.
31066         * lib/lstat.h: Remove file.
31067         * lib/sys_stat.in.h: Add special invocation convention.
31068         (lstat): New declaration.
31069         * lib/lstat.c (orig_lstat): New function.
31070         (rpl_lstat): Use orig_lstat instead of lstat.
31071         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
31072         AC_C_INLINE. Set REPLACE_LSTAT.
31073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
31074         and REPLACE_LSTAT.
31075         * modules/lstat (Files): Remove lib/lstat.h.
31076         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31077         (Include): Specify <sys/stat.h> instead of lstat.h.
31078         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
31079         REPLACE_LSTAT.
31080         * NEWS: Mention the change.
31081
31082 2008-10-20  Bruno Haible  <bruno@clisp.org>
31083
31084         * modules/posix_spawn-tests: New file.
31085         * tests/test-posix_spawn3.c: New file.
31086
31087 2008-10-20  Bruno Haible  <bruno@clisp.org>
31088
31089         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
31090         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31091         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
31092         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31093         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
31094
31095 2008-10-20  Bruno Haible  <bruno@clisp.org>
31096
31097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
31098         of posix_spawn on AIX 5.3.
31099
31100 2008-10-20  Bruno Haible  <bruno@clisp.org>
31101
31102         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31103
31104 2008-10-20  Bruno Haible  <bruno@clisp.org>
31105
31106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31107         of AC_LANG_PROGRAM.
31108
31109 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31110
31111         * lib/netdb.in.h: Don't define GNU specific constants until they
31112         are supported or needed.  Reported by Bruno Haible
31113         <bruno@clisp.org>.
31114
31115 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31116
31117         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31118
31119 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31120
31121         * lib/getaddrinfo.h: Remove file.
31122         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31123         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31124         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31125         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31126         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31127         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31128         * tests/test-getaddrinfo.c: Likewise.
31129         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31130         * NEWS: Mention change.
31131
31132 2008-10-19  Bruno Haible  <bruno@clisp.org>
31133
31134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31135
31136 2008-10-19  Bruno Haible  <bruno@clisp.org>
31137
31138         * lib/wait-process.c: Include simply <sys/wait.h>.
31139         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31140         WIFSTOPPED): Remove fallback definitions.
31141         * modules/wait-process (Depends-on): Add sys_wait.
31142
31143         New module 'sys_wait'.
31144         * modules/sys_wait: New file.
31145         * lib/sys_wait.in.h: New file, partially copied from
31146         lib/wait-process.c.
31147         * m4/sys_wait_h.m4: New file.
31148         * doc/posix-headers/sys_wait.texi: Mention the new module.
31149
31150 2008-10-19  Bruno Haible  <bruno@clisp.org>
31151
31152         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31153
31154 2008-10-19  Bruno Haible  <bruno@clisp.org>
31155
31156         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31157         * lib/wait-process.c (WAIT_T): Remove type.
31158         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31159         (wait_subprocess): Update.
31160
31161 2008-10-19  Bruno Haible  <bruno@clisp.org>
31162
31163         New module 'atoll'.
31164         * modules/atoll: New file.
31165         * lib/stdlib.in.h (atoll): New declaration.
31166         * lib/atoll.c: New file, from glibc with modifications.
31167         * m4/atoll.m4: New file.
31168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31169         HAVE_ATOLL.
31170         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31171         * doc/posix-functions/atoll.texi: Mention the new module.
31172
31173 2008-10-19  Bruno Haible  <bruno@clisp.org>
31174
31175         Add strtoull() declaration to <stdlib.h>.
31176         * lib/stdlib.in.h (strtoull): New declaration.
31177         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31178         Set HAVE_STRTOULL.
31179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
31180         HAVE_STRTOULL.
31181         * modules/strtoull (Depends-on): Add stdlib.
31182         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31183         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
31184         HAVE_STRTOULL.
31185
31186 2008-10-19  Bruno Haible  <bruno@clisp.org>
31187
31188         Add strtoll() declaration to <stdlib.h>.
31189         * lib/stdlib.in.h (strtoll): New declaration.
31190         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31191         Set HAVE_STRTOLL.
31192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
31193         HAVE_STRTOLL.
31194         * modules/strtoll (Depends-on): Add stdlib.
31195         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31196         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
31197
31198 2008-10-19  Bruno Haible  <bruno@clisp.org>
31199
31200         * modules/bcopy (Depends-on): Add strings.
31201         (Include): Specify <strings.h>.
31202
31203 2008-10-19  Bruno Haible  <bruno@clisp.org>
31204
31205         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
31206
31207 2008-10-19  Bruno Haible  <bruno@clisp.org>
31208
31209         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
31210         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
31211         mingw.
31212
31213 2008-10-19  Bruno Haible  <bruno@clisp.org>
31214
31215         * lib/atanl.c: Don't include isnanl.h.
31216         * lib/cosl.c: Likewise.
31217         * lib/ldexpl.c: Likewise.
31218         * lib/logl.c: Likewise.
31219         * lib/sinl.c: Likewise.
31220         * lib/sqrtl.c: Likewise.
31221         * lib/tanl.c: Likewise.
31222
31223         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
31224         * lib/isnanf.h: Remove file.
31225         * lib/isnand.h: Remove file.
31226         * lib/isnanl.h: Remove file.
31227         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
31228         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
31229         macros.
31230         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
31231         HAVE_ISNANF, don't define it as a C macro.
31232         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
31233         HAVE_ISNAND, don't define it as a C macro.
31234         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
31235         HAVE_ISNANL, don't define it as a C macro.
31236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
31237         HAVE_ISNAN[FDL].
31238         * modules/isnanf (Files): Remove lib/isnanf.h.
31239         (Depends-on): Add math.
31240         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31241         (Include): Specify <math.h> instead of isnanf.h.
31242         * modules/isnand (Files): Remove lib/isnand.h.
31243         (Depends-on): Add math.
31244         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31245         (Include): Specify <math.h> instead of isnand.h.
31246         * modules/isnanl (Files): Remove lib/isnanl.h.
31247         (Depends-on): Add math.
31248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31249         (Include): Specify <math.h> instead of isnanl.h.
31250         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
31251         HAVE_ISNAN[FDL].
31252         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
31253         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
31254         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
31255         * NEWS: Mention the change.
31256
31257 2008-10-18  Bruno Haible  <bruno@clisp.org>
31258
31259         Add getusershell(), setusershell(), endusershell() declarations to
31260         <unistd.h>.
31261         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
31262         declarations.
31263         * lib/getusershell.c: Include unistd.h.
31264         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
31265         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31266         HAVE_GETUSERSHELL.
31267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
31268         and HAVE_GETUSERSHELL.
31269         * modules/getusershell (Depends-on): Add unistd, extensions.
31270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31271         (Include): Specify <unistd.h>.
31272         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
31273         HAVE_GETUSERSHELL.
31274
31275 2008-10-18  Bruno Haible  <bruno@clisp.org>
31276
31277         Add a getloadavg() declaration to <stdlib.h>.
31278         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
31279         getloadavg declaration.
31280         (getloadavg): New declaration.
31281         * lib/getloadavg.c: Include <stdlib.h> first.
31282         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
31283         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
31284         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
31285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
31286         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31287         * modules/getloadavg (Depends-on): Add stdlib, extensions.
31288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31289         (Include): Specify <stdlib.h>.
31290         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
31291         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31292
31293 2008-10-18  Bruno Haible  <bruno@clisp.org>
31294
31295         * lib/dirchownmod.c: Don't include lchmod.h.
31296
31297         Move the lchmod() declaration to <sys/stat.h>.
31298         * lib/lchmod.h: Remove file.
31299         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
31300         (lchmod): New declaration, moved here from lib/lchown.h.
31301         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
31302         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
31303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
31304         and HAVE_LCHMOD.
31305         * modules/lchmod (Files): Remove lib/lchmod.h.
31306         (Depends-on): Add sys_stat, extensions.
31307         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31308         (Include): Specify <sys/stat.h> instead of lchmod.h.
31309         * modules/sys_stat (Depends-on): Add link-warning.
31310         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
31311         definition of GL_LINK_WARNING.
31312         * NEWS: Mention the change.
31313
31314 2008-10-18  Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/fchdir.c: Don't include dirfd.h.
31317         * lib/fts.c: Likewise.
31318         * lib/getcwd.c: Likewise.
31319         * lib/glob.c: Likewise.
31320
31321         Move the dirfd() declaration to <dirent.h>.
31322         * lib/dirfd.h: Remove file.
31323         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
31324         (dirfd): New declaration.
31325         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
31326         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
31327         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
31328         HAVE_DECL_DIRFD.
31329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
31330         HAVE_DECL_DIRFD.
31331         * modules/dirfd (Files): Remove lib/dirfd.h.
31332         (Depends-on): Add dirent, extensions.
31333         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
31334         (Include): Specify <dirent.h> instead of dirfd.h.
31335         * modules/dirent (Depends-on): Add link-warning.
31336         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
31337         definition of GL_LINK_WARNING.
31338         * NEWS: Mention the change.
31339
31340 2008-10-18  Bruno Haible  <bruno@clisp.org>
31341
31342         Move the euidaccess() declaration to <unistd.h>.
31343         * lib/euidaccess.h: Remove file.
31344         * lib/unistd.in.h (euidaccess): New declaration.
31345         * lib/euidaccess.c: Don't include euidaccess.h.
31346         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
31347         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
31348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
31349         and HAVE_EUIDACCESS.
31350         * modules/euidaccess (Files): Remove lib/euidaccess.h.
31351         (Depends-on): Add unistd.
31352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31353         (Include): Specify <unistd.h> instead of euidaccess.h.
31354         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
31355         HAVE_EUIDACCESS.
31356         * NEWS: Mention the change.
31357
31358 2008-10-18  Bruno Haible  <bruno@clisp.org>
31359
31360         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
31361
31362         Move the getdomainname() declaration to <unistd.h>.
31363         * lib/getdomainname.h: Remove file.
31364         * lib/unistd.in.h (getdomainname): New declaration.
31365         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
31366         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
31367         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31368         HAVE_GETDOMAINNAME.
31369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31370         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
31371         * modules/getdomainname (Files): Remove lib/getdomainname.h.
31372         (Depends-on): Add unistd, extensions.
31373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31374         (Includes): Specify <unistd.h> instead of getdomainname.h.
31375         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
31376         HAVE_GETDOMAINNAME.
31377         * NEWS: Mention the change.
31378
31379 2008-10-18  Bruno Haible  <bruno@clisp.org>
31380
31381         * modules/dirent: New file.
31382         * m4/dirent_h.m4: New file.
31383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
31384         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
31385         * modules/fchdir (Files): Remove lib/dirent.in.h.
31386         (Depends-on): Add dirent.
31387         (Makefile.am): Move rules to modules/dirent.
31388         * doc/posix-headers/dirent.texi: Mention the new module.
31389
31390 2008-10-18  Bruno Haible  <bruno@clisp.org>
31391
31392         Avoid -Wunused-parameter warnings in public gnulib header files.
31393         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
31394         macro.
31395         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
31396
31397 2008-10-18  Bruno Haible  <bruno@clisp.org>
31398
31399         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
31400         * doc/glibc-functions/error.texi: Mention the module 'error'.
31401         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
31402         * doc/glibc-functions/getdomainname.texi: Mention the module
31403         'getdomainname'.
31404         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
31405         * doc/glibc-functions/getpagesize.texi: Mention the module
31406         'getpagesize'.
31407         * doc/glibc-functions/getusershell.texi: Mention the module
31408         'getusershell'.
31409         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
31410         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
31411         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
31412         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
31413         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
31414         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
31415         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
31416         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
31417         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
31418         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
31419         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
31420         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
31421         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
31422         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
31423
31424 2008-10-17  Bruno Haible  <bruno@clisp.org>
31425
31426         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
31427         HP-UX and IRIX, use -0.0L.
31428         * tests/test-ceill.c (minus_zero): Likewise.
31429         * tests/test-floorl.c (minus_zero): Likewise.
31430         * tests/test-frexpl.c (minus_zero): Likewise.
31431         * tests/test-isnan.c (minus_zerol): Likewise.
31432         * tests/test-isnanl.h (minus_zero): Likewise.
31433         * tests/test-ldexpl.c (minus_zero): Likewise.
31434         * tests/test-roundl.c (minus_zero): Likewise.
31435         * tests/test-signbit.c (minus_zerol): Likewise.
31436         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31437         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31438         * tests/test-truncl.c (minus_zero): Likewise.
31439         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31440         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31441         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
31442         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31443
31444 2008-10-17  Bruno Haible  <bruno@clisp.org>
31445
31446         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
31447         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
31448         that it gets activated only for gcc >= 3.0.
31449         * lib/dirent.in.h: Likewise.
31450         * lib/errno.in.h: Likewise.
31451         * lib/fcntl.in.h: Likewise.
31452         * lib/float.in.h: Likewise.
31453         * lib/iconv.in.h: Likewise.
31454         * lib/inttypes.in.h: Likewise.
31455         * lib/locale.in.h: Likewise.
31456         * lib/math.in.h: Likewise.
31457         * lib/netdb.in.h: Likewise.
31458         * lib/netinet_in.in.h: Likewise.
31459         * lib/search.in.h: Likewise.
31460         * lib/signal.in.h: Likewise.
31461         * lib/spawn.in.h: Likewise.
31462         * lib/stdarg.in.h: Likewise.
31463         * lib/stdint.in.h: Likewise.
31464         * lib/stdio.in.h: Likewise.
31465         * lib/stdlib.in.h: Likewise.
31466         * lib/string.in.h: Likewise.
31467         * lib/strings.in.h: Likewise.
31468         * lib/sys_file.in.h: Likewise.
31469         * lib/sys_ioctl.in.h: Likewise.
31470         * lib/sys_select.in.h: Likewise.
31471         * lib/sys_socket.in.h: Likewise.
31472         * lib/sys_stat.in.h: Likewise.
31473         * lib/sys_time.in.h: Likewise.
31474         * lib/sysexits.in.h: Likewise.
31475         * lib/time.in.h: Likewise.
31476         * lib/unistd.in.h: Likewise.
31477         * lib/wchar.in.h: Likewise.
31478         * lib/wctype.in.h: Likewise.
31479         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31480
31481 2008-10-17  Jim Meyering  <meyering@redhat.com>
31482
31483         ignore-value: don't depend on inline module
31484         * modules/ignore-value (Depends-on): Remove 'inline'.
31485         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
31486         Suggestion from Bruno Haible.
31487
31488 2008-10-17  Bruno Haible  <bruno@clisp.org>
31489
31490         New implementation of condition variables for Win32.
31491         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
31492         (gl_linked_waitqueue_t): New type.
31493         (gl_cond_t): Use it.
31494         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
31495         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
31496         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31497         (glthread_cond_init_func, glthread_cond_wait_func,
31498         glthread_cond_timedwait_func, glthread_cond_signal_func,
31499         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31500         Reimplemented on the basis of gl_linked_waitqueue_t.
31501         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31502         gl_waitqueue_t.
31503         (gl_rwlock_t): Update.
31504         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31505
31506 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31507
31508         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31509         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31510
31511 2008-10-17  Jim Meyering  <meyering@redhat.com>
31512
31513         ignore-value: new module
31514         * modules/ignore-value: New file.
31515         * lib/ignore-value.h: New file.
31516         * MODULES.html.sh (Compiler warning management): New section,
31517         just for this module.  More to come.
31518
31519 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31522         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31523         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31524
31525 2008-10-16  Jim Meyering  <meyering@redhat.com>
31526
31527         openat-die.c: avoid 'no previous prototype' warning
31528         * lib/openat-die.c: Include "openat.h".
31529         Reported by Reuben Thomas <rrt@sc3d.org>.
31530
31531 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31532
31533         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31534         * lib/netdb.in.h: Fix typo.
31535         Reported by Bruno Haible  <bruno@clisp.org>
31536
31537         * lib/netdb.in.h: Include sys/socket.h for platforms without
31538         netdb.h, to get structures like hostent on MinGW.
31539         * modules/netdb (Depends-on): Add sys_socket.
31540
31541 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31542
31543         * modules/netdb, modules/netdb-tests: New file.
31544         * m4/netdb_h.m4: New file.
31545         * lib/netdb.in.h: Add, currently just an empty file pending
31546         definitions.
31547         * tests/test-netdb.c: New file.
31548         * doc/posix-headers/netdb.texi: Mention that we replace it if
31549         needed.
31550         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31551         netdb.
31552
31553 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31554
31555         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31556         with code.
31557
31558 2008-10-13  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/glthread/cond.c (glthread_cond_wait_func,
31561         glthread_cond_timedwait_func): Add a comment.
31562
31563 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31564
31565         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31566         * tests/test-select.c: Likewise,
31567
31568 2008-10-13  Bruno Haible  <bruno@clisp.org>
31569
31570         * lib/glthread/cond.c (glthread_cond_wait_func,
31571         glthread_cond_timedwait_func): Fix variable name.
31572         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31573
31574 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31575
31576         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31577         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31578         struct sockaddr.sa_len.
31579         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31580
31581 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31582
31583         * build-aux/pmccabe2html: Add css and css_url parameters.
31584
31585 2008-10-12  Bruno Haible  <bruno@clisp.org>
31586
31587         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31588         calling aclx_get.
31589         Reported by Rainer Tammer <tammer@tammer.net>.
31590
31591 2008-10-12  Bruno Haible  <bruno@clisp.org>
31592
31593         Use msvcrt aware primitives for creation/termination of Win32 threads.
31594         * lib/glthread/thread.c: Include <process.h>.
31595         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31596         (wrapper_func): Update signature.
31597         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31598
31599 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31600             Bruno Haible  <bruno@clisp.org>
31601
31602         Provide a Win32 implementation of the 'cond' module.
31603         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31604         * lib/glthread/cond.c (glthread_cond_init_func,
31605         glthread_cond_wait_func, glthread_cond_timedwait_func,
31606         glthread_cond_signal_func, glthread_cond_broadcast_func,
31607         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31608         * modules/cond (Dependencies): Add gettimeofday.
31609
31610 2008-10-11  Bruno Haible  <bruno@clisp.org>
31611
31612         Make sleep work on older versions of mingw.
31613         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31614         only whether it exists.
31615         * doc/posix-functions/sleep.texi: Mention the problem with older
31616         versions of mingw.
31617
31618 2008-10-11  Bruno Haible  <bruno@clisp.org>
31619
31620         New module 'shutdown'.
31621         * modules/shutdown: New file.
31622         * lib/sys_socket.in.h (shutdown): New declaration.
31623         * lib/winsock.c (shutdown): New function.
31624         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31625         GNULIB_SHUTDOWN.
31626         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31627         * doc/posix-functions/shutdown.texi: Document the new module.
31628
31629 2008-10-11  Jim Meyering  <meyering@redhat.com>
31630
31631         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31632
31633 2008-10-11  Bruno Haible  <bruno@clisp.org>
31634
31635         New module 'fclose'.
31636         * modules/fclose: New file.
31637         * lib/stdio.in.h (fclose): New declaration.
31638         * lib/fclose.c: New file.
31639         * m4/fclose.m4: New file.
31640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31641         REPLACE_FCLOSE.
31642         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31643         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31644         REPLACE_FCLOSE.
31645         * modules/close (Depends-on): fclose.
31646         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31647
31648 2008-10-11  Bruno Haible  <bruno@clisp.org>
31649
31650         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31651         set errno and don't call _close.
31652
31653 2008-10-10  Bruno Haible  <bruno@clisp.org>
31654
31655         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31656         ACL, not afterwards. Fixes test failure on Cygwin.
31657
31658 2008-10-09  Ben Pfaff  <blp@gnu.org>
31659
31660         * build-aux/announce-gen: Fix gnulib version related part of usage
31661         message.  Die with a useful error message if no tarballs are
31662         found.
31663
31664 2008-10-10  Jim Meyering  <meyering@redhat.com>
31665
31666         bootstrap: use git's --depth=N option only if it's supported
31667         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31668         recognize the --depth option.  Reported by Pádraig Brady.
31669
31670 2008-10-09  Bruno Haible  <bruno@clisp.org>
31671
31672         New module 'ioctl'.
31673         * modules/ioctl: New file.
31674         * lib/sys_socket.in.h (ioctl): Remove declaration.
31675         * lib/winsock.c: Include <sys/ioctl.h>.
31676         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31677         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31678         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31679         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31680         * doc/posix-functions/ioctl.texi: Mention the new module.
31681
31682 2008-10-09  Bruno Haible  <bruno@clisp.org>
31683
31684         New module 'sys_ioctl'.
31685         * lib/sys_ioctl.in.h: New file.
31686         * m4/sys_ioctl_h.m4: New file.
31687         * modules/sys_ioctl: New file.
31688         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31689
31690 2008-10-09  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31693         * lib/winsock.c: Include <stdarg.h>.
31694         (rpl_ioctl): Change to second argument 'int' and then varargs.
31695
31696 2008-10-09  Bruno Haible  <bruno@clisp.org>
31697
31698         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31699         when the sys_socket module is present and the system has <winsock2.h>.
31700
31701 2008-10-09  Bruno Haible  <bruno@clisp.org>
31702
31703         * doc/posix-functions/close.texi: Mention module 'close' instead of
31704         module 'sys_socket'.
31705
31706 2008-10-09  Bruno Haible  <bruno@clisp.org>
31707
31708         * doc/glibc-headers/sys_ioctl.texi: New file.
31709         * doc/gnulib.texi: Include it.
31710
31711 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31712             Bruno Haible  <bruno@clisp.org>
31713
31714         Combine the two replacements of 'close'.
31715         * lib/sys_socket.in.h (close): Define to a reminder to include
31716         <unistd.h>.
31717         (_gl_close_fd_maybe_socket): New declaration.
31718         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31719         * lib/winsock.c (close): Remove undefinition.
31720         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31721         needed for the gnulib module 'close'.
31722         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31723         define to an error symbol or to a warning, if suitable.
31724         * lib/close.c: Include <sys/socket.h>.
31725         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31726         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31727         UNISTD_H_HAVE_WINSOCK2_H.
31728         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31730         UNISTD_H_HAVE_WINSOCK2_H.
31731         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31732         (configure.ac): Set a module indicator.
31733         (Makefile.am): Substitute GNULIB_CLOSE.
31734         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31735         * modules/poll-tests (Depends-on): Add close.
31736         * modules/select-tests (Depends-on): Likewise.
31737
31738 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31739             Bruno Haible  <bruno@clisp.org>
31740
31741         New module 'close'.
31742         * modules/close: New file.
31743         * lib/unistd.in.h (close): Move declaration out of the
31744         FCHDIR_REPLACEMENT scope.
31745         (_gl_unregister_fd): New declaration.
31746         * lib/close.c: New file.
31747         * lib/fchdir.c (rpl_close): Remove function.
31748         * m4/close.m4: New file.
31749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31750         close.
31751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31752         REPLACE_CLOSE.
31753         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31754         REPLACE_CLOSE.
31755         * modules/fchdir (Depends-on): Add close.
31756
31757 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31758             Bruno Haible  <bruno@clisp.org>
31759
31760         * lib/fcntl.in.h (open): Simplify conditionals.
31761         (_gl_register_fd): New declaration.
31762         * lib/fchdir.c (rpl_open): Remove function.
31763         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31764         also.
31765         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31766         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31767         open.
31768
31769 2008-10-09  Jim Meyering  <meyering@redhat.com>
31770
31771         GNUmakefile: use the more name-space-friendly "_version"
31772         * top/GNUmakefile (_dummy): Update.
31773         (_version): Rename from "version".
31774
31775 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31776             Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31779         rpl_close.
31780         (_gl_register_fd): New function, extracted from rpl_open.
31781         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31782         (rpl_open, rpl_opendir): Use _gl_register_fd.
31783
31784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31785
31786         Fix organization of 'open' replacement.
31787         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31788         (gl_FUNC_OPEN): Use it.
31789         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31790
31791 2008-10-08  Bruno Haible  <bruno@clisp.org>
31792
31793         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31794
31795 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31796
31797         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31798         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31799         listen).
31800
31801 2008-10-08  Eric Blake  <ebb9@byu.net>
31802
31803         GNUmakefile: add 'make version' target
31804         * top/GNUmakefile (_curr-ver): Split version update rules...
31805         (version): ...into a target.
31806
31807 2008-10-07  Bruno Haible  <bruno@clisp.org>
31808
31809         Use a more portable replacement expression for -0.0L.
31810         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31811         instead of -0.0L. Fix m4 quotation.
31812
31813         * tests/test-signbit.c: Include <float.h>.
31814         (minus_zero): New variable.
31815         (test_signbitl): Use minus_zero instead of -zero.
31816         * modules/signbit-tests (Depends-on): Add float.
31817
31818         * tests/test-ceill.c: Include <float.h>.
31819         (zero): Remove variable.
31820         (minus_zero): New variable.
31821         (main): Use minus_zero instead of -zero.
31822         * modules/ceill-tests (Depends-on): Add float.
31823
31824         * tests/test-floorl.c: Include <float.h>.
31825         (zero): Remove variable.
31826         (minus_zero): New variable.
31827         (main): Use minus_zero instead of -zero.
31828         * modules/floorl-tests (Depends-on): Add float.
31829
31830         * tests/test-roundl.c: Include <float.h>.
31831         (zero): Remove variable.
31832         (minus_zero): New variable.
31833         (main): Use minus_zero instead of -zero.
31834         * modules/roundl-tests (Depends-on): Add float.
31835
31836         * tests/test-truncl.c: Include <float.h>.
31837         (zero): Remove variable.
31838         (minus_zero): New variable.
31839         (main): Use minus_zero instead of -zero.
31840         * modules/truncl-tests (Depends-on): Add float.
31841
31842         * tests/test-frexpl.c (zero): Remove variable.
31843         (minus_zero): New variable.
31844         (main): Use minus_zero instead of -zero.
31845         * modules/frexpl-tests (Depends-on): Add float.
31846
31847         * tests/test-isnan.c (zerol): Remove variable.
31848         (minus_zerol): New variable.
31849         (test_long_double): Use minus_zerol instead of -zerol.
31850         * modules/isnan-tests (Depends-on): Add float.
31851
31852         * tests/test-isnanl.h (zero): Remove variable.
31853         (minus_zero): New variable.
31854         (main): Use minus_zero instead of -zero.
31855         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31856         * modules/isnanl-tests (Depends-on): Add float.
31857
31858         * tests/test-ldexpl.c (zero): Remove variable.
31859         (minus_zero): New variable.
31860         (main): Use minus_zero instead of -zero.
31861         * modules/ldexpl-tests (Depends-on): Add float.
31862
31863         * tests/test-snprintf-posix.h (zerol): Remove variable.
31864         (minus_zerol): New variable.
31865         (test_function): Use minus_zerol instead of -zerol.
31866         * modules/snprintf-posix-tests (Depends-on): Add float.
31867         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31868
31869         * tests/test-sprintf-posix.h (zerol): Remove variable.
31870         (minus_zerol): New variable.
31871         (test_function): Use minus_zerol instead of -zerol.
31872         * modules/sprintf-posix-tests (Depends-on): Add float.
31873         * modules/vsprintf-posix-tests (Depends-on): Add float.
31874
31875         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31876         (minus_zerol): New variable.
31877         (test_function): Use minus_zerol instead of -zerol.
31878         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31879
31880         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31881         (minus_zerol): New variable.
31882         (test_function): Use minus_zerol instead of -zerol.
31883         * modules/vasprintf-posix-tests (Depends-on): Add float.
31884
31885 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31886
31887         * MODULES.html.sh (Support for building documentation): Mention
31888         pmccabe2html.  Sort entries.
31889
31890         Add pmccabe2html module, from gnupdf.
31891         * build-aux/pmccabe.css: New file.
31892         * build-aux/pmccabe2html: New file.
31893         * m4/pmccabe2html.m4: New file.
31894         * modules/pmccabe2html: New file.
31895
31896 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31897
31898         flock: new module
31899         * MODULES.html.sh: Add to list of modules.
31900         * lib/flock.c: flock implementation for Windows and Unix systems
31901         which have fcntl.
31902         * doc/glibc-functions/flock.texi: Update documentation.
31903         * lib/sys_file.in.h: <sys/file.h> header file.
31904         * m4/flock.m4: M4 macros.
31905         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31906         * modules/flock: flock module.
31907         * modules/flock-tests: flock tests module.
31908         * modules/sys_file: sys/file.h module.
31909         * tests/test-flock.c: test suite for flock.
31910
31911 2008-10-06  Jim Meyering  <meyering@redhat.com>
31912
31913         bootstrap: check for LT_INIT more portably still ;-)
31914         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31915         Spotted by Bruno Haible.
31916
31917 2008-10-06  Eric Blake  <ebb9@byu.net>
31918
31919         test-signbit: avoid tripping Irix cc bug on -0.0L
31920         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31921         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31922         entire testsuite consistent and avoids an Irix 6.2 bug.
31923
31924 2008-10-05  Bruno Haible  <bruno@clisp.org>
31925             Jim Meyering  <jim@meyering.net>
31926
31927         Add an option for ignoring EPIPE during close_stdout.
31928         * lib/closeout.h: Include <stdbool.h>.
31929         (close_stdout_set_ignore_EPIPE): New declaration.
31930         * lib/closeout.c: Include <stdbool.h>.
31931         (ignore_EPIPE): New variable.
31932         (close_stdout_set_ignore_EPIPE): New function.
31933         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
31934         * lib/close-stream.c (close_stream): Mention the possible EPIPE
31935         failure.
31936         * modules/closeout (Depends-on): Add stdbool.
31937
31938 2008-10-05  Bruno Haible  <bruno@clisp.org>
31939
31940         * modules/accept: New file.
31941         * modules/bind: New file.
31942         * modules/connect: New file.
31943         * modules/getpeername: New file.
31944         * modules/getsockname: New file.
31945         * modules/getsockopt: New file.
31946         * modules/listen: New file.
31947         * modules/recv: New file.
31948         * modules/recvfrom: New file.
31949         * modules/send: New file.
31950         * modules/sendto: New file.
31951         * modules/setsockopt: New file.
31952         * modules/socket: New file.
31953         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
31954         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31955         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
31956         the particular module is requested. Add a link warning when the
31957         particular module is not requested.
31958         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
31959         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
31960         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
31961         the particular module is requested.
31962         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
31963         gl_SYS_SOCKET_H_DEFAULTS): New macros.
31964         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
31965         * modules/sys_socket (Depends-on): Add link-warning.
31966         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
31967         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
31968         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
31969         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
31970         GL_LINK_WARNING.
31971         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
31972         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31973         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31974         * doc/posix-functions/getpeername.texi: Mention the new module
31975         'getpeername'.
31976         * doc/posix-functions/getsockname.texi: Mention the new module
31977         'getsockname'.
31978         * doc/posix-functions/getsockopt.texi: Mention the new module
31979         'getsockopt'.
31980         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31981         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31982         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31983         * doc/posix-functions/send.texi: Mention the new module 'send'.
31984         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31985         * doc/posix-functions/setsockopt.texi: Mention the new module
31986         'setsockopt'.
31987         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31988         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31989         listen, connect, accept.
31990         * modules/select-tests (Depends-on): Likewise.
31991
31992 2008-10-05  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/winsock.c (strerror): Remove unused #undef.
31995         (rpl_close): Remove unused local variable.
31996
31997         * modules/sys_socket (Depends-on); Add errno.
31998
31999 2008-10-05  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
32002         (select): Add a link warning when the 'select' module is not used.
32003         * modules/sys_select (Depends-on): Add link-warning.
32004         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
32005         Suggested by Paolo Bonzini.
32006
32007 2008-10-05  Jim Meyering  <meyering@redhat.com>
32008
32009         bootstrap: check for LT_INIT more portably
32010         * build-aux/bootstrap: Avoid using grep -E, since it's not
32011         portable enough.  Suggestion from Bruno Haible.
32012
32013 2008-10-05  Bruno Haible  <bruno@clisp.org>
32014
32015         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
32016         as being fixed by gnulib.
32017
32018 2008-10-05  Bruno Haible  <bruno@clisp.org>
32019
32020         * modules/select-tests: New file, mostly copied from
32021         modules/sys_select-tests.
32022         * tests/test-select.c: New file, mostly copied from
32023         tests/test-sys_select.c.
32024         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
32025         * modules/sys_select-tests (Depends-on): Remove all dependencies.
32026         (Makefile.am): Remove test_sys_select_LDADD.
32027
32028         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
32029         to an undefined symbol, for an error message.
32030         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
32031         (gl_SYS_SELECT_H_DEFAULTS): New macro.
32032         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
32033         winsock-select.c here.
32034         * modules/sys_select (Files): Remove lib/winsock-select.c.
32035         (Depends-on): Remove alloca.
32036         (Makefile.am): Substitute GNULIB_SELECT.
32037         * modules/select: New file.
32038         * doc/posix-functions/select.texi: Update.
32039
32040 2008-10-05  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
32043         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
32044         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
32045         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
32046         getdtablesize.
32047         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32048         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32049
32050 2008-10-05  Bruno Haible  <bruno@clisp.org>
32051
32052         * modules/getdtablesize-tests: New file.
32053         * tests/test-getdtablesize.c: New file.
32054
32055         New module 'getdtablesize'.
32056         * lib/unistd.in.h (getdtablesize): New declaration.
32057         * lib/getdtablesize.c: New file.
32058         * m4/getdtablesize.m4: New file.
32059         * modules/getdtablesize: New file.
32060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32061         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
32062         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
32063         HAVE_GETDTABLESIZE.
32064         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
32065
32066 2008-10-05  Bruno Haible  <bruno@clisp.org>
32067
32068         * modules/sched (Makefile.am): Fix typo.
32069         Reported by Simon Josefsson.
32070
32071 2008-10-05  Jim Meyering  <meyering@redhat.com>
32072
32073         bootstrap: check for LT_INIT, too
32074         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
32075         are deprecated.  Suggestion from Ralf Wildenhues.
32076
32077 2008-10-05  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
32080         overriding them by ours.
32081         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
32082
32083 2008-10-05  Jim Meyering  <meyering@redhat.com>
32084
32085         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
32086         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
32087         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
32088
32089 2008-10-04  Bruno Haible  <bruno@clisp.org>
32090
32091         * modules/dup2 (License): Change to LGPLv2+.
32092         * modules/sleep (License): Likewise.
32093         * modules/perror (License): Likewise.
32094         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
32095         Blake.
32096         * modules/signal (License): Likewise.
32097         * modules/sigprocmask (License): Likewise.
32098         * modules/raise (License): Change to LGPLv2+, with approval by Jim
32099         Meyering.
32100
32101 2008-10-04  Bruno Haible  <bruno@clisp.org>
32102
32103         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32104         Reported by Rainer Tammer <tammer@tammer.net>.
32105
32106 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32107             Bruno Haible  <bruno@clisp.org>
32108
32109         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32110         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32111         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32112
32113 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32114
32115         filevercmp: new module
32116         * lib/filevercmp.h: New function filevercmp comparing version strings.
32117         * lib/filevercmp.c: Implementation of filevercmp function.
32118         * modules/filevercmp: Module metadata.
32119         * tests/test-filevercmp.c: Unit test for new module.
32120         * modules/filevercmp-tests: Unit test metadata.
32121         * MODULES.html.sh: Add filevercmp module.
32122
32123 2008-10-03  Bruno Haible  <bruno@clisp.org>
32124
32125         * lib/c-ctype.h: Add comment.
32126         Reported by Jim Meyering.
32127
32128 2008-10-02  Bruno Haible  <bruno@clisp.org>
32129
32130         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32131
32132 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32133
32134         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32135         name of bootstrap.conf accordingly.
32136
32137 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32138
32139         * build-aux/bootstrap: Install git-merge-changelog configuration
32140         items into .gitconfig if needed.
32141
32142 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32143
32144         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32145         git repository, and initialize/update it accordingly.
32146
32147 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32148
32149         * modules/fsync-tests: New file.
32150         * tests/test-fsync.c: New file.
32151
32152         New module 'fsync'.
32153         * lib/fsync.c: New file.
32154         * m4/fsync.m4: New file.
32155         * modules/fsync: New file.
32156         * lib/unistd.in.h (fsync): New declaration.
32157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32158         GNULIB_FSYNC and HAVE_FSYNC.
32159         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32160         * MODULES.html.sh (posix_functions): Add fsync.
32161         * doc/posix-functions/fsync.texi: Mention the new module.
32162
32163 2008-10-02  Jim Meyering  <meyering@redhat.com>
32164
32165         fts.c: sync with similar code from coreutils' remove.c
32166         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32167         Guard also with "#if defined __linux__", since for now at least,
32168         this code is Linux-kernel-specific.
32169
32170 2008-10-02  Jim Meyering  <meyering@redhat.com>
32171
32172         fts: bug fixes
32173         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32174         Include <sys/vfs.h>, not <sys/statfs.h>.
32175
32176         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
32177         Include <sys/vfs.h>, not <sys/statfs.h>.
32178
32179 2008-10-01  Bruno Haible  <bruno@clisp.org>
32180
32181         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
32182         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
32183         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
32184         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
32185         * doc/posix-functions/posix_spawnp.texi: Likewise.
32186         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
32187         whether posix_spawn actually works.
32188         * m4/pipe.m4 (gl_PIPE): Likewise.
32189         * modules/execute (Files): Add m4/posix_spawn.m4.
32190         * modules/pipe (Files): Add m4/posix_spawn.m4.
32191         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
32192
32193 2008-10-01  Jim Meyering  <meyering@redhat.com>
32194
32195         remove trailing spaces
32196         * NEWS: Likewise.
32197         * lib/poll.c (poll): Likewise.
32198         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
32199         * lib/winsock.c (rpl_close): Likewise.
32200         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
32201         * modules/yield: Likewise.
32202         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
32203         * tests/test-sys_select.c (connect_to_socket): Likewise.
32204
32205         fts.c: adjust a new interface to be more generally useful
32206         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
32207         (fts_build): Adjust caller.
32208
32209 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32210
32211         * modules/cond-tests: New file.
32212         * tests/test-cond.c: New file.
32213
32214 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32215             Bruno Haible  <bruno@clisp.org>
32216
32217         * modules/cond (Dependencies): Add errno, time.
32218         * lib/glthread/cond.h: Include <time.h>.
32219         (gl_cond_define, gl_cond_define_initialized): Use the same definition
32220         across platforms.
32221
32222 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32223             Bruno Haible  <bruno@clisp.org>
32224
32225         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
32226
32227 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32228             Bruno Haible  <bruno@clisp.org>
32229
32230         * modules/tls-tests (Depends-on): Add thread, yield.
32231         (configure.ac): Remove all checks.
32232         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
32233         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32234         gl_thread_self): Remove definitions. Include glthread/thread.h and
32235         glthread/yield.h instead.
32236         (test_tls): Pass an additional NULL argument to gl_thread_join.
32237
32238 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32239             Bruno Haible  <bruno@clisp.org>
32240
32241         * modules/lock-tests (Depends-on): Add thread, yield.
32242         (configure.ac): Remove all checks.
32243         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
32244         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32245         gl_thread_self): Remove definitions. Include glthread/thread.h and
32246         glthread/yield.h instead.
32247         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
32248         additional NULL argument to gl_thread_join.
32249
32250 2008-09-30  Bruno Haible  <bruno@clisp.org>
32251
32252         Fix the Win32 implementation of the 'thread' module.
32253         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
32254         pointer type.
32255         (gl_thread_self): Invoke gl_thread_self_func.
32256         (gl_thread_self_func): New declaration.
32257         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
32258         (do_init_self_key, init_self_key): New functions.
32259         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
32260         Remove some fields.
32261         (running_threads, running_lock): Remove variables.
32262         (get_current_thread_handle): New function.
32263         (gl_thread_self_func, wrapper_func, glthread_create_func,
32264         glthread_join_func, gl_thread_exit_func): Largely rewritten and
32265         simplified.
32266
32267 2008-09-30  Bruno Haible  <bruno@clisp.org>
32268
32269         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
32270         files.
32271
32272 2008-09-30  Jim Meyering  <meyering@redhat.com>
32273
32274         fts.m4: correct the test for statfs.f_type
32275         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
32276         when checking for statfs.f_type.
32277
32278 2008-09-15  Simon Josefsson  <simon@josefsson.org>
32279
32280         tests: avoid some compiler warnings
32281         * tests/test-memchr.c (main): Pass NULL indirectly.
32282         * tests/test-getdate.c (main): Remove unused variable 'ret'.
32283
32284 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
32285
32286         getdate.y: disallow countable dayshifts like "4 yesterday ago"
32287         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
32288         exactly specified dayshifts.
32289         (dayshift): New rule.
32290         (rel): Add dayshift.
32291         (relative_time_table) [tomorrow, yesterday, today, now]:
32292         Use tDAY_SHIFT in place of tDAY_UNIT.
32293         * tests/test-getdate.c: Add tests for now-disallowed countable
32294         dayshifts, e.g., "4 yesterday ago".
32295
32296 2008-09-29  Bruno Haible  <bruno@clisp.org>
32297
32298         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
32299         * tests/test-posix_spawn1.in.sh: Renamed from
32300         tests/test-posix_spawn.in.sh.
32301         * tests/test-posix_spawn2.c: New file.
32302         * tests/test-posix_spawn2.in.sh: New file.
32303         * modules/posix_spawnp-tests (Files): Update.
32304         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
32305
32306 2008-09-29  Bruno Haible  <bruno@clisp.org>
32307
32308         Propagate effects of putenv/setenv/unsetenv to child processes.
32309         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
32310         * lib/pipe.c (create_pipe): Likewise.
32311
32312 2008-09-29  Bruno Haible  <bruno@clisp.org>
32313
32314         Enable use of shell scripts as executables in mingw.
32315         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
32316         run the program as a shell script.
32317         * lib/pipe.c (create_pipe): Likewise.
32318         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
32319         resulting array.
32320
32321 2008-09-29  Eric Blake  <ebb9@byu.net>
32322
32323         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
32324
32325 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
32326
32327         * doc/posix-functions/accept.texi: Update mingw problems.
32328         * doc/posix-functions/bind.texi: Update mingw problems.
32329         * doc/posix-functions/close.texi: Update mingw problems.
32330         * doc/posix-functions/connect.texi: Update mingw problems.
32331         * doc/posix-functions/getpeername.texi: Update mingw problems.
32332         * doc/posix-functions/getsockname.texi: Update mingw problems.
32333         * doc/posix-functions/getsockopt.texi: Update mingw problems.
32334         * doc/posix-functions/ioctl.texi: Update mingw problems.
32335         * doc/posix-functions/listen.texi: Update mingw problems.
32336         * doc/posix-functions/recv.texi: Update mingw problems.
32337         * doc/posix-functions/recvfrom.texi: Update mingw problems.
32338         * doc/posix-functions/select.texi: Update mingw problems.
32339         * doc/posix-functions/send.texi: Update mingw problems.
32340         * doc/posix-functions/sendto.texi: Update mingw problems.
32341         * doc/posix-functions/setsockopt.texi: Update mingw problems.
32342         * doc/posix-functions/socket.texi: Update mingw problems.
32343
32344 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
32345             Bruno Haible  <bruno@clisp.org>
32346
32347         * lib/sys_select.in.h: Include sys/time.h.
32348         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
32349         * modules/sys_select: Depend on sys_time.
32350         * tests/test-sys_select.c: Test that sys/select.h defines struct
32351         timeval fully.
32352
32353 2008-09-29  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
32356         * lib/sys_select.in.h: Likewise.
32357
32358 2008-09-29  Bruno Haible  <bruno@clisp.org>
32359
32360         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
32361
32362 2008-09-29  Bruno Haible  <bruno@clisp.org>
32363
32364         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
32365         Set LIBSOCKET instead of augmenting LIBS.
32366         * modules/sockets (Link): New section.
32367         * modules/sockets-tests (test_sockets_LDADD): New variable.
32368         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
32369         * modules/poll-tests (test_poll_LDADD): New variable.
32370         * NEWS: Document the change.
32371
32372 2008-09-29  Bruno Haible  <bruno@clisp.org>
32373
32374         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
32375         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
32376         ARPA_INET_H directly.
32377         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32378
32379 2008-09-28  Bruno Haible  <bruno@clisp.org>
32380
32381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
32382         from gl_HEADER_SYS_SOCKET.
32383         (gl_HEADER_SYS_SOCKET): Invoke it.
32384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32385
32386 2008-09-28  Bruno Haible  <bruno@clisp.org>
32387
32388         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
32389         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
32390         Needed on OSF/1 4.0.
32391
32392 2008-09-28  Bruno Haible  <bruno@clisp.org>
32393
32394         Override open more carefully.
32395         * lib/open.c (orig_open): New function.
32396         (rpl_open): Use orig_open instead of open.
32397         * lib/fcntl.in.h: Add special invocation convention.
32398         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
32399         (gl_FUNC_OPEN): Invoke it.
32400
32401         Override freopen more carefully.
32402         * lib/freopen.c (orig_freopen): New function.
32403         (rpl_freopen): Use orig_freopen instead of freopen.
32404         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
32405         (gl_FUNC_FREOPEN): Invoke it.
32406
32407         Override fopen more carefully.
32408         * lib/fopen.c (orig_fopen): New function.
32409         (rpl_fopen): Use orig_fopen instead of fopen.
32410         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
32411         (gl_FUNC_FOPEN): Invoke it.
32412         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
32413
32414 2008-09-28  Bruno Haible  <bruno@clisp.org>
32415
32416         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
32417         SIGPIPE.
32418
32419 2008-09-28  Bruno Haible  <bruno@clisp.org>
32420
32421         * tests/test-sigaction.c (handler, main): Disable the check whether
32422         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
32423         glibc systems with LinuxThreads.
32424
32425 2008-09-28  Bruno Haible  <bruno@clisp.org>
32426
32427         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
32428
32429         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
32430         with AIX xlc.
32431         * lib/fcntl.in.h (open): Likewise.
32432         Reported by Rainer Tammer <tammer@tammer.net>.
32433
32434 2008-09-28  Bruno Haible  <bruno@clisp.org>
32435
32436         * modules/posix_spawnp-tests: New file.
32437         * tests/test-posix_spawn.c: New file.
32438         * tests/test-posix_spawn.in.sh: New file.
32439
32440         New module 'posix_spawnp'.
32441         * modules/posix_spawnp: New file.
32442         * lib/spawnp.c: New file, from GNU libc with modifications.
32443         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
32444
32445         New module 'posix_spawn'.
32446         * modules/posix_spawn: New file.
32447         * lib/spawn.c: New file, from GNU libc with modifications.
32448         * doc/posix-functions/posix_spawn.texi: Mention the new module.
32449
32450         New module 'posix_spawnattr_destroy'.
32451         * modules/posix_spawnattr_destroy: New file.
32452         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
32453         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
32454         module.
32455
32456         New module 'posix_spawnattr_setsigmask'.
32457         * modules/posix_spawnattr_setsigmask: New file.
32458         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
32459         modifications.
32460         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
32461         new module.
32462
32463         New module 'posix_spawnattr_getsigmask'.
32464         * modules/posix_spawnattr_getsigmask: New file.
32465         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
32466         modifications.
32467         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
32468         new module.
32469
32470         New module 'posix_spawnattr_setsigdefault'.
32471         * modules/posix_spawnattr_setsigdefault: New file.
32472         * lib/spawnattr_setdefault.c: New file, from GNU libc with
32473         modifications.
32474         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
32475         new module.
32476
32477         New module 'posix_spawnattr_getsigdefault'.
32478         * modules/posix_spawnattr_getsigdefault: New file.
32479         * lib/spawnattr_getdefault.c: New file, from GNU libc with
32480         modifications.
32481         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
32482         new module.
32483
32484         New module 'posix_spawnattr_setschedpolicy'.
32485         * modules/posix_spawnattr_setschedpolicy: New file.
32486         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
32487         modifications.
32488         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
32489         new module.
32490
32491         New module 'posix_spawnattr_getschedpolicy'.
32492         * modules/posix_spawnattr_getschedpolicy: New file.
32493         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
32494         modifications.
32495         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
32496         new module.
32497
32498         New module 'posix_spawnattr_setschedparam'.
32499         * modules/posix_spawnattr_setschedparam: New file.
32500         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32501         modifications.
32502         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32503         new module.
32504
32505         New module 'posix_spawnattr_getschedparam'.
32506         * modules/posix_spawnattr_getschedparam: New file.
32507         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32508         modifications.
32509         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32510         new module.
32511
32512         New module 'posix_spawnattr_setpgroup'.
32513         * modules/posix_spawnattr_setpgroup: New file.
32514         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32515         modifications.
32516         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32517         module.
32518
32519         New module 'posix_spawnattr_getpgroup'.
32520         * modules/posix_spawnattr_getpgroup: New file.
32521         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32522         modifications.
32523         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32524         module.
32525
32526         New module 'posix_spawnattr_setflags'.
32527         * modules/posix_spawnattr_setflags: New file.
32528         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32529         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32530         module.
32531
32532         New module 'posix_spawnattr_getflags'.
32533         * modules/posix_spawnattr_getflags: New file.
32534         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32535         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32536         module.
32537
32538         New module 'posix_spawnattr_init'.
32539         * modules/posix_spawnattr_init: New file.
32540         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32541         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32542         module.
32543
32544         New module 'posix_spawn_file_actions_destroy'.
32545         * modules/posix_spawn_file_actions_destroy: New file.
32546         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32547         modifications.
32548         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32549         the new module.
32550
32551         New module 'posix_spawn_file_actions_addopen'.
32552         * modules/posix_spawn_file_actions_addopen: New file.
32553         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32554         modifications.
32555         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32556         the new module.
32557
32558         New module 'posix_spawn_file_actions_adddup2'.
32559         * modules/posix_spawn_file_actions_adddup2: New file.
32560         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32561         modifications.
32562         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32563         the new module.
32564
32565         New module 'posix_spawn_file_actions_addclose'.
32566         * modules/posix_spawn_file_actions_addclose: New file.
32567         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32568         modifications.
32569         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32570         the new module.
32571
32572         New module 'posix_spawn_file_actions_init'.
32573         * modules/posix_spawn_file_actions_init: New file.
32574         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32575         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32576         new module.
32577
32578         New module 'posix_spawn-internal'.
32579         * modules/posix_spawn-internal: New file.
32580         * lib/spawn_int.h: New file, from GNU libc with modifications.
32581         * lib/spawni.c: New file, from GNU libc with modifications.
32582         * m4/posix_spawn.m4: New file.
32583
32584         New module 'spawn'.
32585         * modules/spawn: New file.
32586         * lib/spawn.in.h: New file, from GNU libc with modifications.
32587         * m4/spawn_h.m4: New file.
32588         * doc/posix-headers/spawn.texi: Mention the new module.
32589
32590 2008-09-28  Bruno Haible  <bruno@clisp.org>
32591
32592         * modules/sched-tests: New file.
32593         * tests/test-sched.c: New file.
32594
32595         New module 'sched'.
32596         * modules/sched: New file.
32597         * lib/sched.in.h: New file.
32598         * m4/sched_h.m4: New file.
32599         * doc/posix-headers/sched.texi: Mention the new module.
32600
32601 2008-09-27  Eric Blake  <ebb9@byu.net>
32602
32603         Fix previous patch, and tweak references to $0.
32604         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32605         (func_version, func_gnulib_dir): Don't call this program
32606         gnulib-tool.
32607         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32608         with using $0 in function.
32609         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32610         (func_fatal_error): Reuse the name the user invoked us with.
32611
32612 2008-09-27  Bruno Haible  <bruno@clisp.org>
32613
32614         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32615         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32616         (gl_ICONV_H): Not here.
32617         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32618         instead of assigning ICONV_H directly.
32619
32620         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32622         WCHAR_H directly.
32623
32624 2008-09-27  Bruno Haible  <bruno@clisp.org>
32625
32626         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32627         * modules/arpa_inet (Depends-on): Add link-warning.
32628         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32629         * modules/unistd (Makefile.am): Likewise.
32630
32631 2008-09-26  Bruno Haible  <bruno@clisp.org>
32632
32633         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32634         variables.
32635         (func_version): Essentially copied from gnulib-tool.
32636         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32637         func_readlink): Copied from gnulib-tool.
32638
32639 2008-09-26  Bruno Haible  <bruno@clisp.org>
32640
32641         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32642         invoking git-version-gen.
32643
32644 2008-09-26  Bruno Haible  <bruno@clisp.org>
32645
32646         * posix-modules: Update to directory names changed on 2008-01-19.
32647         Remove commas in output before splitting into words. No more need to
32648         avoid 'ftruncate' since 2007-02-19.
32649
32650 2008-09-26  Bruno Haible  <bruno@clisp.org>
32651
32652         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32653
32654 2008-09-26  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32657         * modules/fwriteerror (Depends-on): Add errno.
32658
32659 2008-09-26  Bruno Haible  <bruno@clisp.org>
32660
32661         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32662         * tests/test-vc-list-files-cvs.sh: Likewise.
32663
32664 2008-09-26  Bruno Haible  <bruno@clisp.org>
32665
32666         * doc/posix-headers/sys_resource.texi: Reorder items.
32667
32668 2008-09-26  Jim Meyering  <meyering@redhat.com>
32669
32670         fts: tweak inode comparison function
32671         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32672         inode numbers, as documented.
32673
32674         fts: sort dirent entries on inode number before traversing
32675         This avoids a quadratic, seek-related performance penalty when
32676         operating on a directory containing many entries (measurable at 10k;
32677         3.5 hours at 2 million entries with a cold cache) on certain types
32678         of file systems, including ext3 and ext4, but not tmpfs.
32679         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32680         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32681         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32682         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32683         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32684         (fts_build): Set the stat.st_ino member from D_INO.
32685         If it is likely to be useful, sort dirent entries on inode number.
32686
32687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32688         and the struct statfs.f_type member.
32689         * modules/fts (Depends-on): Add d-ino.
32690
32691 2008-09-26  Bruno Haible  <bruno@clisp.org>
32692
32693         * modules/sigpipe-die (Depends-on): Add sigpipe.
32694
32695         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32696         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32697         and GNULIB_STDIO_H_SIGPIPE are set.
32698         * lib/stdio-write.c: New file.
32699         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32700         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32701         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32702         REPLACE_STDIO_WRITE_FUNCS.
32703         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32704         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32705         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32706         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32707         * modules/stdio (Files): Add lib/stdio-write.c.
32708         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32709         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32710         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32711         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32712         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32713         REPLACE_FPRINTF_POSIX.
32714         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32715         REPLACE_PRINTF_POSIX.
32716         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32717         REPLACE_VFPRINTF_POSIX.
32718         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32719         REPLACE_VPRINTF_POSIX.
32720         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32721         SIGPIPE issue.
32722         * doc/posix-functions/fputc.texi: Likewise.
32723         * doc/posix-functions/fputs.texi: Likewise.
32724         * doc/posix-functions/fwrite.texi: Likewise.
32725         * doc/posix-functions/printf.texi: Likewise.
32726         * doc/posix-functions/putc.texi: Likewise.
32727         * doc/posix-functions/putchar.texi: Likewise.
32728         * doc/posix-functions/puts.texi: Likewise.
32729         * doc/posix-functions/vfprintf.texi: Likewise.
32730         * doc/posix-functions/vprintf.texi: Likewise.
32731
32732         * modules/safe-write (Depends-on): Add write.
32733
32734         * modules/sigpipe-tests: New file.
32735         * tests/test-sigpipe.c: New file.
32736         * tests/test-sigpipe.sh: New file.
32737
32738         * modules/write: New file.
32739         * lib/unistd.in.h: Include <sys/types.h>.
32740         (write): New declaration.
32741         * lib/write.c: New file.
32742         * m4/write.m4: New file.
32743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32744         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32745         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32746         GNULIB_WRITE, REPLACE_WRITE.
32747         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32748         and the SIGPIPE issue.
32749
32750         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32751         (raise): New declaration.
32752         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32753         (ext_signal): New function.
32754         (rpl_raise): New function.
32755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32756         GNULIB_SIGNAL_H_SIGPIPE.
32757         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32758         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32759
32760         * modules/sigpipe: New file.
32761         * m4/sigpipe.m4: New file.
32762
32763 2008-09-25  Derek Price  <derek@ximbiot.com>
32764             Bruno Haible  <bruno@clisp.org>
32765
32766         * gnulib-tool (func_import): Report all license incompatibilities, not
32767         just the first one.
32768
32769 2008-09-25  Bruno Haible  <bruno@clisp.org>
32770
32771         * gnulib-tool (func_import): When computing the edits, consider not
32772         only the Makefile.ams that exist but also those that will be generated.
32773
32774 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32775
32776         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32777         fixes gnulib-tool --test warning about duplicate dependency.
32778
32779 2008-09-25  Bruno Haible  <bruno@clisp.org>
32780
32781         * gnulib-tool: Don't ask the user to perform edits in the generated
32782         Makefile.ams.
32783         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32784         apply to the Makefile.am being generated.
32785         (func_emit_tests_Makefile_am): Execute edits that apply to the
32786         Makefile.am being generated.
32787         (func_import): Setup list of Makefile.am edits before emitting the
32788         Makefile.ams, not at the end.
32789         (func_create_testdir): Update.
32790         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32791
32792 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32793
32794         * gnulib-tool (func_import): Store the --tests-base option in the
32795         comment in gnulib-cache.m4.
32796
32797 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32798
32799         * NEWS: Document increased portability that sys_select now provides.
32800
32801         * lib/sys_select.in.h: Install select wrapper.
32802         * lib/sys_socket.in.h: Use more descriptive name when there is no
32803         select wrapper.
32804         * lib/winsock-select.c: New.
32805         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32806         Require gl_HEADER_SYS_SOCKET.
32807         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32808         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32809         * tests/test-sys_select.c: Add functional tests.
32810
32811 2008-09-24  Eric Blake  <ebb9@byu.net>
32812
32813         open, fopen: close fd leak in last patch
32814         * lib/open.c (rpl_open): Close fd before returning error.
32815         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32816         * doc/posix-functions/open.texi (open): Document that Irix also
32817         has the bug.
32818         * doc/posix-functions/fopen.texi (fopen): Likewise.
32819         Reported by Paolo Bonzini.
32820
32821 2008-09-24  Bruno Haible  <bruno@clisp.org>
32822
32823         Ensure that a filename ending in a slash cannot be used to access a
32824         non-directory.
32825         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32826         to check whether it's really a directory.
32827         * lib/fopen.c: Include fcntl.h, unistd.h.
32828         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32829         and fdopen().
32830         * modules/fopen (Depends-on): Add unistd.
32831         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32832         * tests/test-fopen.c (main): Likewise.
32833         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32834         * doc/posix-functions/fopen.texi: Likewise.
32835         Reported by Eric Blake.
32836
32837 2008-09-23  Eric Blake  <ebb9@byu.net>
32838
32839         c-stack: avoid compiler optimizations when provoking overflow
32840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32841         recursion harder to optimize, to ensure a stack overflow occurs.
32842         * tests/test-c-stack.c (recurse): Likewise.
32843         Borrowed from libsigsegv.
32844
32845         c-stack: work around Irix sigaltstack bug
32846         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32847         whether sigaltstack uses wrong end of stack_t (copied in part from
32848         libsigsegv).
32849         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32850         Irix bug, without requiring an over-allocation.
32851         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32852         bug.
32853
32854         fopen: document mingw bug on directories
32855         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32856         not allowing a stream visiting a directory, even though reading
32857         from such a stream is not portable.
32858
32859 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32860
32861         * lib/poll.c: Rewrite.
32862         * modules/poll: Depend on alloca.
32863
32864 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32865
32866         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32867         instead define prototypes for a full set of wrappers.  Ensure
32868         that Cygwin does not use the compatibility code, which is only
32869         for MinGW.
32870         * lib/winsock.c: New.
32871         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32872         * modules/sys_socket: Add lib/winsock.c.
32873
32874         * modules/poll-tests: Add errno and perror.
32875         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32876
32877 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32878
32879         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32880
32881 2008-09-23  Bruno Haible  <bruno@clisp.org>
32882
32883         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32884         * doc/glibc-functions/*: Likewise.
32885
32886 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32887
32888         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32889         success.
32890
32891 2008-09-22  Eric Blake  <ebb9@byu.net>
32892             Bruno Haible  <bruno@clisp.org>
32893
32894         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32895         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32896         supply %A but mishandle pseudo-NaN.
32897         Reported by Simon Josefsson.
32898
32899 2008-09-21  Bruno Haible  <bruno@clisp.org>
32900
32901         * tests/test-lock.c (main): Tweak skip message.
32902         * tests/test-tls.c (main): Likewise.
32903
32904 2008-09-21  Bruno Haible  <bruno@clisp.org>
32905
32906         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32907         whether 'struct sigaction' has sa_sigaction here...
32908         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32909         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32910
32911 2008-09-21  Bruno Haible  <bruno@clisp.org>
32912
32913         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32914         section.
32915         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32916         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32917         the new section.
32918         (Support for obsolete systems lacking POSIX:2001): New section.
32919         (String handling <string.h>): Move strdup to the new section.
32920         Suggested by Simon Josefsson and Paolo Bonzini.
32921
32922 2008-09-21  Bruno Haible  <bruno@clisp.org>
32923
32924         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32925         exponents in %e and %g results on 'long double'. Needed for mingw's
32926         improved *printf functions.
32927         * tests/test-vasprintf-posix.c (test_function): Likewise.
32928         * tests/test-snprintf-posix.h (test_function): Likewise.
32929         * tests/test-sprintf-posix.h (test_function): Likewise.
32930         Reported by Eric Blake.
32931
32932 2008-09-21  Bruno Haible  <bruno@clisp.org>
32933
32934         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
32935         * tests/test-sprintf-posix.h (test_function): Likewise.
32936
32937 2008-09-21  Bruno Haible  <bruno@clisp.org>
32938
32939         * modules/getpass (Depends-on): Add strdup-posix.
32940
32941         New module 'strdup-posix'.
32942         * modules/strdup-posix: New file.
32943         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
32944         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
32945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32946         REPLACE_STRDUP.
32947         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
32948         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
32949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32950         strdup-posix.
32951
32952         * modules/strdup (Depends-on): Remove malloc-posix.
32953
32954 2008-09-20  Bruno Haible  <bruno@clisp.org>
32955
32956         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
32957         Wildenhues.
32958
32959 2008-09-20  Bruno Haible  <bruno@clisp.org>
32960
32961         Ensure that wint_t gets defined on IRIX 5.3.
32962         * lib/wchar.in.h (wint_t): Define if not defined by the system.
32963         * lib/wctype.in.h (wint_t): Likewise.
32964         (__wctype_wint_t): Remove type.
32965         (isw*): Use wint_t instead of __wctype_wint_t.
32966         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
32967         * modules/wchar (Files): Add m4/wint_t.m4.
32968         (Makefile.am): Substitute HAVE_WINT_T.
32969         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
32970         * tests/test-wctype.c: Check that wint_t is defined.
32971         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
32972         * doc/posix-headers/wctype.texi: Likewise.
32973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32974
32975 2008-09-18  Bruno Haible  <bruno@clisp.org>
32976
32977         * gnulib-tool (func_exit): Update comment.
32978
32979 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32980
32981         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32982         assumes strdup exists and does not depend on strdup to return
32983         ENOMEM on out of memory conditions.
32984
32985 2008-09-18  Bruno Haible  <bruno@clisp.org>
32986
32987         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
32988         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32989         digits for the exponent.
32990
32991 2008-09-18  Jim Meyering  <meyering@redhat.com>
32992             Bruno Haible  <bruno@clisp.org>
32993
32994         * lib/vasnprintf.c (decimal_point_char): Define also if
32995         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32996
32997 2008-09-16  Bruno Haible  <bruno@clisp.org>
32998         and Eric Blake  <ebb9@byu.net>
32999
33000         vasnprintf: support Irix 5.3
33001         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
33002         that mishandle long double infinity.
33003         Reported by Tom G. Christensen.
33004
33005 2008-09-16  Bruno Haible  <bruno@clisp.org>
33006
33007         * doc/glibc-functions/scandir.texi: Mention the function is missing on
33008         Solaris 9.
33009         * doc/glibc-functions/alphasort.texi: Likewise.
33010         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
33011
33012 2008-09-16  Jim Meyering  <meyering@redhat.com>
33013
33014         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
33015         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
33016         a umask modification leak out of a subshell.  Otherwise, the
33017         opensolaris /bin/sh would be accepted and thus cause unwarranted
33018         failures in the coreutils test suite.
33019
33020 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
33021
33022         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
33023         to succeed.
33024
33025 2008-09-16  Jim Meyering  <meyering@redhat.com>
33026
33027         avoid spurious test failure when library is built without ACL support
33028         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
33029         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
33030         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
33031         * tests/test-copy-acl.sh: Likewise.
33032
33033 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33034
33035         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
33036         based on character occurrence counts.
33037
33038 2008-09-15  Eric Blake  <ebb9@byu.net>
33039
33040         tests: avoid some compiler warnings
33041         * tests/test-memchr.c (main): Pass NULL indirectly.
33042         * tests/test-closein.c (main): Avoid unused variable.
33043
33044 2008-09-15  Bruno Haible  <bruno@clisp.org>
33045
33046         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
33047         are missing on OpenBSD 4.0 individually.
33048         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33049
33050 2008-09-15  Bruno Haible  <bruno@clisp.org>
33051
33052         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
33053         * doc/posix-functions/strerror.texi: Mention also Cygwin.
33054         * doc/posix-functions/perror.texi: Likewise.
33055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
33056         is missing.
33057         Reported by Eric Blake.
33058
33059         * lib/errno.in.h: Use replacement values >= 2000.
33060         Reported by Eric Blake.
33061
33062 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33063
33064         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
33065         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
33066         limit.
33067         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
33068         compareseq was aborted.
33069
33070 2008-09-14  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
33073         yvec_edit_count.
33074         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
33075         (fstrcmp_bounded): Simplify result computation accordingly.
33076
33077 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33078
33079         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
33080         (fstrcmp): Define in terms of fstrcmp_bounded.
33081         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
33082         lower_bound argument.
33083         Return quickly if the result is certainly < lower_bound.
33084         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
33085
33086 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33087
33088         * lib/diffseq.h (EARLY_ABORT): New macro.
33089         (compareseq): Change return type to bool. Return true when EARLY_ABORT
33090         evaluates to true.
33091
33092 2008-09-14  Bruno Haible  <bruno@clisp.org>
33093
33094         * modules/perror-tests: New file.
33095         * tests/test-perror.sh: New file.
33096         * tests/test-perror.c: New file.
33097
33098         New module 'perror'.
33099         * lib/stdio.in.h (perror): New declaration.
33100         * lib/perror.c: New file.
33101         * m4/perror.m4: New file.
33102         * modules/perror: New file.
33103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33104         * doc/posix-functions/perror.texi: Mention the perror module.
33105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33106         REPLACE_PERROR.
33107         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33108         REPLACE_PERROR.
33109
33110 2008-09-14  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/stdio (Makefile.am): Reorder to match the order in
33113         lib/stdio.in.h.
33114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33115
33116 2008-09-13  Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33119
33120 2008-09-13  Bruno Haible  <bruno@clisp.org>
33121
33122         Extend strerror to cover the added errno values.
33123         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33124         (rpl_strerror): Provide error messages for the added errno values and
33125         for the WSA* values.
33126         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33127         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33128         strerror.
33129         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33130         * modules/strerror (Depends-on): Add errno.
33131         * doc/posix-functions/strerror.texi: Document the change.
33132         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33133         and EOVERFLOW.
33134
33135 2008-09-13  Bruno Haible  <bruno@clisp.org>
33136
33137         * modules/EOVERFLOW: Remove file.
33138         * m4/eoverflow.m4: Remove file.
33139         * modules/EOVERFLOW-tests: Remove file.
33140         * tests/test-EOVERFLOW.c: Remove file.
33141         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33142         * modules/ftell (Depends-on): Likewise.
33143         * modules/getdelim (Depends-on): Likewise.
33144         * modules/getugroups (Depends-on): Likewise.
33145         * modules/poll (Depends-on): Likewise.
33146         * modules/snprintf (Depends-on): Likewise.
33147         * modules/sprintf-posix (Depends-on): Likewise.
33148         * modules/vasnprintf (Depends-on): Likewise.
33149         * modules/vasprintf (Depends-on): Likewise.
33150         * modules/vfprintf-posix (Depends-on): Likewise.
33151         * modules/vsnprintf (Depends-on): Likewise.
33152         * modules/vsprintf-posix (Depends-on): Likewise.
33153         * modules/xvasprintf (Depends-on): Likewise.
33154         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33155         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33156         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33157         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33158         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33159         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33160         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33161         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33162         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33163         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33164         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33165         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33166         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33167         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33168         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33169         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33170         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33171         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33172         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33173         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33174         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33175         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33176         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
33177         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
33178         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
33179         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33180         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
33181         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
33182         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
33183         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
33184         * MODULES.html.sh: Remove EOVERFLOW.
33185         * NEWS: Mention the change.
33186
33187 2008-09-13  Bruno Haible  <bruno@clisp.org>
33188
33189         * modules/errno-tests: New file.
33190         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
33191
33192         * lib/errno.in.h: New file.
33193         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
33194         * modules/errno: New file.
33195         * doc/posix-headers/errno.texi: Update documentation.
33196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
33197
33198 2008-09-13  Bruno Haible  <bruno@clisp.org>
33199
33200         * tests/test-poll.c: Use #if for native Windows, rather than testing
33201         __MSVCRT__.
33202
33203 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33204             Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/glob.c: Don't include <pwd.h> on native Windows.
33207         (WINDOWS32): New macro.
33208         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
33209
33210 2008-09-13  Bruno Haible  <bruno@clisp.org>
33211
33212         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
33213         (ETIMEDOUT): Remove macro.
33214         (glthread_cond_timedwait_multithreaded): New declaration.
33215         (glthread_cond_timedwait): Use it.
33216         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
33217         (glthread_cond_timedwait_multithreaded): New function.
33218
33219 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33220
33221         * modules/poll-tests: Do not check for io.h.
33222         * tests/test-poll.c: Check for __MSVCRT__ instead.
33223
33224 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33225
33226         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
33227         * modules/poll-tests: Add inet_pton, stdbool, sockets.
33228         * tests/test-poll.c: Use them.  Use _pipe on Windows.
33229
33230 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33231
33232         * modules/poll-tests: New.
33233         * tests/test-poll.c: New.
33234
33235 2008-09-12  Eric Blake  <ebb9@byu.net>
33236
33237         frexp: test for NetBSD failure on -0.0
33238         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
33239         not all, bugs from NetBSD 3.0 have been fixed.
33240         * doc/posix-functions/frexp.texi (frexp): Document bug.
33241         Reported by Thomas Klausner.
33242
33243         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
33244         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
33245         literal -0.0.
33246         Reported by Jonathan C. Patschke <jp@centtech.com>.
33247
33248 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33249
33250         * lib/glthread/cond.h: Use dummy implementation also if
33251         USE_WIN32_THREADS.
33252
33253 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33254
33255         * modules/fnmatch-posix (License): Change to LGPLv2+.
33256         * modules/fnmatch-gnu (License): Likewise.
33257
33258 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33259
33260         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
33261
33262 2008-09-11  Jim Meyering  <meyering@redhat.com>
33263
33264         * users.txt: Add gtk-vnc.
33265
33266 2008-09-08  Simon Josefsson  <simon@josefsson.org>
33267
33268         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
33269         rotate amounts.
33270
33271         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
33272         required for 16-bit and 8-bit rotates.
33273         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
33274         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
33275         UINT8_MAX instead of hard-coded constants.
33276         Suggested by Paul Eggert.
33277
33278 2008-09-07  Bruno Haible  <bruno@clisp.org>
33279
33280         * tests/test-striconveh.c (main): Check behaviour when converting from
33281         UTF-7.
33282
33283         Make striconveh work better with stateful encodings.
33284         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
33285         that iconv does not increment the inptr when returning -1/EINVAL.
33286
33287 2008-09-07  Bruno Haible  <bruno@clisp.org>
33288
33289         * build-aux/config.rpath: Update according to libtool-2.2.6.
33290         * build-aux/config.libpath: Likewise.
33291
33292 2008-09-06  Bruno Haible  <bruno@clisp.org>
33293
33294         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
33295         * lib/freadptr.c (freadptr): Likewise.
33296         * lib/freadseek.c (freadptrinc): Likewise.
33297         Reported by Simon Josefsson.
33298
33299 2008-09-06  Bruno Haible  <bruno@clisp.org>
33300
33301         * modules/freadptr (License): Change to LGPLv2+.
33302         * modules/freadseek (License): Likewise.
33303         Suggested by Eric Blake.
33304
33305         * modules/memchr2 (License): Change to LGPLv2+.
33306         Approved by Eric Blake.
33307
33308 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33309             Bruno Haible  <bruno@clisp.org>
33310
33311         Make gnulib-tool work with native 'sed' on AIX.
33312         * gnulib-tool (sed_noop): New variable.
33313         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
33314         func_add_or_update, func_create_testdir): Use it to initialize sed
33315         script variables.
33316         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33317
33318 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
33319             Bruno Haible  <bruno@clisp.org>
33320
33321         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
33322         also works after #include directives.
33323
33324 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
33325
33326         getdate.y: reject an out-of-range timezone value
33327         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
33328         the range [-24...+24].  When specified with only one or two digits,
33329         * tests/test-getdate.c: Tests for the fix.
33330         * doc/getdate.texi: Document this change.
33331
33332 2008-09-03  Bruno Haible  <bruno@clisp.org>
33333
33334         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
33335
33336 2008-09-02  Simon Josefsson  <simon@josefsson.org>
33337
33338         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
33339         <bruce.korb@gmail.com> with ideas from Ben Pfaff
33340         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
33341         Blake <ebb9@byu.net>.
33342
33343         * tests/test-bitrotate.c: Add more test vectors.
33344
33345 2008-09-02  Eric Blake  <ebb9@byu.net>
33346
33347         vasnprintf-posix: handle large precision via %.*d
33348         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
33349         when handling it ourselves.
33350         * tests/test-vasnprintf-posix.c (test_function): Add test.
33351         * tests/test-snprintf-posix.h (test_function): Likewise.
33352         * tests/test-sprintf-posix.h (test_function): Likewise.
33353         * tests/test-vasprintf-posix.c (test_function): Likewise.
33354         Reported by Alain Guibert.
33355
33356 2008-09-01  Eric Blake  <ebb9@byu.net>
33357
33358         c-stack: make configure-time check more robust
33359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
33360         successful sigaction call.
33361         Reported by Tom G. Christensen.
33362
33363 2008-09-01  Bruno Haible  <bruno@clisp.org>
33364
33365         New module 'findprog-lgpl'.
33366         * modules/findprog-lgpl: New file.
33367         * lib/findprog-lgpl.c: New file.
33368         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
33369         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
33370         to decide whether to use strdup or xstrdup, concatenated_filename or
33371         xconcatenated_filename.
33372
33373 2008-09-01  Bruno Haible  <bruno@clisp.org>
33374
33375         Split module 'concat-filename' into 'concat-filename' (LGPL) and
33376         'xconcat-filename' (GPL).
33377         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
33378         (License): Change to LGPLv2+.
33379         * modules/xconcat-filename: New file.
33380         * lib/concat-filename.h (concatenated_filename): Change specification.
33381         (xconcatenated_filename): New declaration.
33382         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
33383         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
33384         memory situations.
33385         * lib/xconcat-filename.c: New file.
33386         * NEWS: Mention the change.
33387         * lib/findprog.c: Include concat-filename.h, not filename.h.
33388         (find_in_path): Use xconcatenated_filename instead of
33389         concatenated_filename.
33390         * lib/javacomp.c: Include concat-filename.h, not filename.h.
33391         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33392         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33393         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33394         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
33395         instead of concatenated_filename.
33396         * lib/javaexec.c: Include concat-filename.h, not filename.h.
33397         (execute_java_class): Use xconcatenated_filename instead of
33398         concatenated_filename.
33399         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
33400         * modules/javacomp (Depends-on): Likewise.
33401         * modules/javaexec (Depends-on): Likewise.
33402
33403 2008-09-01  Bruno Haible  <bruno@clisp.org>
33404
33405         Split module 'filename' into 'filename' and 'concat-filename'.
33406         * modules/filename: Keep only lib/filename.h.
33407         (License): Change to LGPLv2+.
33408         * modules/concat-filename: New file, extracted from modules/filename.
33409         * lib/filename.h (concatenated_filename): Remove declaration.
33410         * lib/concat-filename.h: New file, extracted from lib/filename.h.
33411         * lib/concat-filename.c: Include concat-filename.h.
33412         * NEWS: Mention the change.
33413
33414 2008-09-01  Simon Josefsson  <simon@josefsson.org>
33415
33416         * lib/bitrotate.h (rotl8, rotr8): Add.
33417
33418         * modules/bitrotate (configure.ac): Need
33419         AC_REQUIRE([AC_C_INLINE]).
33420         (Description): Mention stdint.h.  Reported by Bruno Haible
33421         <bruno@clisp.org>.
33422
33423         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
33424         Paolo Bonzini <bonzini@gnu.org>.
33425
33426 2008-08-31  Bruno Haible  <bruno@clisp.org>
33427
33428         Assume Solaris specific bi-arch conventions on Solaris systems.
33429         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
33430         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
33431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
33432         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
33433         like acl_libdirstem.
33434         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
33435         acl_libdirstem.
33436         * NEWS: Mention the change.
33437         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
33438
33439 2008-08-31  Jim Meyering  <meyering@redhat.com>
33440
33441         * lib/strftime.h: Add comments describing the two added arguments.
33442
33443         remove duplicate #include directives
33444         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
33445         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
33446
33447 2008-08-31  Bruno Haible  <bruno@clisp.org>
33448
33449         New module 'sigpipe-die'.
33450         * modules/sigpipe-die: New file.
33451         * lib/sigpipe-die.h: New file.
33452         * lib/sigpipe-die.c: New file.
33453         * MODULES.html.sh (Signal handling): Add sigpipe-die.
33454
33455 2008-08-31  Bruno Haible  <bruno@clisp.org>
33456
33457         Don't override previously installed signal handlers.
33458         * lib/fatal-signal.c (saved_sigactions): New variable.
33459         (uninstall_handlers): Reset the signal to the saved handler, not
33460         to SIG_DFL (except when ignored).
33461         (install_handlers): Save the previous handlers.
33462
33463 2008-08-30  Bruno Haible  <bruno@clisp.org>
33464
33465         * gnulib-tool (func_reset_sigpipe): New function.
33466         (func_get_automake_snippet, func_modules_transitive_closure,
33467         func_import): Invoke it before a join command that reads from stdin,
33468         to avoid "echo: write error: Broken pipe" error messages on stderr.
33469         Reported by Sam Steingold <sds@gnu.org>.
33470
33471 2008-08-30  Bruno Haible  <bruno@clisp.org>
33472
33473         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
33474         Code copied from m4/open.m4.
33475         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
33476         access and the filename ends in a slash. Code copied from lib/open.c.
33477         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
33478         * tests/test-fopen.c (main): Check against bug with trailing slash.
33479
33480 2008-08-29  Bruno Haible  <bruno@clisp.org>
33481
33482         Avoid some "gcc -pedantic" warnings.
33483         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
33484         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
33485         * lib/dirent.in.h: Likewise.
33486         * lib/fcntl.in.h: Likewise.
33487         * lib/float.in.h: Likewise.
33488         * lib/iconv.in.h: Likewise.
33489         * lib/inttypes.in.h: Likewise.
33490         * lib/locale.in.h: Likewise.
33491         * lib/math.in.h: Likewise.
33492         * lib/netinet_in.in.h: Likewise.
33493         * lib/search.in.h: Likewise.
33494         * lib/signal.in.h: Likewise.
33495         * lib/stdarg.in.h: Likewise.
33496         * lib/stdint.in.h: Likewise.
33497         * lib/stdio.in.h: Likewise.
33498         * lib/stdlib.in.h: Likewise.
33499         * lib/string.in.h: Likewise.
33500         * lib/strings.in.h: Likewise.
33501         * lib/sys_select.in.h: Likewise.
33502         * lib/sys_socket.in.h: Likewise.
33503         * lib/sys_stat.in.h: Likewise.
33504         * lib/sys_time.in.h: Likewise.
33505         * lib/sysexits.in.h: Likewise.
33506         * lib/time.in.h: Likewise.
33507         * lib/unistd.in.h: Likewise.
33508         * lib/wchar.in.h: Likewise.
33509         * lib/wctype.in.h: Likewise.
33510         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33511         * modules/fchdir (Makefile.am): Likewise.
33512         * modules/fcntl (Makefile.am): Likewise.
33513         * modules/float (Makefile.am): Likewise.
33514         * modules/iconv_open (Makefile.am): Likewise.
33515         * modules/inttypes (Makefile.am): Likewise.
33516         * modules/locale (Makefile.am): Likewise.
33517         * modules/math (Makefile.am): Likewise.
33518         * modules/netinet_in (Makefile.am): Likewise.
33519         * modules/search (Makefile.am): Likewise.
33520         * modules/signal (Makefile.am): Likewise.
33521         * modules/stdarg (Makefile.am): Likewise.
33522         * modules/stdint (Makefile.am): Likewise.
33523         * modules/stdio (Makefile.am): Likewise.
33524         * modules/stdlib (Makefile.am): Likewise.
33525         * modules/string (Makefile.am): Likewise.
33526         * modules/strings (Makefile.am): Likewise.
33527         * modules/sys_select (Makefile.am): Likewise.
33528         * modules/sys_socket (Makefile.am): Likewise.
33529         * modules/sys_stat (Makefile.am): Likewise.
33530         * modules/sys_time (Makefile.am): Likewise.
33531         * modules/sysexits (Makefile.am): Likewise.
33532         * modules/time (Makefile.am): Likewise.
33533         * modules/unistd (Makefile.am): Likewise.
33534         * modules/wchar (Makefile.am): Likewise.
33535         * modules/wctype (Makefile.am): Likewise.
33536         Reported by Reuben Thomas <rrt@sc3d.org>.
33537
33538 2008-08-29  Bruno Haible  <bruno@clisp.org>
33539
33540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33541         any more.
33542
33543 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33544
33545         * MODULES.html.sh (Misc): Add bitrotate.
33546
33547         * modules/bitrotate: New file.
33548
33549         * lib/bitrotate.h: New file.
33550
33551         * modules/bitrotate-tests: New file.
33552
33553         * tests/test-bitrotate.c: New file.
33554
33555         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33556         on the bitrotate module.
33557
33558         * lib/arctwo.c: Use new bitrotate module.
33559
33560 2008-08-29  Jim Meyering  <meyering@redhat.com>
33561
33562         bootstrap: merge changes from coreutils
33563         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33564         of copied files.  Remove a kludge, now that this is fixed.
33565         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33566         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33567         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33568
33569 2008-08-29  Bruno Haible  <bruno@clisp.org>
33570
33571         * MODULES.html.sh: Remove --cvs-urls option.
33572
33573 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33574
33575         maint.mk: adjust to file name change
33576         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33577
33578 2008-08-28  Jim Meyering  <meyering@redhat.com>
33579
33580         * modules/getndelim2 (License): Relicense to LGPLv2+.
33581         Approved by Richard Stallman for the version of 1995, and by
33582         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33583
33584 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33585
33586         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33587         dummy if one is not available.  Do not touch them if
33588         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33589         (getc_maybe_unlocked): New.
33590         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33591
33592 2008-08-26  Eric Blake  <ebb9@byu.net>
33593
33594         doc/INSTALL: resync from autoconf
33595         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33596         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33597         moving...
33598         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33599         * INSTALL: Regenerate.
33600         * INSTALL.ISO: New file.
33601         * INSTALL.UTF-8: Likewise.
33602
33603 2008-08-26  Jim Meyering  <meyering@redhat.com>
33604
33605         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33606         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33607         these definitions conditional, so that they may be overridden, too.
33608
33609 2008-08-26  Bruno Haible  <bruno@clisp.org>
33610
33611         Generate INSTALL file variants with prettier quotes.
33612         * doc/Makefile (INSTALL_PRELUDE): New macro.
33613         (INSTALL): Use it.
33614         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33615
33616 2008-08-26  Bruno Haible  <bruno@clisp.org>
33617
33618         Run makeinfo in an English locale.
33619         * doc/Makefile (MAKEINFO): New variable.
33620
33621 2008-08-26  Bruno Haible  <bruno@clisp.org>
33622
33623         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33624         Suggested by Eric Blake.
33625
33626 2008-08-25  Bruno Haible  <bruno@clisp.org>
33627
33628         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33629
33630 2008-08-25  Eric Blake  <ebb9@byu.net>
33631
33632         c-stack: test that stack overflow can be caught
33633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33634         that platform allows handling stack overflow; at least OS/2 EMX
33635         has sigaltstack, but crashes before transferring control to
33636         handler on stack overflow.
33637         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33638         check for HAVE_STACK_OVERFLOW_HANDLING.
33639         Reported by Elbert Pol.
33640
33641 2008-08-25  Bruno Haible  <bruno@clisp.org>
33642
33643         * doc/posix-functions/strftime.texi: Fix description of strftime
33644         module.
33645
33646 2008-08-24  Bruno Haible  <bruno@clisp.org>
33647
33648         * tests/uniwidth/test-uc_width2.c: New file.
33649         * tests/uniwidth/test-uc_width2.sh: New file.
33650         * modules/uniwidth/width-tests (Files): Add the new files.
33651         (TESTS): Add uniwidth/test-uc_width2.sh.
33652         (TESTS_ENVIRONMENT): New variable.
33653         (check_PROGRAMS): Add test-uc_width2.
33654         (test_uc_width2_SOURCES): New variable.
33655
33656         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33657         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33658         not 0x00AB.
33659         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33660
33661 2008-08-22  Eric Blake  <ebb9@byu.net>
33662
33663         test-lock, test-tls: mention why a test is skipped
33664         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33665         skipped.
33666         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33667
33668         count-one-bits: relax license
33669         * modules/count-one-bits (License): Relicense to LGPLv2+.
33670         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33671
33672 2008-08-22  Andreas Schwab  <schwab@suse.de>
33673
33674         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33675         Remove spurious space in assignment.
33676
33677 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33678
33679         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33680         Paul Eggert <eggert@CS.UCLA.EDU>.
33681
33682 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33683
33684         * modules/gettext: Add m4/threadlib.m4.
33685
33686 2008-08-19  Eric Blake  <ebb9@byu.net>
33687
33688         test-c-stack: fix compilation failure on FreeBSD 5.0
33689         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33690         headers before <sys/resource.h>.
33691         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33692         the bug.
33693         Reported by Nelson H. F. Beebe.
33694
33695         strverscmp: migrate from "strverscmp.h" to <string.h>
33696         * modules/string (Makefile.am): Add new hooks.
33697         * modules/strverscmp (Files): Remove strverscmp.h.
33698         (Depends-on): Add string.
33699         (configure.ac): Add indicator.
33700         (Include): Mention new header.
33701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33702         defaults.
33703         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33704         results.
33705         * lib/strverscmp.h: Delete.
33706         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33707         * tests/test-strverscmp.c (includes): Adjust client.
33708         * lib/check-version.c (includes): Likewise.
33709         * NEWS: Document the change.
33710
33711         strverscmp: add unit test
33712         * modules/strverscmp-tests: New file.
33713         * tests/test-strverscmp.c: Likewise.
33714
33715 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33716
33717         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33718         regarding Windows crypto stuff, from Mono.
33719
33720 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33721
33722         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33723         if present, for intel RND.  Return error on failures.
33724
33725 2008-08-18  Ben Pfaff  <blp@gnu.org>
33726
33727         gitlog-to-changelog: give better diagnostic for failed pipe-open
33728         * build-aux/gitlog-to-changelog: Improve error message: suggest
33729         that the version of Git may be too old.
33730
33731 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33732
33733         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33734         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33735
33736 2008-08-18  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33739         pthread_in_use().
33740
33741 2008-08-18  Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/glthread/threadlib.c: Include <pthread.h>.
33744
33745 2008-08-18  Bruno Haible  <bruno@clisp.org>
33746
33747         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33748         glthread_recursive_lock_* macros.
33749         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33750         Fix syntax error.
33751
33752 2008-08-18  Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/glthread/thread.c: Avoid forcing a context switch right after
33755         thread creation.
33756
33757 2008-08-17  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33760         * lib/glthread/thread.h: Provide Win32 specific implementation.
33761         * modules/thread (Files): Add lib/glthread/thread.c.
33762         (Depends-on): Add lock.
33763         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33764
33765 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33766
33767         New module 'yield'.
33768         * modules/yield: New file.
33769         * lib/glthread/yield.h: New file.
33770         * m4/yield.m4: New file.
33771         * MODULES.html.sh (Multithreading): Add yield.
33772
33773 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33774
33775         New module 'thread'.
33776         * modules/thread: New file.
33777         * lib/glthread/thread.h: New file.
33778         * m4/thread.m4: New file.
33779         * MODULES.html.sh (Multithreading): Add thread.
33780
33781 2008-08-17  Bruno Haible  <bruno@clisp.org>
33782
33783         * lib/glthread/lock.h: Include <stdlib.h> always.
33784         * lib/glthread/tls.h: Likewise.
33785         * lib/glthread/cond.h: Likewise.
33786
33787 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33788
33789         New module 'cond'.
33790         * modules/cond: New file.
33791         * lib/glthread/cond.h: New file.
33792         * lib/glthread/cond.c: New file.
33793         * m4/cond.m4: New file.
33794         * MODULES.html.sh (Multithreading): Add cond.
33795
33796 2008-08-16  Eric Blake  <ebb9@byu.net>
33797
33798         c-stack: fix regression on Irix 5.3 from 2008-06-21
33799         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33800         sa_sigaction...
33801         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33802         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33803         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33804         * modules/signal (Makefile.am): Use the value.
33805         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33806         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33807         * doc/posix-headers/signal.texi (signal.h): Document this
33808         portability issue.
33809         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33810         Reported by Tom G. Christensen.
33811
33812 2008-08-17  Bruno Haible  <bruno@clisp.org>
33813
33814         New module 'threadlib'.
33815         * modules/threadlib: New file.
33816         * lib/glthread/threadlib.c: New file, extracted from
33817         lib/glthread/lock.c.
33818         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33819         functions.
33820         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33821         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33822         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33823         macros.
33824         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33825         (gl_DISABLE_THREADS): Remove macro.
33826         * modules/lock (Files): Remove build-aux/config.rpath.
33827         (Depends-on): Remove havelib. Add threadlib.
33828         (configure.ac-early): Remove section.
33829         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33830         * modules/tls (Depends-on): Remove lock. Add threadlib.
33831         (Link): New section, copied from threadlib.
33832         * MODULES.html.sh (Multithreading): Add threadlib.
33833
33834 2008-08-14  Bruno Haible  <bruno@clisp.org>
33835
33836         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33837         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33838         glthread_rwlock_unlock, glthread_rwlock_destroy,
33839         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33840         glthread_recursive_lock_destroy): Define as macros always.
33841         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33842         glthread_lock_lock.
33843         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33844         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33845         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33846         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33847         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33848         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33849         (glthread_recursive_lock_lock_func): Renamed from
33850         glthread_recursive_lock_lock.
33851         (glthread_recursive_lock_unlock_func): Renamed from
33852         glthread_recursive_lock_unlock.
33853         (glthread_recursive_lock_destroy_func): Renamed from
33854         glthread_recursive_lock_destroy.
33855
33856 2008-08-14  Bruno Haible  <bruno@clisp.org>
33857
33858         * lib/glthread/lock.h: Renamed from lib/lock.h.
33859         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33860         * lib/glthread/tls.h: Renamed from lib/tls.h.
33861         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33862         * lib/fstrcmp.c: Update includes.
33863         * lib/strsignal.c: Update includes.
33864         * modules/lock (Files, Makefile.am): Update.
33865         (Include): Change to "glthread/lock.h".
33866         * modules/tls (Files, Makefile.am): Update.
33867         (Include): Change to "glthread/tls.h".
33868         * tests/test-lock.c: Update includes.
33869         * tests/test-tls.c: Update includes.
33870         * NEWS: Mention the renamed header files.
33871
33872 2008-08-11  Jim Meyering  <meyering@redhat.com>
33873
33874         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33875
33876 2008-08-11  Eric Blake  <ebb9@byu.net>
33877
33878         test-c-stack: avoid C99-ism
33879         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33880         before statement.
33881         Reported by Alain Guibert.
33882
33883 2008-08-10  Jim Meyering  <meyering@redhat.com>
33884
33885         ensure that return value of uinttostr et al are not ignored
33886         * lib/inttostr.h (__GNUC_PREREQ): Define.
33887         (__attribute_warn_unused_result__): Define.
33888         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33889
33890 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33891
33892         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33893         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33894
33895 2008-08-07  Jim Meyering  <meyering@redhat.com>
33896
33897         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33898
33899         * modules/mkstemp (License): Relicense under LGPLv2+.
33900         * modules/tempname (License): Likewise.
33901
33902 2008-08-06  Bruno Haible  <bruno@clisp.org>
33903
33904         * lib/poll.c (poll): Further micro-optimization.
33905
33906 2008-08-06  Jim Meyering  <meyering@redhat.com>
33907
33908         inet_pton.c: use locale-independent tolower
33909         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33910         (inet_pton6): Use c_tolower rather than tolower.
33911         * modules/inet_pton (Depends-on): Add c-ctype.
33912
33913 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33914
33915         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33916         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33917
33918 2008-08-06  Jim Meyering  <meyering@redhat.com>
33919
33920         * modules/inet_pton (License): Relicense under LGPLv2+.
33921
33922 2008-08-03  Bruno Haible  <bruno@clisp.org>
33923
33924         Additional non-aborting API for lock and tls.
33925         * lib/lock.h: Include <errno.h>.
33926         (glthread_lock_init): New macro/function.
33927         (gl_lock_init): Define as wrapper around glthread_lock_init.
33928         (glthread_lock_lock): New macro/function.
33929         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
33930         (glthread_lock_unlock): New macro/function.
33931         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
33932         (glthread_lock_destroy): New macro/function.
33933         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
33934         (glthread_rwlock_init): New macro/function.
33935         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
33936         (glthread_rwlock_rdlock): New macro/function.
33937         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
33938         (glthread_rwlock_wrlock): New macro/function.
33939         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
33940         (glthread_rwlock_unlock): New macro/function.
33941         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
33942         (glthread_rwlock_destroy): New macro/function.
33943         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
33944         (glthread_recursive_lock_init): New macro/function.
33945         (gl_recursive_lock_init): Define as wrapper around
33946         glthread_recursive_lock_init.
33947         (glthread_recursive_lock_lock): New macro/function.
33948         (gl_recursive_lock_lock): Define as wrapper around
33949         glthread_recursive_lock_lock.
33950         (glthread_recursive_lock_unlock): New macro/function.
33951         (gl_recursive_lock_unlock): Define as wrapper around
33952         glthread_recursive_lock_unlock.
33953         (glthread_recursive_lock_destroy): New macro/function.
33954         (gl_recursive_lock_destroy): Define as wrapper around
33955         glthread_recursive_lock_destroy.
33956         (glthread_once): New macro/function.
33957         (gl_once): Define as wrapper around glthread_once.
33958         Update function declarations.
33959         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
33960         glthread_rwlock_init. Return error code.
33961         (glthread_rwlock_rdlock_multithreaded): Renamed from
33962         glthread_rwlock_rdlock. Return error code.
33963         (glthread_rwlock_wrlock_multithreaded): Renamed from
33964         glthread_rwlock_wrlock. Return error code.
33965         (glthread_rwlock_unlock_multithreaded): Renamed from
33966         glthread_rwlock_unlock. Return error code.
33967         (glthread_rwlock_destroy_multithreaded): Renamed from
33968         glthread_rwlock_destroy. Return error code.
33969         (glthread_recursive_lock_init_multithreaded): Renamed from
33970         glthread_recursive_lock_init. Return error code.
33971         (glthread_recursive_lock_lock_multithreaded): Renamed from
33972         glthread_recursive_lock_lock. Return error code.
33973         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33974         glthread_recursive_lock_unlock. Return error code.
33975         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33976         glthread_recursive_lock_destroy. Return error code.
33977         (glthread_once_call): Make static.
33978         (glthread_once_multithreaded): Renamed from glthread_once.
33979         * lib/tls.h: Include <errno.h>.
33980         (glthread_tls_key_init): New macro/function.
33981         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33982         (glthread_tls_set): New macro/function.
33983         (gl_tls_set): Define as wrapper around glthread_tls_set.
33984         (glthread_tls_key_destroy): New macro/function.
33985         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33986         Update function declarations.
33987         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33988         glthread_tls_get.
33989         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33990
33991 2008-08-04  Eric Blake  <ebb9@byu.net>
33992
33993         gnumakefile: use space, not TAB, outside of targets
33994         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33995
33996 2008-08-02  Jim Meyering  <meyering@redhat.com>
33997
33998         getdate.y: avoid locale-dependent date parsing failure
33999         In Turkish locales, getdate would fail to recognize keywords
34000         containing a lowercase "i".  The solution is not to rely on
34001         locale-sensitive case-conversion.
34002         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
34003         (lookup_word): Use c_toupper in place of toupper.
34004         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
34005         Reported by Vefa Bicakci <bicave@superonline.com> in
34006         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
34007         * modules/getdate (Depends-on): Add c-ctype.
34008
34009 2008-08-02  Bruno Haible  <bruno@clisp.org>
34010
34011         * gnulib-tool (func_import): When updating or creating a .gitignore
34012         file, prepend each added line with a slash, and ignore leading slashes
34013         from the existing lines.
34014         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34015
34016 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34017
34018         Portability fix for GNU make 3.79.1.
34019         * top/GNUmakefile: Avoid 'else COND', which older GNU make
34020         versions do not understand.
34021
34022 2008-08-01  Bruno Haible  <bruno@clisp.org>
34023
34024         Work around bug of HP-UX 10.20 cc with -0.0 literal.
34025         * tests/test-isnanf.h (zero): New variable.
34026         (main): Avoid literal -0.0f.
34027         * tests/test-isnand.h (zero): New variable.
34028         (main): Avoid literal -0.0.
34029         * tests/test-isnanl.h (zero): New variable.
34030         (main): Avoid literal -0.0L.
34031         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
34032         (test_float, test_double, test_long_double): Avoid literals -0.0f,
34033         -0.0, -0.0L.
34034         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
34035         (test_signbitd): Avoid literal -0.0.
34036         (test_signbitl): Avoid literal -0.0L.
34037         * tests/test-ceilf1.c (zero): New variable.
34038         (main): Avoid literal -0.0f.
34039         * tests/test-ceill.c (zero): New variable.
34040         (main): Avoid literal -0.0L.
34041         * tests/test-floorf1.c (zero): New variable.
34042         (main): Avoid literal -0.0f.
34043         * tests/test-floorl.c (zero): New variable.
34044         (main): Avoid literal -0.0L.
34045         * tests/test-roundf1.c (zero): New variable.
34046         (main): Avoid literal -0.0f.
34047         * tests/test-round1.c (zero): New variable.
34048         (main): Avoid literal -0.0.
34049         * tests/test-roundl.c (zero): New variable.
34050         (main): Avoid literal -0.0L.
34051         * tests/test-truncf1.c (zero): New variable.
34052         (main): Avoid literal -0.0f.
34053         * tests/test-trunc1.c (zero): New variable.
34054         (main): Avoid literal -0.0.
34055         * tests/test-truncl.c (zero): New variable.
34056         (main): Avoid literal -0.0L.
34057         * tests/test-frexp.c (zero): New variable.
34058         (main): Avoid literal -0.0.
34059         * tests/test-frexpl.c (zero): New variable.
34060         (main): Avoid literal -0.0L.
34061         * tests/test-ldexpl.c (zero): New variable.
34062         (main): Avoid literal -0.0L.
34063         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34064         (zerod, zerol): New variables.
34065         (test_function): Avoid literals -0.0, -0.0L.
34066         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34067         (zerod, zerol): New variables.
34068         (test_function): Avoid literals -0.0, -0.0L.
34069         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34070         (zerod, zerol): New variables.
34071         (test_function): Avoid literals -0.0, -0.0L.
34072         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34073         (zerod, zerol): New variables.
34074         (test_function): Avoid literals -0.0, -0.0L.
34075         * tests/test-strtod.c (zero): New variable.
34076         (main): Avoid literal -0.0.
34077         Reported by Jonathan C. Patschke <jp@centtech.com>.
34078
34079 2008-07-31  Jim Meyering  <meyering@redhat.com>
34080
34081         sha256.h: correct definition of SHA224_DIGEST_SIZE
34082         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
34083         Reported by Paulie Pena IV <paulie4@gmail.com>.
34084         Define as 224 / 8, rather than as a literal.
34085         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
34086         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
34087         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
34088
34089 2008-07-31  Bruno Haible  <bruno@clisp.org>
34090
34091         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
34092         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
34093         Reported by Jonathan Patschke <jp@centtech.com>.
34094
34095 2008-07-31  Bruno Haible  <bruno@clisp.org>
34096
34097         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
34098         Reported by Paolo Bonzini <bonzini@gnu.org>.
34099
34100 2008-07-30  Eric Blake  <ebb9@byu.net>
34101
34102         test-strtod: allow compilation without -lm
34103         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34104         Reported by Dennis Clarke <blastwave@gmail.com>.
34105
34106 2008-07-28  Jim Meyering  <meyering@redhat.com>
34107
34108         bootstrap: work also when there are no .po files in po/
34109         * build-aux/bootstrap (update_po_files): Complete the change
34110         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34111
34112 2008-07-27  Jim Meyering  <meyering@redhat.com>
34113
34114         * users.txt: Add zile.
34115
34116 2008-07-26  Ben Pfaff  <blp@gnu.org>
34117
34118         Add missing dependencies on new m4/exponent[fdl].m4 files.
34119         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34120         * modules/isnand-nolibm: Add m4/exponentd.m4.
34121         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34122         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34123         m4/isnan[fdl].m4, because the macros actually used moved.
34124         Reported by Jim Meyering.
34125
34126 2008-07-14  Ben Pfaff  <blp@gnu.org>
34127
34128         Add isinf module.
34129         * lib/isinf.c: New file.
34130         * lib/math.in.h: Define isinf macro if we have decided to replace
34131         it.
34132         * m4/isinf.m4: New file.
34133         * m4/math_h.m4: Initialize and substitute variables for isinf
34134         module.
34135         * modules/isinf: New file.
34136         * modules/isinf-tests: New file.
34137         * modules/math: Add substitutions for new module.
34138         * tests/test-isinf.c: New file.
34139         * doc/posix-functions/isinf.texi: Mention new module.
34140         * MODULES.html.sh: Mention new module.
34141
34142 2008-07-14  Ben Pfaff  <blp@gnu.org>
34143
34144         Factor out some macros for use by additional modules.
34145         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34146         exponentf.m4.
34147         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34148         exponentd.m4.
34149         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34150         file exponentl.m4.
34151         * m4/exponentf.m4: New file.
34152         * m4/exponentd.m4: New file.
34153         * m4/exponentl.m4: New file.
34154         * modules/isnanf: Use new file m4/exponentf.m4.
34155         * modules/isnand: Use new file m4/exponentd.m4.
34156         * modules/isnanl: Use new file m4/exponentl.m4.
34157
34158 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34159
34160         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34161         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34162         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34163         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34164
34165         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34166         readlink on platforms without PATH_MAX.
34167
34168 2008-07-21  Eric Blake  <ebb9@byu.net>
34169
34170         Warn, not fail, on stale version.
34171         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34172
34173         Don't allow installation with stale devel version number.
34174         * top/GNUmakefile (_is-install-target): New macro.
34175         (_curr-ver): Forbid installation with stale version number.
34176
34177 2008-07-20  Bruno Haible  <bruno@clisp.org>
34178
34179         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
34180         TESTS_ENVIRONMENT.
34181         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
34182
34183 2008-07-20  Bruno Haible  <bruno@clisp.org>
34184
34185         * lib/c-stack.h (c_stack_action): Add documentation.
34186         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
34187
34188 2008-07-20  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
34191         * modules/readlink (License): Likewise.
34192
34193 2008-07-17  Eric Blake  <ebb9@byu.net>
34194
34195         * modules/c-stack (Link): Fix typo.
34196
34197         Make c-stack use libsigsegv, when available.
34198         * modules/c-stack (Depends-on): Add libsigsegv.
34199         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
34200         needed.
34201         * lib/c-stack.c (SIGSTKSZ): Define fallback.
34202         (segv_handler, overflow_handler, c_stack_action)
34203         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
34204         implementation when libsigsegv is available, but only when using
34205         the library is necessary.
34206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
34207         comment, explaining why XSI check fails on Linux.
34208         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
34209         * tests/test-c-stack2.sh: Tweak skip message.
34210         * NEWS: Document new link-time requirements.
34211
34212 2008-07-16  Eric Blake  <ebb9@byu.net>
34213
34214         c-stack: Expose false positives when not using libsigsegv.
34215         * modules/c-stack-tests (Files): Expand test.
34216         * tests/test-c-stack.c (main): Add means to conditionally trigger
34217         non-overflow SIGSEGV.
34218         * tests/test-c-stack2.sh: New file.
34219
34220 2008-07-14  Bruno Haible  <bruno@clisp.org>
34221
34222         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
34223         Reported by Eric Blake.
34224
34225 2008-07-14  Sam Steingold  <sds@gnu.org>
34226             Bruno Haible  <bruno@clisp.org>
34227
34228         New module libsigsegv.
34229         * modules/libsigsegv: New file.
34230         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
34231         modifications.
34232         * MODULES.html.sh (Signal handling): New section.
34233
34234 2008-07-14  Bruno Haible  <bruno@clisp.org>
34235
34236         * modules/unictype/ctype-* (Description): Add the word "function".
34237         Improves the resulting doc in MODULES.html.
34238
34239 2008-07-12  Ben Pfaff  <blp@gnu.org>
34240
34241         Add longlong module.
34242         * modules/longlong: New file.
34243
34244 2008-07-12  Bruno Haible  <bruno@clisp.org>
34245
34246         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
34247         to empty.
34248
34249 2008-07-10  Ben Pfaff  <blp@gnu.org>
34250
34251         Add isnan module.
34252         * doc/posix-functions/isnan.texi: Mention new module.
34253         * lib/math.in.h: Define isnan macro if we have decided to replace
34254         it.
34255         * m4/isnan.m4: New file.
34256         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
34257         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
34258         also.
34259         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
34260         redundancy.
34261         * m4/math_h.m4: Initialize and substitute variables for isnan
34262         module.
34263         * modules/isnan: New file.
34264         * modules/isnan-tests: New file.
34265         * modules/math: Add substitutions for new module.
34266         * tests/test-isnan.c: New file.
34267         * MODULES.html.sh: Mention new module.
34268
34269 2008-07-10  Ben Pfaff  <blp@gnu.org>
34270
34271         Add isnanf module.
34272         * lib/isnanf.m4: New file.
34273         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
34274         (gl_HAVE_ISNANF_IN_LIBM): New macro.
34275         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
34276         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
34277         * modules/isnanf: New file.
34278         * modules/isnanf-tests: New file.
34279         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
34280         files.
34281         * tests/test-isnanf-nolibm.c: factored most of its contents into
34282         new file tests/test-isnanf.h.
34283         * tests/test-isnanf.h: New file.
34284         * tests/test-isnanf.c: New file.
34285         * MODULES.html.sh: Mention new module.
34286         * doc/glibc-functions/isnanf.texi: Mention new module.
34287
34288 2008-07-10  Ben Pfaff  <blp@gnu.org>
34289
34290         Add isnand module.
34291         * lib/isnand.h: New file.
34292         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
34293         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
34294         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
34295         functionality also.
34296         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
34297         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
34298         (gl_HAVE_ISNAND_IN_LIBM): New macro.
34299         * modules/isnand: New file.
34300         * modules/isnand-tests: New file.
34301         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
34302         files.
34303         * tests/test-isnand-nolibm.c: factored most of its contents into
34304         new file tests/test-isnand.h.
34305         * tests/test-isnand.h: New file.
34306         * tests/test-isnand.c: New file.
34307         * MODULES.html.sh: Mention new module.
34308
34309 2008-07-10  Ben Pfaff  <blp@gnu.org>
34310
34311         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
34312         * lib/isnand.h: Rename lib/isnand-nolibm.h.
34313         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
34314         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
34315         * modules/isnanf-nolibm: Update references to renamed files.
34316         * modules/isnand-nolibm: Likewise.
34317         * modules/isnanf-nolibm-tests: Likewise.
34318         * modules/isnand-nolibm-tests: Likewise.
34319         * lib/frexp.c: Likewise.
34320         * lib/isfinite.c: Likewise.
34321         * lib/signbitd.c: Likewise.
34322         * lib/signbitf.c: Likewise.
34323         * lib/vasnprintf.c: Likewise.
34324         * tests/test-ceilf1.c: Likewise.
34325         * tests/test-ceilf2.c: Likewise.
34326         * tests/test-floorf1.c: Likewise.
34327         * tests/test-floorf2.c: Likewise.
34328         * tests/test-frexp.c: Likewise.
34329         * tests/test-round1.c: Likewise.
34330         * tests/test-round2.c: Likewise.
34331         * tests/test-roundf1.c: Likewise.
34332         * tests/test-strtod.c: Likewise.
34333         * tests/test-trunc1.c: Likewise.
34334         * tests/test-trunc2.c: Likewise.
34335         * tests/test-truncf1.c: Likewise.
34336         * tests/test-truncf2.c: Likewise.
34337         * NEWS: Mention the renamed header files.
34338
34339 2008-07-11  Jim Meyering  <meyering@redhat.com>
34340
34341         vc-list-files: make the last-resort awk code more portable
34342         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
34343         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
34344         does not support it.
34345
34346 2008-07-10  Eric Blake  <ebb9@byu.net>
34347
34348         Work with tar's bootstrap.
34349         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
34350         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
34351         an m4 comment.
34352
34353 2008-07-09  Jim Meyering  <meyering@redhat.com>
34354
34355         posix-shell.m4: fix typo that made this test malfunction
34356         * m4/posix-shell.m4: Remove capitalization in variable name.
34357
34358 2008-07-08  Bruno Haible  <bruno@clisp.org>
34359
34360         * m4/onceonly.m4: Update comments.
34361         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34362
34363 2008-07-04  Jim Meyering  <meyering@redhat.com>
34364
34365         * users.txt: Add vc-dwim.
34366         (bison, coreutils): Use the gitweb URL.
34367
34368 2008-07-03  Jim Meyering  <meyering@redhat.com>
34369
34370         * users.txt: Add libffcall.  From Sam Steingold.
34371
34372 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
34373
34374         getdate.y: do not ignore TZ with relative day, month or year offset
34375         * lib/getdate.y (get_date): Move the tz-handling block to follow the
34376         relative-date-handling, since otherwise, the latter would clobber the
34377         sole output (an updated Start value) of the tz-handling block.
34378         * tests/test-getdate.c: Tests for the fix
34379
34380 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34381
34382         Recognize 'foo_LIBRARIES += libgnu.a'.
34383         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
34384         makefile snippet has already specified an installation location,
34385         also using '+='.
34386
34387 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
34388
34389         getdate.y: factor out common actions
34390         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
34391         Use them in place of open-coded actions.
34392
34393 2008-07-01  Simon Josefsson  <simon@josefsson.org>
34394
34395         Add self-test for getdate module.
34396         * modules/getdate-tests: New file.
34397         * tests/test-getdate.c: New file.
34398
34399 2008-06-29  Bruno Haible  <bruno@clisp.org>
34400
34401         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
34402         .gitignore.
34403         Reported by Sylvain Beucler <beuc@beuc.net>.
34404
34405 2008-06-29  Bruno Haible  <bruno@clisp.org>
34406
34407         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
34408         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
34409
34410 2008-06-29  Bruno Haible  <bruno@clisp.org>
34411
34412         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
34413         EXTRA_DIST.
34414         Reported by Sylvain Beucler <beuc@beuc.net>.
34415
34416 2008-06-26  Jim Meyering  <meyering@redhat.com>
34417
34418         make several modules depend on the "open" module
34419         This provides slightly increased consistency when opening-for-write
34420         the name of a non-directory spelled with a trailing slash.
34421         * modules/chdir-safer: Likewise.
34422         * modules/chown: Likewise.
34423         * modules/clean-temp: Likewise.
34424         * modules/copy-file: Likewise.
34425         * modules/fchdir: Likewise.
34426         * modules/fcntl-safer: Likewise.
34427         * modules/pipe: Likewise.
34428         * modules/utime: Likewise.
34429         Prompted by Eric Blake and Bruno Haible.
34430
34431 2008-06-24  Andreas Schwab  <schwab@suse.de>
34432
34433         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
34434         literals can be used as initializers for global variables.
34435
34436 2008-06-23  Eric Blake  <ebb9@byu.net>
34437
34438         Make gnulib-cache.m4 easier to diff.
34439         * gnulib-tool (func_import): Allow newlines when reading cached
34440         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
34441
34442 2008-06-23  Bruno Haible  <bruno@clisp.org>
34443
34444         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
34445         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
34446         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
34447         m4/signalblocking.m4.
34448         (gl_PREREQ_SIGACTION): Don't invoke it.
34449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
34450         gl_PREREQ_SIG_HANDLER_H.
34451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34452         Don't check for sigaction here.
34453
34454 2008-06-23  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
34457         (install_handlers): Don't set the SA_RESETHAND flag.
34458
34459 2008-06-23  Bruno Haible  <bruno@clisp.org>
34460
34461         * m4/sigaction.m4: Comment fixes.
34462         * lib/signal.in.h: Likewise.
34463
34464 2008-06-23  Eric Blake  <ebb9@byu.net>
34465
34466         Fix typo.
34467         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
34468
34469         Avoid SA_ namespace.
34470         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
34471         Reported by Ralf Wildenhues.
34472
34473         Avoid test failure due to SA_RESTORER.
34474         * tests/test-sigaction.c (SA_MASK): New macro.
34475         (main): Avoid failing due to extension flags being set.
34476         Reported by Jim Meyering.
34477
34478         Revert use of sig-handler.h in sigprocmask.c.
34479         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
34480         it requires the existence of struct sigaction.
34481         * lib/sigprocmask.c (handler_t): Restore typedef.
34482         (rpl_signal, old_handlers): Use local type.
34483
34484 2008-06-22  Bruno Haible  <bruno@clisp.org>
34485
34486         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
34487         conditionally.
34488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34489
34490 2008-06-22  Bruno Haible  <bruno@clisp.org>
34491
34492         * doc/posix-functions/siginterrupt.texi: Move note.
34493
34494         * lib/signal.in.h (SA_RESTART): New macro.
34495         * lib/sigaction.c: Update comment.
34496
34497         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34498
34499         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34500         (gl_PREREQ_SIGPROCMASK): Invoke it.
34501         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34502
34503         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34504
34505         * lib/sigprocmask.c: Update a comment.
34506
34507 2008-06-21  Eric Blake  <ebb9@byu.net>
34508
34509         Use sigaction module rather than signal().
34510         * modules/c-stack (Depends-on): Add sigaction.
34511         * modules/fatal-signal (Depends-on): Likewise.
34512         * modules/nanosleep (Depends-on): Likewise.
34513         * modules/sigprocmask (Files): Add sig-handler.h.
34514         * modules/sigaction (Files): Likewise.
34515         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34516         Eggert.
34517         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34518         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34519         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34520         (init_fatal_signals): Likewise.
34521         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34522         (siginterrupt): Delete fallback.
34523         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34524         instead.
34525         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34526         siginterrupt.
34527
34528         New module sigaction, for mingw.
34529         * modules/sigaction: New module...
34530         * modules/sigaction-tests: ...and its test.
34531         * m4/sigaction.m4: New file.
34532         * lib/sigaction.c: Likewise.
34533         * tests/test-sigaction.c: Likewise.
34534         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34535         * modules/signal (Makefile.am): Likewise.
34536         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34537         needed.
34538         * doc/posix-headers/signal.texi (signal.h): Mention provided
34539         types.
34540         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34541         that sigaction is preferable.
34542         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34543         module.
34544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34545         sigaction.
34546
34547         Improve robustness of sigprocmask by overriding signal.
34548         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34549         is in use.
34550         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34551         (SIGKILL, SIGSTOP): Provide fallbacks.
34552         (rpl_signal): Implement.
34553         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34554         signal can be called inside handlers.
34555
34556         Fix nanosleep module on mingw.
34557         * modules/nanosleep (Depends-on): Add sys_select.
34558         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34559
34560         Fix licensing of sigprocmask.
34561         * modules/raise (License): Relicense as LGPL.
34562
34563 2008-06-21  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34566         result if it contains question marks.
34567         Reported by Michael Geng <linux@michaelgeng.de>.
34568
34569 2008-06-19  Bruno Haible  <bruno@clisp.org>
34570
34571         Fix CVS-ism.
34572         * doc/gnulib.texi: Include updated-stamp.texi.
34573         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34574         (updated-stamp.texi): New rule.
34575         (gnulib.info): Depend on it.
34576         * doc/.gitignore: Add updated-stamp.texi.
34577         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34578
34579 2008-06-19  Bruno Haible  <bruno@clisp.org>
34580
34581         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34582         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34583
34584 2008-06-19  Eric Blake  <ebb9@byu.net>
34585
34586         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34587         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34588         Reported by Stepan Kasal.
34589
34590 2008-06-18  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34593         Reported by Eric Blake.
34594
34595 2008-06-18  Eric Blake  <ebb9@byu.net>
34596
34597         Work around cygwin 1.5.25 strsignal bug.
34598         * tests/test-strsignal.c: Allow for const char *.
34599         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34600
34601 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34602
34603         * users.txt: Update URL to article and add author/date
34604         information.
34605
34606 2008-06-17  Bruno Haible  <bruno@clisp.org>
34607
34608         New macro gl_DISABLE_THREADS.
34609         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34610         if the user did not pass --enable-threads or --disable-threads option.
34611         (gl_DISABLE_THREADS): New macro.
34612         Reported by Eric Blake <ebb9@byu.net>.
34613
34614 2008-06-17  Bruno Haible  <bruno@clisp.org>
34615
34616         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34617         when the macro ignores it.
34618         Based on a patch by Eric Blake <ebb9@byu.net>.
34619
34620 2008-06-17  Bruno Haible  <bruno@clisp.org>
34621
34622         * modules/tls (License): Change to LGPLv2+.
34623         Reported by Eric Blake.
34624
34625 2008-06-17  Eric Blake  <ebb9@byu.net>
34626
34627         Simplify c-stack prerequisites.
34628         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34630         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34631         check.
34632         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34633         <sys/resource.h>.
34634
34635         Move c-stack test into testsuite.
34636         * modules/c-stack-tests: New file.
34637         * lib/c-stack.c [DEBUG]: Move test program...
34638         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34639         fail test if sigaltstack is lacking.
34640         * tests/test-c-stack.sh: New driver file.
34641
34642 2008-06-16  Eric Blake  <ebb9@byu.net>
34643
34644         Use raise module consistently.
34645         * modules/fatal-signal (Depends-on): Add raise.
34646         * modules/sigprocmask (Depends-on): Likewise.
34647         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34648         * lib/sigprocmask.c (sigprocmask): Likewise.
34649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34650         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34651
34652         Fix compliance bug in sigpending.
34653         * lib/sigprocmask.c (sigpending): Return pending array via
34654         parameter, not return value.
34655
34656 2008-06-14  Eric Blake  <ebb9@byu.net>
34657
34658         Improve obstack-printf test code.
34659         * tests/test-obstack-printf.c (test_function): Fix comment, and
34660         simplify usage of obstack_* in macros.  Add a test for coverage.
34661         Reported by Bruno Haible.
34662
34663 2008-06-14  Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34666         array size as a constant, not as a const variable.
34667         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34668         AC_USE_SYSTEM_EXTENSIONS.
34669         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34670         Test whether the obstack_printf function actually exists.
34671         * modules/obstack-printf (Depends-on): Add extensions.
34672         (Include): Remove obstack.h.
34673         * modules/obstack-printf-posix (Depends-on): Add extensions.
34674         (Include): Remove obstack.h.
34675
34676 2008-06-13  Eric Blake  <ebb9@byu.net>
34677
34678         Add obstack-printf and obstack-printf-posix modules.
34679         * modules/obstack-printf: New file.
34680         * modules/obstack-printf-posix: Likewise.
34681         * MODULES.html.sh (Misc): Mention them.
34682         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34683         Likewise.
34684         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34685         Likewise.
34686         * modules/stdio (Makefile.am): Accomodate new modules.
34687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34688         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34689         Declare.
34690         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34691         functions.
34692         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34693         (gl_REPLACE_OBSTACK_PRINTF): New macros
34694         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34695         * tests/test-obstack-printf.c: New file.
34696         * modules/obstack-printf-tests: Likewise.
34697         * modules/obstack-printf-posix-tests: Likewise.
34698
34699 2008-06-11  Bruno Haible  <bruno@clisp.org>
34700
34701         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34702         * lib/open.c: Include errno.h.
34703         (open): Fail when attempting to write to a file that has a trailing
34704         slash.
34705         * tests/test-open.c (main): Test against trailing slash bug.
34706         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34707
34708 2008-06-10  Bruno Haible  <bruno@clisp.org>
34709
34710         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34711         for $? to work inside the trap command, with various /bin/sh-s.
34712         * tests/test-vc-list-files-cvs.sh: Likewise.
34713
34714 2008-06-10  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/acl-internal.h: Don't include gettext.h here.
34717         * lib/set-mode-acl.c: Include gettext.h here.
34718         * lib/copy-acl.c: Likewise.
34719
34720 2008-06-10  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34723         * lib/wait-process.c (wait_subprocess): Likewise.
34724         * lib/execute.h (execute): Add termsigp argument.
34725         * lib/execute.c (execute): Likewise.
34726         * lib/csharpcomp.c (compile_csharp_using_pnet,
34727         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34728         * lib/csharpexec.c (execute_csharp_using_pnet,
34729         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34730         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34731         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34732         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34733         is_jikes_present): Update.
34734         * lib/javaexec.c (execute_java_class): Update.
34735         * lib/javaversion.c (execute_and_read_line): Update.
34736         * NEWS: Document the changes.
34737         Reported by Eric Blake.
34738
34739 2008-06-10  Eric Blake  <ebb9@byu.net>
34740
34741         Add missing include.
34742         * tests/test-strstr.c (includes): Add <signal.h>.
34743         * tests/test-strcasestr.c (includes): Likewise.
34744         * tests/test-memmem.c (includes): Likewise.
34745
34746 2008-06-10  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/wait-process.c (wait_subprocess): Add an assertion.
34749
34750 2008-06-10  Bruno Haible  <bruno@clisp.org>
34751
34752         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34753
34754 2008-06-10  Bruno Haible  <bruno@clisp.org>
34755
34756         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34757         using alarm().
34758         * tests/test-strcasestr.c (main): Likewise.
34759         * tests/test-strstr.c (main): Likewise.
34760
34761 2008-06-09  Bruno Haible  <bruno@clisp.org>
34762
34763         Work around the Solaris 10 ACE ACLs ABI change.
34764         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34765         declare if ACL_NO_TRIVIAL is present.
34766         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34767         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34768         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34769         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34770         define if ACL_NO_TRIVIAL is present.
34771         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34772         and use the current ABI.
34773         (file_has_acl): Use same #if condition as elsewhere.
34774         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34775         in use, and use the current ABI.
34776         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34777         Reported by Jim Meyering.
34778
34779 2008-06-09  Eric Blake  <ebb9@byu.net>
34780
34781         Work around environments that (stupidly) ignore SIGALRM.
34782         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34783         before using alarm().
34784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34786         Reported by Ian Beckwith <ianb@erislabs.net>.
34787
34788         Produce autobuild blurb earlier in log.
34789         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34790
34791 2008-06-09  Jim Meyering  <meyering@redhat.com>
34792         and OndÅ™ej Vašík  <ovasik@redhat.com>
34793
34794         utimens.c: correct kernel bug work-around
34795         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34796         failure, not success, and the kernel bug we're trying to work
34797         around affects not just the utimensat call, but also the fallback
34798         futimens call.
34799         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34800         not success.
34801         [HAVE_FUTIMENS]: Use the same work-around, here.
34802
34803 2008-06-09  Jim Meyering  <meyering@redhat.com>
34804
34805         add more guards around definition of ACE_-related code
34806         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34807         ALLOW and ACE_OWNER are also defined.
34808
34809 2008-06-08  Bruno Haible  <bruno@clisp.org>
34810
34811         * lib/acl-internal.h: Add me as co-author.
34812         * lib/file-has-acl.c: Likewise.
34813         * lib/set-mode-acl.c: Likewise.
34814         * lib/copy-acl.c: Likewise.
34815
34816 2008-06-08  Bruno Haible  <bruno@clisp.org>
34817
34818         Add support for AIX ACLs.
34819         * lib/acl-internal.h (acl_nontrivial): New declaration.
34820         * lib/file-has-acl.c (acl_nontrivial): New function.
34821         (file_has_acl): Add implementation using AIX 4 ACL API.
34822         * lib/set-mode-acl.c (qset_acl): Likewise.
34823         * lib/copy-acl.c (qcopy_acl): Likewise.
34824
34825 2008-06-08  Bruno Haible  <bruno@clisp.org>
34826
34827         Add support for HP-UX ACLs.
34828         * lib/acl-internal.h (acl_nontrivial): New declaration.
34829         * lib/file-has-acl.c (acl_nontrivial): New function.
34830         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34831         * lib/set-mode-acl.c (qset_acl): Likewise.
34832         * lib/copy-acl.c (qcopy_acl): Likewise.
34833
34834 2008-06-08  Bruno Haible  <bruno@clisp.org>
34835
34836         Add support for Cygwin ACLs.
34837         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34838         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34839         the chmod_or_fchmod call.
34840         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34841
34842 2008-06-08  Bruno Haible  <bruno@clisp.org>
34843
34844         Fix bug with setuid modes in Solaris 10+ code.
34845         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34846         succeeded, when the mode contains some special bits.
34847
34848 2008-06-08  Bruno Haible  <bruno@clisp.org>
34849
34850         Add support for Solaris 7..10 ACLs.
34851         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34852         declarations.
34853         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34854         functions.
34855         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34856         * lib/set-mode-acl.c (qset_acl): Likewise.
34857         * lib/copy-acl.c (qcopy_acl): Likewise.
34858
34859 2008-06-08  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34862         declaration.
34863         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34864         (acl_access_nontrivial): Remove MacOS X case.
34865         (file_has_acl): Use acl_extended_nontrivial.
34866         * lib/copy-acl.c (qcopy_acl): Likewise.
34867
34868 2008-06-08  Bruno Haible  <bruno@clisp.org>
34869
34870         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34871
34872 2008-06-08  Jim Meyering  <meyering@redhat.com>
34873
34874         * modules/acl (Maintainer): Add Bruno Haible.
34875
34876 2008-06-07  Bruno Haible  <bruno@clisp.org>
34877
34878         Improve support for Tru64 ACLs.
34879         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34880         ACL on OSF/1.
34881
34882 2008-06-07  Bruno Haible  <bruno@clisp.org>
34883
34884         Add support for MacOS X ACLs.
34885         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34886         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34887         * lib/set-mode-acl.c (qset_acl): Likewise.
34888         * lib/copy-acl.c (qcopy_acl): Likewise.
34889
34890 2008-06-07  Bruno Haible  <bruno@clisp.org>
34891
34892         Fix memory leak introduced on 2008-05-22.
34893         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34894         use.
34895
34896 2008-06-07  Bruno Haible  <bruno@clisp.org>
34897
34898         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34899         to construct an empty ACL.
34900
34901 2008-06-07  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34904         precisely.
34905         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34906
34907 2008-06-07  Bruno Haible  <bruno@clisp.org>
34908
34909         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34910         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34911
34912 2008-06-07  Bruno Haible  <bruno@clisp.org>
34913
34914         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34915         regardless of POSIX.
34916         * doc/posix-functions/_longjmp.texi: Likewise.
34917         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34918         SystemV platform in this case.
34919
34920 2008-06-06  Eric Blake  <ebb9@byu.net>
34921
34922         Document abort() bugs.
34923         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34924
34925         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34926         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34927         sigsetjmp.
34928         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
34929         siglongjmp, but only as a macro.
34930         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
34931         is obsolete.
34932         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
34933
34934         Tweak documentation to cover cygwin argz bugs.
34935         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
34936         argz bug fix; no code change needed since no cygwin releases
34937         occurred between the last fix and the bug being tested.
34938         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
34939         module and recently fixed cygwin bugs.
34940         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
34941         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
34942         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
34943         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
34944         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
34945         Likewise.
34946         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
34947         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
34948         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
34949         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
34950         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
34951         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
34952         Likewise.
34953
34954         Avoid gcc warning on cygwin.
34955         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
34956         !ACL_NO_TRIVIAL]: Avoid unused variable.
34957
34958 2008-06-05  Eric Blake  <ebb9@byu.net>
34959
34960         Be tolerant of UNKNOWN version in gnulib-tool test dir.
34961         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
34962         git-version-gen fails to come up with a version.
34963         Reported by Simon Josefsson.
34964
34965 2008-06-05  Jim Meyering  <meyering@redhat.com>
34966             Paul Eggert  <eggert@cs.ucla.edu>
34967
34968         utimens.c: work around a probable Linux kernel bug
34969         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
34970         appears to be a kernel bug that causes utimensat to return 280
34971         instead of 0, indicating success.
34972
34973 2008-06-04  Bruno Haible  <bruno@clisp.org>
34974
34975         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34976         2008-06-01 commit.
34977
34978 2008-06-04  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34981         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34982         (file_has_acl): Use it. Save errno afterwards.
34983         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34984
34985 2008-06-03  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34988         draft code. Simplify #ifs.
34989         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34990         Put Solaris code after POSIX-draft code. Fix comments regarding
34991         Solaris 10, HP-UX. Mention Cygwin.
34992         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34993
34994 2008-06-03  Eric Blake  <ebb9@byu.net>
34995
34996         Provide fallback for older kernels.
34997         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34998         Provide runtime fallback if kernel lacks support.
34999         Reported by Mike Frysinger.
35000
35001 2008-06-02  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
35004         it exists.
35005
35006 2008-06-02  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
35009         * lib/copy-acl.c (qcopy_acl): Update comment.
35010
35011 2008-06-02  Bruno Haible  <bruno@clisp.org>
35012
35013         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
35014         like ACL APIs.
35015
35016 2008-06-02  Bruno Haible  <bruno@clisp.org>
35017
35018         * tests/test-file-has-acl.sh: Use different code for Cygwin.
35019         * tests/test-set-mode-acl.sh: Likewise.
35020         * tests/test-copy-acl.sh: Likewise.
35021         * tests/test-copy-file.sh: Likewise.
35022
35023 2008-06-02  Bruno Haible  <bruno@clisp.org>
35024
35025         * tests/test-file-has-acl.sh: Remove unused code.
35026
35027 2008-06-01  Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
35030         (copy_acl): Just a wrapper around qcopy_acl that emits the error
35031         messages.
35032         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
35033
35034 2008-06-01  Bruno Haible  <bruno@clisp.org>
35035
35036         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
35037         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
35038         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
35039         APIs.
35040         * modules/acl-tests (configure.ac): Remove tests now contained in
35041         m4/acl.m4.
35042
35043 2008-06-02  Jim Meyering  <meyering@redhat.com>
35044
35045         announce-gen: use a better key-server host name
35046         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
35047         it may be more consistently reliable.  Suggested by Werner Koch
35048         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
35049
35050 2008-06-01  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
35053         Reported by Voroskoi Andras <voroskoi@gmail.com>.
35054
35055 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
35056
35057         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
35058
35059 2008-06-01  Bruno Haible  <bruno@clisp.org>
35060
35061         New ACL tests.
35062         * tests/test-file-has-acl.sh: New file.
35063         * tests/test-file-has-acl.c: New file.
35064         * tests/test-set-mode-acl.sh: New file.
35065         * tests/test-set-mode-acl.c: New file.
35066         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
35067         * tests/test-copy-acl.c: New file.
35068         * modules/acl-tests: New file, based on modules/copy-file-tests.
35069         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
35070         (Depends-on): Add acl-tests.
35071         (configure.ac): Remove checks.
35072         (Makefile.am): Don't create test-sameacls program here any more.
35073
35074 2008-06-01  Bruno Haible  <bruno@clisp.org>
35075
35076         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
35077         * tests/test-sameacls.c: Include progname.h.
35078         (main): Invoke set_program_name. Portability fixes for MacOS X,
35079         Solaris, HP-UX.
35080
35081 2008-06-01  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
35084         function.
35085         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
35086
35087 2008-06-01  Bruno Haible  <bruno@clisp.org>
35088
35089         * modules/rpmatch (Depends-on): Add strdup.
35090
35091 2008-06-01  Bruno Haible  <bruno@clisp.org>
35092
35093         * lib/pipe.c: Include unistd-safer.h.
35094         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
35095         * modules/pipe (Depends-on): Add unistd-safer.
35096
35097 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35098
35099         * modules/autobuild (configure.ac): Call AB_INIT.
35100
35101 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35102
35103         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35104         Suggested by Bruno Haible <bruno@clisp.org>.
35105
35106 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35107
35108         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35109         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35110         <bruno@clisp.org>.
35111
35112 2008-05-29  Eric Blake  <ebb9@byu.net>
35113
35114         Prefer new POSIX 200x interfaces over futimesat.
35115         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35116         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35117         when available.
35118         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35119
35120 2008-05-28  Bruno Haible  <bruno@clisp.org>
35121
35122         * modules/stpcpy (License): Change to LGPLv2+.
35123         Requested by David Lutterkort <dlutter@redhat.com>.
35124
35125 2008-05-27  Bruno Haible  <bruno@clisp.org>
35126
35127         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35128         current mingw.
35129         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35130
35131 2008-05-27  Bruno Haible  <bruno@clisp.org>
35132
35133         * modules/iconv_open (Link): New section, from module 'iconv'.
35134         * modules/striconv (Link): Likewise.
35135         * modules/striconveh (Link): Likewise.
35136         * modules/xstriconv (Link): Likewise.
35137         * modules/unicodeio (Link): Likewise.
35138         * modules/propername (Link): Likewise.
35139         Reported by Jim Meyering.
35140
35141 2008-05-26  Jim Meyering  <meyering@redhat.com>
35142
35143         sha256: do not artificially restrict buffer length to be < 2^32
35144         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35145         uint32_t to size_t.
35146         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35147         to match.
35148
35149         avoid unaligned access errors, e.g., on sparc
35150         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35151         direct access through a possibly-unaligned uint64* pointer.
35152         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35153         direct access through a possibly-unaligned uint32* pointer.
35154         Prompted by this patch from Tom "spot" Callaway:
35155         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35156
35157         sha512.c: fix typo in comment
35158         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35159
35160 2008-05-25  Bruno Haible  <bruno@clisp.org>
35161
35162         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35163         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35164         (Makefile.am): Update lib_SOURCES.
35165
35166 2008-05-25  Bruno Haible  <bruno@clisp.org>
35167
35168         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35169
35170 2008-05-25  Jim Meyering  <meyering@redhat.com>
35171
35172         useless-if-before-free: freed expr may have white-space differences
35173         * build-aux/useless-if-before-free: Recognize cases in which the
35174         freed expression differs from the tested one in embedded white
35175         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35176         $1 was used, so we can't make any regexp shy.  Improved tests now
35177         detect this.
35178
35179         useless-if-before-free: accept white space in the expression.
35180         * build-aux/useless-if-before-free: For now, any white space
35181         in the expression must be identical in the free argument.
35182
35183         useless-if-before-free: efficiency tweak
35184         * build-aux/useless-if-before-free: Make the expression-matching
35185         regexp "shy".
35186         Make the *outer* regexp shy, not the expr-matching one.
35187
35188         update code-in-comment to accept cast of free arg
35189         * build-aux/useless-if-before-free: Update regexp.
35190
35191 2008-05-25  Bruno Haible  <bruno@clisp.org>
35192
35193         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
35194         * modules/copy-file-tests (Files, Makefile.am): Update.
35195         * tests/test-copy-file.c (func_test_copy): Update.
35196
35197 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
35198
35199         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
35200
35201 2008-05-23  Bruno Haible  <bruno@clisp.org>
35202
35203         Improve support for ACLs on OSF/1.
35204         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
35205         Remove fallback for unknown flavors of ACLs.
35206
35207 2008-05-22  Bruno Haible  <bruno@clisp.org>
35208
35209         Add support for ACLs on OSF/1.
35210         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
35211         replacements.
35212         (acl_free_text): New macro fallback.
35213         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
35214         acl_free.
35215         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35216         acl_free_text function. Require AC_C_INLINE.
35217
35218 2008-05-22  Bruno Haible  <bruno@clisp.org>
35219
35220         Make copy_acl work on MacOS X 10.5.
35221         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
35222         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
35223         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
35224         If MODE_INSIDE_ACL, don't assume that every system has the same text
35225         representation for ACLs as FreeBSD.
35226         * lib/copy-acl.c (copy_acl): Add support for platforms with
35227         !MODE_INSIDE_ACL.
35228         * lib/file-has-acl.c (file_has_acl): Likewise.
35229         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
35230         FreeBSD, MacOS X, or IRIX, respectively.
35231
35232 2008-05-22  Bruno Haible  <bruno@clisp.org>
35233
35234         * lib/acl.h: Don't include <sys/acl.h>.
35235         (GETACLCNT): Move fallback to lib/acl-internal.h.
35236         * lib/acl-internal.h: Include <sys/acl.h> here.
35237         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
35238
35239 2008-05-22  Bruno Haible  <bruno@clisp.org>
35240
35241         Split off copy_acl function to separate file.
35242         * lib/copy-acl.c: New file, extracted from lib/acl.c.
35243         * lib/acl.c (copy_acl): Moved function to separate file.
35244         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
35245         * modules/acl (Files): Add lib/copy-acl.c.
35246         (Makefiles.am): Augment lib_SOURCES.
35247
35248 2008-05-22  Bruno Haible  <bruno@clisp.org>
35249
35250         * modules/copy-file-tests: New file.
35251         * tests/test-copy-file.sh: New file.
35252         * tests/test-copy-file.c: New file.
35253         * tests/test-copy-file-sameacls.c: New file.
35254
35255 2008-05-22  Eric Blake  <ebb9@byu.net>
35256
35257         Avoid gcc warning.
35258         * tests/test-memcmp.c (main): Pass NULL indirectly.
35259
35260 2008-05-21  Bruno Haible  <bruno@clisp.org>
35261
35262         Add reference doc about ACLs.
35263         * doc/acl-resources.txt: New file.
35264         * doc/acl-cygwin.txt: New file.
35265
35266 2008-05-21  Bruno Haible  <bruno@clisp.org>
35267
35268         Avoid one more warning from gcc.
35269         * lib/vasnprintf.c (IF_LINT): Update comments.
35270         (VASNPRINTF): Use it also for the 'prefix' array initializer.
35271
35272 2008-05-21  Jim Meyering  <meyering@redhat.com>
35273
35274         avoid a warning from gcc
35275         * lib/vasnprintf.c (IF_LINT): Define.
35276         (scale10_round_decimal_long_double):
35277         Use it to avoid a "may be used uninitialized" warning.
35278         (scale10_round_decimal_double): Likewise.
35279
35280 2008-05-21  Simon Josefsson  <simon@josefsson.org>
35281
35282         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
35283         declared.
35284
35285 2008-05-20  Bruno Haible  <bruno@clisp.org>
35286
35287         * tests/test-memcmp.c (main): Test also the sign of the result. Test
35288         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
35289
35290 2008-05-20  Simon Josefsson  <simon@josefsson.org>
35291
35292         * modules/memcmp-tests: New file.
35293         * tests/test-memcmp.c: New file.
35294
35295 2008-05-19  Bruno Haible  <bruno@clisp.org>
35296
35297         * modules/propername (Notice, configure.ac): Put quoted "..." into
35298         --keyword option.
35299         * lib/propername.h: Update comments accordingly.
35300         Reported by Eric Blake.
35301
35302 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
35303
35304         * modules/getpass-gnu (Depends-on): Add fseeko.
35305
35306 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35307
35308         * modules/base64-tests: New file.
35309
35310 2008-05-19  Bo Borgerson <gigabo@gmail.com>
35311
35312         * lib/base64.c (base64_decode_ctx): If a decode context structure
35313         was passed in use it to ignore newlines.  If a context structure
35314         was _not_ passed in, continue to treat newlines as garbage (this
35315         is the historical behavior).  Formerly base64_decode.
35316         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35317         takes a decode context structure.
35318         * lib/base64.h (base64_decode): Macro for four-argument calls.
35319         (base64_decode_alloc): Likewise.
35320         * lib/base64.c (base64_decode_ctx): If a decode context structure
35321         was passed in use it to ignore newlines.  If a context structure
35322         was _not_ passed in, continue to treat newlines as garbage (this
35323         is the historical behavior).  Formerly base64_decode.
35324         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35325         takes a decode context structure.
35326         * lib/base64.h (base64_decode): Macro for four-argument calls.
35327         (base64_decode_alloc): Likewise.
35328
35329 2008-05-19  Jim Meyering  <meyering@redhat.com>
35330
35331         avoid a warning from gcc
35332         * lib/trim.c (IF_LINT): Define.
35333         (trim2): Use it to avoid a "may be used uninitialized" warning.
35334
35335         Fix doc typo.
35336         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
35337
35338 2008-05-19  Bruno Haible  <bruno@clisp.org>
35339
35340         * doc/glibc-functions/getpass.texi: Document limits of other
35341         implementations.
35342
35343 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35344             Bruno Haible <bruno@clisp.org>
35345
35346         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
35347
35348 2008-05-18  Bruno Haible  <bruno@clisp.org>
35349
35350         * modules/propername: New file, from GNU gettext.
35351         * lib/propername.h: New file, from GNU gettext.
35352         * lib/propername.c: New file, from GNU gettext.
35353         * MODULES.html.sh (Internationalization functions): Add propername.
35354
35355 2008-05-16  Jim Meyering  <meyering@redhat.com>
35356             Bruno Haible  <bruno@clisp.org>
35357
35358         Avoid some warnings from "gcc -Wshadow".
35359         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
35360
35361 2008-05-15  Eric Blake  <ebb9@byu.net>
35362
35363         Extend previous patch to cygwin 1.7.0.
35364         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
35365         fast implementation in cygwin >= 1.7.0.
35366         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35368
35369 2008-05-15  Bruno Haible  <bruno@clisp.org>
35370
35371         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
35372         implementation in glibc >= 2.9.
35373         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35375
35376 2008-05-15  Bruno Haible  <bruno@clisp.org>
35377
35378         * MODULES.html.sh (Internationalization functions): Remove linebreak.
35379         (Unicode string functions): Add unilbrk/*.
35380         Reported by Karl Berry.
35381
35382 2008-05-15  Eric Blake  <ebb9@byu.net>
35383
35384         Fix violation of <stdbool.h> replacement in regex.
35385         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
35386         * lib/regexec.c (re_search_internal): Likewise.
35387         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
35388
35389 2008-05-15  Jim Meyering  <meyering@redhat.com>
35390
35391         avoid distracting test output when git or cvs is not found
35392         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
35393         * tests/test-vc-list-files-git.sh: Likewise.
35394
35395 2008-05-15  Eric Blake  <ebb9@byu.net>
35396
35397         Glibc finally accepted the memmem speedup code, bugzilla #5514.
35398         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
35399         glibc version.
35400         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35401         * doc/posix-functions/strstr.texi (strstr): Likewise.
35402         * lib/str-two-way.h (MAX): Sychronize with glibc.
35403
35404 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
35405
35406         * lib/regcomp.c (optimize_utf8): Add a note on why we test
35407         opr.ctx_type.
35408         (calc_first): Initialize constraint field.
35409         (duplicate_node_closure): Use it instead of special casing ANCHORS.
35410         Fix grammar.
35411         (duplicate_node): Merge constraint field for all node types.
35412         (calc_eclosure_iter): Look at constraint field for all node types.
35413         * lib/regex_internal.c (create_cd_newstate): Don't look at
35414         opr.ctx_type.
35415
35416 2008-05-14  Bruno Haible  <bruno@clisp.org>
35417
35418         Help GCC to do better code generation.
35419         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
35420         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
35421         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
35422         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
35423         Declare with attribute 'malloc' if supported.
35424
35425 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
35426
35427         use "echo STR|wc -c" rather than unportable "expr length STR"
35428         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
35429         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
35430
35431 2008-05-14  Jim Meyering  <meyering@redhat.com>
35432
35433         use dd ibs=$n count=1 ... rather than less-portable head -c$n
35434         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
35435         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
35436         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
35437         via Collin Lasse.
35438
35439 2008-05-14  Eric Blake  <ebb9@byu.net>
35440
35441         Avoid quadratic growth in gl_LIBSOURCES.
35442         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
35443         Suggested by Bruno Haible.
35444
35445         Test xmemdup0.
35446         * modules/xmemdup0-tests: New file.
35447         * tests/test-xmemdup0.c: Likewise.
35448
35449 2008-05-13  Eric Blake  <ebb9@byu.net>
35450
35451         Split xmemdup0 into its own module.
35452         * modules/xmemdup0: New file.
35453         * lib/xmemdup0.h: Likewise.
35454         * lib/xmemdup0.c: Likewise.
35455         * MODULES.html.sh (Memory management functions): Add xmemdup0.
35456         * lib/xalloc.h (xmemdup0): Remove.
35457         * lib/xmalloc.c (xmemdup0): Likewise.
35458
35459 2008-05-13  Eric Blake  <ebb9@byu.net>
35460             Bruno Haible  <bruno@clisp.org>
35461
35462         Reduce number of forks required during autoconf.
35463         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
35464         and gl_LIBSOURCES_DIR.
35465         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
35466         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
35467         m4_syscmd per file.
35468         <m4_foreach_w>: Move...
35469         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
35470
35471 2008-05-13  Eric Blake  <ebb9@byu.net>
35472
35473         * gnulib-tool: Fix various comment typos.
35474
35475 2008-05-12  Bruno Haible  <bruno@clisp.org>
35476
35477         Tailor the linebreaking algorithm.
35478         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
35479
35480 2008-05-12  Bruno Haible  <bruno@clisp.org>
35481
35482         Update to Unicode 5.0.0.
35483         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35484         LBP_JV, LBP_JT. Redistribute values.
35485         (unilbrk_table): Change size.
35486         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
35487         Unicode TR#14 rev. 22.
35488         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35489         LBP_JV, LBP_JT. Redistribute values.
35490         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
35491         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
35492         Update.
35493         * lib/unilbrk/lbrkprop1.h: Regenerated.
35494         * lib/unilbrk/lbrkprop2.h: Regenerated.
35495         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
35496         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35497         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35498         Likewise.
35499         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35500         Likewise.
35501         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35502         result.
35503         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35504         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35505         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35506         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35507         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35508         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35509
35510 2008-05-11  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35513
35514 2008-05-11  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35517         * modules/unilbrk/gen-lbrk: New file.
35518
35519 2008-05-11  Bruno Haible  <bruno@clisp.org>
35520
35521         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35522         * m4/sha512.m4 (gl_SHA512): Likewise.
35523
35524 2008-05-11  Jim Meyering  <meyering@redhat.com>
35525
35526         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35527         * modules/crypto/sha256: New file.
35528         * modules/crypto/sha512: Likewise.
35529         * lib/sha256.c: Likewise.
35530         * lib/sha256.h: Likewise.
35531         * lib/sha512.c: Likewise.
35532         * lib/sha512.h: Likewise.
35533         * lib/u64.h: Likewise.
35534         * m4/sha256.m4: Likewise.
35535         * m4/sha512.m4: Likewise.
35536         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35537
35538 2008-05-10  Bruno Haible  <bruno@clisp.org>
35539
35540         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35541         (Input/Output <stdio.h>): Add xprintf.
35542         (Signal handling <signal.h>): Add strsignal.
35543         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35544         (Core language properties): Add func.
35545         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35546         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35547         strings.
35548         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35549         (Input/output): New section.
35550         (File system functions): Add openat-die, stat-macros.
35551         (Networking functions): Add sockets.
35552         (Unicode string functions): Add unictype/*.
35553         (Support for building libraries and executables): Add gperf.
35554         (Support for building documentation): Add agpl-3.0.
35555         (Misc): Add nocrash.
35556
35557 2008-05-10  Bruno Haible  <bruno@clisp.org>
35558
35559         * modules/unictype/gen-ctype: New file.
35560
35561 2008-05-10  Jim Meyering  <meyering@redhat.com>
35562
35563         Make chdir-safer.c more efficient on a system with no symlinks.
35564         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35565         also if ELOOP is zero.  Suggested by Bruno Haible.
35566
35567         Make chdir-safer.c slightly safer.
35568         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35569         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35570
35571         Avoid compile failure on systems without ELOOP (like mingw).
35572         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35573         Reported by Bruno Haible.
35574
35575 2008-05-10  Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35578         (is_utf8_encoding): Use a case-insensitive comparison.
35579         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35580         streq.
35581
35582 2008-05-10  Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35585         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35586         * lib/unilbrk/ulc-common.h (iconv_string_length,
35587         iconv_string_keeping_offsets): Remove declarations.
35588         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35589         Don't include <iconv.h>, streq.h, xsize.h.
35590         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35591         conversion.
35592         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35593         <iconv.h>, streq.h, xsize.h.
35594         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35595         conversion.
35596         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35597         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35598         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35599         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35600
35601 2008-05-10  Bruno Haible  <bruno@clisp.org>
35602
35603         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35604         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35605
35606         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35607         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35608
35609         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35610         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35611
35612         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35613         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35614
35615         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35616         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35617
35618         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35619         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35620
35621         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35622         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35623
35624         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35625         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35626
35627 2008-05-10  Bruno Haible  <bruno@clisp.org>
35628
35629         Split up 'linebreak' module.
35630         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35631         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35632         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35633         modifications.
35634         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35635         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35636         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35637         lib/linebreak.c.
35638         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35639         lib/linebreak.c.
35640         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35641         lib/linebreak.c.
35642         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35643         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35644         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35645         lib/linebreak.c.
35646         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35647         lib/linebreak.c.
35648         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35649         lib/linebreak.c.
35650         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35651         lib/linebreak.c.
35652         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35653         lib/linebreak.c.
35654         * modules/unilbrk/base: New file.
35655         * modules/unilbrk/tables: New file.
35656         * modules/unilbrk/u8-possible-linebreaks: New file.
35657         * modules/unilbrk/u16-possible-linebreaks: New file.
35658         * modules/unilbrk/u32-possible-linebreaks: New file.
35659         * modules/unilbrk/ulc-common: New file.
35660         * modules/unilbrk/ulc-possible-linebreaks: New file.
35661         * modules/unilbrk/u8-width-linebreaks: New file.
35662         * modules/unilbrk/u16-width-linebreaks: New file.
35663         * modules/unilbrk/u32-width-linebreaks: New file.
35664         * modules/unilbrk/ulc-width-linebreaks: New file.
35665         * lib/linebreak.h: Remove file.
35666         * lib/linebreak.c: Remove file.
35667         * m4/linebreak.m4: Remove file.
35668         * modules/linebreak: Remove file.
35669         * NEWS: Mention the changes.
35670
35671 2008-05-09  Eric Blake  <ebb9@byu.net>
35672
35673         Add xmemdup0.
35674         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35675         implementation.
35676         * lib/xmalloc.c (xmemdup0): New C implementation.
35677
35678 2008-05-08  Bruno Haible  <bruno@clisp.org>
35679
35680         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35681
35682 2008-05-07  Eric Blake  <ebb9@byu.net>
35683
35684         Support cross-compilation of <wctype.h>.
35685         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35686         AC_CACHE_CHECK.
35687
35688 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35689
35690         * build-aux/vc-list-files: Add support for bzr.
35691
35692 2008-05-03  Jim Meyering  <meyering@redhat.com>
35693
35694         avoid failed assertion with tight malloc
35695         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35696
35697 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35698
35699         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35700         are needed from arpa/inet.h.
35701         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35702         Reported by Bruno Haible.
35703
35704 2008-05-02  Jim Meyering  <meyering@redhat.com>
35705
35706         avoid compilation error on FreeBSD 6
35707         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35708
35709 2008-05-01  Jim Meyering  <meyering@redhat.com>
35710
35711         useless-if-before-free: correct --help's exit status description
35712         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35713         for one or more matches, etc.  Reported by Bruno Haible.
35714
35715         vc-list-files: make the stand-alone gnulib test work
35716         * modules/vc-list-files-tests (configure.ac):
35717         Define and AC_SUBST abs_aux_dir.
35718         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35719         $(abs_top_srcdir) to each script and having each of them
35720         duplicate the work of setting PATH, set PATH here, using
35721         the new variable, abs_aux_dir instead.
35722         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35723         * tests/test-vc-list-files-git.sh: Likewise.
35724         Reported by Bruno Haible.
35725
35726 2008-05-01  Bruno Haible  <bruno@clisp.org>
35727
35728         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35729         reallocation. Rename 'done' to 'found_delimiter'.
35730
35731 2008-05-01  Jim Meyering  <meyering@redhat.com>
35732
35733         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35734         * build-aux/vc-list-files: Use `...`, not $(...).
35735
35736 2008-04-30  Jim Meyering  <meyering@redhat.com>
35737
35738         add tests for vc-list-files
35739         * modules/vc-list-files-tests: New module.
35740         * tests/test-vc-list-files-cvs.sh: New file.
35741         * tests/test-vc-list-files-git.sh: New file.
35742
35743         avoid a warning from gcc
35744         * lib/getndelim2.c (IF_LINT): Define.
35745         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35746
35747         vc-list-files: work properly with build-aux/cvsu, too
35748         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35749         to all cvs-based clauses.
35750
35751         vc-list-files: work properly in the CVS+awk case, too
35752         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35753
35754         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35755         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35756         take more than one file argument, so .  Add quotes, just in case $dir
35757         ever contains a shell meta-character.  Prompted by Soren Hansen in
35758         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35759
35760 2008-04-29  Eric Blake  <ebb9@byu.net>
35761
35762         Optimize getndelim2 to use block operations when possible.
35763         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35764         freadseek, and memchr2.
35765         * lib/getndelim2.c (getndelim2): Use them for block reads.
35766
35767 2008-04-29  Bruno Haible  <bruno@clisp.org>
35768
35769         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35770         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35771         * modules/inet_ntop (Depends-on): Add extensions.
35772         * modules/inet_pton (Depends-on): Likewise.
35773         Reported by Simon Josefsson.
35774
35775 2008-04-29  Jim Meyering  <meyering@redhat.com>
35776
35777         When the is more than one match in a block, match all of them.
35778         * build-aux/useless-if-before-free: Iterate through each block
35779         until there are no more matches.
35780
35781         Fix broken useless-if-before-free script.
35782         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35783         the expression to match cast of argument to free-like function.
35784
35785 2008-04-29  Eric Blake  <ebb9@byu.net>
35786
35787         Use new header.
35788         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35789
35790 2008-04-29  Jim Meyering  <meyering@redhat.com>
35791
35792         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35793         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35794         by gnulib to exist and to declare e.g., inet_ntop.
35795         Don't include "inet_ntop.h", now removed.
35796
35797         * m4/arpa_inet_h.m4: Remove trailing blanks.
35798
35799 2008-04-29  Eric Blake  <ebb9@byu.net>
35800
35801         Silence valgrind on safe reads beyond potential array bounds.
35802         * lib/rawmemchr.valgrind: New file.
35803         * lib/strchrnul.valgrind: Likewise.
35804         * modules/rawmemchr (Files): Distribute new file.
35805         * modules/strchrnul (Files): Likewise.
35806         Suggested by Bruno Haible.
35807
35808 2008-04-29  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35811         (inet_ntop, inet_pton): Change portability warning's wording.
35812         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35813         Invoke gl_CHECK_NEXT_HEADERS.
35814         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35815         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35816         set ARPA_INET_H.
35817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35818         * modules/arpa_inet (Description): No longer only for systems that
35819         lack it.
35820         (Depends-on): Add include_next.
35821         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35822         HAVE_ARPA_INET_H.
35823
35824 2008-04-29  Jim Meyering  <meyering@redhat.com>
35825
35826         * modules/mkdir (License): Re-license as LGPLv2+.
35827
35828 2008-04-29  Bruno Haible  <bruno@clisp.org>
35829
35830         * modules/rawmemchr (Maintainer): Set to Eric.
35831         * modules/strchrnul (Maintainer): Likewise.
35832
35833 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35834
35835         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35836         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35837
35838         * modules/arpa_inet (arpa/inet.h): Use them.
35839
35840 2008-04-28  Eric Blake  <ebb9@byu.net>
35841
35842         Test getndelim2.
35843         * modules/getndelim2-tests: New file.
35844         * tests/test-getndelim2.c: Likewise.
35845         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35846         stream.
35847         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35848
35849         * MODULES.html.sh: Document new module.
35850
35851 2008-04-20  Bruno Haible  <bruno@clisp.org>
35852
35853         * lib/c-stack.c (die): Use raise.
35854         * modules/c-stack (Depends-on): Add raise.
35855
35856 2008-04-28  Bruno Haible  <bruno@clisp.org>
35857
35858         Expect rpmatch to be declared.
35859         * lib/yesno.c (rpmatch): Remove declaration.
35860
35861         Declare rpmatch.
35862         * lib/stdlib.in.h (rpmatch): New declaration.
35863         * lib/rpmatch.c: Include <stdlib.h> first.
35864         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35865         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35867         HAVE_RPMATCH.
35868         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35869         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35870         (Include): Set to <stdlib.h>.
35871         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35872         HAVE_RPMATCH.
35873         * NEWS: Document the change.
35874
35875 2008-04-28  Bruno Haible  <bruno@clisp.org>
35876
35877         Change rpmatch to use nl_langinfo when appropriate.
35878         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35879         (N_): New macro.
35880         (localized_pattern): New function/macro.
35881         (try): Remove match, nomatch arguments. Copy the pattern into safe
35882         memory before caching it.
35883         (rpmatch): Use localized_pattern. Add translator comments.
35884         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35885         Suggested by Eric Blake.
35886         * modules/rpmatch (Depends-on): Add stdbool.
35887
35888 2008-04-28  Eric Blake  <ebb9@byu.net>
35889
35890         Add rawmemchr module, matching glibc.
35891         * modules/string (Makefile.am): New indicator.
35892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35893         * lib/string.in.h (rawmemchr): Declare when appropriate.
35894         * modules/rawmemchr: New file.
35895         * m4/rawmemchr.m4: Likewise.
35896         * lib/rawmemchr.c: Likewise.
35897         * modules/rawmemchr-tests: Likewise.
35898         * tests/test-rawmemchr.c: Likewise.
35899         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35900         module.
35901         * modules/strchrnul (Depends-on): Add rawmemchr.
35902         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35903
35904         Whitespace cleanup.
35905         * tests/test-strchrnul.c: Reindent.
35906         * lib/strchrnul.c: Likewise.
35907
35908         Optimize and test strchrnul.
35909         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35910         * modules/strchrnul-tests: New file.
35911         * tests/test-strchrnul.c: Likewise.
35912
35913         Remove intprops dependency.
35914         * modules/memchr (Depends-on): Remove intprops.
35915         * modules/memrchr (Depends-on): Likewise.
35916         * modules/memchr2 (Depends-on): Likewise.
35917         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35918         * lib/memrchr.c (__memrchr): Likewise.
35919         * lib/memrchr2.c (memchr2): Likewise.
35920         Reported by Simon Josefsson.
35921
35922 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35923
35924         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35925         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35926
35927 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35928
35929         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
35930
35931         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
35932
35933         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
35934
35935         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
35936         declarations.
35937         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
35938
35939         * m4/inet_pton.m4: Don't check for header files.
35940
35941         * m4/inet_ntop.m4: Don't check for header files.
35942
35943 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35944
35945         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
35946         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
35947         trigger for cygwin).
35948         Reported by Bruno Haible  <bruno@clisp.org>.
35949
35950 2008-04-28  Bruno Haible  <bruno@clisp.org>
35951
35952         * doc/posix-functions/strdup.texi: Mention mingw problem.
35953
35954 2008-04-27  Bruno Haible  <bruno@clisp.org>
35955
35956         * modules/stat-time-tests (Depends-on): Add sleep.
35957         * tests/test-stat-time.c (force_unlink): New function.
35958         (cleanup): Use it.
35959         (test_mtime): Remove the ctime related tests.
35960         (test_ctime): New function, containing the ctime related tests.
35961         (main): Call test_ctime, except on native Windows platforms.
35962
35963 2008-04-27  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/rpmatch.c (rpmatch): Add some comments.
35966         Reported by James Youngman <jay@gnu.org>.
35967
35968 2008-04-27  Bruno Haible  <bruno@clisp.org>
35969
35970         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
35971         quiet NaNs.
35972
35973 2008-04-27  Bruno Haible  <bruno@clisp.org>
35974
35975         Make test-yesno.sh work on mingw.
35976         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35977         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35978         (main): Set stdin to binary mode.
35979         * modules/yesno-tests (Depends-on): Add binary-io.
35980
35981 2008-04-27  Bruno Haible  <bruno@clisp.org>
35982
35983         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35984         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35985         argument that lie outside the IEEE 854 domain.
35986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35987         (gl_ISFINITE): Use it.
35988         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35989
35990 2008-04-27  Bruno Haible  <bruno@clisp.org>
35991
35992         Allow local renaming in config.h.
35993         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35994
35995 2008-04-27  Bruno Haible  <bruno@clisp.org>
35996
35997         * lib/memchr.c (__memchr): Change type of 'i'.
35998         * lib/memchr2.c (memchr2): Likewise.
35999
36000 2008-04-26  Eric Blake  <ebb9@byu.net>
36001         and Bruno Haible  <bruno@clisp.org>
36002
36003         Optimize and test memrchr.
36004         * modules/memrchr (Depends-on): Add intprops.
36005         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
36006         * modules/memrchr-tests: New file.
36007         * tests/test-memrchr.c: New file.
36008
36009 2008-04-26  Bruno Haible  <bruno@clisp.org>
36010
36011         Add tentative support for DragonFly BSD.
36012         * lib/stdio-impl.h: Add macros for DragonFly BSD.
36013         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
36014         fp.
36015         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36016         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
36017         * lib/fpurge.c (fpurge): Likewise.
36018         * lib/freadable.c (freaadable): Likewise.
36019         * lib/freadahead.c (freadahead): Likewise.
36020         * lib/freading.c (freading): Likewise.
36021         * lib/freadptr.c (freadptr): Likewise.
36022         * lib/freadseek.c (freadptrinc): Likewise.
36023         * lib/fseeko.c (fseeko): Likewise.
36024         * lib/fseterr.c (fseterr): Likewise.
36025         * lib/fwritable.c (fwritable): Likewise.
36026         * lib/fwriting.c (fwriting): Likewise.
36027
36028 2008-04-26  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/stdio-impl.h: New file.
36031         * lib/fbufmode.c: Include stdio-impl.h.
36032         (fbufmode): Use fp_, remove redundant #defines.
36033         * lib/fflush.c: Include stdio-impl.h.
36034         (clear_ungetc_buffer): Remove redundant #defines.
36035         * lib/fpurge.c: Include stdio-impl.h.
36036         (fpurge): Remove redundant #defines.
36037         * lib/freadable.c: Include stdio-impl.h.
36038         (freadable): Remove redundant #defines.
36039         * lib/freadahead.c: Include stdio-impl.h.
36040         (freadahead): Remove redundant #defines.
36041         * lib/freading.c: Include stdio-impl.h.
36042         (freading): Remove redundant #defines.
36043         * lib/freadptr.c: Include stdio-impl.h.
36044         (freadptr): Remove redundant #defines.
36045         * lib/freadseek.c: Include stdio-impl.h.
36046         (freadptrinc): Remove redundant #defines.
36047         * lib/fseeko.c: Include stdio-impl.h.
36048         (rpl_fseeko): Remove redundant #defines.
36049         * lib/fseterr.c: Include stdio-impl.h.
36050         (fseterr): Remove redundant #defines.
36051         * lib/fwritable.c: Include stdio-impl.h.
36052         (fwritable: Remove redundant #defines.
36053         * lib/fwriting.c: Include stdio-impl.h.
36054         (fwriting): Remove redundant #defines.
36055         * modules/fbufmode (Files): Add lib/stdio-impl.h.
36056         * modules/fflush (Files): Likewise.
36057         * modules/fpurge (Files): Likewise.
36058         * modules/freadable (Files): Likewise.
36059         * modules/freadahead (Files): Likewise.
36060         * modules/freading (Files): Likewise.
36061         * modules/freadptr (Files): Likewise.
36062         * modules/freadseek (Files): Likewise.
36063         * modules/fseeko (Files): Likewise.
36064         * modules/fseterr (Files): Likewise.
36065         * modules/fwritable (Files): Likewise.
36066         * modules/fwriting (Files): Likewise.
36067
36068 2008-04-26  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36071         restore_seek_optimization, update_fpos_cache): New functions, extracted
36072         from rpl_fflush.
36073         (rpl_fflush): Use them.
36074         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
36075         (gl_REPLACE_FFLUSH): Use it.
36076
36077 2008-04-26  Bruno Haible  <bruno@clisp.org>
36078
36079         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
36080         on Solaris.
36081         * tests/test-xstrtoimax.sh: Likewise.
36082         * tests/test-xstrtoumax.sh: Likewise.
36083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36084
36085 2008-04-26  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/memchr-tests: New file.
36088         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
36089
36090 2008-04-26  Eric Blake  <ebb9@byu.net>
36091             Bruno Haible  <bruno@clisp.org>
36092
36093         * lib/memchr.c: Include intprops.h.
36094         (__memchr): Optimize parallel detection of matching bytes. Rename local
36095         variables. Add explanatory comments.
36096
36097 2008-04-26  Bruno Haible  <bruno@clisp.org>
36098
36099         Fix module 'memchr', broken since 2000-10-28.
36100         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
36101
36102 2008-04-26  Bruno Haible  <bruno@clisp.org>
36103
36104         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36105         comments.
36106
36107 2008-04-25  Eric Blake  <ebb9@byu.net>
36108
36109         Use native fstatat on cygwin 1.7.0.
36110         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36111         first.
36112
36113 2008-04-23  Eric Blake  <ebb9@byu.net>
36114
36115         Improve memchr2 performance.
36116         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36117         NUL bytes.
36118         * modules/memchr2 (Depends-on): Use intprops.h.
36119
36120 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36121
36122         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36123         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36124         <blp@cs.stanford.edu>.
36125
36126 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36127
36128         * lib/arpa_inet.in.h: New file.
36129
36130         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36131         (Makefile.am): Sed in substitute header file.
36132
36133         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36134         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36135
36136         * modules/inet_ntop (configure.ac): Use
36137         gl_ARPA_INET_MODULE_INDICATOR.
36138
36139         * modules/inet_pton (configure.ac): Use
36140         gl_ARPA_INET_MODULE_INDICATOR.
36141
36142 2008-04-22  Jim Meyering  <meyering@redhat.com>
36143
36144         * modules/verify (License): Re-license as LGPLv2+.
36145
36146 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36147
36148         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36149         parameter to void* as per POSIX standard (MinGW uses char*).
36150
36151 2008-04-21  Bruno Haible  <bruno@clisp.org>
36152
36153         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36154         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36155         Define to replacements if REPLACE_ISWCNTRL is 1.
36156         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36157         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36158         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36159         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36160         what it fixes.
36161         * doc/posix-functions/iswalpha.texi: Likewise.
36162         * doc/posix-functions/iswblank.texi: Likewise.
36163         * doc/posix-functions/iswcntrl.texi: Likewise.
36164         * doc/posix-functions/iswdigit.texi: Likewise.
36165         * doc/posix-functions/iswgraph.texi: Likewise.
36166         * doc/posix-functions/iswlower.texi: Likewise.
36167         * doc/posix-functions/iswprint.texi: Likewise.
36168         * doc/posix-functions/iswpunct.texi: Likewise.
36169         * doc/posix-functions/iswspace.texi: Likewise.
36170         * doc/posix-functions/iswupper.texi: Likewise.
36171         * doc/posix-functions/iswxdigit.texi: Likewise.
36172         Reported by Alain Guibert.
36173
36174 2008-04-21  Bruno Haible  <bruno@clisp.org>
36175
36176         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
36177         Patch by Alain Guibert.
36178
36179 2008-04-21  Bruno Haible  <bruno@clisp.org>
36180
36181         Fix test failures on mingw.
36182         * tests/test-xstrtol.c (print_no_progname): New function.
36183         (main): Install it in error_print_progname hook.
36184         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
36185         * tests/test-xstrtoimax.sh: Likewise.
36186         * tests/test-xstrtoumax.sh: Likewise.
36187
36188 2008-04-21  Bruno Haible  <bruno@clisp.org>
36189
36190         Fix test failure on mingw.
36191         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
36192
36193 2008-04-21  Bruno Haible  <bruno@clisp.org>
36194
36195         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
36196         Actually assign a value.
36197
36198 2008-04-20  Bruno Haible  <bruno@clisp.org>
36199
36200         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
36201         take 2.
36202         * lib/canonicalize.c (canonicalize_file_name): Elide if the
36203         'canonicalize-lgpl' module is also used.
36204         * lib/canonicalize-lgpl.c: Undo last change.
36205         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
36206
36207 2008-04-20  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
36210         config.h. Provide _mkdir based fallback for mingw.
36211         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
36212         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
36213         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
36214         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
36215         rather than defining mkdir in config.h.
36216         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
36217         (gl_SYS_STAT_H_DEFAULTS): New macro.
36218         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
36219         HAVE_IO_H any more.
36220         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
36221         HAVE_DECL_MKDIR and HAVE_IO_H.
36222
36223 2008-04-20  Bruno Haible  <bruno@clisp.org>
36224
36225         * lib/isapipe.c: Port to native Windows platforms.
36226
36227 2008-04-20  Bruno Haible  <bruno@clisp.org>
36228
36229         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
36230
36231 2008-04-21  Eric Blake  <ebb9@byu.net>
36232
36233         Work around preprocessors that don't handle UINTMAX_MAX.
36234         * lib/memchr2.c (memchr2): Avoid embedded #if.
36235         Reported by Alain Guibert, fix suggested by Bruno Haible.
36236
36237 2008-04-21  Simon Josefsson  <simon@josefsson.org>
36238
36239         * doc/posix-functions/strftime.texi (strftime): Explain better
36240         Windows incompatibility.  Suggested by Micah Cowan
36241         <micah@cowan.name>.
36242
36243 2008-04-20  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
36246         unistr/u8-mblen.
36247
36248 2008-04-20  Bruno Haible  <bruno@clisp.org>
36249
36250         Fix test failure on platforms with non-GNU iconv.
36251         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
36252         (U_TO_U8): Use it, rather than u16_to_u8.
36253         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
36254         units at the end of the input string.
36255         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
36256
36257 2008-04-20  Bruno Haible  <bruno@clisp.org>
36258
36259         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
36260         when the resulting length is 0.
36261         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
36262
36263 2008-04-20  Bruno Haible  <bruno@clisp.org>
36264
36265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
36266         works.
36267         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
36268
36269 2008-04-20  Bruno Haible  <bruno@clisp.org>
36270
36271         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
36272         * modules/tsearch-tests (configure.ac): Test for initstate function.
36273
36274 2008-04-20  Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
36277         for nlink_t if missing.
36278         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
36279
36280 2008-04-19  Bruno Haible  <bruno@clisp.org>
36281
36282         Work around snprintf bug on Linux libc5.
36283         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
36284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36285         gl_SNPRINTF_SIZE1.
36286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36287         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
36288         that test failed.
36289         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
36290         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
36291         * modules/snprintf (Files): Add m4/printf.m4.
36292         * modules/vsnprintf (Files): Likewise.
36293         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
36294         * doc/posix-functions/vsnprintf.texi: Likewise.
36295
36296 2008-04-19  Bruno Haible  <bruno@clisp.org>
36297
36298         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
36299         from 0.0058 to less than 10^-7.
36300
36301 2008-04-19  Bruno Haible  <bruno@clisp.org>
36302
36303         Fix rounding when a precision is given.
36304         * lib/vasnprintf.c (is_borderline): New function.
36305         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
36306         9...9x.
36307         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
36308         %e, %g.
36309         * tests/test-vasprintf-posix.c (test_function): Likewise.
36310         * tests/test-snprintf-posix.h (test_function): Likewise.
36311         * tests/test-sprintf-posix.h (test_function): Likewise.
36312         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
36313         * tests/test-printf-posix.h (test_function): Likewise.
36314         * tests/test-printf-posix.output: Update.
36315         Reported by John Darrington <john@darrington.wattle.id.au> via
36316         Ben Pfaff <blp@cs.stanford.edu>.
36317
36318 2008-04-18  Simon Josefsson  <simon@josefsson.org>
36319
36320         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
36321         Suggested by Bruno Haible <bruno@clisp.org>.
36322
36323 2008-04-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
36326         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
36327         implementation.
36328         Patch by Bruce Merry <bmerry@gmail.com>.
36329
36330 2008-04-17  Simon Josefsson  <simon@josefsson.org>
36331
36332         * doc/posix-functions/strftime.texi (strftime): Mention that %e
36333         doesn't work under Windows.
36334
36335 2008-04-16  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
36338         New macros.
36339         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
36340         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
36341         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
36342         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
36343         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
36344         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
36345         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
36346         macros.
36347         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
36348         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
36349         Northern Sotho, Uighur.
36350
36351 2008-04-16  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
36354         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
36355         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
36356         Reported by Daniel Bergström <daniel@octocode.com>.
36357
36358 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
36359             Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
36362         function.
36363         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
36364         New functions, mostly extracted from gl_locale_name_default.
36365         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
36366
36367 2008-04-16  Eric Blake  <ebb9@byu.net>
36368
36369         Adjust strtod detection to catch glibc 2.7 bug.
36370         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
36371         Reported by John Gatewood Ham.
36372
36373 2008-04-16  Bruno Haible  <bruno@clisp.org>
36374
36375         Add tentative support for Linux libc5.
36376         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
36377         * lib/fpurge.c (fpurge): Likewise.
36378         * lib/freadable.c (freadable): Likewise.
36379         * lib/freadahead.c (freadahead): Likewise.
36380         * lib/freading.c (freading): Likewise.
36381         * lib/freadptr.c (freadptr): Likewise.
36382         * lib/freadseek.c (freadptrinc): Likewise.
36383         * lib/fseeko.c (rpl_fseeko): Likewise.
36384         * lib/fseterr.c (fseterr): Likewise.
36385         * lib/fwritable.c (fwritable): Likewise.
36386         * lib/fwriting.c (fwriting): Likewise.
36387         Reported by Alain Guibert <alguibert+bts@free.fr>.
36388
36389 2008-04-15  Bruno Haible  <bruno@clisp.org>
36390
36391         * modules/mathl (configure.ac): Define module indicator.
36392
36393 2008-04-15  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/logl.c (logl): Remove unused variables.
36396
36397 2008-04-15  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
36400         fails.
36401
36402 2008-04-15  Bruno Haible  <bruno@clisp.org>
36403
36404         * lib/trim.c (trim2): Fix argument of isspace() macro.
36405
36406 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
36407
36408         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
36409         to 0.
36410         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
36411
36412 2008-04-14  Bruno Haible  <bruno@clisp.org>
36413
36414         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
36415         AC_LANG_PROGRAM argument.
36416         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
36417         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
36418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36419         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36420         * m4/math_h.m4 (gl_MATH_H): Likewise.
36421         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36423         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36424         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
36425         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36426         * m4/regex.m4 (gl_REGEX): Likewise.
36427         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
36428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
36429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36430         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
36431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36432         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36435
36436 2008-04-14  Jim Meyering  <meyering@redhat.com>
36437
36438         test-strtod: fix typos: s/abs/fabs/
36439         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
36440
36441 2008-04-13  Bruno Haible  <bruno@clisp.org>
36442
36443         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
36444         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
36445         module is also used and while not building the reloc-wrapper.
36446
36447 2008-04-13  Bruno Haible  <bruno@clisp.org>
36448
36449         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
36450
36451 2008-04-13  Bruno Haible  <bruno@clisp.org>
36452
36453         Fix AIX compilation failure introduced on 2008-04-02.
36454         * tests/test-frexp.c (exp): Undefine before redefining.
36455         * tests/test-frexpl.c (exp): Likewise.
36456
36457 2008-04-13  Bruno Haible  <bruno@clisp.org>
36458
36459         Work around a HP-UX stdio bug.
36460         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
36461         * tests/test-ftello.c (main): Likewise.
36462         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
36463         * doc/posix-functions/ftello.texi: Likewise.
36464
36465 2008-04-13  Bruno Haible  <bruno@clisp.org>
36466
36467         Make test-signbit pass on HP-UX/hppa.
36468         * tests/test-signbit.c (minus_zerol): New variable.
36469         (test_signbitl): Use it.
36470
36471 2008-04-13  Bruno Haible  <bruno@clisp.org>
36472
36473         Make truncl work on OSF/1 4.0.
36474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
36475         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36476         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
36478         HAVE_DECL_TRUNCL.
36479         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
36480         HAVE_DECL_TRUNCL.
36481         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
36482
36483 2008-04-13  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/unictype.h: Remove trailing comma from enumeration definitions.
36486
36487 2008-04-13  Bruno Haible  <bruno@clisp.org>
36488
36489         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
36490         expression, so as to avoid HP-UX 11 cc compiler bug.
36491
36492 2008-04-13  Bruno Haible  <bruno@clisp.org>
36493
36494         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
36495
36496 2008-04-13  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/git-merge-changelog.c: Remove empty declaration outside of
36499         functions.
36500
36501 2008-04-13  Bruno Haible  <bruno@clisp.org>
36502
36503         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36504
36505 2008-04-13  Bruno Haible  <bruno@clisp.org>
36506
36507         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36508         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36510         also if it exists but lacks definitions of the SHUT_* macros.
36511         * modules/sys_socket (Description): Update.
36512         Reported by Elbert Pol <e.pol@chello.nl>.
36513
36514 2008-04-13  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/localcharset.c (OS2): Don't redefine if already defined.
36517         Reported by Elbert Pol <e.pol@chello.nl>.
36518
36519 2008-04-13  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/binary-io.h [__EMX__]: Include <io.h>.
36522         Reported by Elbert Pol <e.pol@chello.nl>.
36523
36524 2008-04-12  Bruno Haible  <bruno@clisp.org>
36525
36526         * lib/fpucw.h: Enable the definitions also for x86_64.
36527         Needed for NetBSD/x86_64.
36528         Reported by Thomas Klausner <tk@giga.or.at>.
36529
36530 2008-04-12  Bruno Haible  <bruno@clisp.org>
36531
36532         * tests/test-strtod.c: Include isnand.h.
36533         (main): Use isnand instead of isnan.
36534         Reported by Jim Meyering.
36535
36536 2008-04-12  Bruno Haible  <bruno@clisp.org>
36537
36538         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36539         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36540
36541 2008-04-12  Jim Meyering  <meyering@redhat.com>
36542
36543         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36544
36545 2008-04-12  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36548         Reported by Elbert Pol <e.pol@chello.nl>.
36549
36550 2008-04-12  Eric Blake  <ebb9@byu.net>
36551
36552         Work around Solaris 10 math.h bug.
36553         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36554         (gl_MATH_H_DEFAULTS): Set up default.
36555         * modules/math (Makefile.am): Replace new indicators.
36556         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36557         * tests/test-math.c (main): Test this.
36558         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36559         * doc/posix-headers/math.texi (math.h): Mention bug.
36560         Reported by Nelson H. F. Beebe and Jim Meyering.
36561
36562 2008-04-11  Bruno Haible  <bruno@clisp.org>
36563
36564         Adapt to future versions of Apple GCC.
36565         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36566         Reported by Peter O'Gorman <peter@pogma.com>.
36567
36568 2008-04-11  Bruno Haible  <bruno@clisp.org>
36569
36570         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36571
36572 2008-04-11  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36575
36576         * modules/getaddrinfo-tests (Makefile.am): Define
36577         test_getaddrinfo_LDADD.
36578
36579 2008-04-11  Bruno Haible  <bruno@clisp.org>
36580
36581         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36582         (init): Fix syntax error.
36583         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36584         is declared.
36585
36586 2008-04-11  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36589         * modules/glob (Depends-on): Add stdbool.
36590
36591 2008-04-11  Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/trim.c: Include <string.h>.
36594
36595 2008-04-11  Eric Blake  <ebb9@byu.net>
36596
36597         Avoid compile failure on OS/2.
36598         * lib/regex_internal.h (internal_function): Disable optimization
36599         on OS/2 (__EMX__), where it caused compiler error.
36600         Reported by Elbert Pol.
36601
36602 2008-04-11  Bruno Haible  <bruno@clisp.org>
36603
36604         Flush the standard error stream before aborting. Needed on mingw.
36605         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36606         * tests/test-array_list.c (ASSERT): Likewise.
36607         * tests/test-array_oset.c (ASSERT): Likewise.
36608         * tests/test-avltree_list.c (ASSERT): Likewise.
36609         * tests/test-avltree_oset.c (ASSERT): Likewise.
36610         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36611         * tests/test-binary-io.c (ASSERT): Likewise.
36612         * tests/test-byteswap.c (ASSERT): Likewise.
36613         * tests/test-c-ctype.c (ASSERT): Likewise.
36614         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36615         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36616         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36617         * tests/test-c-strstr.c (ASSERT): Likewise.
36618         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36619         * tests/test-canonicalize.c (ASSERT): Likewise.
36620         * tests/test-carray_list.c (ASSERT): Likewise.
36621         * tests/test-ceilf1.c (ASSERT): Likewise.
36622         * tests/test-ceilf2.c (ASSERT): Likewise.
36623         * tests/test-ceill.c (ASSERT): Likewise.
36624         * tests/test-count-one-bits.c (ASSERT): Likewise.
36625         * tests/test-fbufmode.c (ASSERT): Likewise.
36626         * tests/test-fflush2.c (ASSERT): Likewise.
36627         * tests/test-floorf1.c (ASSERT): Likewise.
36628         * tests/test-floorf2.c (ASSERT): Likewise.
36629         * tests/test-floorl.c (ASSERT): Likewise.
36630         * tests/test-fopen.c (ASSERT): Likewise.
36631         * tests/test-fpending.c (ASSERT): Likewise.
36632         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36633         * tests/test-fpurge.c (ASSERT): Likewise.
36634         * tests/test-freadable.c (ASSERT): Likewise.
36635         * tests/test-freadahead.c (ASSERT): Likewise.
36636         * tests/test-freading.c (ASSERT): Likewise.
36637         * tests/test-freadptr.c (ASSERT): Likewise.
36638         * tests/test-freadptr2.c (ASSERT): Likewise.
36639         * tests/test-freadseek.c (ASSERT): Likewise.
36640         * tests/test-freopen.c (ASSERT): Likewise.
36641         * tests/test-frexp.c (ASSERT): Likewise.
36642         * tests/test-frexpl.c (ASSERT): Likewise.
36643         * tests/test-fseek.c (ASSERT): Likewise.
36644         * tests/test-fseeko.c (ASSERT): Likewise.
36645         * tests/test-fstrcmp.c (ASSERT): Likewise.
36646         * tests/test-ftell.c (ASSERT): Likewise.
36647         * tests/test-ftello.c (ASSERT): Likewise.
36648         * tests/test-func.c (ASSERT): Likewise.
36649         * tests/test-fwritable.c (ASSERT): Likewise.
36650         * tests/test-fwriting.c (ASSERT): Likewise.
36651         * tests/test-getdelim.c (ASSERT): Likewise.
36652         * tests/test-getline.c (ASSERT): Likewise.
36653         * tests/test-i-ring.c (ASSERT): Likewise.
36654         * tests/test-iconv-utf.c (ASSERT): Likewise.
36655         * tests/test-iconv.c (ASSERT): Likewise.
36656         * tests/test-isfinite.c (ASSERT): Likewise.
36657         * tests/test-isnand.c (ASSERT): Likewise.
36658         * tests/test-isnanf.c (ASSERT): Likewise.
36659         * tests/test-isnanl.h (ASSERT): Likewise.
36660         * tests/test-ldexpl.c (ASSERT): Likewise.
36661         * tests/test-linked_list.c (ASSERT): Likewise.
36662         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36663         * tests/test-localename.c (ASSERT): Likewise.
36664         * tests/test-lseek.c (ASSERT): Likewise.
36665         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36666         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36667         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36668         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36669         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36670         * tests/test-mbschr.c (ASSERT): Likewise.
36671         * tests/test-mbscspn.c (ASSERT): Likewise.
36672         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36673         * tests/test-mbspbrk.c (ASSERT): Likewise.
36674         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36675         * tests/test-mbsrchr.c (ASSERT): Likewise.
36676         * tests/test-mbsspn.c (ASSERT): Likewise.
36677         * tests/test-mbsstr1.c (ASSERT): Likewise.
36678         * tests/test-mbsstr2.c (ASSERT): Likewise.
36679         * tests/test-mbsstr3.c (ASSERT): Likewise.
36680         * tests/test-memchr2.c (ASSERT): Likewise.
36681         * tests/test-memmem.c (ASSERT): Likewise.
36682         * tests/test-open.c (ASSERT): Likewise.
36683         * tests/test-printf-frexp.c (ASSERT): Likewise.
36684         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36685         * tests/test-printf-posix.c (ASSERT): Likewise.
36686         * tests/test-quotearg.c (ASSERT): Likewise.
36687         * tests/test-rbtree_list.c (ASSERT): Likewise.
36688         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36689         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36690         * tests/test-round1.c (ASSERT): Likewise.
36691         * tests/test-roundf1.c (ASSERT): Likewise.
36692         * tests/test-roundl.c (ASSERT): Likewise.
36693         * tests/test-signbit.c (ASSERT): Likewise.
36694         * tests/test-sleep.c (ASSERT): Likewise.
36695         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36696         * tests/test-snprintf.c (ASSERT): Likewise.
36697         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36698         * tests/test-stat-time.c (ASSERT): Likewise.
36699         * tests/test-strcasestr.c (ASSERT): Likewise.
36700         * tests/test-strerror.c (ASSERT): Likewise.
36701         * tests/test-striconv.c (ASSERT): Likewise.
36702         * tests/test-striconveh.c (ASSERT): Likewise.
36703         * tests/test-striconveha.c (ASSERT): Likewise.
36704         * tests/test-strsignal.c (ASSERT): Likewise.
36705         * tests/test-strstr.c (ASSERT): Likewise.
36706         * tests/test-strtod.c (ASSERT): Likewise.
36707         * tests/test-trunc1.c (ASSERT): Likewise.
36708         * tests/test-trunc2.c (ASSERT): Likewise.
36709         * tests/test-truncf1.c (ASSERT): Likewise.
36710         * tests/test-truncf2.c (ASSERT): Likewise.
36711         * tests/test-truncl.c (ASSERT): Likewise.
36712         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36713         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36714         * tests/test-vasnprintf.c (ASSERT): Likewise.
36715         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36716         * tests/test-vasprintf.c (ASSERT): Likewise.
36717         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36718         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36719         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36720         * tests/test-vsnprintf.c (ASSERT): Likewise.
36721         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36722         * tests/test-wcwidth.c (ASSERT): Likewise.
36723         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36724         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36725         * tests/test-xvasprintf.c (ASSERT): Likewise.
36726         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36727         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36728         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36729         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36730         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36731         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36732         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36733         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36734         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36735         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36736         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36737         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36738         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36739         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36740         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36741         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36742         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36743         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36744         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36745         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36746         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36747         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36748         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36749         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36750         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36751         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36752         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36753         * tests/unictype/test-combining.c (ASSERT): Likewise.
36754         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36755         * tests/unictype/test-digit.c (ASSERT): Likewise.
36756         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36757         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36758         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36759         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36760         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36761         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36762         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36763         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36764         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36765         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36766         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36767         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36768         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36769         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36770         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36771         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36772         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36773         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36774         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36775         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36776         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36777         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36778         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36779         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36780         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36781         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36782         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36783         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36784         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36785         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36786         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36787         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36788         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36789         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36790         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36791         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36792         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36793         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36794         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36795         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36796         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36797         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36798         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36799         Reported by Eric Blake.
36800
36801 2008-04-11  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/wchar.in.h: Tweak comment.
36804
36805 2008-04-11  Bruno Haible  <bruno@clisp.org>
36806
36807         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36808         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36809         gl_COMMON.
36810         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36811
36812 2008-04-11  Bruno Haible  <bruno@clisp.org>
36813
36814         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36815
36816 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36817
36818         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36819         of attempting to use non-existing /dev/*random.  Based on patch
36820         from Adam Strzelecki <ono@java.pl> in
36821         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36822
36823 2008-04-08  Bruno Haible  <bruno@clisp.org>
36824
36825         Add tentative support for emx+gcc.
36826         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36827         * lib/fpurge.c (fpurge): Likewise.
36828         * lib/freadable.c (freadable): Likewise.
36829         * lib/freadahead.c (freadahead): Likewise.
36830         * lib/freading.c (freading): Likewise.
36831         * lib/freadptr.c (freadptr): Likewise.
36832         * lib/freadseek.c (freadptrinc): Likewise.
36833         * lib/fseeko.c (rpl_fseeko): Likewise.
36834         * lib/fseterr.c (fseterr): Likewise.
36835         * lib/fwritable.c (fwritable): Likewise.
36836         * lib/fwriting.c (fwriting): Likewise.
36837         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36838
36839 2008-04-09  Eric Blake  <ebb9@byu.net>
36840
36841         Avoid some autoconf warnings.
36842         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36843         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36844         * m4/afs.m4 (gl_AFS): Likewise.
36845         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36846         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36848         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36849         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36850         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36851         (AC_CHECK_DECLS_ONCE): Likewise.
36852         Rename file...
36853         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36854         gnulib-tool requires autoconf 2.59 or better.
36855         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36856
36857 2008-04-08  Eric Blake  <ebb9@byu.net>
36858
36859         Use 'git describe --match' if present (added in git 1.5.5).
36860         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36861         if possible.
36862
36863 2008-04-08  Bruno Haible  <bruno@clisp.org>
36864
36865         Add tentative support for OpenServer.
36866         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36867         _ptr, _cnt.
36868         * lib/fpurge.c (fpurge): Likewise.
36869         * lib/freadable.c (freadable): Likewise.
36870         * lib/freadahead.c (freadahead): Likewise.
36871         * lib/freading.c (freading): Likewise.
36872         * lib/freadptr.c (freadptr): Likewise.
36873         * lib/freadseek.c (freadptrinc): Likewise.
36874         * lib/fseeko.c (rpl_fseeko): Likewise.
36875         * lib/fseterr.c (fseterr): Likewise.
36876         * lib/fwritable.c (fwritable): Likewise.
36877         * lib/fwriting.c (fwriting): Likewise.
36878         Reported by Roger Cornelius <rac@tenzing.org> and
36879         Brian K. White <brian@aljex.com>.
36880
36881 2008-04-06  Jim Meyering  <meyering@redhat.com>
36882
36883         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36884
36885 2008-04-06  Bruno Haible  <bruno@clisp.org>
36886
36887         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36888         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36889         * tests/test-printf-posix.sh: Likewise.
36890         * tests/test-vfprintf-posix.sh: Likewise.
36891         * tests/test-vprintf-posix.sh: Likewise.
36892         * tests/test-xprintf-posix.sh: Likewise.
36893
36894 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36895
36896         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36897         hide error from 'ls', needed on OS/2.
36898         Report by Elbert Pol <elbert.pol@gmail.com>.
36899
36900 2008-04-04  Eric Blake  <ebb9@byu.net>
36901
36902         Make test-fseeko.c failures meaningful.
36903         * tests/test-fseeko.c: Print line number on failure.
36904         * tests/test-fseek.c: Likewise.
36905         Reported by Nelson H. F. Beebe.
36906
36907         Improve strtod bug detection check.
36908         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36909         required for Solaris 10.
36910         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36911
36912 2008-04-04  Bruno Haible  <bruno@clisp.org>
36913
36914         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36915         by m4/setenv.m4.
36916
36917 2008-04-03  Eric Blake  <ebb9@byu.net>
36918
36919         Ensure sane .version contents.
36920         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36921         version string.
36922         * build-aux/git-version-gen: Improve documentation.
36923
36924         Make GNU make output nicer.
36925         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36926         MAKECMDGOALS to enforce message for all command line targets.  Set
36927         srcdir for use in maint.mk.
36928
36929         Another maintainer tweak.
36930         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
36931         a target that regenerates version.
36932
36933 2008-04-03  Jim Meyering  <meyering@redhat.com>
36934
36935         vc-list-files: don't cause coreutils "make po-check" failure
36936         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
36937
36938 2008-04-03  Eric Blake  <ebb9@byu.net>
36939
36940         Allow VPATH usage of vc-list-files.
36941         * build-aux/vc-list-files (scriptversion): Add timestamp.
36942         (options): Add --help, --version, -C.
36943         (CVS): Support installed cvsu.
36944
36945 2008-04-02  Bruno Haible  <bruno@clisp.org>
36946
36947         Avoid some "statement with no effect" warnings from gcc.
36948         * tests/test-wctype.c (main): Explicitly ignore unused values.
36949         Reported by Jim Meyering.
36950
36951 2008-04-02  Jim Meyering  <meyering@redhat.com>
36952
36953         Avoid some warnings from "gcc -Wshadow".
36954         * tests/test-frexp.c (exp): Define to a different identifier.
36955         * tests/test-frexpl.c (exp): Likewise.
36956
36957 2008-04-03  Jim Meyering  <meyering@redhat.com>
36958
36959         bootstrap: remove dangling *.[ch] symlinks from lib
36960         * build-aux/bootstrap [dangling symlink removal]: Move find's
36961         -depth option to precede all others, to avoid a warning.
36962         Remove *.[ch] files too, and from "$source_base" (usually lib/).
36963
36964 2008-04-02  Bruno Haible  <bruno@clisp.org>
36965
36966         Avoid some warnings from "gcc -Wshadow".
36967         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
36968         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
36969         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
36970         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
36971         Reported by Jim Meyering.
36972
36973 2008-04-01  Bruno Haible  <bruno@clisp.org>
36974
36975         Fix test to work on IRIX 6.5 with cc.
36976         * tests/test-math.c (numeric_equal): New function.
36977         (main): Use it.
36978
36979 2008-04-01  Bruno Haible  <bruno@clisp.org>
36980
36981         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36982
36983 2008-04-01  Bruno Haible  <bruno@clisp.org>
36984
36985         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36986         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36987         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36988         (Depends-on): Remove math.
36989
36990         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36991         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36992         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36993         (Depends-on): Remove math.
36994
36995         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36996         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36997         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36998         (Depends-on): Remove math.
36999         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
37000         (Depends-on): Remove math.
37001
37002         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
37003         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37004         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
37005         (Depends-on): Remove math.
37006         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
37007         (Depends-on): Remove math.
37008
37009         * tests/test-round1.c: Include nan.h.
37010         (main): Use NaNd instead of NAN.
37011         * modules/round-tests (Files): Add tests/nan.h.
37012
37013         * tests/test-trunc1.c: Include nan.h.
37014         (main): Use NaNd instead of NAN.
37015         * modules/trunc-tests (Files): Add tests/nan.h.
37016
37017         * tests/test-roundf1.c: Include nan.h.
37018         (main): Use NaNf instead of NAN.
37019         * modules/roundf-tests (Files): Add tests/nan.h.
37020
37021         * tests/test-truncf1.c: Include nan.h.
37022         (main): Use NaNf instead of NAN.
37023         * modules/truncf-tests (Files): Add tests/nan.h.
37024
37025         * tests/test-ceilf1.c: Include nan.h.
37026         (main): Use NaNf instead of NAN.
37027         * modules/ceilf-tests (Files): Add tests/nan.h.
37028
37029         * tests/test-floorf1.c: Include nan.h.
37030         (main): Use NaNf instead of NAN.
37031         * modules/floorf-tests (Files): Add tests/nan.h.
37032
37033         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
37034         (main): Use NaNf instead of NAN.
37035         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
37036
37037         * tests/test-isnand.c: Include nan.h instead of <math.h>.
37038         (main): Use NaNd instead of NAN.
37039         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
37040
37041         * tests/test-frexp.c: Include nan.h.
37042         (main): Use NaNd instead of NAN.
37043         * modules/frexp-tests (Files): Add tests/nan.h.
37044
37045         * lib/isnan.c: Don't include <math.h>.
37046         (FUNC): Don't use NAN macro.
37047         * modules/isnand-nolibm (Depends-on): Remove math.
37048         * modules/isnanf-nolibm (Depends-on): Remove math.
37049         * modules/isnanl (Depends-on): Remove math.
37050         * modules/isnanl-nolibm (Depends-on): Remove math.
37051
37052         * tests/nan.h: New file.
37053
37054 2008-04-01  Eric Blake  <ebb9@byu.net>
37055
37056         Fix typos.
37057         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
37058         values to be the right type.
37059
37060         For now, cater to gnulib strtod inaccuracies.
37061         * tests/test-strtod.c (main): Allow 1-ulp error on expected
37062         fractional results.  While not as nice from a QoI perspective, it
37063         is a quicker patch than correctly implementing decimal to binary
37064         rounding.
37065
37066 2008-03-31  Eric Blake  <ebb9@byu.net>
37067
37068         Guarantee a definition of NAN.
37069         * lib/math.in.h (NAN): Define if missing.
37070         * tests/test-math.c (main): Test it.
37071         * doc/posix-headers/math.texi (math.h): Document this.
37072         * lib/isnan.c (rpl_isnand): Use it.
37073         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
37074         * tests/test-floorf1.c (NaN): Likewise.
37075         * tests/test-frexp.c (NaN): Likewise.
37076         * tests/test-isnand.c (NaN): Likewise.
37077         * tests/test-isnanf.c (NaN): Likewise.
37078         * tests/test-round1.c (NaN): Likewise.
37079         * tests/test-roundf1.c (NaN): Likewise.
37080         * tests/test-snprintf-posix.h (NaN): Likewise.
37081         * tests/test-sprintf-posix.h (NaN): Likewise.
37082         * tests/test-trunc1.c (NaN): Likewise.
37083         * tests/test-truncf1.c (NaN): Likewise.
37084         * tests/test-vasnprintf-posix.c (NaN): Likewise.
37085         * tests/test-vasprintf-posix.c (NaN): Likewise.
37086         * modules/isnand-nolibm (Depends-on): Add math.
37087         * modules/isnanf-nolibm (Depends-on): Likewise.
37088         * modules/isnanl (Depends-on): Likewise.
37089         * modules/isnanl-nolibm (Depends-on): Likewise.
37090         * modules/snprintf-posix-tests (Depends-on): Likewise.
37091         * modules/sprintf-posix-tests (Depends-on): Likewise.
37092         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
37093         * modules/vsprintf-posix-tests (Depends-on): Likewise.
37094         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
37095         * modules/vasprintf-posix-tests (Depends-on): Likewise.
37096
37097 2008-03-31  Bruno Haible  <bruno@clisp.org>
37098
37099         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
37100         * doc/posix-functions/strtod.texi: Likewise.
37101
37102 2008-03-31  Bruno Haible  <bruno@clisp.org>
37103
37104         * tests/test-strtod.c (main): Don't use C99 syntax.
37105
37106 2008-03-31  Bruno Haible  <bruno@clisp.org>
37107
37108         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37109         Reported by Eric Blake.
37110
37111 2008-03-31  Jim Meyering  <meyering@redhat.com>
37112
37113         Don't compare actual signbit return values.
37114         * tests/test-strtod.c (main): Rather, compare only their
37115         zero/non-zero nature.
37116
37117 2008-03-31  Eric Blake  <ebb9@byu.net>
37118
37119         More strtod documentation.
37120         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37121         failures as distinct bugs.
37122
37123 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37124
37125         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37126         Problem reported by Erik Benada in
37127         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37128
37129 2008-03-30  Bruno Haible  <bruno@clisp.org>
37130
37131         * tests/test-strtod.c: Add comments about which assertion fails on which
37132         platform.
37133         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37134
37135 2008-03-30  Eric Blake  <ebb9@byu.net>
37136
37137         Test signbit behavior on zeros.
37138         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37139         (test_signbitd, test_signbitl): Likewise.
37140
37141         More strtod touchups.
37142         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37143         sign of negative underflow, for now.  Use .5, not .1.
37144         * doc/posix-functions/strtod.texi (strtod): Mention these
37145         limitations.
37146         Reported by Jim Meyering.
37147
37148 2008-03-30  Bruno Haible  <bruno@clisp.org>
37149
37150         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37151         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37152
37153 2008-03-30  Bruno Haible  <bruno@clisp.org>
37154
37155         Avoid failure when attempting to return empty iconv results on some
37156         platforms.
37157         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37158         allocation, don't report ENOMEM when the resulting string is empty.
37159
37160 2008-03-30  Bruno Haible  <bruno@clisp.org>
37161
37162         Fix buffer overrun.
37163         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37164         Don't consider the width for tmp_length. Check count against tmp_length
37165         before doing the padding. Ensure enough allocation during padding.
37166
37167 2008-03-30  Eric Blake  <ebb9@byu.net>
37168
37169         strtod touchups.
37170         * lib/strtod.c (strtod): Avoid compiler warnings.
37171         Reported by Jim Meyering.
37172
37173 2008-03-30  Bruno Haible  <bruno@clisp.org>
37174
37175         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37176         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
37177         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
37178         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
37179         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
37180         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
37181         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
37182         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
37183
37184         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
37185         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
37186         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
37187         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
37188         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
37189         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
37190         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
37191         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
37192
37193         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
37194         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
37195         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
37196         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
37197         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
37198         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
37199         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
37200         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
37201
37202         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
37203         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
37204
37205         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
37206         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
37207
37208         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
37209         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
37210
37211         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
37212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
37213         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
37214
37215         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
37216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
37217         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
37218
37219         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
37220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
37221         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
37222
37223         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
37224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
37225         * modules/vasprintf (Depends-on): Add EOVERFLOW.
37226
37227         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
37228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
37229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
37230         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
37231         (Depends-on): Add EOVERFLOW.
37232         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
37233         (Depends-on): Add EOVERFLOW.
37234         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37235         (Depends-on): Add EOVERFLOW.
37236         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37237         (Depends-on): Add EOVERFLOW.
37238         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37239         (Depends-on): Add EOVERFLOW.
37240         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37241         (Depends-on): Add EOVERFLOW.
37242         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37243         (Depends-on): Add EOVERFLOW.
37244         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37245         (Depends-on): Add EOVERFLOW.
37246
37247         * lib/sprintf.c (EOVERFLOW): Remove fallback.
37248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
37249         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
37250
37251         * lib/snprintf.c (EOVERFLOW): Remove fallback.
37252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
37253         * modules/snprintf (Depends-on): Add EOVERFLOW.
37254
37255         * lib/poll.c (EOVERFLOW): Remove fallback.
37256         * modules/poll (Depends-on): Add EOVERFLOW.
37257
37258         * lib/getugroups.c (EOVERFLOW): Remove fallback.
37259         * modules/getugroups (Depends-on): Add EOVERFLOW.
37260
37261         * lib/getdelim.c (EOVERFLOW): Remove fallback.
37262         * modules/getdelim (Depends-on): Add EOVERFLOW.
37263
37264         * lib/ftell.c (EOVERFLOW): Remove fallback.
37265         * modules/ftell (Depends-on): Add EOVERFLOW.
37266
37267         * lib/fprintf.c (EOVERFLOW): Remove fallback.
37268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
37269         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
37270
37271         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
37272
37273         * modules/EOVERFLOW-tests: New file.
37274         * tests/test-EOVERFLOW.c: New file.
37275
37276         * modules/EOVERFLOW: New file.
37277         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
37278
37279 2008-03-30  Bruno Haible  <bruno@clisp.org>
37280
37281         Fix bug introduced on 2007-06-10.
37282         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
37283         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
37284
37285 2008-03-30  Bruno Haible  <bruno@clisp.org>
37286
37287         Improve freadseek's efficiency after ungetc.
37288         * lib/freadseek.c: Include freadahead.h.
37289         (freadptrinc): New function, extracted from freadseek.
37290         (freadseek): Use it in a loop. Use freadahead to determine the number
37291         of loop iterations.
37292         * modules/freadseek (Depends-on): Add freadahead.
37293         (configure.ac): Require AC_C_INLINE.
37294
37295 2008-03-30  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/freadseek.c (freadseek): Don't ignore the return value of
37298         freadptr.
37299
37300 2008-03-29  Eric Blake  <ebb9@byu.net>
37301
37302         Add hex float support.
37303         * modules/strtod (Depends-on): Add c-ctype.
37304         (Link): Mention POW_LIB.
37305         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
37306         whitespace between 'e' and exponent.
37307         * tests/test-strtod.c (main): Enable hex float tests.
37308         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
37309         now provides.
37310
37311         Document various strtod bugs, with some fixes.
37312         * doc/posix-functions/strtod.texi (strtod): Document bugs with
37313         "-0x", "inf", "nan", and hex constants.
37314         * doc/posix-functions/atof.texi (atof): Likewise.
37315         * modules/stdlib (Makefile.am): Support strtod.
37316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37317         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
37318         detect additional strtod bugs.
37319         * lib/stdlib.in.h (rpl_strtod): Add declarations.
37320         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
37321         bool where appropriate.  Parse 'inf' and 'nan'.
37322         * tests/test-strtod.c: New file.
37323         * modules/strtod (Depends-on): Add stdbool, stdlib.
37324         (configure.ac): Turn on module indicator.
37325         * modules/strtod-tests: New module.
37326
37327 2008-03-29  Eric Blake  <ebb9@byu.net>
37328
37329         Fix ftell on mingw.
37330         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
37331         * modules/ftell-tests (Depends-on): Add binary-io.
37332         * modules/ftello-tests (Depends-on): Likewise.
37333         * tests/test-ftell.c (main): Enhance test to cover behavior after
37334         ungetc.  Enforce binary mode.
37335         * tests/test-ftello.c (main): Likewise.
37336
37337         Pass test-freadseek on cygwin.
37338         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
37339         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
37340         ungetc buffer.
37341
37342         * tests/test-fflush2.c (main): Fix typo.
37343
37344 2008-03-29  Bruno Haible  <bruno@clisp.org>
37345
37346         * tests/test-fflush2.c (main): Temporarily disable the contents of
37347         this test.
37348         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
37349         Reported by Eric Blake.
37350
37351 2008-03-28  Simon Josefsson  <simon@josefsson.org>
37352
37353         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
37354         (GC_SHA224_DIGEST_SIZE): Add.
37355
37356         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
37357         (gc_hash_digest_length): Likewise.
37358         (gc_hash_buffer): Likewise.
37359
37360 2008-03-25  Bruno Haible  <bruno@clisp.org>
37361
37362         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
37363         detail which gettext release to use.
37364         Reported by Simon Josefsson.
37365
37366 2008-03-26  Jim Meyering  <meyering@redhat.com>
37367
37368         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
37369         * modules/gnumakefile (clean-GNUmakefile): Also, use
37370         test ... && ... || : syntax rather than if-then ... fi.
37371
37372         gnumakefile: Don't double-quote-expand $(VPATH) value.
37373         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
37374
37375 2008-03-24  Eric Blake  <ebb9@byu.net>
37376
37377         Alter GNUmakefile to install into top directory.
37378         * modules/maintainer-makefile: Split, and add dependency...
37379         * modules/gnumakefile: to this new module.
37380         * build-aux/GNUmakefile: Move...
37381         * top/GNUmakefile: ...here.
37382         * build-aux/maint.mk: Move...
37383         * top/maint.mk: ...here.
37384         * MODULES.html.sh (Support for maintaining...): Document new
37385         module.
37386
37387 2008-03-23  Bruno Haible  <bruno@clisp.org>
37388
37389         * gnulib-tool: New options --vc-files, --no-vc-files.
37390         (func_usage): Document them.
37391         (vc_files): New variable.
37392         (func_import): Consider vc_files.
37393         (func_create_testdir): Set vc_files to empty.
37394         Suggested by Jim Meyering and Karl Berry.
37395
37396 2008-03-23  Bruno Haible  <bruno@clisp.org>
37397
37398         Fix regex compilation error on HP-UX 11.
37399         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
37400         * modules/regex (Files): Add m4/mbstate_t.m4.
37401         Reported by Ton Voon <ton.voon@altinity.com>.
37402
37403 2008-03-23  Bruno Haible  <bruno@clisp.org>
37404
37405         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
37406
37407 2008-03-23  Eric Blake  <ebb9@byu.net>
37408             Bruno Haible  <bruno@clisp.org>
37409
37410         Install files from top/ in the destination directory.
37411         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37412         augmentation also for the files from top/.
37413         (func_import, func_create_testdir): Rewrite file names:
37414         top/filename -> filename.
37415
37416 2008-03-23  Bruno Haible  <bruno@clisp.org>
37417
37418         Tweak "gnulib --version" output.
37419         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
37420
37421 2008-03-23  Bruno Haible  <bruno@clisp.org>
37422
37423         Tweak "gnulib --version" output.
37424         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
37425         rather than contents of ChangeLog, when possible.
37426
37427 2008-03-21  Eric Blake  <ebb9@byu.net>
37428
37429         More --version tweaks.
37430         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
37431         date of last ChangeLog entry.
37432
37433 2008-03-21  Jim Meyering  <meyering@redhat.com>
37434
37435         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
37436
37437 2008-03-20  Eric Blake  <ebb9@byu.net>
37438
37439         VPATH fix.
37440         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
37441
37442 2008-03-20  Simon Josefsson  <simon@josefsson.org>
37443
37444         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
37445         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
37446
37447 2008-03-20  Eric Blake  <ebb9@byu.net>
37448
37449         Sync GNUmakefile with coreutils.
37450         * build-aux/GNUmakefile (have-Makefile): Rename...
37451         (_have-Makefile): ...to this, for namespace consideration.
37452         (GNUmakefile.cfg): Include, if present.
37453         (_autoreconf): Define a default.
37454         (_is-dist-target): New rule for rebuilds to pick up intra-release
37455         version.
37456         (maint-cfg.mk): Rename...
37457         (cfg.mk): ...to this.
37458
37459 2008-03-18  Jim Meyering  <meyering@redhat.com>
37460
37461         New script and module: mktempd
37462         * MODULES.html.sh (maint+release support): Add mktempd.
37463         * build-aux/mktempd: New file.
37464         * modules/mktempd: New file.
37465
37466 2008-03-15  Jim Meyering  <meyering@redhat.com>
37467
37468         Undo last change.
37469         * lib/sha1.c, lib/md5.c: 63 != ~63.
37470         Reported by Andreas Schwab.
37471
37472         sha1.c, md5.c: Hoist a redundant expression.
37473         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
37474         "ctx->buflen" only once, before calling *_process_block.
37475         * lib/md5.c (md5_process_bytes): Likewise.
37476
37477 2008-03-14  Eric Blake  <ebb9@byu.net>
37478
37479         Bump copyright year in files generated by gnulib-tool.
37480         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
37481         gnulib-tool, rather than hard-coding it.
37482
37483         Fix 'gnulib-tool --version' output to work with git.
37484         * gnulib-tool (func_gnulib_dir): New function, extracted from...
37485         (startup): ...here.
37486         (func_version): Use it to invoke git-version-gen, rather than
37487         relying on CVS keyword expansion.  Modernize wording.
37488         (cvsdatestamp, last_checkin_date, version): Kill unused
37489         variables.
37490
37491 2008-03-12  Jim Meyering  <meyering@redhat.com>
37492
37493         Recognize optional cast of the argument to free.
37494         * build-aux/useless-if-before-free: Update regexps.
37495
37496         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37497
37498 2008-03-11  Bruno Haible  <bruno@clisp.org>
37499
37500         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37501         by a single package.
37502         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37503         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37504         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37505         Reported by Sam Steingold <sds@gnu.org>.
37506
37507 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37508
37509         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37510         repositories.
37511
37512 2008-03-11  Bruno Haible  <bruno@clisp.org>
37513
37514         Avoid conflicts between local macro definitions.
37515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37516         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37517
37518 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37519             Bruno Haible  <bruno@clisp.org>
37520
37521         Make va_copy work with some version of xlc on AIX 5.1.
37522         * lib/stdarg.in.h: New file.
37523         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37524         On AIX, use a <stdarg.h> file substitute.
37525         * modules/stdarg (Files): Add lib/stdarg.in.h.
37526         (Depends-on): Add include_next.
37527         (Makefile.am): Build a stdarg.h substitute if requested.
37528         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37529
37530 2008-03-10  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37534         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37535
37536 2008-03-10  Bruno Haible  <bruno@clisp.org>
37537
37538         * modules/stdlib (Depends-on): Add include_next, remove
37539         absolute-header.
37540
37541 2008-03-09  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/freadahead.h (freadahead): Document more precisely.
37544         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37545         the sum of both buffer sizes.
37546         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37547         * NEWS: Document the change.
37548
37549 2008-03-09  Bruno Haible  <bruno@clisp.org>
37550
37551         Extend freadptr to return also the buffer size.
37552         * lib/freadptr.h (freadptr): Add sizep argument.
37553         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37554         (freadptr): Add sizep argument. Determine buffer size like freadahead
37555         does.
37556         * tests/test-freadptr.c: Don't include freadahead.h.
37557         (main): Adapt for new calling convention of freadptr.
37558         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37559         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37560         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37561         tests/test-freadptr2.sh.
37562         (Depends): Remove freadahead.
37563         (TESTS): Add test-freadptr2.sh.
37564         (check_PROGRAMS): Add test-freadptr2.
37565
37566 2008-03-09  Bruno Haible  <bruno@clisp.org>
37567
37568         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37569         Report and solution by Simon Josefsson.
37570
37571 2008-03-06  Bruno Haible  <bruno@clisp.org>
37572
37573         Make fflush after ungetc work on BSD platforms.
37574         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37575         * tests/test-fflush2.c: New file.
37576         * tests/test-fflush2.sh: New file.
37577         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37578         tests/test-fflush2.c.
37579         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37580         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37581
37582 2008-03-06  Eric Blake  <ebb9@byu.net>
37583
37584         Likewise for ftello.
37585         * modules/ftello (Dependencies): Add extensions.
37586         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37587
37588 2008-03-06  Bruno Haible  <bruno@clisp.org>
37589
37590         * modules/fseeko (Dependencies): Add extensions.
37591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37592         Needed on glibc systems.
37593
37594 2008-03-06  Bruno Haible  <bruno@clisp.org>
37595
37596         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37597         email address.
37598         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37599
37600 2008-03-06  Bruno Haible  <bruno@clisp.org>
37601
37602         * users.txt: Add libgnupdf.
37603
37604 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37605
37606         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37607         (Header File Substitutes, Function Substitutes,
37608         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37609         (Build robot for gnulib): Fix typo.
37610
37611 2008-03-06  Bruno Haible  <bruno@clisp.org>
37612
37613         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37614         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37615
37616 2008-03-06  Bruno Haible  <bruno@clisp.org>
37617
37618         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37619         * doc/gnulib.texi: Include it.
37620
37621 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37622
37623         * modules/func (License): Change license to unlimited; there was
37624         no LGPL parts in the module anyway.
37625
37626 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37627
37628         * modules/__func__: Renamed to modules/func.
37629         * modules/__func__-tests: Renamed to modules/func-tests.
37630         * tests/test-__func__.c: Renamed to tests/test-func.c.
37631         * m4/__func__.m4: Renamed to m4/func.m4.
37632         * doc/gnulib.texi (__func__): Section renamed to func.
37633         Suggested by Eric Blake <ebb9@byu.net>.
37634
37635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37636
37637         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37638         about __func__.  Make example self-contained.  Suggested by Eric
37639         Blake <ebb9@byu.net>.
37640
37641         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37642         Suggested by Eric Blake <ebb9@byu.net>.
37643
37644 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37645
37646         * modules/__func__: New file.
37647         * modules/__func__-tests: New file.
37648         * tests/test-__func__.c: New file.
37649         * m4/__func__.m4: New file.
37650         * doc/gnulib.texi (__func__): Document __func__ module.
37651
37652 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37653
37654         * modules/byteswap (License): Re-license as LGPLv2+.
37655
37656 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37657
37658         * doc/Makefile: Add pdf target.
37659
37660 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37661
37662         * modules/inline (License): Use 'unlimited', since there are only
37663         *.m4 files in this module.
37664
37665 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37666             Bruno Haible  <bruno@clisp.org>
37667
37668         Add support for HP C 7.1 on OpenVMS 8.3.
37669         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37670
37671 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37672
37673         Update VMS specifics.
37674         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37675
37676 2008-03-02  Jim Meyering  <meyering@redhat.com>
37677
37678         Remove the last dependency on the "free" module.
37679         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37680         Reported by Bob Proulx.
37681
37682         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37683
37684         Remove useless "if" tests before free.  Deprecate "free" module.
37685         * doc/posix-functions/free.texi: Mention that this
37686         module is no longer useful.
37687         * modules/free (Notice): Say this module is obsolete.
37688         * modules/readutmp (Depends-on): Remove free.
37689         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37690         * lib/putenv.c (putenv): Likewise.
37691         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37692         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37693         * tests/test-c-strcasestr.c (main): Likewise.
37694         * tests/test-c-strstr.c (main): Likewise.
37695         * tests/test-mbscasestr1.c (main): Likewise.
37696         * tests/test-mbscasestr2.c (main): Likewise.
37697         * tests/test-mbsstr1.c (main): Likewise.
37698         * tests/test-mbsstr2.c (main): Likewise.
37699         * tests/test-memmem.c (main): Likewise.
37700         * tests/test-strcasestr.c (main): Likewise.
37701         * tests/test-striconv.c (main): Likewise.
37702         * tests/test-striconveh.c (main): Likewise.
37703         * tests/test-striconveha.c (main): Likewise.
37704         * tests/test-strstr.c (main): Likewise.
37705
37706         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37707
37708         bootstrap: sync from coreutils again
37709         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37710
37711 2008-03-01  Jim Meyering  <meyering@redhat.com>
37712
37713         bootstrap: sync from coreutils
37714         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37715         also when the target doesn't exist.
37716
37717 2008-03-01  Eric Blake  <ebb9@byu.net>
37718
37719         Fix bugs in last patch.
37720         * lib/memchr2.c (memchr2): Fix typo.
37721         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37722         extension.
37723         Reported by Bruce Korb.
37724
37725         New module 'memchr2'.
37726         * modules/memchr2: New file.
37727         * modules/memchr2-tests: Likewise.
37728         * lib/memchr2.h: Likewise.
37729         * lib/memchr2.c: Likewise, based on memchr.c.
37730         * tests/test-memchr2.c: New test.
37731         * MODULES.html.sh (String handling): Add memchr2.
37732
37733 2008-02-29  Bruno Haible  <bruno@clisp.org>
37734
37735         * modules/freadseek-tests: New file.
37736         * tests/test-freadseek.sh: New file.
37737         * tests/test-freadseek.c: New file.
37738
37739         New module 'freadseek'.
37740         * modules/freadseek: New file.
37741         * lib/freadseek.h: New file.
37742         * lib/freadseek.c: New file.
37743         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37744
37745 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37746
37747         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37748         wydawca.
37749
37750         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37751         program_invocation_name and program_invocation_short_name are
37752         present.
37753
37754 2008-02-28  Bruno Haible  <bruno@clisp.org>
37755
37756         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37757         * tests/test-freadptr.sh: Also test non-seekable stdin.
37758
37759 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37760
37761         * build-aux/bootstrap (source_base, m4_base)
37762         (doc_base, tests_base): New variables.
37763         (gnulib_tool_options): Do not hardcode base directories, use
37764         the above variables instead.
37765
37766 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37767
37768         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37769
37770 2008-02-28  Bruno Haible  <bruno@clisp.org>
37771
37772         * modules/freadptr-tests: New file.
37773         * tests/test-freadptr.sh: New file.
37774         * tests/test-freadptr.c: New file.
37775
37776         New module 'freadptr'.
37777         * modules/freadptr: New file.
37778         * lib/freadptr.h: New file.
37779         * lib/freadptr.c: New file.
37780         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37781
37782 2008-02-26  Karl Berry  <karl@freefriends.org>
37783
37784         Sync from Libtool:
37785         * libltdl/argz.c (argz_add, argz_count): New functions.
37786         * libltdl/argz.in.h: Declare them.
37787         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37788
37789 2008-02-22  Bruno Haible  <bruno@clisp.org>
37790
37791         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37792         is a pointer type.  Needed for HP-UX 10.
37793         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37794         * doc/posix-functions/gmtime_r.texi: Likewise.
37795         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37796
37797 2008-02-24  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/environ-tests: New file.
37800         * tests/test-environ.c: New file.
37801
37802         New module 'environ'.
37803         * modules/environ: New file.
37804         * lib/unistd.in.h (environ): New declaration.
37805         * m4/environ.m4: New file.
37806         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37807         after use.
37808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37809         HAVE_DECL_ENVIRON.
37810         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37811         HAVE_DECL_ENVIRON.
37812         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37813         wrong claim that 'environ' is missing on some systems.
37814         * modules/execute (Depends-on): Add environ.
37815         * lib/execute.c (environ): Remove fallback declaration.
37816         * modules/pipe (Depends-on): Add environ.
37817         * lib/pipe.c (environ): Remove fallback declaration.
37818         * modules/setenv (Depends-on): Add environ.
37819         * lib/setenv.c (environ): Remove fallback declaration.
37820         * modules/unsetenv (Depends-on): Add environ.
37821         * lib/unsetenv.c (environ): Remove fallback declaration.
37822         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37823         m4/environ.m4.
37824         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37825         (gl_PREREQ_UNSETENV): Likewise.
37826
37827 2008-02-24  Bruno Haible  <bruno@clisp.org>
37828
37829         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37830
37831 2008-02-20  Bob Proulx  <bob@proulx.com>
37832
37833         Enable use of older two part flavor 'git describe'.
37834         * build-aux/git-version-gen: If using the older two part flavor of
37835         git version then recreate the third part now present in the
37836         newer three part flavor of git describe.
37837
37838 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37839
37840         * lib/fts.c (fts_build): Typo correction to comment.
37841
37842 2008-02-17  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37845         generating no-op conflicts.
37846
37847 2008-02-17  Bruno Haible  <bruno@clisp.org>
37848
37849         Speed up by 10%.
37850         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37851         result_entries, rather than an index-based loop.
37852
37853 2008-02-17  Bruno Haible  <bruno@clisp.org>
37854
37855         Speed up by 25%.
37856         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37857         'hashcode_cached'.
37858         (entry_create): New function.
37859         (entry_hashcode): Use the cached hashcode if possible.
37860         (read_changelog_file, try_split_merged_entry): Use entry_create.
37861
37862 2008-02-17  Bruno Haible  <bruno@clisp.org>
37863
37864         Speed up from O(n^2) to O(n) for long ChangeLog files.
37865         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37866         (read_changelog_file): Change implementation of entries_reversed list
37867         to rbtreehash.
37868         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37869
37870 2008-02-17  Bruno Haible  <bruno@clisp.org>
37871
37872         New option --split-merged-entry.
37873         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37874         (find_paragraph_end, try_split_merged_entry): New functions.
37875         (long_options): Add option --split-merged-entry.
37876         (usage): Document option --split-merged-entry.
37877         (main): Implement option --split-merged-entry.
37878         Reported by Eric Blake.
37879
37880 2008-02-17  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/git-merge-changelog.c: Include c-strstr.h.
37883         (main): Support the "git pull --rebase" situation.
37884         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37885         Reported by Eric Blake.
37886
37887 2008-02-16  Eric Blake  <ebb9@byu.net>
37888
37889         Avoid doubling \ in common case of "c-maybe" quoting style.
37890         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37891         eliding outer quotes.
37892         * lib/quotearg.h: Document this.
37893         * tests/test-quotearg.c (result_strings, inputs, results_g)
37894         (flag_results, locale_results): Test it by adding a new string to
37895         each test group.
37896         (compare_strings): Test new string.
37897
37898 2008-02-13  Eric Blake  <ebb9@byu.net>
37899
37900         Avoid trigraph quoting in default output.
37901         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37902         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37903         unless explicitly requested.
37904         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37905
37906 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37907
37908         Don't rely on signed integer overflowing to negative value.
37909         * lib/getugroups.c (getugroups): Include <limits.h>.
37910         Instead, compare against INT_MAX, and increment only if the test passes.
37911
37912 2008-02-13  Jim Meyering  <meyering@redhat.com>
37913         and Eric Blake  <ebb9@byu.net>
37914
37915         Avoid shadowing warning and compile errors on Linux.
37916         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37917         forwarding macros on Linux.
37918         (dcgettext): Define a stub, for Linux.
37919         (results_g, main): Avoid warnings.
37920
37921 2008-02-12  Eric Blake  <ebb9@byu.net>
37922
37923         Silence warning in last patch.
37924         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37925
37926         Quotearg part 4: add tests, fix c-maybe colon quoting.
37927         * lib/quotearg.h: Improve documentation.
37928         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
37929         escapes when adding outer quotes.  When quoting trigraphs, use
37930         valid C notation.  When quoting NUL, omit extra characters if next
37931         character is not digit.  Alter prototype.
37932         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
37933         callers.
37934         * modules/quotearg-tests: New module.
37935         * tests/test-quotearg.c: New test.
37936
37937 2008-02-07  Eric Blake  <ebb9@byu.net>
37938
37939         Quotearg part 3: add flag to control outer quote elision.
37940         * lib/quotearg.h (c_maybe_quoting_style): New style.
37941         (enum quoting_flags): Better documentation of flags.
37942         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
37943         c-maybe style.
37944         (quotearg_buffer_restyled): Handle new flag to elide outer
37945         quotes.
37946
37947         Quotearg part 2: add flag that can control NUL elision.
37948         * lib/quotearg.h (set_quoting_flags): New prototype.
37949         * lib/quotearg.c (struct quoting_options): Add flag field.
37950         (set_quoting_flags): New function.
37951         (quotearg_buffer_restyled): Add flags parameter.
37952         (quotearg_alloc_mem): Set the flag if length cannot be returned.
37953         (quotearg_n_options): Set the flag, since length cannot be
37954         returned.
37955         (quoting_options_from_style): Default flags correctly.
37956
37957         Quotearg part 1: more wrappers, restore quotearg_char state.
37958         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
37959         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
37960         (quotearg_colon_mem): New wrappers.
37961         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
37962         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
37963         functions.
37964         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
37965         (quotearg_colon_mem): New functions.
37966
37967 2008-02-11  Bruno Haible  <bruno@clisp.org>
37968
37969         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
37970         library in the current directory: it does not work with parallel make.
37971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37972
37973 2008-02-11  Bruno Haible  <bruno@clisp.org>
37974
37975         * .gitattributes: New file.
37976
37977 2008-02-11  Jim Meyering  <meyering@redhat.com>
37978
37979         useless-if-before-free: Fix reversed exit values.
37980         * build-aux/useless-if-before-free: Use correct values
37981         for EXIT_MATCH and EXIT_NO_MATCH.
37982
37983         * build-aux/useless-if-before-free: Close stdout carefully.
37984
37985 2008-02-10  Bruno Haible  <bruno@clisp.org>
37986
37987         New module 'git-merge-changelog'.
37988         * modules/git-merge-changelog: New file.
37989         * lib/git-merge-changelog.c: New file.
37990
37991 2008-02-10  Jim Meyering  <meyering@redhat.com>
37992
37993         useless-if-before-free: New option: --list (-l).
37994
37995         useless-if-before-free: Don't exit immediately upon open failure.
37996         * build-aux/useless-if-before-free: Exit 2 for errors.
37997         Upon failure to open a file, don't exit immediately.
37998         Rather, just warn and continue with any remaining files.
37999
38000 2008-02-10  Bruno Haible  <bruno@clisp.org>
38001
38002         New abstract list operation 'node_set_value'.
38003         * lib/gl_list.h (gl_list_node_set_value): New function.
38004         (struct gl_list_implementation): New field node_set_value.
38005         * lib/gl_list.c (gl_list_node_set_value): New function.
38006         * lib/gl_array_list.c (gl_array_node_set_value): New function.
38007         (gl_array_list_implementation): Update.
38008         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
38009         (gl_carray_list_implementation): Update.
38010         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
38011         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38012         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38013         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
38014         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38015         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38016         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38017         Update.
38018         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38019         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
38020         (gl_sublist_list_implementation): Update.
38021
38022 2008-02-10  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
38025         Needed when ELEMENT is #defined to 'some_type *'.
38026
38027 2008-02-10  Jim Meyering  <meyering@redhat.com>
38028
38029         New script and module: useless-if-before-free
38030         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
38031         * build-aux/useless-if-before-free: New file.
38032         * modules/useless-if-before-free: New file.
38033
38034         * build-aux/gitlog-to-changelog: Use committer date, not author date.
38035
38036         xstrtol_error: Fix typo.
38037         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
38038         s/exit_failure/exit_status/.
38039
38040 2008-02-09  Jim Meyering  <meyering@redhat.com>
38041
38042         New script and module: gitlog-to-changelog
38043         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
38044         * modules/gitlog-to-changelog: New file.
38045         * build-aux/gitlog-to-changelog: New file.
38046
38047 2008-02-08  Jim Meyering  <meyering@redhat.com>
38048
38049         Avoid two "parameter unused" warnings.
38050         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
38051         Mark "st" as used.
38052
38053         Use "git COMMAND", not "git-COMMAND".
38054         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
38055         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
38056         * build-aux/git-version-gen: Use "git status", not "git-status".
38057
38058 2008-02-07  Bruno Haible  <bruno@clisp.org>
38059
38060         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
38061         Avoids a crash on Windows Vista.
38062         Reported by Adam Strzelecki <ono@java.pl> via
38063         Simon Josefsson <simon@josefsson.org>.
38064
38065 2008-02-06  Bruno Haible  <bruno@clisp.org>
38066
38067         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
38068         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
38069         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
38070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
38071         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38073         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
38074         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
38075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38082         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
38083         left-adjust flag.
38084         * tests/test-snprintf-posix.h (test_function): Likewise.
38085         * tests/test-sprintf-posix.h (test_function): Likewise.
38086         * tests/test-vasprintf-posix.c (test_function): Likewise.
38087         * doc/posix-functions/fprintf.texi: Update.
38088         * doc/posix-functions/printf.texi: Update.
38089         * doc/posix-functions/snprintf.texi: Update.
38090         * doc/posix-functions/sprintf.texi: Update.
38091         * doc/posix-functions/vfprintf.texi: Update.
38092         * doc/posix-functions/vprintf.texi: Update.
38093         * doc/posix-functions/vsnprintf.texi: Update.
38094         * doc/posix-functions/vsprintf.texi: Update.
38095         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38096
38097 2008-02-06  Bruno Haible  <bruno@clisp.org>
38098
38099         Fix bug introduced on 2008-01-26.
38100         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
38101
38102 2008-02-06  Bruno Haible  <bruno@clisp.org>
38103
38104         Fix bug introduced on 2007-06-10.
38105         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38106         !NEED_PRINTF_FLAG_ZERO.
38107
38108 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38109
38110         getloadavg: use libperfstat on AIX5
38111         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38112
38113 2008-02-03  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/diffseq.h: Add comments about required #includes.
38116         Reported by Michael Biggs <gnulib@doubleplum.net>.
38117
38118 2008-02-01  Bruno Haible  <bruno@clisp.org>
38119
38120         * users.txt: Add gnuit.
38121
38122 2008-01-31  Bruno Haible  <bruno@clisp.org>
38123
38124         * lib/md4.c (set_uint32): Mark as inline.
38125         * lib/md5.c (set_uint32): Likewise.
38126         * lib/sha1.c (set_uint32): Likewise.
38127         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38128         * m4/md5.m4 (gl_MD5): Likewise.
38129         * m4/sha1.m4 (gl_SHA1): Likewise.
38130
38131 2008-01-31  Jim Meyering  <meyering@redhat.com>
38132
38133         Use "sizeof VAR", rather than a literal "4".
38134         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38135         * lib/md4.c (md4_read_ctx): Likewise.
38136         * lib/sha1.c (sha1_read_ctx): Likewise.
38137
38138 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38139
38140         * tests/test-sha1.c: New file, based on test-md5.c.
38141
38142         * modules/crypto/sha1-tests: New file.
38143
38144 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38145
38146         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38147
38148 2008-01-31  Jim Meyering  <meyering@redhat.com>
38149
38150         Prefer "sizeof v" over the equivalent "4".
38151         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38152         * lib/md5.c (set_uint32): Likewise.
38153         * lib/sha1.c (set_uint32): Likewise.
38154
38155 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38156
38157         * lib/sha1.c (set_uint32): Mark function as static.
38158
38159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38160
38161         md2: clarify comments to say that alignment is not required.
38162         * lib/md2.h: Remove warning about alignment in comment.
38163         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38164         never been required.
38165
38166 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38167
38168         md4: adapt alignment constraint fix from sha1.
38169         * lib/md4.c (set_uint32): New function, from sha1.c
38170         (md4_read_ctx): Use it.
38171         (md4_finish_ctx): Doc fix.
38172         * lib/md4.h: Doc fix.
38173
38174 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38175
38176         md5: adapt alignment constraint fix from sha1.
38177         * lib/md5.c (set_uint32): New function, from sha1.c
38178         (md5_read_ctx): Use it.
38179         (md5_finish_ctx): Doc fix.
38180         * lib/md5.h: Doc fix.
38181
38182 2008-01-30  Peter Palfrader  <weasel@debian.org>
38183
38184         sha1: remove the result buffer alignment constraint
38185         * lib/sha1.c (set_uint32): New function.
38186         (sha1_read_ctx): Rewrite to remove the result buffer alignment
38187         constraint.
38188         (sha1_finish_ctx): Remove comment warning about alignment constraint.
38189         * lib/sha1.h: Likewise.
38190
38191 2008-01-30  Andreas Schwab  <schwab@suse.de>
38192             Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
38195         correct definition of LDBL_MIN_EXP.
38196
38197 2008-01-30  Karl Berry  <karl@gnu.org>
38198
38199         * config/srclist-update: try to preserve x bit on updates.
38200         * config/srclistvars.sh: update for karl.
38201
38202 2008-01-29  Jim Meyering  <meyering@redhat.com>
38203
38204         vasnprintf.c: Avoid warning about unused label
38205         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
38206         "overflow" label definition and associated code with the
38207         same cpp condition that guards the sole use of that label.
38208
38209 2008-01-26  Bruno Haible  <bruno@clisp.org>
38210
38211         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
38212         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
38213         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
38214         * lib/isnanl-nolibm.h (isnanl): Likewise.
38215         Reported by Paul Eggert <eggert@cs.ucla.edu>.
38216
38217 2008-01-26  Bruno Haible  <bruno@clisp.org>
38218
38219         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
38220         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
38221
38222 2008-01-26  Bruno Haible  <bruno@clisp.org>
38223
38224         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
38225         GCC >= 4.0 built-in.
38226         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
38227
38228 2008-01-26  Bruno Haible  <bruno@clisp.org>
38229
38230         Rename isnan, applicable to 'double' only, to isnand.
38231         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
38232         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
38233         (configure.ac): Update.
38234         (Include): Replace "isnan.h" with "isnand.h".
38235         * m4/isnand.m4: Renamed from m4/isnan.m4.
38236         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
38237         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
38238         instead of isnan.c.
38239         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
38240         instead of HAVE_ISNAN_IN_LIBC.
38241         (isnand): Renamed from isnan.
38242         * lib/isnand.c: New file.
38243         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
38244         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
38245         (Makefile.am): Update.
38246         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
38247         Include isnand.h instead of isnan.h.
38248         (main): Test isnand instead of isnan.
38249         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
38250         isnan-nolibm.
38251         * modules/frexp (Depends-on): Likewise.
38252         * modules/frexp-tests (Depends-on): Likewise.
38253         * modules/frexp-nolibm (Depends-on): Likewise.
38254         * modules/frexp-nolibm-tests (Depends-on): Likewise.
38255         * modules/isfinite (Depends-on): Likewise.
38256         * modules/round-tests (Depends-on): Likewise.
38257         * modules/signbit (Depends-on): Likewise.
38258         * modules/signbit-tests (Depends-on): Likewise.
38259         * modules/snprintf-posix (Depends-on): Likewise.
38260         * modules/sprintf-posix (Depends-on): Likewise.
38261         * modules/trunc-tests (Depends-on): Likewise.
38262         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38268         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38269         * modules/vasnprintf-posix (Depends-on): Likewise.
38270         * modules/vasprintf-posix (Depends-on): Likewise.
38271         * modules/vfprintf-posix (Depends-on): Likewise.
38272         * modules/vsnprintf-posix (Depends-on): Likewise.
38273         * modules/vsprintf-posix (Depends-on): Likewise.
38274         * lib/frexp.c: Include isnand.h instead of isnan.h.
38275         (ISNAN): Set to isnand instead of isnan.
38276         * lib/isfinite.c: Include isnand.h instead of isnan.h.
38277         (gl_isfinited): Use isnand instead of isnan.
38278         * lib/signbitd.c: Include isnand.h instead of isnan.h.
38279         (gl_signbitd): Use isnand instead of isnan.
38280         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
38281         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
38282         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
38283         (main): Use isnand instead of isnan.
38284         * tests/test-round1.c: Include isnand.h.
38285         (main): Use isnand instead of isnan.
38286         * tests/test-round2.c: Include isnand.h instead of isnan.h.
38287         (ISNAN): Set to isnand instead of isnan.
38288         * tests/test-trunc1.c: Include isnand.h.
38289         (main): Use isnand instead of isnan.
38290         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
38291         (equal): Use isnand instead of isnan.
38292         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
38293         isnand-nolibm.
38294         * NEWS: Mention the change.
38295
38296 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38297             Bruno Haible  <bruno@clisp.org>
38298
38299         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
38300         the GCC builtins for signbits are present and set
38301         REPLACE_SIGNBIT_USING_GCC if so.
38302         * lib/math.in.h (signbit): Define using GCC builtins if
38303         REPLACE_SIGNBIT_USING_GCC is set.
38304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
38305         REPLACE_SIGNBIT_USING_GCC.
38306         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
38307
38308 2008-01-25  Jim Meyering  <meyering@redhat.com>
38309
38310         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
38311         * lib/poll.c: Include <config.h>, not "config.h".
38312         * tests/test-getaddrinfo.c: Likewise.
38313
38314 2008-01-25  Simon Josefsson  <simon@josefsson.org>
38315
38316         * modules/sockets-tests: New file.
38317
38318 2008-01-24  Simon Josefsson  <simon@josefsson.org>
38319
38320         * modules/sockets: New module, can be used to call WSA_Startup and
38321         WSA_Cleanup when needed.
38322
38323         * lib/sockets.h, lib/sockets.c: New files.
38324
38325         * m4/sockets.m4: New file.
38326
38327         * tests/test-sockets.c: New file.
38328
38329 2008-01-19  Bruno Haible  <bruno@clisp.org>
38330
38331         * doc/posix-headers: Renamed from doc/headers.
38332         * doc/posix-functions: Renamed from doc/functions.
38333         * doc/gnulib.texi: Update.
38334
38335 2008-01-19  Bruno Haible  <bruno@clisp.org>
38336
38337         * doc/glibc-functions/strcasestr.texi: Include contents of
38338         doc/functions/strcasestr.texi, fixing the list of platforms.
38339         * doc/functions/strcasestr.texi: Remove file.
38340
38341 2008-01-19  Bruno Haible  <bruno@clisp.org>
38342
38343         * doc/glibc-functions/memmem.texi: Include contents of
38344         doc/functions/memmem.texi.
38345         * doc/functions/memmem.texi: Remove file.
38346
38347 2008-01-18  Bruno Haible  <bruno@clisp.org>
38348
38349         * doc/glibc-functions/*.texi: New files.
38350         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
38351         to use the new files.
38352
38353 2008-01-17  Bruno Haible  <bruno@clisp.org>
38354
38355         * tests/test-gethostname.c (main): Fix printf statement.
38356
38357 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38358
38359         * modules/gethostname-tests: New file.
38360
38361         * tests/test-gethostname.c: New file.
38362
38363 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38364
38365         * lib/gethostname.c: Include string.h unconditionally, strncpy is
38366         used by the UNAME case.  Reported by Bruno Haible
38367         <bruno@clisp.org>.
38368
38369 2008-01-17  Eric Blake  <ebb9@byu.net>
38370
38371         Convert c-strcasestr to be more efficient.
38372         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
38373         (Depends-on): Add c-strcase, remove malloca, strnlen.
38374         * tests/test-c-strcasestr.c (main): Enhance test.
38375         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
38376
38377 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38378
38379         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
38380         Use it in creating po/Makevars.
38381
38382 2008-01-15  Simon Josefsson  <simon@josefsson.org>
38383
38384         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
38385         Applications that requires it should initialize libgcrypt
38386         manually.
38387
38388 2008-01-16  Simon Josefsson  <simon@josefsson.org>
38389
38390         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
38391
38392 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
38393
38394         Fix problem with getdate on mingw32 reported by Simon Josefsson
38395         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
38396         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
38397         tzname", when deciding whether to declare tzname.
38398         * lib/strftime.c (tzname): Likewise.
38399
38400 2008-01-15  Bruno Haible  <bruno@clisp.org>
38401
38402         Work around a MacOS X 10.5 bug in frexpl().
38403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
38404         * doc/functions/frexpl.texi: Document the bug.
38405         Reported by Elias Pipping <pipping@gentoo.org>.
38406
38407 2008-01-14  Eric Blake  <ebb9@byu.net>
38408
38409         Touch up previous patch.
38410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
38411         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
38412
38413         Convert strcasestr module to use Two-Way algorithm.
38414         * modules/strcasestr-simple: New module, based on the old
38415         strcasestr, but with Two-Way rather than KMP.
38416         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
38417         * lib/string.in.h (rpl_strcasestr): Declare.
38418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
38419         performance.
38420         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
38421         * modules/string (Makefile.am): Support strcasestr.
38422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38423         * modules/strcasestr-tests (Depends-on): Check for alarm.
38424         * tests/test-strcasestr.c: Augment test.
38425         * lib/str-two-way.h: Clean up stray macro.
38426         * NEWS: Document new module.
38427         * MODULES.html.sh (string handling): Likewise.
38428         * doc/functions/strcasestr.texi: New file.
38429         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
38430         here, since it is not a POSIX function.
38431
38432 2008-01-14  Colin Watson  <cjwatson@debian.org>
38433             Bruno Haible  <bruno@clisp.org>
38434
38435         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
38436         works fine; if not, set REPLACE_STRSIGNAL.
38437         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
38438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38439         REPLACE_STRSIGNAL.
38440         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
38441         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
38442         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
38443
38444 2008-01-14  Bruno Haible  <bruno@clisp.org>
38445
38446         * modules/strsignal (Include): Change to <string.h>.
38447
38448 2008-01-14  Colin Watson  <cjwatson@debian.org>
38449
38450         * modules/argp (Notice): Add a notice recommending to change
38451         XGETTEXT_OPTIONS.
38452         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
38453
38454 2008-01-13  Colin Watson  <cjwatson@debian.org>
38455
38456         * modules/strsignal-tests: New file.
38457         * tests/test-strsignal.c: New file.
38458
38459         * lib/strsignal.c: New file, from glibc with modifications.
38460         * lib/siglist.h: New file, from glibc with modifications.
38461         * lib/string.in.h (strsignal): New declaration.
38462         * m4/strsignal.m4: New file.
38463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38464         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
38465         * modules/strsignal: New file.
38466         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
38467         HAVE_DECL_STRSIGNAL.
38468
38469 2008-01-13  Bruno Haible  <bruno@clisp.org>
38470
38471         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
38472         locale encoding is not ASCII. Needed for OpenBSD 4.0.
38473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38475
38476 2008-01-13  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
38479         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
38480         * lib/argp.h (__attribute__): Likewise.
38481         * lib/c-stack.c (__attribute__): Likewise.
38482         * lib/error.h (__attribute__): Likewise.
38483         * lib/fts.c (__attribute__): Likewise.
38484         * lib/openat.h (__attribute__): Likewise.
38485         * lib/stdio.in.h (__attribute__): Likewise.
38486         * lib/string.in.h (__attribute__): Likewise.
38487         * lib/utimens.c (__attribute__): Likewise.
38488         * lib/vasnprintf.h (__attribute__): Likewise.
38489         * lib/xalloc.h (__attribute__): Likewise.
38490         * lib/xprintf.h (__attribute__): Likewise.
38491         * lib/xstrtol.h (__attribute__): Likewise.
38492         * lib/xvasprintf.h (__attribute__): Likewise.
38493
38494 2008-01-12  Bruno Haible  <bruno@clisp.org>
38495
38496         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38497         * doc/glibc-headers/a.out.texi: New file.
38498         * doc/glibc-headers/aliases.texi: New file.
38499         * doc/glibc-headers/alloca.texi: New file.
38500         * doc/glibc-headers/ar.texi: New file.
38501         * doc/glibc-headers/argp.texi: New file.
38502         * doc/glibc-headers/argz.texi: New file.
38503         * doc/glibc-headers/byteswap.texi: New file.
38504         * doc/glibc-headers/crypt.texi: New file.
38505         * doc/glibc-headers/endian.texi: New file.
38506         * doc/glibc-headers/envz.texi: New file.
38507         * doc/glibc-headers/err.texi: New file.
38508         * doc/glibc-headers/error.texi: New file.
38509         * doc/glibc-headers/execinfo.texi: New file.
38510         * doc/glibc-headers/fpu_control.texi: New file.
38511         * doc/glibc-headers/fstab.texi: New file.
38512         * doc/glibc-headers/fts.texi: New file.
38513         * doc/glibc-headers/getopt.texi: New file.
38514         * doc/glibc-headers/ieee754.texi: New file.
38515         * doc/glibc-headers/ifaddrs.texi: New file.
38516         * doc/glibc-headers/libintl.texi: New file.
38517         * doc/glibc-headers/mcheck.texi: New file.
38518         * doc/glibc-headers/mntent.texi: New file.
38519         * doc/glibc-headers/obstack.texi: New file.
38520         * doc/glibc-headers/paths.texi: New file.
38521         * doc/glibc-headers/printf.texi: New file.
38522         * doc/glibc-headers/pty.texi: New file.
38523         * doc/glibc-headers/resolv.texi: New file.
38524         * doc/glibc-headers/shadow.texi: New file.
38525         * doc/glibc-headers/sysexits.texi: New file.
38526         * doc/glibc-headers/ttyent.texi: New file.
38527
38528 2008-01-12  Jim Meyering  <meyering@redhat.com>
38529
38530         announce-gen: emit Gnulib's git-based version string.
38531         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38532         New option --gnulib-version=V, where V is expected to be
38533         the output of running git describe in the gnulib directory.
38534         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38535         not useful, and plan to stop publishing an xdelta file with each
38536         coreutils release.
38537
38538         * build-aux/announce-gen: Also check for lzma-compressed files.
38539
38540 2008-01-11  Bruno Haible  <bruno@clisp.org>
38541
38542         * tests/test-memmem.c (main): Increase maximum allowed time.
38543         * tests/test-strstr.c (main): Likewise.
38544
38545 2008-01-11  Bruno Haible  <bruno@clisp.org>
38546
38547         * doc/functions/memmem.texi: Add more precisions about platforms.
38548         * doc/functions/strstr.texi: Likewise.
38549
38550 2008-01-10  Eric Blake  <ebb9@byu.net>
38551
38552         * m4/strstr.m4: Delete cruft from copy-n-paste.
38553         Reported by Bruno Haible.
38554
38555 2008-01-10  Bruno Haible  <bruno@clisp.org>
38556
38557         Make c-strstr rely on strstr.
38558         * lib/c-strstr.c: Don't include str-kmp.h.
38559         (c_strstr): Define in terms of strstr.
38560         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38561         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38562
38563 2008-01-10  Bruno Haible  <bruno@clisp.org>
38564
38565         * doc/gnulib.texi (String Functions in C Locale): New section.
38566         * doc/c-ctype.texi: New file.
38567         * doc/c-strcase.texi: New file.
38568         * doc/c-strcaseeq.texi: New file.
38569         * doc/c-strcasestr.texi: New file.
38570         * doc/c-strstr.texi: New file.
38571         * doc/c-strtod.texi: New file.
38572         * doc/c-strtold.texi: New file.
38573
38574 2008-01-10  Eric Blake  <ebb9@byu.net>
38575
38576         * lib/relocatable.h: Fix a comment.
38577
38578 2008-01-10  Eric Blake  <ebb9@byu.net>
38579
38580         Share two-way algorithm.
38581         * lib/str-two-way.h: New file, merged from...
38582         * lib/memmem.c: ...here...
38583         * lib/strstr.c: ...and here.
38584         * modules/memmem (Files): Use it.
38585         * modules/strstr (Files): Likewise.
38586
38587         Avoid quadratic strstr implementations.
38588         * lib/strstr.c: New file.
38589         * m4/strstr.m4: Likewise.
38590         * modules/strstr: Likewise.
38591         * modules/strstr-tests: Likewise.
38592         * tests/test-strstr.c: Likewise.
38593         * lib/string.in.h (rpl_strstr): Declare.
38594         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38596         * modules/string (Makefile.am): Likewise.
38597         * MODULES.html.sh (string handling): Mention new module.
38598         * doc/functions/strstr.texi (strstr): Document the bug.
38599
38600 2008-01-10  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/relocatable.h (relocate): State whether result is freshly
38603         allocated or not.
38604         * lib/relocatable.c (relocate): Return a freshly allocated string
38605         instead of a pointer to a privately held string.
38606         Reported by Sylvain Beucler <beuc@gnu.org>.
38607
38608 2008-01-10  Colin Watson  <cjwatson@debian.org>
38609
38610         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38611         s/S_ISNLK/S_ISLNK/.
38612
38613 2008-01-09  Bruno Haible  <bruno@clisp.org>
38614
38615         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38616         and other files.
38617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38618         if it's only a guess.
38619         * modules/memmem: Simplify by depending on memmem-simple.
38620
38621 2008-01-09  Bruno Haible  <bruno@clisp.org>
38622
38623         Work around OpenBSD 4.0 tdelete() bug.
38624         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38625         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38626         macros and don't redefine the enum values.
38627         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38628         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38629         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38630
38631 2008-01-09  Bruno Haible  <bruno@clisp.org>
38632
38633         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38634         (main): Don't perform the tests if setlocale did not install a UTF-8
38635         locale. Needed on OpenBSD 4.0.
38636         * modules/wcwidth-tests (Depends-on): Add localcharset.
38637
38638 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38639
38640         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38641         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38642         * NEWS: announce this.
38643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38644
38645 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38646         and Eric Blake  <ebb9@byu.net>
38647
38648         Add memmem-simple module.
38649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38650         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38651         * modules/memmem-simple: New file.
38652         * modules/memmem (Description): Tweak.
38653         * MODULES.html.sh (string handling): Mention new module.
38654         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38655         addressed by memmem-simple.
38656         * NEWS: Document the difference.
38657
38658 2008-01-09  Eric Blake  <ebb9@byu.net>
38659
38660         Give gcc some memmem optimization hints.
38661         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38662         (strcasestr): Declare as pure.
38663         * modules/memmem (Maintainer): Claim my implementation.
38664
38665 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38666
38667         Support AIX 6.1 and higher.
38668         * build-aux/config.libpath: Likewise.
38669         * build-aux/config.rpath: Likewise.
38670
38671 2008-01-08  Jim Meyering  <meyering@redhat.com>
38672             Bruno Haible  <bruno@clisp.org>
38673
38674         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38675         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38676         Reported by Peter Fales in
38677         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38678
38679 2008-01-08  Bruno Haible  <bruno@clisp.org>
38680
38681         * modules/unictype/category-of (Depends-on): Add
38682         unictype/category-none.
38683         * modules/unictype/category-and-tests (Depends-on): Add
38684         unictype/category-{L,N,Lu,Nd}.
38685         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38686         * modules/unictype/category-or-tests (Depends-on): Add
38687         unictype/category-{L,N}.
38688         * modules/unictype/category-name-tests (Depends-on): Add
38689         unictype/category-{Z,Nl}.
38690         Reported by Simon Josefsson.
38691
38692 2008-01-08  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38695         convention better.
38696         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38697         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38698         Reported by Peter Miller <millerp@canb.auug.org.au>.
38699
38700 2008-01-08  Eric Blake  <ebb9@byu.net>
38701
38702         Rewrite memmem to guarantee linear complexity without malloc.
38703         * lib/memmem.c (memmem): Use Two-Way rather than
38704         Knuth-Morris-Pratt, to allow O(1) space usage.
38705         (critical_factorization, two_way_short_needle)
38706         (two_way_long_needle): New functions.
38707         (knuth_morris_pratt): Delete.
38708         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38709         Add stdint.
38710         * tests/test-memmem.c (main): Add tests for periodic needle and
38711         sublinear performance.
38712         * doc/functions/memmem.texi (memmem): Document other deficiencies
38713         in cygwin and older glibc.
38714
38715 2008-01-08  Bruno Haible  <bruno@clisp.org>
38716
38717         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38718         augmentation.
38719
38720 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38721
38722         Add a configure time option: --disable-acl.
38723         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38724         AC_ARG_ENABLE(acl).
38725
38726 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38727
38728         * tests/test-localename.c: Don't include obsolete "setenv.h".
38729
38730         * modules/localename-tests (Depends-on): Need unsetenv.
38731
38732 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38733
38734         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38735
38736 2008-01-06  Colin Watson  <cjwatson@debian.org>
38737
38738         * users.txt: Add man-db.
38739
38740 2008-01-07  Bruno Haible  <bruno@clisp.org>
38741
38742         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38743         previous section name.
38744
38745 2008-01-07  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/progname.c (set_program_name): Don't strip off a leading
38748         "lt-" prefix outside a .libs directory.
38749         Suggested by Paul Eggert.
38750
38751 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38752             Bruno Haible  <bruno@clisp.org>
38753
38754         Improve memory cleanup in 'relocatable' module.
38755         * lib/relocatable.h (compute_curr_prefix): Change return type to
38756         'char *'.
38757         * lib/relocatable.c (compute_curr_prefix): Change return type to
38758         'char *'. Free curr_installdir after use.
38759         (relocate): Free curr_prefix_better after use.
38760         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38761
38762 2008-01-01  Bruno Haible  <bruno@clisp.org>
38763
38764         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38765         failure on older glibc systems.
38766         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38767
38768 2008-01-05  Eric Blake  <ebb9@byu.net>
38769
38770         Avoid quadratic system memmem.
38771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38772         Reported by Ralf Wildenhues.
38773
38774         Fix memmem test for mingw.
38775         * modules/memmem-tests (configure.ac): Check for alarm.
38776         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38777         it.
38778         * doc/functions/memmem.texi: New file.
38779         * doc/gnulib.texi (Function Substitutes): Add memmem.
38780         Reported by Bruno Haible.
38781
38782 2008-01-04  Bruno Haible  <bruno@clisp.org>
38783
38784         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38785         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38786         gl_HEADER_STRING_H_DEFAULTS.
38787
38788 2008-01-04  Eric Blake  <ebb9@byu.net>
38789
38790         Shorten duration of memmem test.
38791         * tests/test-memmem.c (main): Use alarm to declare failure if test
38792         is taking too long.
38793         Reported by Ralf Wildenhues.
38794
38795 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38796
38797         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38798         string, needed by strerror.
38799
38800 2008-01-03  Colin Watson  <cjwatson@debian.org>
38801             Bruno Haible  <bruno@clisp.org>
38802
38803         * doc/gnulib-tool.texi (Localization): New section.
38804
38805 2008-01-02  Bruno Haible  <bruno@clisp.org>
38806
38807         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38808         variables to 'unsigned char *' type.
38809         Reported by Paul Eggert.
38810
38811 2008-01-02  Jim Meyering  <jim@meyering.net>
38812
38813         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38814
38815 2007-12-31  Jim Meyering  <jim@meyering.net>
38816
38817         Avoid use of private FTS type name.
38818         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38819
38820 2007-12-30  Karl Berry  <karl@gnu.org>
38821
38822         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38823         work around defect in Texinfo and/or the standalone Info browser.
38824
38825 2007-12-30  Bruno Haible  <bruno@clisp.org>
38826
38827         Unify 5 copies of the KMP code.
38828         * lib/str-kmp.h: New file.
38829         * lib/c-strcasestr.c: Include str-kmp.h.
38830         (knuth_morris_pratt): Remove function.
38831         (c_strcasestr): Update.
38832         * lib/c-strstr.c: Include str-kmp.h.
38833         (knuth_morris_pratt): Remove function.
38834         (c_strcasestr): Update.
38835         * lib/mbscasestr.c: Include str-kmp.h.
38836         (knuth_morris_pratt_unibyte): Remove function.
38837         * lib/mbsstr.c: Include str-kmp.h.
38838         (knuth_morris_pratt_unibyte): Remove function.
38839         * lib/strcasestr.c: Include str-kmp.h.
38840         (knuth_morris_pratt): Remove function.
38841         (strcasestr): Update.
38842         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38843         * modules/c-strstr (Files): Likewise.
38844         * modules/mbscasestr (Files): Likewise.
38845         * modules/mbsstr (Files): Likewise.
38846         * modules/strcasestr (Files): Likewise.
38847         Suggested by Paul Eggert.
38848
38849 2007-12-30  Bruno Haible  <bruno@clisp.org>
38850
38851         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38852         defined.
38853
38854 2007-12-30  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/xmalloca.h: Include xalloc.h.
38857         (xnmalloca): New macro.
38858
38859 2007-12-30  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/malloca.h (nmalloca): New macro.
38862         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38863         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38864         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38865         knuth_morris_pratt_multibyte): Likewise.
38866         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38867         knuth_morris_pratt_multibyte): Likewise.
38868         * lib/memmem.c (knuth_morris_pratt): Likewise.
38869         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38870
38871 2007-12-25  Bruno Haible  <bruno@clisp.org>
38872
38873         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38874         * lib/glob.c: Don't include openat.h.
38875         (link_exists2_p): Add back the code that deals with the
38876         !GLOB_ALTDIRFUNC case.
38877         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38878         let it do the filename concatenation.
38879         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38880         * modules/glob (Depends-on): Remove openat.
38881
38882 2007-12-31  Bruno Haible  <bruno@clisp.org>
38883
38884         * modules/dirfd (License): Change to LGPLv2+.
38885         Approved by Jim Meyering.
38886
38887 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38888
38889         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38890         when multiplying M by sizeof (size_t).
38891
38892 2007-12-10  Martin Lambers  <marlam@marlam.de>
38893
38894         Override getpagesize on mingw.
38895         * lib/getpagesize.c: New file.
38896         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38897         * modules/getpagesize (Files): Add lib/getpagesize.c.
38898         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38900         REPLACE_GETPAGESIZE.
38901         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38902
38903 2007-12-25  Bruno Haible  <bruno@clisp.org>
38904
38905         * modules/localcharset (Notice): New field.
38906         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38907         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38908
38909 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38910             Bruno Haible  <bruno@clisp.org>
38911
38912         Avoid using the syntax symbol() in formatted documentation.
38913         * MODULES.html.sh (func_module): When replacing symbol() with a
38914         hyperlink, remove the parentheses. Show an error if some remain.
38915         Recognize and render the '...' syntax.
38916         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38917         Rework. Add paragraph about GCC's inlining.
38918         * doc/alloca.texi: Likewise.
38919         * doc/error.texi: Remove parentheses from symbol reference.
38920         * doc/gnulib-intro.texi: Likewise.
38921         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38922         * modules/fnmatch (Description): Reword to say "the ... function".
38923         * modules/full-read (Description): Likewise.
38924         * modules/full-write (Description): Likewise.
38925         * modules/safe-read (Description): Likewise.
38926         * modules/safe-write (Description): Likewise.
38927         * modules/strchrnul (Description): Likewise.
38928         * modules/trim (Description): Likewise.
38929         * modules/error (Description): Remove parentheses from symbol
38930         references.
38931         * modules/verror (Description): Likewise.
38932         Reported by Karl Berry.
38933
38934 2007-12-25  Bruno Haible  <bruno@clisp.org>
38935
38936         Fixup after 2007-10-16 commit.
38937         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
38938
38939 2007-12-24  Bruno Haible  <bruno@clisp.org>
38940
38941         Make --enable-relocatable work with DESTDIR.
38942         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
38943         to compute installdir from destprog.
38944         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
38945         also set the RELOC_DESTDIR variable.
38946         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38947
38948 2007-12-24  Bruno Haible  <bruno@clisp.org>
38949
38950         Fix link error due to xalloc_die().
38951         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
38952         of xreadlink.
38953         * lib/relocwrapper.c: Update comments.
38954         * build-aux/install-reloc: Remove xreadlink.c from file list.
38955         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
38956         xreadlink.c.
38957         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38958
38959 2007-12-24  Bruno Haible  <bruno@clisp.org>
38960
38961         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
38962         * lib/setenv.h: Remove file.
38963         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
38964         lib/setenv.h.
38965         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
38966         (Depends-on): Add stdlib.
38967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
38968         gl_FUNC_UNSETENV.
38969         (Include): Replace setenv.h with <stdlib.h>.
38970         * modules/unsetenv: New file.
38971         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
38972         * lib/unsetenv.c: Include <stdlib.h> first.
38973         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38974         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38975         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38976         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38977         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38978         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38980         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38981         * doc/functions/unsetenv.texi: Update.
38982         * modules/xsetenv (Depends-on): Add unsetenv.
38983         * modules/getdate (Depends-on): Likewise.
38984         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38985         * lib/xsetenv.c: Don't include setenv.h.
38986         * lib/getdate.y: Likewise.
38987         * lib/relocwrapper.c: Likewise.
38988         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38989         (Depends-on): Add stdlib.
38990         * NEWS: Mention the changes.
38991         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38992
38993 2007-12-23  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38996         indentation.
38997
38998 2007-12-23  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/c-strcasestr.c: Add more comments.
39001         * lib/c-strstr.c: Likewise.
39002         * lib/mbscasestr.c: Likewise.
39003         * lib/mbsstr.c: Likewise.
39004         * lib/strcasestr.c: Likewise.
39005         * lib/memmem.c: Likewise.
39006
39007 2007-12-23  Bruno Haible  <bruno@clisp.org>
39008
39009         * tests/test-memmem.c: Include <string.h> first.
39010
39011 2007-12-22  Bruno Haible  <bruno@clisp.org>
39012
39013         * gnulib-tool (func_create_testdir): Change $auxdir while generating
39014         the contents of $testsbase.
39015         Reported by Ralf Wildenhues.
39016
39017 2007-12-22  Bruno Haible  <bruno@clisp.org>
39018
39019         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
39020         two variables local_ldadd_before, local_ldadd_last.
39021
39022 2007-12-20  Eric Blake  <ebb9@byu.net>
39023
39024         Work around circular library issue when cross-compiling.
39025         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
39026         that progname.o does not need to pull in rpl_memcmp.
39027
39028 2007-12-19  Eric Blake  <ebb9@byu.net>
39029
39030         Fix memmem to avoid O(n^2) worst-case complexity.
39031         * lib/memmem.c (knuth_morris_pratt): New function.
39032         (memmem): Use it if first few naive iterations fail.
39033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
39034         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
39035         * modules/memchr (License): Likewise.
39036         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
39037         malloca.
39038         * tests/test-memmem.c: Rewrite, borrowing ideas from
39039         test-mbsstr1.c; the old version wouldn't even compile!
39040         * modules/memmem-tests: New file.
39041         * lib/string.in.h (rpl_memmem): Add declaration.
39042         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
39043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
39044         REPLACE_MEMMEM.
39045
39046 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39047
39048         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
39049         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
39050         before any system include files, and undef after them all.  This
39051         should fix a problem on VMS reported by John E. Malmberg in
39052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
39053
39054 2007-12-17  Eric Blake  <ebb9@byu.net>
39055
39056         Revert addition of verify, for BSD/OS.
39057         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
39058         can't handle large files, for the sake of obsolete platforms.
39059         * modules/fseeko (Depends-on): Remove verify.
39060         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
39061         * doc/functions/ftello.texi (ftello): Likewise.
39062         * doc/functions/fgetpos.texi (fgetpos): Likewise.
39063         Reported by Larry Jones.
39064
39065 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
39066
39067         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
39068         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
39069
39070 2007-12-17  Jim Meyering  <meyering@redhat.com>
39071
39072         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
39073         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
39074         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
39075         * modules/getcwd (Depends-on): Add openat.
39076         Reported by Petr Salinger.
39077
39078 2007-12-17  Bruno Haible  <bruno@clisp.org>
39079
39080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
39081         avoid a segmentation fault of the configure test on x86_64 systems.
39082
39083 2007-12-15  Jim Meyering  <meyering@redhat.com>
39084
39085         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
39086
39087 2007-12-13  Eric Blake  <ebb9@byu.net>
39088
39089         Another fseek test.
39090         * tests/test-fseek.c (main): Also test ungetc handling.
39091         * tests/test-fseeko.c (main): Likewise.
39092         * modules/fseeko (Depends-on): Add verify.
39093         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
39094         large.
39095         Reported by Larry Jones.
39096
39097         Fix fseeko on mingw.
39098         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
39099         seek.
39100
39101         Beef up fseek tests.
39102         * tests/test-fseek.c (main): Also test eof handling.
39103         * tests/test-fseeko.c (main): Likewise.
39104         Reported by Larry Jones.
39105
39106 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39107
39108         Fix fseeko on BSD-based platforms.
39109         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39110         successful seek.
39111
39112 2007-12-12  Eric Blake  <ebb9@byu.net>
39113
39114         Allow circular dependency of separate libtests.a
39115         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39116         when use_libtests.
39117
39118 2007-12-11  Eric Blake  <ebb9@byu.net>
39119
39120         Fix bug with -0.0L in previous patch.
39121         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39122         * tests/test-isnan.c (main): Also test on zeroes.
39123         * tests/test-isnanf.c (main): Likewise.
39124         * tests/test-isnanl.h (main): Likewise.
39125
39126         Detect pseudo-denormals on x86 even when cross-compiling.
39127         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39128         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39129         invalid bit patterns that happen to satisfy ==.
39130
39131         Avoid link failures with separate libtests.a.
39132         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39133         last, to satisfy circular dependencies.
39134
39135 2007-12-11  Eric Blake  <ebb9@byu.net>
39136         and Bruno Haible  <bruno@clisp.org>
39137
39138         Fix OpenBSD 4.0 <float.h> handling of long double.
39139         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39140         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39141         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39142
39143 2007-12-11  Jim Meyering  <meyering@redhat.com>
39144
39145         * users.txt: Add libvirt.
39146
39147         Support versions of autoconf prior to 2.59c.
39148         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39149         if it is not already defined.
39150
39151 2007-12-09  Bruno Haible  <bruno@clisp.org>
39152
39153         Let 'gnulib-tool --import' collect sources needed for the tests in
39154         tests/ rather than in lib/.
39155         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39156         argument. If true, add rules to generate libtests.a, and put libtests.a
39157         into $(LDADD). Consider source files in subdirectories and set
39158         uses_subdirs.
39159         (func_emit_initmacro_start, func_emit_initmacro_end,
39160         func_emit_initmacro_done): Pass all arguments explicitly.
39161         (func_import): Determine two module lists main_modules,
39162         testsrelated_modules. Determine use_libtests. Determine two variables
39163         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39164         instead of just sed_transform_lib_file. Determine two variables
39165         main_files and testsrelated_files. Compute 'files' as the union of
39166         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39167         func_add_or_update. In the generated gnulib-comp.m4, collect the
39168         object files for tests/ in different variables than those for lib/.
39169         Substitute LIBTESTS_LIBDEPS.
39170         (func_create_testdir): Combine the uses_subdirs results from
39171         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39172
39173 2007-12-09  Bruno Haible  <bruno@clisp.org>
39174
39175         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39176         the build-aux directory.
39177
39178 2007-12-09  Bruno Haible  <bruno@clisp.org>
39179
39180         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
39181         introduced on 2006-09-09.
39182
39183 2007-12-07  Jim Meyering  <meyering@redhat.com>
39184
39185         Let these macros work also with autoconf-2.59.
39186         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
39187         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
39188         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39189
39190 2007-12-06  Jim Meyering  <meyering@redhat.com>
39191
39192         Avoid a configure-time syntax error in gl_FUNC_ACL.
39193         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
39194         function in each branch, before testing the cache variable.
39195
39196 2007-12-04  Eric Blake  <ebb9@byu.net>
39197
39198         Make scripts executable.
39199         * build-aux/config.guess: Add execute permissions.
39200         * build-aux/config.sub: Likewise.
39201         * build-aux/gendocs.sh: Likewise.
39202
39203         Fix frexp on mingw.
39204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
39205         cross-compiling.
39206         * doc/functions/frexp.texi (frexp): Document the bug.
39207
39208         Make cygwin fseeko check more reliable.
39209         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
39210         version numbers, rather than unrelated feature check.
39211         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
39212         * doc/functions/ftello.texi (ftello): Likewise.
39213         Reported by Bruno Haible.
39214
39215         * m4/strerror.m4: Bump version number.
39216
39217 2007-12-03  Bruno Haible  <bruno@clisp.org>
39218
39219         * doc/functions/mprotect.texi: Mention the mingw problem.
39220
39221 2007-12-03  Eric Blake  <ebb9@byu.net>
39222
39223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
39224         REPLACE_STRERROR is initialized before this macro.
39225
39226 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39227
39228         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
39229         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
39230         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
39231         put -lsec in even for programs other than 'ls'.  This fixes a problem
39232         for gettext reported by Bruno Haible in
39233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
39234         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
39235         Add support for Solaris 10.  This isn't efficient, but should get the
39236         job done for now.
39237
39238 2007-12-03  James Youngman  <jay@gnu.org>
39239
39240         * doc/regexprops-generic.texi: change "an close-group" to "a
39241         close-group" and "illegal" to "not allowed".
39242
39243 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39244
39245         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
39246         pr_byname.h. Needed for the rare case when the maintainer has done
39247         "make maintainer-clean" in the source directory and then attempts a
39248         build outside the source directory.
39249         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
39250         scripts_byname.h.
39251
39252 2007-12-02  Martin Lambers <marlam@marlam.de>
39253             Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/getpagesize.h: Remove file.
39256         * lib/unistd.in.h: Include declaration of getpagesize here.
39257         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
39258         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
39259         HAVE_SYS_PARAM_H.
39260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
39261         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39262         * modules/getpagesize (Files): Remove lib/getpagesize.h.
39263         (Depends-on): Add unistd.
39264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39265         (Include): Use <unistd.h> instead of getpagesize.h.
39266         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
39267         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39268         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
39269         gl_GETPAGESIZE invocation, already handled by module dependency.
39270         * lib/pagealign_alloc.c: Don't include getpagesize.h.
39271
39272 2007-12-02  Bruno Haible  <bruno@clisp.org>
39273
39274         * modules/strings-tests: New file.
39275         * tests/test-strings.c: New file.
39276
39277         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
39278         * lib/strings.in.h: New file.
39279         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
39280         * m4/strings_h.m4: New file.
39281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
39282         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
39283         * modules/strings: New file.
39284         * modules/string (Makefile.am): Update.
39285         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
39286         Reported by Karl Berry.
39287
39288 2007-12-01  Eric Blake  <ebb9@byu.net>
39289
39290         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
39291         accomodate fix in cygwin 1.5.25.
39292
39293 2007-12-01  Jim Meyering  <meyering@redhat.com>
39294
39295         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
39296         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
39297         that would inhibit utf8-optimization of a regexp containing line-
39298         or buffer-anchors, e.g., `^', `$'.
39299
39300 2007-11-30  Bruno Haible  <bruno@clisp.org>
39301
39302         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
39303         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
39304         glthread_recursive_lock_init.
39305         * lib/lock.c (glthread_recursive_lock_init)
39306         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
39307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39308
39309 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         New function qset_acl, like set_acl but with syscall semantics.
39312         * lib/acl.h (qset_acl): New decl.
39313         * lib/acl.c (qset_acl): New function.
39314         (set_acl): Use new function.  Use more-consistent diagnostics.
39315
39316 2007-11-28  Jim Meyering  <meyering@redhat.com>
39317
39318         * modules/physmem (License): Change from GPL to LGPLv2+.
39319
39320 2007-11-26  Bruno Haible  <bruno@clisp.org>
39321
39322         * lib/vasnprintf.c (decode_long_double): Don't abort if the
39323         'long double' type has excess precision.
39324         Reported by Jim Meyering in
39325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
39326
39327 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39328
39329         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
39330         Sync from <http://gnu.org/licenses>.
39331         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
39332         with license text from same location.
39333         * doc/maintain.texi, doc/standards.texi:  Sync from
39334         <http://savannah.gnu.org/projects/gnustandards>.
39335
39336 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
39337         and Jim Meyering  <meyering@redhat.com>
39338
39339         Adjust getdate' grammar to accept a slightly more regular language.
39340         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
39341         Before, the former was rejected.
39342         * lib/getdate.y (digits_to_date_time): New function, factored
39343         out of ...
39344         (number): ...here.  Just call digits_to_date_time.
39345         (hybrid): New non-terminal to handle an <unsigned number,
39346         signed relative offset> sequence consistently.
39347
39348 2007-11-18  Jim Meyering  <meyering@redhat.com>
39349
39350         Pull my changes from coreutils:
39351         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
39352         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
39353         use of $gnulib_tool_option_extras, so that it's separated from the
39354         preceding argument.
39355
39356         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
39357         * build-aux/bootstrap (cp_mark_as_generated): Create any required
39358         parent destination directories before copying a file into place.
39359
39360 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39361
39362         bootstrap: work also with 4-argument variant of AC_INIT
39363         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
39364
39365 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39366
39367         Port test-getaddrinfo to Solaris.
39368         Problem reported by Bruno Haible in
39369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
39370         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
39371         explanation of setting 'hints'.
39372         Don't reject an implementation merely because it returns EAI_SERVICE.
39373         (EAI_SERVICE): Define to 0 if not defined.
39374
39375 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39376
39377         The license of gnu-make and posix-shell is now "GPLed build tool".
39378         * modules/gnu-make (License): Likewise.
39379         * modules/posix-shell (License): Likewise.
39380
39381         New module posix-shell, for determining a POSIX shell
39382         or perhaps something that is close enough to a POSIX shell.
39383         * m4/posix-shell.m4: New file.
39384         * modules/posix-shell: New file.
39385
39386         * MODULES.html.sh: Mention new module.
39387
39388         New module gnu-make, for determining whether we're using GNU Make.
39389         * m4/gnu-make.m4: New file.
39390         * modules/gnu-make: New file.
39391         * MODULES.html.sh: Mention new module.
39392
39393 2007-11-14  Jim Meyering  <meyering@redhat.com>
39394
39395         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
39396         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
39397         use this macro to create a function _definition_.
39398         Remove useless "#undef ARGMATCH_DIE".
39399
39400 2007-11-14  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/config.charset: Update for OpenBSD 4.1.
39403         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
39404
39405 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
39406
39407         Document 64-bit #if problems in stdint.texi.
39408         * doc/headers/stdint.texi (stdint.h): Mention problems with
39409         64-bit-#if, and how to work around them.
39410
39411         Don't insist on 'long long int' support in the preprocessor.  It
39412         breaks too many things.  For example, PRIdMAX still uses a 'long
39413         long int' format with the latest Sun compiler, even though
39414         HAVE_LONG_LONG_INT isn't defined due to that compiler's
39415         preprocessor problem.  This causes the latest coreutils to dump
39416         core on Solaris 10 sparc with the Sun C compiler.
39417         Instead, fix the 2007-10-16 problem in a different way, by evaluating
39418         the troublesome expressions at configure-time, not at #if-time.
39419         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
39420         preprocessor.
39421         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
39422         compile-time C checks, done at 'configure'-time.
39423         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
39424         * modules/inttypes (Makefile): Substitute the new symbols that
39425         gl_INTTYPES_H now generates.
39426         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
39427
39428 2007-11-12  Bruno Haible  <bruno@clisp.org>
39429
39430         Tests for Unicode character classification functions.
39431
39432         * modules/unictype/bidicategory-byname-tests: New file.
39433         * modules/unictype/bidicategory-name-tests: New file.
39434         * modules/unictype/bidicategory-of-tests: New file.
39435         * modules/unictype/bidicategory-test-tests: New file.
39436         * modules/unictype/block-list-tests: New file.
39437         * modules/unictype/block-of-tests: New file.
39438         * modules/unictype/block-test-tests: New file.
39439         * modules/unictype/category-C-tests: New file.
39440         * modules/unictype/category-Cc-tests: New file.
39441         * modules/unictype/category-Cf-tests: New file.
39442         * modules/unictype/category-Cn-tests: New file.
39443         * modules/unictype/category-Co-tests: New file.
39444         * modules/unictype/category-Cs-tests: New file.
39445         * modules/unictype/category-L-tests: New file.
39446         * modules/unictype/category-Ll-tests: New file.
39447         * modules/unictype/category-Lm-tests: New file.
39448         * modules/unictype/category-Lo-tests: New file.
39449         * modules/unictype/category-Lt-tests: New file.
39450         * modules/unictype/category-Lu-tests: New file.
39451         * modules/unictype/category-M-tests: New file.
39452         * modules/unictype/category-Mc-tests: New file.
39453         * modules/unictype/category-Me-tests: New file.
39454         * modules/unictype/category-Mn-tests: New file.
39455         * modules/unictype/category-N-tests: New file.
39456         * modules/unictype/category-Nd-tests: New file.
39457         * modules/unictype/category-Nl-tests: New file.
39458         * modules/unictype/category-No-tests: New file.
39459         * modules/unictype/category-P-tests: New file.
39460         * modules/unictype/category-Pc-tests: New file.
39461         * modules/unictype/category-Pd-tests: New file.
39462         * modules/unictype/category-Pe-tests: New file.
39463         * modules/unictype/category-Pf-tests: New file.
39464         * modules/unictype/category-Pi-tests: New file.
39465         * modules/unictype/category-Po-tests: New file.
39466         * modules/unictype/category-Ps-tests: New file.
39467         * modules/unictype/category-S-tests: New file.
39468         * modules/unictype/category-Sc-tests: New file.
39469         * modules/unictype/category-Sk-tests: New file.
39470         * modules/unictype/category-Sm-tests: New file.
39471         * modules/unictype/category-So-tests: New file.
39472         * modules/unictype/category-Z-tests: New file.
39473         * modules/unictype/category-Zl-tests: New file.
39474         * modules/unictype/category-Zp-tests: New file.
39475         * modules/unictype/category-Zs-tests: New file.
39476         * modules/unictype/category-and-not-tests: New file.
39477         * modules/unictype/category-and-tests: New file.
39478         * modules/unictype/category-byname-tests: New file.
39479         * modules/unictype/category-name-tests: New file.
39480         * modules/unictype/category-none-tests: New file.
39481         * modules/unictype/category-of-tests: New file.
39482         * modules/unictype/category-or-tests: New file.
39483         * modules/unictype/category-test-withtable-tests: New file.
39484         * modules/unictype/combining-class-tests: New file.
39485         * modules/unictype/ctype-alnum-tests: New file.
39486         * modules/unictype/ctype-alpha-tests: New file.
39487         * modules/unictype/ctype-blank-tests: New file.
39488         * modules/unictype/ctype-cntrl-tests: New file.
39489         * modules/unictype/ctype-digit-tests: New file.
39490         * modules/unictype/ctype-graph-tests: New file.
39491         * modules/unictype/ctype-lower-tests: New file.
39492         * modules/unictype/ctype-print-tests: New file.
39493         * modules/unictype/ctype-punct-tests: New file.
39494         * modules/unictype/ctype-space-tests: New file.
39495         * modules/unictype/ctype-upper-tests: New file.
39496         * modules/unictype/ctype-xdigit-tests: New file.
39497         * modules/unictype/decimal-digit-tests: New file.
39498         * modules/unictype/digit-tests: New file.
39499         * modules/unictype/mirror-tests: New file.
39500         * modules/unictype/numeric-tests: New file.
39501         * modules/unictype/property-alphabetic-tests: New file.
39502         * modules/unictype/property-ascii-hex-digit-tests: New file.
39503         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39504         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39505         * modules/unictype/property-bidi-block-separator-tests: New file.
39506         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39507         * modules/unictype/property-bidi-common-separator-tests: New file.
39508         * modules/unictype/property-bidi-control-tests: New file.
39509         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39510         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39511         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39512         * modules/unictype/property-bidi-european-digit-tests: New file.
39513         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39514         * modules/unictype/property-bidi-left-to-right-tests: New file.
39515         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39516         * modules/unictype/property-bidi-other-neutral-tests: New file.
39517         * modules/unictype/property-bidi-pdf-tests: New file.
39518         * modules/unictype/property-bidi-segment-separator-tests: New file.
39519         * modules/unictype/property-bidi-whitespace-tests: New file.
39520         * modules/unictype/property-byname-tests: New file.
39521         * modules/unictype/property-combining-tests: New file.
39522         * modules/unictype/property-composite-tests: New file.
39523         * modules/unictype/property-currency-symbol-tests: New file.
39524         * modules/unictype/property-dash-tests: New file.
39525         * modules/unictype/property-decimal-digit-tests: New file.
39526         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39527         * modules/unictype/property-deprecated-tests: New file.
39528         * modules/unictype/property-diacritic-tests: New file.
39529         * modules/unictype/property-extender-tests: New file.
39530         * modules/unictype/property-format-control-tests: New file.
39531         * modules/unictype/property-grapheme-base-tests: New file.
39532         * modules/unictype/property-grapheme-extend-tests: New file.
39533         * modules/unictype/property-grapheme-link-tests: New file.
39534         * modules/unictype/property-hex-digit-tests: New file.
39535         * modules/unictype/property-hyphen-tests: New file.
39536         * modules/unictype/property-id-continue-tests: New file.
39537         * modules/unictype/property-id-start-tests: New file.
39538         * modules/unictype/property-ideographic-tests: New file.
39539         * modules/unictype/property-ids-binary-operator-tests: New file.
39540         * modules/unictype/property-ids-trinary-operator-tests: New file.
39541         * modules/unictype/property-ignorable-control-tests: New file.
39542         * modules/unictype/property-iso-control-tests: New file.
39543         * modules/unictype/property-join-control-tests: New file.
39544         * modules/unictype/property-left-of-pair-tests: New file.
39545         * modules/unictype/property-line-separator-tests: New file.
39546         * modules/unictype/property-logical-order-exception-tests: New file.
39547         * modules/unictype/property-lowercase-tests: New file.
39548         * modules/unictype/property-math-tests: New file.
39549         * modules/unictype/property-non-break-tests: New file.
39550         * modules/unictype/property-not-a-character-tests: New file.
39551         * modules/unictype/property-numeric-tests: New file.
39552         * modules/unictype/property-other-alphabetic-tests: New file.
39553         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39554         * modules/unictype/property-other-grapheme-extend-tests: New file.
39555         * modules/unictype/property-other-id-continue-tests: New file.
39556         * modules/unictype/property-other-id-start-tests: New file.
39557         * modules/unictype/property-other-lowercase-tests: New file.
39558         * modules/unictype/property-other-math-tests: New file.
39559         * modules/unictype/property-other-uppercase-tests: New file.
39560         * modules/unictype/property-paired-punctuation-tests: New file.
39561         * modules/unictype/property-paragraph-separator-tests: New file.
39562         * modules/unictype/property-pattern-syntax-tests: New file.
39563         * modules/unictype/property-pattern-white-space-tests: New file.
39564         * modules/unictype/property-private-use-tests: New file.
39565         * modules/unictype/property-punctuation-tests: New file.
39566         * modules/unictype/property-quotation-mark-tests: New file.
39567         * modules/unictype/property-radical-tests: New file.
39568         * modules/unictype/property-sentence-terminal-tests: New file.
39569         * modules/unictype/property-soft-dotted-tests: New file.
39570         * modules/unictype/property-space-tests: New file.
39571         * modules/unictype/property-terminal-punctuation-tests: New file.
39572         * modules/unictype/property-test-tests: New file.
39573         * modules/unictype/property-titlecase-tests: New file.
39574         * modules/unictype/property-unassigned-code-value-tests: New file.
39575         * modules/unictype/property-unified-ideograph-tests: New file.
39576         * modules/unictype/property-uppercase-tests: New file.
39577         * modules/unictype/property-variation-selector-tests: New file.
39578         * modules/unictype/property-white-space-tests: New file.
39579         * modules/unictype/property-xid-continue-tests: New file.
39580         * modules/unictype/property-xid-start-tests: New file.
39581         * modules/unictype/property-zero-width-tests: New file.
39582         * modules/unictype/scripts-tests: New file.
39583         * modules/unictype/syntax-c-ident-tests: New file.
39584         * modules/unictype/syntax-c-whitespace-tests: New file.
39585         * modules/unictype/syntax-java-ident-tests: New file.
39586         * modules/unictype/syntax-java-whitespace-tests: New file.
39587         * tests/unictype/test-bidi_byname.c: New file.
39588         * tests/unictype/test-bidi_name.c: New file.
39589         * tests/unictype/test-bidi_of.c: New file.
39590         * tests/unictype/test-bidi_test.c: New file.
39591         * tests/unictype/test-block_list.c: New file.
39592         * tests/unictype/test-block_of.c: New file.
39593         * tests/unictype/test-block_test.c: New file.
39594         * tests/unictype/test-categ_and.c: New file.
39595         * tests/unictype/test-categ_and_not.c: New file.
39596         * tests/unictype/test-categ_byname.c: New file.
39597         * tests/unictype/test-categ_name.c: New file.
39598         * tests/unictype/test-categ_none.c: New file.
39599         * tests/unictype/test-categ_of.c: New file.
39600         * tests/unictype/test-categ_or.c: New file.
39601         * tests/unictype/test-categ_test_withtable.c: New file.
39602         * tests/unictype/test-combining.c: New file.
39603         * tests/unictype/test-decdigit.c: New file.
39604         * tests/unictype/test-digit.c: New file.
39605         * tests/unictype/test-mirror.c: New file.
39606         * tests/unictype/test-numeric.c: New file.
39607         * tests/unictype/test-pr_byname.c: New file.
39608         * tests/unictype/test-pr_test.c: New file.
39609         * tests/unictype/test-predicate-part1.h: New file.
39610         * tests/unictype/test-predicate-part2.h: New file.
39611         * tests/unictype/test-scripts.c: New file.
39612         * tests/unictype/test-sy_c_ident.c: New file.
39613         * tests/unictype/test-sy_java_ident.c: New file.
39614
39615         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39616         for Unicode 5.0.0.
39617         * tests/unictype/test-categ_Cc.c: Likewise.
39618         * tests/unictype/test-categ_Cf.c: Likewise.
39619         * tests/unictype/test-categ_Cn.c: Likewise.
39620         * tests/unictype/test-categ_Co.c: Likewise.
39621         * tests/unictype/test-categ_Cs.c: Likewise.
39622         * tests/unictype/test-categ_L.c: Likewise.
39623         * tests/unictype/test-categ_Ll.c: Likewise.
39624         * tests/unictype/test-categ_Lm.c: Likewise.
39625         * tests/unictype/test-categ_Lo.c: Likewise.
39626         * tests/unictype/test-categ_Lt.c: Likewise.
39627         * tests/unictype/test-categ_Lu.c: Likewise.
39628         * tests/unictype/test-categ_M.c: Likewise.
39629         * tests/unictype/test-categ_Mc.c: Likewise.
39630         * tests/unictype/test-categ_Me.c: Likewise.
39631         * tests/unictype/test-categ_Mn.c: Likewise.
39632         * tests/unictype/test-categ_N.c: Likewise.
39633         * tests/unictype/test-categ_Nd.c: Likewise.
39634         * tests/unictype/test-categ_Nl.c: Likewise.
39635         * tests/unictype/test-categ_No.c: Likewise.
39636         * tests/unictype/test-categ_P.c: Likewise.
39637         * tests/unictype/test-categ_Pc.c: Likewise.
39638         * tests/unictype/test-categ_Pd.c: Likewise.
39639         * tests/unictype/test-categ_Pe.c: Likewise.
39640         * tests/unictype/test-categ_Pf.c: Likewise.
39641         * tests/unictype/test-categ_Pi.c: Likewise.
39642         * tests/unictype/test-categ_Po.c: Likewise.
39643         * tests/unictype/test-categ_Ps.c: Likewise.
39644         * tests/unictype/test-categ_S.c: Likewise.
39645         * tests/unictype/test-categ_Sc.c: Likewise.
39646         * tests/unictype/test-categ_Sk.c: Likewise.
39647         * tests/unictype/test-categ_Sm.c: Likewise.
39648         * tests/unictype/test-categ_So.c: Likewise.
39649         * tests/unictype/test-categ_Z.c: Likewise.
39650         * tests/unictype/test-categ_Zl.c: Likewise.
39651         * tests/unictype/test-categ_Zp.c: Likewise.
39652         * tests/unictype/test-categ_Zs.c: Likewise.
39653         * tests/unictype/test-ctype_alnum.c: Likewise.
39654         * tests/unictype/test-ctype_alpha.c: Likewise.
39655         * tests/unictype/test-ctype_blank.c: Likewise.
39656         * tests/unictype/test-ctype_cntrl.c: Likewise.
39657         * tests/unictype/test-ctype_digit.c: Likewise.
39658         * tests/unictype/test-ctype_graph.c: Likewise.
39659         * tests/unictype/test-ctype_lower.c: Likewise.
39660         * tests/unictype/test-ctype_print.c: Likewise.
39661         * tests/unictype/test-ctype_punct.c: Likewise.
39662         * tests/unictype/test-ctype_space.c: Likewise.
39663         * tests/unictype/test-ctype_upper.c: Likewise.
39664         * tests/unictype/test-ctype_xdigit.c: Likewise.
39665         * tests/unictype/test-decdigit.h: Likewise.
39666         * tests/unictype/test-digit.h: Likewise.
39667         * tests/unictype/test-numeric.h: Likewise.
39668         * tests/unictype/test-pr_alphabetic.c: Likewise.
39669         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39670         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39671         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39672         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39673         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39674         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39675         * tests/unictype/test-pr_bidi_control.c: Likewise.
39676         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39677         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39678         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39679         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39680         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39681         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39682         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39683         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39684         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39685         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39686         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39687         * tests/unictype/test-pr_combining.c: Likewise.
39688         * tests/unictype/test-pr_composite.c: Likewise.
39689         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39690         * tests/unictype/test-pr_dash.c: Likewise.
39691         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39692         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39693         * tests/unictype/test-pr_deprecated.c: Likewise.
39694         * tests/unictype/test-pr_diacritic.c: Likewise.
39695         * tests/unictype/test-pr_extender.c: Likewise.
39696         * tests/unictype/test-pr_format_control.c: Likewise.
39697         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39698         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39699         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39700         * tests/unictype/test-pr_hex_digit.c: Likewise.
39701         * tests/unictype/test-pr_hyphen.c: Likewise.
39702         * tests/unictype/test-pr_id_continue.c: Likewise.
39703         * tests/unictype/test-pr_id_start.c: Likewise.
39704         * tests/unictype/test-pr_ideographic.c: Likewise.
39705         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39706         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39707         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39708         * tests/unictype/test-pr_iso_control.c: Likewise.
39709         * tests/unictype/test-pr_join_control.c: Likewise.
39710         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39711         * tests/unictype/test-pr_line_separator.c: Likewise.
39712         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39713         * tests/unictype/test-pr_lowercase.c: Likewise.
39714         * tests/unictype/test-pr_math.c: Likewise.
39715         * tests/unictype/test-pr_non_break.c: Likewise.
39716         * tests/unictype/test-pr_not_a_character.c: Likewise.
39717         * tests/unictype/test-pr_numeric.c: Likewise.
39718         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39719         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39720         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39721         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39722         * tests/unictype/test-pr_other_id_start.c: Likewise.
39723         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39724         * tests/unictype/test-pr_other_math.c: Likewise.
39725         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39726         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39727         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39728         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39729         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39730         * tests/unictype/test-pr_private_use.c: Likewise.
39731         * tests/unictype/test-pr_punctuation.c: Likewise.
39732         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39733         * tests/unictype/test-pr_radical.c: Likewise.
39734         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39735         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39736         * tests/unictype/test-pr_space.c: Likewise.
39737         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39738         * tests/unictype/test-pr_titlecase.c: Likewise.
39739         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39740         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39741         * tests/unictype/test-pr_uppercase.c: Likewise.
39742         * tests/unictype/test-pr_variation_selector.c: Likewise.
39743         * tests/unictype/test-pr_white_space.c: Likewise.
39744         * tests/unictype/test-pr_xid_continue.c: Likewise.
39745         * tests/unictype/test-pr_xid_start.c: Likewise.
39746         * tests/unictype/test-pr_zero_width.c: Likewise.
39747         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39748         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39749
39750 2007-11-12  Bruno Haible  <bruno@clisp.org>
39751
39752         Unicode character classification functions.
39753         * lib/unictype.h: New file.
39754         * modules/unictype/base: New file.
39755         * modules/unictype/category-L: New file.
39756         * modules/unictype/category-Lu: New file.
39757         * modules/unictype/category-Ll: New file.
39758         * modules/unictype/category-Lt: New file.
39759         * modules/unictype/category-Lm: New file.
39760         * modules/unictype/category-Lo: New file.
39761         * modules/unictype/category-M: New file.
39762         * modules/unictype/category-Mn: New file.
39763         * modules/unictype/category-Mc: New file.
39764         * modules/unictype/category-Me: New file.
39765         * modules/unictype/category-N: New file.
39766         * modules/unictype/category-Nd: New file.
39767         * modules/unictype/category-Nl: New file.
39768         * modules/unictype/category-No: New file.
39769         * modules/unictype/category-P: New file.
39770         * modules/unictype/category-Pc: New file.
39771         * modules/unictype/category-Pd: New file.
39772         * modules/unictype/category-Ps: New file.
39773         * modules/unictype/category-Pe: New file.
39774         * modules/unictype/category-Pi: New file.
39775         * modules/unictype/category-Pf: New file.
39776         * modules/unictype/category-Po: New file.
39777         * modules/unictype/category-S: New file.
39778         * modules/unictype/category-Sm: New file.
39779         * modules/unictype/category-Sc: New file.
39780         * modules/unictype/category-Sk: New file.
39781         * modules/unictype/category-So: New file.
39782         * modules/unictype/category-Z: New file.
39783         * modules/unictype/category-Zs: New file.
39784         * modules/unictype/category-Zl: New file.
39785         * modules/unictype/category-Zp: New file.
39786         * modules/unictype/category-C: New file.
39787         * modules/unictype/category-Cc: New file.
39788         * modules/unictype/category-Cf: New file.
39789         * modules/unictype/category-Cs: New file.
39790         * modules/unictype/category-Co: New file.
39791         * modules/unictype/category-Cn: New file.
39792         * modules/unictype/category-or: New file.
39793         * modules/unictype/category-of: New file.
39794         * modules/unictype/category-test: New file.
39795         * modules/unictype/category-test-withtable: New file.
39796         * modules/unictype/category-byname: New file.
39797         * modules/unictype/category-none: New file.
39798         * modules/unictype/category-and: New file.
39799         * modules/unictype/category-and-not: New file.
39800         * modules/unictype/category-name: New file.
39801         * modules/unictype/combining-class: New file.
39802         * modules/unictype/category-all: New file.
39803         * modules/unictype/bidicategory-all: New file.
39804         * modules/unictype/bidicategory-byname: New file.
39805         * modules/unictype/bidicategory-name: New file.
39806         * modules/unictype/bidicategory-of: New file.
39807         * modules/unictype/bidicategory-test: New file.
39808         * modules/unictype/decimal-digit: New file.
39809         * modules/unictype/digit: New file.
39810         * modules/unictype/numeric: New file.
39811         * modules/unictype/mirror: New file.
39812         * modules/unictype/property-white-space: New file.
39813         * modules/unictype/property-alphabetic: New file.
39814         * modules/unictype/property-other-alphabetic: New file.
39815         * modules/unictype/property-not-a-character: New file.
39816         * modules/unictype/property-default-ignorable-code-point: New file.
39817         * modules/unictype/property-other-default-ignorable-code-point: New
39818         file.
39819         * modules/unictype/property-deprecated: New file.
39820         * modules/unictype/property-logical-order-exception: New file.
39821         * modules/unictype/property-variation-selector: New file.
39822         * modules/unictype/property-private-use: New file.
39823         * modules/unictype/property-unassigned-code-value: New file.
39824         * modules/unictype/property-uppercase: New file.
39825         * modules/unictype/property-other-uppercase: New file.
39826         * modules/unictype/property-lowercase: New file.
39827         * modules/unictype/property-other-lowercase: New file.
39828         * modules/unictype/property-titlecase: New file.
39829         * modules/unictype/property-soft-dotted: New file.
39830         * modules/unictype/property-id-start: New file.
39831         * modules/unictype/property-other-id-start: New file.
39832         * modules/unictype/property-id-continue: New file.
39833         * modules/unictype/property-other-id-continue: New file.
39834         * modules/unictype/property-xid-start: New file.
39835         * modules/unictype/property-xid-continue: New file.
39836         * modules/unictype/property-pattern-white-space: New file.
39837         * modules/unictype/property-pattern-syntax: New file.
39838         * modules/unictype/property-join-control: New file.
39839         * modules/unictype/property-grapheme-base: New file.
39840         * modules/unictype/property-grapheme-extend: New file.
39841         * modules/unictype/property-other-grapheme-extend: New file.
39842         * modules/unictype/property-grapheme-link: New file.
39843         * modules/unictype/property-bidi-control: New file.
39844         * modules/unictype/property-bidi-left-to-right: New file.
39845         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39846         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39847         * modules/unictype/property-bidi-european-digit: New file.
39848         * modules/unictype/property-bidi-eur-num-separator: New file.
39849         * modules/unictype/property-bidi-eur-num-terminator: New file.
39850         * modules/unictype/property-bidi-arabic-digit: New file.
39851         * modules/unictype/property-bidi-common-separator: New file.
39852         * modules/unictype/property-bidi-block-separator: New file.
39853         * modules/unictype/property-bidi-segment-separator: New file.
39854         * modules/unictype/property-bidi-whitespace: New file.
39855         * modules/unictype/property-bidi-non-spacing-mark: New file.
39856         * modules/unictype/property-bidi-boundary-neutral: New file.
39857         * modules/unictype/property-bidi-pdf: New file.
39858         * modules/unictype/property-bidi-embedding-or-override: New file.
39859         * modules/unictype/property-bidi-other-neutral: New file.
39860         * modules/unictype/property-hex-digit: New file.
39861         * modules/unictype/property-ascii-hex-digit: New file.
39862         * modules/unictype/property-ideographic: New file.
39863         * modules/unictype/property-unified-ideograph: New file.
39864         * modules/unictype/property-radical: New file.
39865         * modules/unictype/property-ids-binary-operator: New file.
39866         * modules/unictype/property-ids-trinary-operator: New file.
39867         * modules/unictype/property-zero-width: New file.
39868         * modules/unictype/property-space: New file.
39869         * modules/unictype/property-non-break: New file.
39870         * modules/unictype/property-iso-control: New file.
39871         * modules/unictype/property-format-control: New file.
39872         * modules/unictype/property-dash: New file.
39873         * modules/unictype/property-hyphen: New file.
39874         * modules/unictype/property-punctuation: New file.
39875         * modules/unictype/property-line-separator: New file.
39876         * modules/unictype/property-paragraph-separator: New file.
39877         * modules/unictype/property-quotation-mark: New file.
39878         * modules/unictype/property-sentence-terminal: New file.
39879         * modules/unictype/property-terminal-punctuation: New file.
39880         * modules/unictype/property-currency-symbol: New file.
39881         * modules/unictype/property-math: New file.
39882         * modules/unictype/property-other-math: New file.
39883         * modules/unictype/property-paired-punctuation: New file.
39884         * modules/unictype/property-left-of-pair: New file.
39885         * modules/unictype/property-combining: New file.
39886         * modules/unictype/property-composite: New file.
39887         * modules/unictype/property-decimal-digit: New file.
39888         * modules/unictype/property-numeric: New file.
39889         * modules/unictype/property-diacritic: New file.
39890         * modules/unictype/property-extender: New file.
39891         * modules/unictype/property-ignorable-control: New file.
39892         * modules/unictype/property-test: New file.
39893         * modules/unictype/property-byname: New file.
39894         * modules/unictype/property-all: New file.
39895         * modules/unictype/scripts: New file.
39896         * modules/unictype/scripts-all: New file.
39897         * modules/unictype/block-of: New file.
39898         * modules/unictype/block-test: New file.
39899         * modules/unictype/block-list: New file.
39900         * modules/unictype/block-all: New file.
39901         * modules/unictype/syntax-c-whitespace: New file.
39902         * modules/unictype/syntax-java-whitespace: New file.
39903         * modules/unictype/syntax-c-ident: New file.
39904         * modules/unictype/syntax-java-ident: New file.
39905         * modules/unictype/ctype-alnum: New file.
39906         * modules/unictype/ctype-alpha: New file.
39907         * modules/unictype/ctype-cntrl: New file.
39908         * modules/unictype/ctype-digit: New file.
39909         * modules/unictype/ctype-graph: New file.
39910         * modules/unictype/ctype-lower: New file.
39911         * modules/unictype/ctype-print: New file.
39912         * modules/unictype/ctype-punct: New file.
39913         * modules/unictype/ctype-space: New file.
39914         * modules/unictype/ctype-upper: New file.
39915         * modules/unictype/ctype-xdigit: New file.
39916         * modules/unictype/ctype-blank: New file.
39917         * lib/unictype/bidi_byname.c: New file.
39918         * lib/unictype/bidi_name.c: New file.
39919         * lib/unictype/bidi_of.c: New file.
39920         * lib/unictype/bidi_test.c: New file.
39921         * lib/unictype/bitmap.h: New file.
39922         * lib/unictype/block_test.c: New file.
39923         * lib/unictype/blocks.c: New file.
39924         * lib/unictype/categ_C.c: New file.
39925         * lib/unictype/categ_Cc.c: New file.
39926         * lib/unictype/categ_Cf.c: New file.
39927         * lib/unictype/categ_Cn.c: New file.
39928         * lib/unictype/categ_Co.c: New file.
39929         * lib/unictype/categ_Cs.c: New file.
39930         * lib/unictype/categ_L.c: New file.
39931         * lib/unictype/categ_Ll.c: New file.
39932         * lib/unictype/categ_Lm.c: New file.
39933         * lib/unictype/categ_Lo.c: New file.
39934         * lib/unictype/categ_Lt.c: New file.
39935         * lib/unictype/categ_Lu.c: New file.
39936         * lib/unictype/categ_M.c: New file.
39937         * lib/unictype/categ_Mc.c: New file.
39938         * lib/unictype/categ_Me.c: New file.
39939         * lib/unictype/categ_Mn.c: New file.
39940         * lib/unictype/categ_N.c: New file.
39941         * lib/unictype/categ_Nd.c: New file.
39942         * lib/unictype/categ_Nl.c: New file.
39943         * lib/unictype/categ_No.c: New file.
39944         * lib/unictype/categ_P.c: New file.
39945         * lib/unictype/categ_Pc.c: New file.
39946         * lib/unictype/categ_Pd.c: New file.
39947         * lib/unictype/categ_Pe.c: New file.
39948         * lib/unictype/categ_Pf.c: New file.
39949         * lib/unictype/categ_Pi.c: New file.
39950         * lib/unictype/categ_Po.c: New file.
39951         * lib/unictype/categ_Ps.c: New file.
39952         * lib/unictype/categ_S.c: New file.
39953         * lib/unictype/categ_Sc.c: New file.
39954         * lib/unictype/categ_Sk.c: New file.
39955         * lib/unictype/categ_Sm.c: New file.
39956         * lib/unictype/categ_So.c: New file.
39957         * lib/unictype/categ_Z.c: New file.
39958         * lib/unictype/categ_Zl.c: New file.
39959         * lib/unictype/categ_Zp.c: New file.
39960         * lib/unictype/categ_Zs.c: New file.
39961         * lib/unictype/categ_and.c: New file.
39962         * lib/unictype/categ_and_not.c: New file.
39963         * lib/unictype/categ_byname.c: New file.
39964         * lib/unictype/categ_name.c: New file.
39965         * lib/unictype/categ_none.c: New file.
39966         * lib/unictype/categ_of.c: New file.
39967         * lib/unictype/categ_or.c: New file.
39968         * lib/unictype/categ_test.c: New file.
39969         * lib/unictype/combining.c: New file.
39970         * lib/unictype/ctype_alnum.c: New file.
39971         * lib/unictype/ctype_alpha.c: New file.
39972         * lib/unictype/ctype_blank.c: New file.
39973         * lib/unictype/ctype_cntrl.c: New file.
39974         * lib/unictype/ctype_digit.c: New file.
39975         * lib/unictype/ctype_graph.c: New file.
39976         * lib/unictype/ctype_lower.c: New file.
39977         * lib/unictype/ctype_print.c: New file.
39978         * lib/unictype/ctype_punct.c: New file.
39979         * lib/unictype/ctype_space.c: New file.
39980         * lib/unictype/ctype_upper.c: New file.
39981         * lib/unictype/ctype_xdigit.c: New file.
39982         * lib/unictype/decdigit.c: New file.
39983         * lib/unictype/digit.c: New file.
39984         * lib/unictype/identsyntaxmap.h: New file.
39985         * lib/unictype/mirror.c: New file.
39986         * lib/unictype/numeric.c: New file.
39987         * lib/unictype/pr_alphabetic.c: New file.
39988         * lib/unictype/pr_ascii_hex_digit.c: New file.
39989         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39990         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39991         * lib/unictype/pr_bidi_block_separator.c: New file.
39992         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39993         * lib/unictype/pr_bidi_common_separator.c: New file.
39994         * lib/unictype/pr_bidi_control.c: New file.
39995         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39996         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39997         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39998         * lib/unictype/pr_bidi_european_digit.c: New file.
39999         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
40000         * lib/unictype/pr_bidi_left_to_right.c: New file.
40001         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
40002         * lib/unictype/pr_bidi_other_neutral.c: New file.
40003         * lib/unictype/pr_bidi_pdf.c: New file.
40004         * lib/unictype/pr_bidi_segment_separator.c: New file.
40005         * lib/unictype/pr_bidi_whitespace.c: New file.
40006         * lib/unictype/pr_byname.c: New file.
40007         * lib/unictype/pr_byname.gperf: New file.
40008         * lib/unictype/pr_combining.c: New file.
40009         * lib/unictype/pr_composite.c: New file.
40010         * lib/unictype/pr_currency_symbol.c: New file.
40011         * lib/unictype/pr_dash.c: New file.
40012         * lib/unictype/pr_decimal_digit.c: New file.
40013         * lib/unictype/pr_default_ignorable_code_point.c: New file.
40014         * lib/unictype/pr_deprecated.c: New file.
40015         * lib/unictype/pr_diacritic.c: New file.
40016         * lib/unictype/pr_extender.c: New file.
40017         * lib/unictype/pr_format_control.c: New file.
40018         * lib/unictype/pr_grapheme_base.c: New file.
40019         * lib/unictype/pr_grapheme_extend.c: New file.
40020         * lib/unictype/pr_grapheme_link.c: New file.
40021         * lib/unictype/pr_hex_digit.c: New file.
40022         * lib/unictype/pr_hyphen.c: New file.
40023         * lib/unictype/pr_id_continue.c: New file.
40024         * lib/unictype/pr_id_start.c: New file.
40025         * lib/unictype/pr_ideographic.c: New file.
40026         * lib/unictype/pr_ids_binary_operator.c: New file.
40027         * lib/unictype/pr_ids_trinary_operator.c: New file.
40028         * lib/unictype/pr_ignorable_control.c: New file.
40029         * lib/unictype/pr_iso_control.c: New file.
40030         * lib/unictype/pr_join_control.c: New file.
40031         * lib/unictype/pr_left_of_pair.c: New file.
40032         * lib/unictype/pr_line_separator.c: New file.
40033         * lib/unictype/pr_logical_order_exception.c: New file.
40034         * lib/unictype/pr_lowercase.c: New file.
40035         * lib/unictype/pr_math.c: New file.
40036         * lib/unictype/pr_non_break.c: New file.
40037         * lib/unictype/pr_not_a_character.c: New file.
40038         * lib/unictype/pr_numeric.c: New file.
40039         * lib/unictype/pr_other_alphabetic.c: New file.
40040         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
40041         * lib/unictype/pr_other_grapheme_extend.c: New file.
40042         * lib/unictype/pr_other_id_continue.c: New file.
40043         * lib/unictype/pr_other_id_start.c: New file.
40044         * lib/unictype/pr_other_lowercase.c: New file.
40045         * lib/unictype/pr_other_math.c: New file.
40046         * lib/unictype/pr_other_uppercase.c: New file.
40047         * lib/unictype/pr_paired_punctuation.c: New file.
40048         * lib/unictype/pr_paragraph_separator.c: New file.
40049         * lib/unictype/pr_pattern_syntax.c: New file.
40050         * lib/unictype/pr_pattern_white_space.c: New file.
40051         * lib/unictype/pr_private_use.c: New file.
40052         * lib/unictype/pr_punctuation.c: New file.
40053         * lib/unictype/pr_quotation_mark.c: New file.
40054         * lib/unictype/pr_radical.c: New file.
40055         * lib/unictype/pr_sentence_terminal.c: New file.
40056         * lib/unictype/pr_soft_dotted.c: New file.
40057         * lib/unictype/pr_space.c: New file.
40058         * lib/unictype/pr_terminal_punctuation.c: New file.
40059         * lib/unictype/pr_test.c: New file.
40060         * lib/unictype/pr_titlecase.c: New file.
40061         * lib/unictype/pr_unassigned_code_value.c: New file.
40062         * lib/unictype/pr_unified_ideograph.c: New file.
40063         * lib/unictype/pr_uppercase.c: New file.
40064         * lib/unictype/pr_variation_selector.c: New file.
40065         * lib/unictype/pr_white_space.c: New file.
40066         * lib/unictype/pr_xid_continue.c: New file.
40067         * lib/unictype/pr_xid_start.c: New file.
40068         * lib/unictype/pr_zero_width.c: New file.
40069         * lib/unictype/scripts.c: New file.
40070         * lib/unictype/sy_c_ident.c: New file.
40071         * lib/unictype/sy_c_whitespace.c: New file.
40072         * lib/unictype/sy_java_ident.c: New file.
40073         * lib/unictype/sy_java_whitespace.c: New file.
40074
40075         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
40076         Unicode 5.0.0.
40077         * lib/unictype/blocks.h: Likewise.
40078         * lib/unictype/categ_C.h: Likewise.
40079         * lib/unictype/categ_Cc.h: Likewise.
40080         * lib/unictype/categ_Cf.h: Likewise.
40081         * lib/unictype/categ_Cn.h: Likewise.
40082         * lib/unictype/categ_Co.h: Likewise.
40083         * lib/unictype/categ_Cs.h: Likewise.
40084         * lib/unictype/categ_L.h: Likewise.
40085         * lib/unictype/categ_Ll.h: Likewise.
40086         * lib/unictype/categ_Lm.h: Likewise.
40087         * lib/unictype/categ_Lo.h: Likewise.
40088         * lib/unictype/categ_Lt.h: Likewise.
40089         * lib/unictype/categ_Lu.h: Likewise.
40090         * lib/unictype/categ_M.h: Likewise.
40091         * lib/unictype/categ_Mc.h: Likewise.
40092         * lib/unictype/categ_Me.h: Likewise.
40093         * lib/unictype/categ_Mn.h: Likewise.
40094         * lib/unictype/categ_N.h: Likewise.
40095         * lib/unictype/categ_Nd.h: Likewise.
40096         * lib/unictype/categ_Nl.h: Likewise.
40097         * lib/unictype/categ_No.h: Likewise.
40098         * lib/unictype/categ_P.h: Likewise.
40099         * lib/unictype/categ_Pc.h: Likewise.
40100         * lib/unictype/categ_Pd.h: Likewise.
40101         * lib/unictype/categ_Pe.h: Likewise.
40102         * lib/unictype/categ_Pf.h: Likewise.
40103         * lib/unictype/categ_Pi.h: Likewise.
40104         * lib/unictype/categ_Po.h: Likewise.
40105         * lib/unictype/categ_Ps.h: Likewise.
40106         * lib/unictype/categ_S.h: Likewise.
40107         * lib/unictype/categ_Sc.h: Likewise.
40108         * lib/unictype/categ_Sk.h: Likewise.
40109         * lib/unictype/categ_Sm.h: Likewise.
40110         * lib/unictype/categ_So.h: Likewise.
40111         * lib/unictype/categ_Z.h: Likewise.
40112         * lib/unictype/categ_Zl.h: Likewise.
40113         * lib/unictype/categ_Zp.h: Likewise.
40114         * lib/unictype/categ_Zs.h: Likewise.
40115         * lib/unictype/categ_of.h: Likewise.
40116         * lib/unictype/combining.h: Likewise.
40117         * lib/unictype/ctype_alnum.h: Likewise.
40118         * lib/unictype/ctype_alpha.h: Likewise.
40119         * lib/unictype/ctype_blank.h: Likewise.
40120         * lib/unictype/ctype_cntrl.h: Likewise.
40121         * lib/unictype/ctype_digit.h: Likewise.
40122         * lib/unictype/ctype_graph.h: Likewise.
40123         * lib/unictype/ctype_lower.h: Likewise.
40124         * lib/unictype/ctype_print.h: Likewise.
40125         * lib/unictype/ctype_punct.h: Likewise.
40126         * lib/unictype/ctype_space.h: Likewise.
40127         * lib/unictype/ctype_upper.h: Likewise.
40128         * lib/unictype/ctype_xdigit.h: Likewise.
40129         * lib/unictype/decdigit.h: Likewise.
40130         * lib/unictype/digit.h: Likewise.
40131         * lib/unictype/mirror.h: Likewise.
40132         * lib/unictype/numeric.h: Likewise.
40133         * lib/unictype/pr_alphabetic.h: Likewise.
40134         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40135         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40136         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40137         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40138         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40139         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40140         * lib/unictype/pr_bidi_control.h: Likewise.
40141         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40142         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40143         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40144         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40145         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40146         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40147         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40148         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40149         * lib/unictype/pr_bidi_pdf.h: Likewise.
40150         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40151         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40152         * lib/unictype/pr_combining.h: Likewise.
40153         * lib/unictype/pr_composite.h: Likewise.
40154         * lib/unictype/pr_currency_symbol.h: Likewise.
40155         * lib/unictype/pr_dash.h: Likewise.
40156         * lib/unictype/pr_decimal_digit.h: Likewise.
40157         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40158         * lib/unictype/pr_deprecated.h: Likewise.
40159         * lib/unictype/pr_diacritic.h: Likewise.
40160         * lib/unictype/pr_extender.h: Likewise.
40161         * lib/unictype/pr_format_control.h: Likewise.
40162         * lib/unictype/pr_grapheme_base.h: Likewise.
40163         * lib/unictype/pr_grapheme_extend.h: Likewise.
40164         * lib/unictype/pr_grapheme_link.h: Likewise.
40165         * lib/unictype/pr_hex_digit.h: Likewise.
40166         * lib/unictype/pr_hyphen.h: Likewise.
40167         * lib/unictype/pr_id_continue.h: Likewise.
40168         * lib/unictype/pr_id_start.h: Likewise.
40169         * lib/unictype/pr_ideographic.h: Likewise.
40170         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40171         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40172         * lib/unictype/pr_ignorable_control.h: Likewise.
40173         * lib/unictype/pr_iso_control.h: Likewise.
40174         * lib/unictype/pr_join_control.h: Likewise.
40175         * lib/unictype/pr_left_of_pair.h: Likewise.
40176         * lib/unictype/pr_line_separator.h: Likewise.
40177         * lib/unictype/pr_logical_order_exception.h: Likewise.
40178         * lib/unictype/pr_lowercase.h: Likewise.
40179         * lib/unictype/pr_math.h: Likewise.
40180         * lib/unictype/pr_non_break.h: Likewise.
40181         * lib/unictype/pr_not_a_character.h: Likewise.
40182         * lib/unictype/pr_numeric.h: Likewise.
40183         * lib/unictype/pr_other_alphabetic.h: Likewise.
40184         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40185         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40186         * lib/unictype/pr_other_id_continue.h: Likewise.
40187         * lib/unictype/pr_other_id_start.h: Likewise.
40188         * lib/unictype/pr_other_lowercase.h: Likewise.
40189         * lib/unictype/pr_other_math.h: Likewise.
40190         * lib/unictype/pr_other_uppercase.h: Likewise.
40191         * lib/unictype/pr_paired_punctuation.h: Likewise.
40192         * lib/unictype/pr_paragraph_separator.h: Likewise.
40193         * lib/unictype/pr_pattern_syntax.h: Likewise.
40194         * lib/unictype/pr_pattern_white_space.h: Likewise.
40195         * lib/unictype/pr_private_use.h: Likewise.
40196         * lib/unictype/pr_punctuation.h: Likewise.
40197         * lib/unictype/pr_quotation_mark.h: Likewise.
40198         * lib/unictype/pr_radical.h: Likewise.
40199         * lib/unictype/pr_sentence_terminal.h: Likewise.
40200         * lib/unictype/pr_soft_dotted.h: Likewise.
40201         * lib/unictype/pr_space.h: Likewise.
40202         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40203         * lib/unictype/pr_titlecase.h: Likewise.
40204         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40205         * lib/unictype/pr_unified_ideograph.h: Likewise.
40206         * lib/unictype/pr_uppercase.h: Likewise.
40207         * lib/unictype/pr_variation_selector.h: Likewise.
40208         * lib/unictype/pr_white_space.h: Likewise.
40209         * lib/unictype/pr_xid_continue.h: Likewise.
40210         * lib/unictype/pr_xid_start.h: Likewise.
40211         * lib/unictype/pr_zero_width.h: Likewise.
40212         * lib/unictype/scripts.h: Likewise.
40213         * lib/unictype/scripts_byname.gperf: Likewise.
40214         * lib/unictype/sy_c_ident.h: Likewise.
40215         * lib/unictype/sy_c_whitespace.h: Likewise.
40216         * lib/unictype/sy_java_ident.h: Likewise.
40217         * lib/unictype/sy_java_whitespace.h: Likewise.
40218
40219         * lib/unictype/Makefile: New file.
40220         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
40221         glibc.
40222         * lib/unictype/3level.h: New file, copied from glibc.
40223         * lib/unictype/3levelbit.h: New file.
40224
40225 2007-11-11  Bruno Haible  <bruno@clisp.org>
40226
40227         * modules/gperf: New file.
40228         * modules/iconv_open (Depends-on): Add it.
40229         (Makefile.am): Remove the GPERF definition.
40230
40231 2007-11-11  Bruno Haible  <bruno@clisp.org>
40232
40233         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
40234         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
40235
40236 2007-11-11  Bruno Haible  <bruno@clisp.org>
40237
40238         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
40239         (usage): Remove function.
40240
40241 2007-11-11  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
40244         gl_FUNC_CEILF_LIBS.
40245         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
40246         gl_FUNC_CEIL_LIBS.
40247         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
40248         gl_FUNC_CEILL_LIBS.
40249         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
40250         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
40251         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
40252
40253 2007-11-11  Bruno Haible  <bruno@clisp.org>
40254
40255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
40256         roundf were declared but do not exist on functions.
40257         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
40258         roundl were declared but do not exist on functions.
40259         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
40260         HAVE_FLOORL_AND_CEILL, respectively.
40261         Needed for Sun C on Solaris 10.
40262
40263 2007-11-11  Bruno Haible  <bruno@clisp.org>
40264
40265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
40266         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
40267         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
40268         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
40269         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
40270         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
40271         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
40272         HAVE_DECL_ROUNDF.
40273         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
40274         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
40275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
40276         of HAVE_DECL_ROUND*.
40277         * modules/math (Makefile.am): Update.
40278
40279 2007-11-10  Bruno Haible  <bruno@clisp.org>
40280
40281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
40282         ptrdiff_t as m4/intl.m4.
40283
40284 2007-11-10  Jim Meyering  <meyering@redhat.com>
40285
40286         Avoid link failure for the argmatch test.
40287         * tests/test-argmatch.c (usage): Define function to avoid a link
40288         failure: argmatch_die requires a usage function.
40289
40290 2007-11-09  Bruno Haible  <bruno@clisp.org>
40291
40292         * doc/functions/snprintf.texi: Mention BeOS deficiency.
40293         * doc/functions/vsnprintf.texi: Likewise.
40294         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
40295         with a size argument < 2.
40296
40297 2007-11-09  Bruno Haible  <bruno@clisp.org>
40298
40299         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
40300         buffer. Fixes an inefficiency introduced on 2007-11-03.
40301
40302 2007-11-09  Bruno Haible  <bruno@clisp.org>
40303
40304         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
40305         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
40306
40307 2007-11-08  Jim Meyering  <meyering@redhat.com>
40308
40309         Change cache variable name prefix "jm_" to "gl_" everywhere.
40310         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
40311         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
40312         * m4/uptime.m4: s/gl_/jm_/
40313
40314 2007-11-07  Bruno Haible  <bruno@clisp.org>
40315
40316         Update to GNU gettext 0.17.
40317         * m4/intl.m4: Update to GNU gettext 0.17.
40318         * m4/po.m4: Likewise.
40319         * modules/gettext (Files): Remove m4/ulonglong.m4.
40320         (configure.ac): Require gettext infrastructure from version 0.17.
40321
40322 2007-11-06  Bruno Haible  <bruno@clisp.org>
40323
40324         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
40325         symbolic values are not defined in a public header.
40326         * lib/freadable.c (freadable) [QNX]: Likewise.
40327         * lib/freadahead.c (freadahead) [QNX]: Likewise.
40328         * lib/freading.c (freading) [QNX]: Likewise.
40329         * lib/fseterr.c (fseterr) [QNX]: Likewise.
40330         * lib/fwritable.c (fwritable) [QNX]: Likewise.
40331         * lib/fwriting.c (fwriting) [QNX]: Likewise.
40332         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
40333         Reported by Alain Magloire.
40334
40335         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
40336
40337 2007-11-05  Bruno Haible  <bruno@clisp.org>
40338
40339         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
40340         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
40341         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
40342         Reported by Eric Blake.
40343
40344 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40345             Bruno Haible  <bruno@clisp.org>
40346
40347         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
40348         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
40349         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
40350         (malloc): Undefine also before including <stdlib.h>.
40351         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
40352         Needed on OSF/1 4.0.
40353
40354 2007-11-05  Jim Meyering  <meyering@redhat.com>
40355
40356         git-version-gen: sync from coreutils.
40357         * build-aux/git-version-gen: Add comments.
40358         Change the first '-' to '.' in the snapshot version string,
40359         e.g., 6.9-377-08144 -> 6.9.377-08144
40360         Remove first parameter.
40361         Don't declare a version "-dirty" merely because a time
40362         stamp has changed.
40363
40364 2007-11-04  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/lock.h: Protect all macro definitions containing an 'if'
40367         statement through a "do { ... } while (0)".
40368         * lib/tls.h: Likewise.
40369
40370 2007-11-04  Bruno Haible  <bruno@clisp.org>
40371
40372         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
40373
40374 2007-11-04  Bruno Haible  <bruno@clisp.org>
40375
40376         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
40377         * modules/fprintf-posix (Depends-on): Add nocrash.
40378         * modules/snprintf-posix (Depends-on): Likewise.
40379         * modules/sprintf-posix (Depends-on): Likewise.
40380         * modules/vasnprintf-posix (Depends-on): Likewise.
40381         * modules/vasprintf-posix (Depends-on): Likewise.
40382         * modules/vfprintf-posix (Depends-on): Likewise.
40383         * modules/vsnprintf-posix (Depends-on): Likewise.
40384         * modules/vsprintf-posix (Depends-on): Likewise.
40385         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40386         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40387         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40388         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40389         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40390         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40391         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40392
40393 2007-11-04  Bruno Haible  <bruno@clisp.org>
40394
40395         * modules/nocrash: New file.
40396         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
40397         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
40398
40399 2007-11-04  Bruno Haible  <bruno@clisp.org>
40400
40401         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
40402         precision handling.
40403         * tests/test-vasprintf-posix.c (test_function): Likewise.
40404         * tests/test-snprintf-posix.h (test_function): Likewise.
40405         * tests/test-sprintf-posix.h (test_function): Likewise.
40406
40407         Fix *printf behaviour for large precisions on mingw and BeOS.
40408         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
40409         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
40410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
40411         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40413         gl_PRINTF_PRECISION and test its result. Invoke
40414         gl_PREREQ_VASNPRINTF_PRECISION.
40415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40422         * doc/functions/fprintf.texi: Update.
40423         * doc/functions/printf.texi: Update.
40424         * doc/functions/snprintf.texi: Update.
40425         * doc/functions/sprintf.texi: Update.
40426         * doc/functions/vfprintf.texi: Update.
40427         * doc/functions/vprintf.texi: Update.
40428         * doc/functions/vsnprintf.texi: Update.
40429         * doc/functions/vsprintf.texi: Update.
40430
40431 2007-11-04  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
40434
40435 2007-11-04  Bruno Haible  <bruno@clisp.org>
40436
40437         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
40438         Reported by Sylvain Beucler <beuc@gnu.org>.
40439
40440 2007-11-03  Bruno Haible  <bruno@clisp.org>
40441
40442         * tests/test-fprintf-posix2.sh: New file.
40443         * tests/test-fprintf-posix2.c: New file.
40444         * modules/fprintf-posix-tests (Files): Add them.
40445         (TESTS): Add test-fprintf-posix2.sh.
40446         (configure.ac): Check for getrlimit and setrlimit.
40447         (check_PROGRAMS): Add test-fprintf-posix2.
40448
40449         * tests/test-printf-posix2.sh: New file.
40450         * tests/test-printf-posix2.c: New file.
40451         * modules/printf-posix-tests (Files): Add them.
40452         (TESTS): Add test-printf-posix2.sh.
40453         (configure.ac): Check for getrlimit and setrlimit.
40454         (check_PROGRAMS): Add test-printf-posix2.
40455
40456         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
40457         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
40458         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
40459         (decode_double): New function, copied from decode_long_double.
40460         (scale10_round_decimal_decoded): New function, extracted from
40461         scale10_round_decimal_long_double.
40462         (scale10_round_decimal_long_double): Use it.
40463         (scale10_round_decimal_double): New function.
40464         (floorlog10): New function.
40465         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
40466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
40467         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40469         gl_PRINTF_ENOMEM and test its result. Invoke
40470         gl_PREREQ_VASNPRINTF_ENOMEM.
40471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40473         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40474         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40477         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40478         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
40479         * modules/snprintf-posix (Depends-on): Likewise.
40480         * modules/sprintf-posix (Depends-on): Likewise.
40481         * modules/vasnprintf-posix (Depends-on): Likewise.
40482         * modules/vasprintf-posix (Depends-on): Likewise.
40483         * modules/vfprintf-posix (Depends-on): Likewise.
40484         * modules/vsnprintf-posix (Depends-on): Likewise.
40485         * modules/vsprintf-posix (Depends-on): Likewise.
40486         * doc/functions/fprintf.texi: Update.
40487         * doc/functions/printf.texi: Update.
40488         * doc/functions/snprintf.texi: Update.
40489         * doc/functions/sprintf.texi: Update.
40490         * doc/functions/vfprintf.texi: Update.
40491         * doc/functions/vprintf.texi: Update.
40492         * doc/functions/vsnprintf.texi: Update.
40493         * doc/functions/vsprintf.texi: Update.
40494
40495 2007-11-03  Bruno Haible  <bruno@clisp.org>
40496
40497         * modules/frexp-nolibm-tests: New file.
40498
40499         * modules/frexp-nolibm: New file.
40500         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40501
40502 2007-11-03  Bruno Haible  <bruno@clisp.org>
40503
40504         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40505         value is C99 compliant.
40506         Needed for OSF/1 5.1.
40507
40508 2007-11-03  Bruno Haible  <bruno@clisp.org>
40509
40510         Fix out-of-memory handling of vasnprintf.
40511         * lib/printf-parse.c: Include <errno.h>.
40512         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40513         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40514         is already set.
40515
40516 2007-11-02  Eric Blake  <ebb9@byu.net>
40517
40518         Fix tests on cygwin.
40519         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40520
40521 2007-11-01  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40524         warning.
40525         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40526         needed for POSIX compatibility.
40527
40528 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40529
40530         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40531         for compatibility with GNU.
40532
40533 2007-11-01  Bruno Haible  <bruno@clisp.org>
40534
40535         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40536         (putenv): Renamed from rpl_putenv. Change argument type from
40537         'const char *' to 'char *'.
40538         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40539         of defining putenv in config.h, just set REPLACE_PUTENV.
40540         * modules/putenv (Depends-on): Add stdlib.
40541         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40542         (Include): Use <stdlib.h>.
40543         * lib/stdlib.in.h (putenv): New declaration.
40544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40545         REPLACE_PUTENV.
40546         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40547         REPLACE_PUTENV.
40548         Needed for MacOS X 10.5.0.
40549         Reported by Peter O'Gorman <peter@pogma.com>.
40550
40551 2007-11-01  Jim Meyering  <meyering@redhat.com>
40552
40553         Treat an empty date string exactly like "0".
40554         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40555         if the remaining date string (to be parsed) is empty, use "0".
40556         Reported by Mischa Molhoek and discussed in this thread:
40557         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40558
40559 2007-10-31  Bruno Haible  <bruno@clisp.org>
40560
40561         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40562         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40563         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40564         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40565         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40566         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40567
40568 2007-10-31  Bruno Haible  <bruno@clisp.org>
40569
40570         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40571         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40572         (AC_TYPE_LONG_LONG_INT): Use it.
40573         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40574         it as well.
40575         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40576         to m4/longlong.m4.
40577         * modules/stdint (Files): Remove m4/ulonglong.m4.
40578         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40579         m4/ulonglong.m4.
40580         * modules/strtoumax (Files): Likewise.
40581
40582 2007-10-30  Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/xvasprintf-posix: New file.
40585         Suggested by Eric Blake.
40586
40587 2007-10-30  Bruno Haible  <bruno@clisp.org>
40588
40589         * modules/xprintf-posix-tests: New file.
40590         * tests/test-xprintf-posix.sh: New file.
40591         * tests/test-xprintf-posix.c: New file.
40592         * tests/test-xfprintf-posix.c: New file.
40593
40594         * modules/xprintf-posix: New file.
40595
40596 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40597
40598         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40599         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40600         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40601
40602 2007-10-29  Bruno Haible  <bruno@clisp.org>
40603
40604         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40605         contain the special marker '_cv_'.
40606         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40607         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40608         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40609         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40610         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40611         Reported by Ralf Wildenhues.
40612
40613 2007-10-29  Bruno Haible  <bruno@clisp.org>
40614
40615         * gnulib-tool (func_import): When --lgpl is not specified, set
40616         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40617         GPLv3.
40618         Reported by Simon Josefsson.
40619
40620 2007-10-28  Bruno Haible  <bruno@clisp.org>
40621
40622         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40623         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40624         HAVE_DECL_ISFINITE.
40625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40626         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40627         HAVE_DECL_ISFINITE.
40628
40629 2007-10-28  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40632         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40633
40634 2007-10-28  Bruno Haible  <bruno@clisp.org>
40635
40636         Fix link errors with Sun C 5.0 on Solaris 10.
40637         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40638         function is declared but not present in the compiler's libm.
40639         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40640         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40641         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40642         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40643         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40644         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40645         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40647         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40648         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40649         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40650         HAVE_DECL_FLOORL.
40651
40652 2007-10-28  Bruno Haible  <bruno@clisp.org>
40653
40654         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40655         gl_FUNC_FLOORL. Cache the result.
40656         (gl_FUNC_FLOORL): Use it.
40657         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40658         gl_FUNC_CEILL. Cache the result.
40659         (gl_FUNC_CEILL): Use it.
40660
40661         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40662         gl_FUNC_FLOOR. Cache the result.
40663         (gl_FUNC_FLOOR): Use it.
40664         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40665         gl_FUNC_CEIL. Cache the result.
40666         (gl_FUNC_CEIL): Use it.
40667
40668         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40669         gl_FUNC_FLOORF. Cache the result.
40670         (gl_FUNC_FLOORF): Use it.
40671         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40672         gl_FUNC_CEILF. Cache the result.
40673         (gl_FUNC_CEILF): Use it.
40674
40675 2007-10-28  Bruno Haible  <bruno@clisp.org>
40676
40677         * gnulib-tool: Allow specifying the LGPL version number through
40678         --lgpl=2 or --lgpl=3.
40679         (func_usage): Document --lgpl with argument.
40680         Handle --lgpl=... arguments.
40681         (func_import): Recognize also gl_LGPL calls with an argument. When
40682         --lgpl=2 is used and the module's license is just LGPL, report an
40683         error. Set sed_transform_lib_file according to the lgpl variable. In
40684         the generated files, use --lgpl or gl_LGPL invocations with argument,
40685         if necessary.
40686         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40687         an LGPv2+ license.
40688         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40689         gl_LGPL macro.
40690
40691 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40692             Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40695         (u16_uctomb_aux): Likewise.
40696         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40697         !HAVE_INLINE.
40698         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40699
40700 2007-10-28  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40703         Invoke AM_GETTEXT_OPTION if it exists.
40704         * modules/vasprintf: Likewise.
40705         * modules/verror: Likewise.
40706         * modules/xprintf: Likewise.
40707         * modules/xvasprintf: Likewise.
40708
40709 2007-10-27  Ben Pfaff  <blp@gnu.org>
40710
40711         * lib/math.in.h: Define isfinite macro and prototypes for
40712         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40713         implementations.
40714         * m4/math_h.m4: New substitutions for isfinite module.
40715         * lib/isfinite.c: New file.
40716         * m4/isfinite.m4: New file.
40717         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40718         * modules/isfinite: New file.
40719         * modules/isfinite-tests: New file.
40720         * tests/tests-isfinite.c: New file.
40721         * doc/functions/isfinite.texi: Mention isfinite module.
40722         * MODULES.html.sh: Mention new module.
40723
40724 2007-10-27  Ben Pfaff  <blp@gnu.org>
40725
40726         Ralf Wildenhues reported that Tru64 4.0D declares the round
40727         functions but does not have definitions.
40728         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40729         cannot be found in any library, set the output variable to
40730         "missing" instead of "".
40731         * m4/round.m4: Also use our substitute if we cannot find round in
40732         any library, even if it is declared.
40733         * m4/roundf.m4: Likewise for roundf.
40734         * m4/roundl.m4: Likewise for roundl.
40735         * lib/math.in.h: Undefine roundf, round, roundl before defining
40736         their replacements, to allow for hypothetical systems where these
40737         may be defined as macros but not available in libraries.
40738
40739 2007-10-27  Bruno Haible  <bruno@clisp.org>
40740
40741         * doc/gnulib.texi: Invoke @firstparagraphindent.
40742         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40743         changes in gnulib.
40744         (Source changes): New section.
40745
40746 2007-10-26  Bruno Haible  <bruno@clisp.org>
40747
40748         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40749         borrowed from autoconf.
40750
40751 2007-10-26  Bruno Haible  <bruno@clisp.org>
40752
40753         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40754         strerror returned the empty string. Needed on HP-UX 11.00.
40755
40756 2007-10-24  Micah Cowan  <micah@cowan.name>
40757
40758         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40759         * build-aux/bootstrap: Remove support for now-unnecessary option,
40760         --cvs-user, and envvars CVS_USER, CVS_RSH.
40761
40762 2007-10-24  Jim Meyering  <meyering@redhat.com>
40763
40764         Avoid diagnostics from sha1sum when there is no cached checksum.
40765         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40766         if the po.s1 file hasn't been created yet.
40767
40768         * build-aux/bootstrap: Sync from coreutils:
40769         2007-10-24  Jim Meyering  <meyering@redhat.com>
40770         Get gnulib from the git repository, not from an obsolete cvs one.
40771         * build-aux/bootstrap: Suggestion from Micah Cowan.
40772         2007-10-04  Jim Meyering  <jim@meyering.net>
40773         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40774         (update_po_files): Work also when there are no .po files in po/.
40775
40776 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40777
40778         * README: Append ".git" to git and cg examples.
40779         Problem reported by Benoit Sigoure.
40780
40781 2007-10-23  Micah Cowan  <micah@cowan.name>
40782
40783         * users.txt: Add wget.
40784
40785 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40786
40787         Fix linking of some unistdio tests on FreeBSD.
40788         * modules/unistdio/u16-vsnprintf-tests
40789         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40790         * modules/unistdio/u16-vsprintf-tests
40791         (test_u16_vsnprintf1_LDADD): Likewise.
40792         * modules/unistdio/u32-vsnprintf-tests
40793         (test_u32_vsnprintf1_LDADD): Likewise.
40794         * modules/unistdio/u32-vsprintf-tests
40795         (test_u32_vsprintf1_LDADD): Likewise.
40796         * modules/unistdio/u8-vsnprintf-tests
40797         (test_u8_vsnprintf1_LDADD): Likewise.
40798         * modules/unistdio/u8-vsprintf-tests
40799         (test_u8_vsprintf1_LDADD): Likewise.
40800         * modules/unistdio/ulc-vsnprintf-tests
40801         (test_ulc_vsnprintf1_LDADD): Likewise.
40802         * modules/unistdio/ulc-vsprintf-tests
40803         (test_ulc_vsprintf1_LDADD): Likewise.
40804
40805         Fix linking of some uniconv tests on FreeBSD.
40806         * modules/uniconv/u16-conv-from-enc-tests
40807         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40808         * modules/uniconv/u16-conv-to-enc-tests
40809         (test_u16_conv_to_enc_LDADD): Likewise.
40810         * modules/uniconv/u16-strconv-from-enc-tests
40811         (test_u16_strconv_from_enc_LDADD): Likewise.
40812         * modules/uniconv/u16-strconv-to-enc-tests
40813         (test_u16_strconv_to_enc_LDADD): Likewise.
40814         * modules/uniconv/u32-conv-from-enc-tests
40815         (test_u32_conv_from_enc_LDADD): Likewise.
40816         * modules/uniconv/u32-conv-to-enc-tests
40817         (test_u32_conv_to_enc_LDADD): Likewise.
40818         * modules/uniconv/u32-strconv-from-enc-tests
40819         (test_u32_strconv_from_enc_LDADD): Likewise.
40820         * modules/uniconv/u32-strconv-to-enc-tests
40821         (test_u32_strconv_to_enc_LDADD): Likewise.
40822         * modules/uniconv/u8-conv-from-enc-tests
40823         (test_u8_conv_from_enc_LDADD): Likewise.
40824         * modules/uniconv/u8-conv-to-enc-tests
40825         (test_u8_conv_to_enc_LDADD): Likewise.
40826         * modules/uniconv/u8-strconv-from-enc-tests
40827         (test_u8_strconv_from_enc_LDADD): Likewise.
40828         * modules/uniconv/u8-strconv-to-enc-tests
40829         (test_u8_strconv_to_enc_LDADD): Likewise.
40830
40831 2007-10-22  Bruno Haible  <bruno@clisp.org>
40832
40833         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40834         size.
40835
40836 2007-10-22  Eric Blake  <ebb9@byu.net>
40837
40838         Tweak x*printf documentation.
40839         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40840         variable name and comments.
40841         Suggested by Bruno Haible.
40842
40843 2007-10-22  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/acl.c (copy_acl): Fix file name in comment.
40846
40847 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40848
40849         Fix Tru64 problem with stdbool.h.
40850         * lib/stdbool.in.h (false, true):
40851         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40852         Don't declare as an enum in this situation; it runs afoul of Tru64.
40853         Problem reported by Steven M. Schweda in
40854         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40855
40856 2007-10-22  Eric Blake  <ebb9@byu.net>
40857
40858         Also wrap vf?printf.
40859         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40860         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40861         (xvprintf, xvfprintf): New functions.
40862
40863 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40864
40865         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40866         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40867
40868         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40869         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40870
40871 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40872
40873         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40874         by Bruno Haible.
40875
40876 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40877
40878         * lib/getloadavg.c
40879         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40880         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40881
40882         * tests/test-i-ring.c: Work for C89.
40883
40884 2007-10-22  Bruno Haible  <bruno@clisp.org>
40885
40886         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40887         -1u, in preprocessor expression, so that we don't test for the bug
40888         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40889         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40890
40891 2007-10-22  Eric Blake  <ebb9@byu.net>
40892
40893         * tests/test-yesno.sh: Silence stderr during test.
40894
40895 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40896
40897         * modules/crypto/gc-camellia: New file.
40898
40899         * m4/gc-camellia.m4: New file.
40900
40901         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40902
40903         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40904
40905 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40906
40907         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40908         --help to stdout.  Reported by sms@antinode.org (Steven
40909         M. Schweda).
40910
40911 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40912
40913         * users.txt: Fix link to libksba.
40914
40915 2007-10-21  Ben Pfaff  <blp@gnu.org>
40916
40917         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40918         round.c roundf implementation that depends on floorf and ceilf to
40919         be tested unconditionally.
40920
40921 2007-10-21  Ben Pfaff  <blp@gnu.org>
40922
40923         * m4/check-libm-func.m4: Removed.
40924         * m4/check-math-lib.m4: New file.
40925         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40926         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40927         definition and lack of AC_LIBOBJ([roundf]).
40928         * m4/roundl.m4: Ditto, and similarly for roundl.
40929         * modules/round: Reference new m4 file.
40930         * modules/roundf: Ditto.
40931         * modules/roundl: Ditto.
40932         * tests/test-round2.c (main): Use ROUND instead of round.
40933         Bug report from Bruno Haible.
40934
40935 2007-10-21  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
40938         context.
40939
40940 2007-10-21  Bruno Haible  <bruno@clisp.org>
40941
40942         * tests/test-wcwidth.c (main): Allow negative result for some control
40943         characters.
40944
40945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
40946         Needed on OSF/1 5.1.
40947
40948 2007-10-21  Bruno Haible  <bruno@clisp.org>
40949
40950         * tests/test-floorf1.c: Include isnanf.h.
40951         (main): Use isnanf() instead of isnan().
40952         * tests/test-ceilf1.c: Include isnanf.h.
40953         (main): Use isnanf() instead of isnan().
40954         * tests/test-truncf1.c: Include isnanf.h.
40955         (main): Use isnanf() instead of isnan().
40956         * tests/test-roundf1.c: Include isnanf.h.
40957         (main): Use isnanf() instead of isnan().
40958
40959 2007-10-21  Eric Blake  <ebb9@byu.net>
40960
40961         * users.txt: Update URL for m4.
40962
40963 2007-10-21  Bruno Haible  <bruno@clisp.org>
40964
40965         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
40966
40967 2007-10-21  Bruno Haible  <bruno@clisp.org>
40968
40969         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
40970         Git's management files if the CVS files are not present.
40971
40972 2007-10-20  Bruno Haible  <bruno@clisp.org>
40973
40974         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40975         gcc-3.4.x.
40976
40977 2007-10-20  Ben Pfaff  <blp@gnu.org>
40978
40979         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40980         implementations.
40981         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40982         * lib/round.c: New file.
40983         * lib/roundf.c: New file.
40984         * lib/roundl.c: New file.
40985         * m4/round.m4: New file.
40986         * m4/roundf.m4: New file.
40987         * m4/roundl.m4: New file.
40988         * m4/check-libm-func-m4: New file.
40989         * modules/math: Replace round, roundf, roundl related @VARS@ in
40990         math.in.h.
40991         * modules/round: New file.
40992         * modules/round-tests: New file.
40993         * modules/roundf: New file.
40994         * modules/roundf-tests: New file.
40995         * modules/roundl: New file.
40996         * modules/roundl-tests: New file.
40997         * tests/test-round1.c: New file.
40998         * tests/test-round2.c: New file.
40999         * tests/test-roundf1.c: New file.
41000         * tests/test-roundf2.c: New file.
41001         * tests/test-roundl.c: New file.
41002         * doc/functions/round.texi: Mention round module.
41003         * doc/functions/roundf.texi: Mention roundf module.
41004         * doc/functions/roundl.texi: Mention roundl module.
41005         * MODULES.html.sh: Mention new modules.
41006         Thanks to Bruno Haible for suggestions.
41007
41008 2007-10-20  Jim Meyering  <meyering@redhat.com>
41009
41010         * lib/xprintf.c: Include <config.h> unconditionally.
41011
41012         Change xprintf's license to GPL.
41013         * modules/xprintf (License): s/LGPL/GPL/, since this module
41014         depends on modules (exit and exitfail) which are GPL.
41015         Suggestion from Bruno Haible.
41016
41017         xprintf fixes.
41018         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
41019         Use a clearer diagnostic.
41020         Patch from Bruno Haible.
41021
41022 2007-10-20  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
41025         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
41026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41027
41028 2007-10-20  Bruno Haible  <bruno@clisp.org>
41029
41030         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
41031         precision in the comparison result > x - 1 or similar.
41032         * tests/test-ceilf2.c (correct_result_p): Likewise.
41033         * tests/test-truncf2.c (correct_result_p): Likewise.
41034         * tests/test-trunc2.c (correct_result_p): Likewise.
41035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41036
41037 2007-10-20  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/ceil: New file.
41040         * m4/ceil.m4: New file.
41041         * doc/functions/ceil.texi: Mention the 'ceil' module.
41042
41043 2007-10-20  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/floor: New file.
41046         * m4/floor.m4: New file.
41047         * doc/functions/floor.texi: Mention the 'floor' module.
41048
41049 2007-10-20  Bruno Haible  <bruno@clisp.org>
41050
41051         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
41052         of %a.
41053         * modules/floorf-tests (Depends-on): Likewise.
41054         * modules/truncf-tests (Depends-on): Likewise.
41055         * modules/trunc-tests (Depends-on): Likewise.
41056         Reported by Ben Pfaff.
41057
41058 2007-10-19  Jim Meyering  <meyering@redhat.com>
41059
41060         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
41061         Don't bother testing specific errno values.  Just test ferror.
41062
41063         New module: xprintf
41064         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
41065
41066 2007-10-19  Bruno Haible  <bruno@clisp.org>
41067
41068         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
41069         syntax.
41070         * modules/javaexec (Makefile.am): Likewise.
41071         * modules/relocatable-prog (Makefile.am): Likewise.
41072         Suggested by Jim Meyering.
41073
41074 2007-10-18  Bruno Haible  <bruno@clisp.org>
41075
41076         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
41077         Reported by Jim Meyering.
41078
41079 2007-10-18  Eric Blake  <ebb9@byu.net>
41080
41081         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
41082
41083 2007-10-18  Bruno Haible  <bruno@clisp.org>
41084
41085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
41086         the format string into writable memory. Needed in Fortify conditions.
41087
41088 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
41089             Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
41092         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
41093         * modules/trim (Depends-on): Add mbchar.
41094         (configure.ac): Add gl_FUNC_MBRTOWC.
41095         (Makefile.am): Augment lib_SOURCES.
41096
41097 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41098
41099         Modify glob.c to use fstatat and dirfd, to simplify it.
41100         Suggested by Eric Blake.
41101         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
41102         Don't include <stdbool.h>; not used.
41103         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41104         (link_exists_p): Simplify implementation, since we can now assume
41105         dirfd and fstatat.
41106         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41107
41108 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41109
41110         * gnulib-tool (func_get_dependencies): Fix sed script to
41111         match only tests.
41112
41113 2007-10-17  Bruno Haible  <bruno@clisp.org>
41114
41115         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41116         allow locale names without encoding suffix.
41117         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41118         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41119
41120 2007-10-16  Bruno Haible  <bruno@clisp.org>
41121
41122         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41123         * lib/getgroups.c (getgroups): Likewise.
41124         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41125
41126 2007-10-16  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41129         * modules/malloc-posix (License): Likewise.
41130         * modules/realloc-posix (License): Likewise.
41131         * modules/calloc-posix (License): Likewise.
41132         * modules/intprops (License): Change from GPL to LGPL, with
41133         Paul Eggert's approval.
41134
41135 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41136
41137         Merge glibc changes into lib/glob.c.
41138
41139         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41140         2007-10-15 04:59:03 UTC.  Here are the changes:
41141
41142         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41143
41144         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41145
41146         * lib/glob.c: Add some branch prediction throughout.
41147
41148         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41149
41150         [BZ #5103]
41151         * lib/glob.c (glob): Recognize patterns starting \/.
41152
41153         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41154
41155         [BZ #3996]
41156         * lib/glob.c (attribute_hidden): Define if not defined.
41157         (glob): Unescape dirname, filename or username when needed and not
41158         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41159         is NULL.  Handle unescaped [ in pattern without closing ].
41160         Don't pass GLOB_CHECK down to recursive glob for directories.
41161         (__glob_pattern_type): New function.
41162         (__glob_pattern_p): Implement using __glob_pattern_type.
41163         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41164         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41165         Remove unreachable code.
41166
41167         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41168
41169         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41170         explain why there are no leaks.
41171
41172         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41173
41174         [BZ #3253]
41175         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41176         time, rather allocate increasingly bigger arrays of pointers, if
41177         possible with alloca, if too large with malloc.
41178
41179 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41180
41181         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
41182         Problem reported by H.Merijn Brand in
41183         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
41184         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
41185         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41186
41187 2007-10-15  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
41190         with explicit rpl_ prefix.
41191         * lib/fopen.c (fopen): Likewise.
41192         * lib/freopen.c (freopen): Likewise.
41193         * lib/iconv.c (iconv): Likewise.
41194         * lib/iconv_close.c (iconv_close): Likewise.
41195
41196 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41197
41198         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
41199
41200 2007-10-15  Bruno Haible  <bruno@clisp.org>
41201
41202         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
41203         <stddef.h> instead of <stdlib.h> since we only need NULL.
41204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41205
41206 2007-10-15  Bruno Haible  <bruno@clisp.org>
41207
41208         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
41209         Replace paragraph talking about LIBOBJS.
41210         Reported by Colin Watson <cjwatson@debian.org>.
41211
41212 2007-10-15  Bruno Haible  <bruno@clisp.org>
41213
41214         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
41215         <stdlib.h> before using NULL.
41216
41217 2007-10-15  Simon Josefsson  <simon@josefsson.org>
41218
41219         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
41220         Reported by Albert Chin <china@thewrittenword.com>.
41221
41222 2007-10-14  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/iconv_open-utf-tests: New file.
41225         * tests/test-iconv-utf.c: New file.
41226
41227         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
41228         * modules/iconv_open-utf: New file.
41229         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
41230         (iconv, iconv_close): New declarations.
41231         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
41232         be defined.
41233         (iconv_open): Add special handling of conversion between UTF-8 and
41234         UTF-{16,32}{BE,LE}.
41235         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
41236         * lib/iconv_close.c: New file.
41237         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
41238         gl_FUNC_ICONV_OPEN.
41239         (gl_FUNC_ICONV_OPEN): Use it.
41240         (gl_FUNC_ICONV_OPEN_UTF): New macro.
41241         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
41242         and REPLACE_ICONV_UTF.
41243         * modules/iconv_open (Depends-on): Add c-strcase.
41244         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
41245         ICONV_CONST.
41246         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
41247
41248 2007-10-13  Albert Chin  <china@thewrittenword.com>
41249             Bruno Haible  <bruno@clisp.org>
41250
41251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
41252         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
41253
41254 2007-10-13  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
41257         defined, use the ISO C99 inline semantics.
41258         * lib/argp.h (ARGP_EI): Likewise.
41259
41260 2007-10-13  Bruno Haible  <bruno@clisp.org>
41261
41262         Handle 'inline' change in gcc 4.3.0.
41263         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
41264         argp_fmtstream_write, argp_fmtstream_set_lmargin,
41265         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
41266         argp_fmtstream_point): Disable 'extern' declaration if the function
41267         definition is going to be provided inline.
41268         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
41269         semantics, not the ISO C99 inline semantics.
41270         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
41271         'extern' declaration if the function definition is going to be provided
41272         inline.
41273         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
41274         the GNU C inline semantics, not the ISO C99 inline semantics. With
41275         GCC 4.2, avoid a warning.
41276
41277 2007-10-13  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/freading.h (freading): Enable the use of __freading for
41280         glibc >= 2.7.
41281         * lib/freading.c (freading): Likewise.
41282
41283 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41284
41285         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
41286         "warning: C99 inline functions are not supported; using GNU89".
41287
41288 2007-10-12  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
41291         of 2.
41292         * tests/test-ceilf2.c: New file.
41293         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
41294
41295         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
41296         * modules/ceilf-tests: Update.
41297
41298 2007-10-12  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
41301         of 2.
41302         * tests/test-floorf2.c: New file.
41303         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
41304
41305         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
41306         * modules/floorf-tests: Update.
41307
41308 2007-10-12  Bruno Haible  <bruno@clisp.org>
41309
41310         * tests/test-trunc2.c: New file.
41311         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
41312
41313         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
41314         * modules/trunc-tests: Update.
41315
41316 2007-10-12  Bruno Haible  <bruno@clisp.org>
41317
41318         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
41319         of 2.
41320         * tests/test-truncf2.c: New file.
41321         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
41322
41323         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
41324         * modules/truncf-tests: Update.
41325
41326 2007-10-11  Eric Blake  <ebb9@byu.net>
41327
41328         Don't claim strerror is broken on Interix.
41329         * doc/functions/strerror.texi (strerror): Known broken systems are
41330         now Solaris 8, and not Interix.
41331         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
41332         Interix on cross-compile.
41333         Reported by Martin Koeppe in
41334         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
41335
41336 2007-10-11  Bruno Haible  <bruno@clisp.org>
41337
41338         * modules/i-ring-tests: New file.
41339         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
41340         instead of assert.
41341
41342 2007-10-11  Bruno Haible  <bruno@clisp.org>
41343
41344         * modules/filenamecat-tests: New file.
41345         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
41346         * lib/filenamecat.c: Remove test code.
41347
41348 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41349
41350         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
41351
41352         * lib/strerror.c: Include <string.h> always, to test interface,
41353         and to remove the need for the dummy.
41354         Include intprops.h to compute width instead of doing it ourselves
41355         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
41356         (strerror): Define it to return NULL if there's no system strerror.
41357         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
41358         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
41359         ancient pre-strerror Unix systems well any more.  Saying "unknown
41360         system error" is enough.
41361         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
41362         simpler strerror.c implementation.
41363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
41364         Simplify the tests to reflect the simpler strerror implementation.
41365         * modules/strerror (Depends-on): Add intprops.
41366
41367 2007-10-09  Eric Blake  <ebb9@byu.net>
41368
41369         Silence test-fpending.
41370         * modules/fpending-tests (Files): Add wrapper script.
41371         * tests/test-fpending.sh: New file.
41372
41373 2007-10-09  Bruno Haible  <bruno@clisp.org>
41374
41375         * MODULES.html.sh (func_module): Don't create a hyperlink for
41376         function names like 'printf_frexp'.
41377         (Misc): Add crc, memxor.
41378         (Characteristics of floating types): New section.
41379         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
41380         isnanf-nolibm, signbit, trunc, truncf, truncl.
41381         (Enhancements for ISO C 99 functions): New subsection Input/output.
41382         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
41383         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
41384         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
41385         (Compatibility checks for POSIX:2001 functions): Add clock-time.
41386         (Enhancements for POSIX:2001 functions): Add chdir-long.
41387         (File system functions): Add areadlink, chdir-safer, read-file.
41388         Remove cycle-check.
41389         (File system as inode set): New section.
41390         (Date and time): Add gethrxtime.
41391         (Multithreading): Add openmp.
41392         (Internationalization functions): Add localename.
41393         (Unicode string functions): Add unistr/u*-mbsnlen.
41394         (Support for maintaining and releasing projects): Add git-version-gen.
41395         (Lone files): Remove directories.
41396
41397 2007-10-08  Ben Pfaff  <blp@gnu.org>
41398
41399         * lib/xmalloca.h: Fix typo in comment.
41400
41401 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41402
41403         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
41404         when avoiding problems with integer overflow.  Use a portable test
41405         instead.
41406
41407 2007-10-08  Simon Josefsson  <simon@josefsson.org>
41408
41409         * modules/dummy (License): Change to LGPLv2+.
41410         * modules/float (License): Likewise
41411         * modules/realloc (License): Likewise
41412         * modules/stdlib (License): Likewise
41413
41414 2007-10-07  Bruno Haible  <bruno@clisp.org>
41415
41416         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
41417         * floor.c (TWO_MANT_DIG): Likewise.
41418         * ceil.c (TWO_MANT_DIG): Likewise.
41419         Reported by Ben Pfaff.
41420
41421 2007-10-07  Bruno Haible  <bruno@clisp.org>
41422
41423         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
41424         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
41425         * lib/frexp.c (FUNC): Likewise.
41426         * lib/printf-frexp.h (printf_frexp): Likewise.
41427         * lib/printf-frexpl.h (printf_frexpl): Likewise.
41428         * lib/printf-frexp.c (FUNC): Likewise.
41429         Suggested by Jim Meyering.
41430
41431 2007-10-07  Jim Meyering  <meyering@redhat.com>
41432
41433         Make xnanosleep's integer overflow test more robust.
41434         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
41435         so that gcc-4.3.0 doesn't optimize away this test for overflow.
41436
41437 2007-10-07  Bruno Haible  <bruno@clisp.org>
41438
41439         * NEWS: Mention the license change.
41440
41441         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
41442         abbreviations in the modules files.
41443
41444         Change copyright notice from GPLv2+ to GPLv3+.
41445         * README: Change copyright notice.
41446         * MODULES.html.sh: Likewise.
41447         * build-aux/bootstrap.conf: Likewise.
41448         * build-aux/config.libpath: Likewise.
41449         * build-aux/csharpcomp.sh.in: Likewise.
41450         * build-aux/csharpexec.sh.in: Likewise.
41451         * build-aux/install-reloc: Likewise.
41452         * build-aux/javacomp.sh.in: Likewise.
41453         * build-aux/javaexec.sh.in: Likewise.
41454         * build-aux/ldd.sh.in: Likewise.
41455         * build-aux/reloc-ldflags: Likewise.
41456         * build-aux/relocatable.sh.in: Likewise.
41457         * build-aux/x-to-1.in: Likewise.
41458         * check-module: Likewise.
41459         * config/srclistvars.sh: Likewise.
41460         * gnulib-tool: Likewise.
41461         * lib/acl-internal.h: Likewise.
41462         * lib/acl.c: Likewise.
41463         * lib/acl.h: Likewise.
41464         * lib/acl_entries.c: Likewise.
41465         * lib/areadlink-with-size.c: Likewise.
41466         * lib/areadlink.c: Likewise.
41467         * lib/areadlink.h: Likewise.
41468         * lib/argmatch.c: Likewise.
41469         * lib/argmatch.h: Likewise.
41470         * lib/argp-ba.c: Likewise.
41471         * lib/argp-eexst.c: Likewise.
41472         * lib/argp-fmtstream.c: Likewise.
41473         * lib/argp-fmtstream.h: Likewise.
41474         * lib/argp-fs-xinl.c: Likewise.
41475         * lib/argp-help.c: Likewise.
41476         * lib/argp-namefrob.h: Likewise.
41477         * lib/argp-parse.c: Likewise.
41478         * lib/argp-pin.c: Likewise.
41479         * lib/argp-pv.c: Likewise.
41480         * lib/argp-pvh.c: Likewise.
41481         * lib/argp-xinl.c: Likewise.
41482         * lib/argp.h: Likewise.
41483         * lib/at-func.c: Likewise.
41484         * lib/atanl.c: Likewise.
41485         * lib/backupfile.c: Likewise.
41486         * lib/backupfile.h: Likewise.
41487         * lib/basename.c: Likewise.
41488         * lib/binary-io.h: Likewise.
41489         * lib/byteswap.in.h: Likewise.
41490         * lib/c-stack.c: Likewise.
41491         * lib/c-stack.h: Likewise.
41492         * lib/c-strcasestr.c: Likewise.
41493         * lib/c-strcasestr.h: Likewise.
41494         * lib/c-strstr.c: Likewise.
41495         * lib/c-strstr.h: Likewise.
41496         * lib/c-strtod.c: Likewise.
41497         * lib/calloc.c: Likewise.
41498         * lib/canon-host.c: Likewise.
41499         * lib/canon-host.h: Likewise.
41500         * lib/canonicalize-lgpl.c: Likewise.
41501         * lib/canonicalize.c: Likewise.
41502         * lib/canonicalize.h: Likewise.
41503         * lib/ceil.c: Likewise.
41504         * lib/ceilf.c: Likewise.
41505         * lib/ceill.c: Likewise.
41506         * lib/chdir-long.c: Likewise.
41507         * lib/chdir-long.h: Likewise.
41508         * lib/chdir-safer.c: Likewise.
41509         * lib/chdir-safer.h: Likewise.
41510         * lib/chown.c: Likewise.
41511         * lib/classpath.c: Likewise.
41512         * lib/classpath.h: Likewise.
41513         * lib/clean-temp.c: Likewise.
41514         * lib/clean-temp.h: Likewise.
41515         * lib/cloexec.c: Likewise.
41516         * lib/close-stream.c: Likewise.
41517         * lib/closein.c: Likewise.
41518         * lib/closein.h: Likewise.
41519         * lib/closeout.c: Likewise.
41520         * lib/closeout.h: Likewise.
41521         * lib/concat-filename.c: Likewise.
41522         * lib/copy-file.c: Likewise.
41523         * lib/copy-file.h: Likewise.
41524         * lib/count-one-bits.h: Likewise.
41525         * lib/crc.c: Likewise.
41526         * lib/crc.h: Likewise.
41527         * lib/creat-safer.c: Likewise.
41528         * lib/csharpcomp.c: Likewise.
41529         * lib/csharpcomp.h: Likewise.
41530         * lib/csharpexec.c: Likewise.
41531         * lib/csharpexec.h: Likewise.
41532         * lib/cycle-check.c: Likewise.
41533         * lib/cycle-check.h: Likewise.
41534         * lib/diacrit.c: Likewise.
41535         * lib/diacrit.h: Likewise.
41536         * lib/diffseq.h: Likewise.
41537         * lib/dirchownmod.c: Likewise.
41538         * lib/dirent.in.h: Likewise.
41539         * lib/dirfd.c: Likewise.
41540         * lib/dirfd.h: Likewise.
41541         * lib/dirname.c: Likewise.
41542         * lib/dirname.h: Likewise.
41543         * lib/dummy.c: Likewise.
41544         * lib/dup-safer.c: Likewise.
41545         * lib/dup2.c: Likewise.
41546         * lib/eealloc.h: Likewise.
41547         * lib/error.c: Likewise.
41548         * lib/error.h: Likewise.
41549         * lib/euidaccess.c: Likewise.
41550         * lib/exclude.c: Likewise.
41551         * lib/exclude.h: Likewise.
41552         * lib/execute.c: Likewise.
41553         * lib/execute.h: Likewise.
41554         * lib/exitfail.c: Likewise.
41555         * lib/exitfail.h: Likewise.
41556         * lib/expl.c: Likewise.
41557         * lib/fatal-signal.c: Likewise.
41558         * lib/fatal-signal.h: Likewise.
41559         * lib/fbufmode.c: Likewise.
41560         * lib/fbufmode.h: Likewise.
41561         * lib/fchdir.c: Likewise.
41562         * lib/fchmodat.c: Likewise.
41563         * lib/fchownat.c: Likewise.
41564         * lib/fcntl--.h: Likewise.
41565         * lib/fcntl-safer.h: Likewise.
41566         * lib/fcntl.in.h: Likewise.
41567         * lib/fd-safer.c: Likewise.
41568         * lib/fflush.c: Likewise.
41569         * lib/file-has-acl.c: Likewise.
41570         * lib/file-set.c: Likewise.
41571         * lib/file-type.c: Likewise.
41572         * lib/file-type.h: Likewise.
41573         * lib/fileblocks.c: Likewise.
41574         * lib/filemode.c: Likewise.
41575         * lib/filemode.h: Likewise.
41576         * lib/filename.h: Likewise.
41577         * lib/filenamecat.c: Likewise.
41578         * lib/filenamecat.h: Likewise.
41579         * lib/findprog.c: Likewise.
41580         * lib/findprog.h: Likewise.
41581         * lib/float.in.h: Likewise.
41582         * lib/floor.c: Likewise.
41583         * lib/floorf.c: Likewise.
41584         * lib/floorl.c: Likewise.
41585         * lib/fopen-safer.c: Likewise.
41586         * lib/fopen.c: Likewise.
41587         * lib/fpending.c: Likewise.
41588         * lib/fpending.h: Likewise.
41589         * lib/fprintf.c: Likewise.
41590         * lib/fprintftime.h: Likewise.
41591         * lib/fpucw.h: Likewise.
41592         * lib/fpurge.c: Likewise.
41593         * lib/fpurge.h: Likewise.
41594         * lib/freadable.c: Likewise.
41595         * lib/freadable.h: Likewise.
41596         * lib/freadahead.c: Likewise.
41597         * lib/freadahead.h: Likewise.
41598         * lib/freading.c: Likewise.
41599         * lib/freading.h: Likewise.
41600         * lib/free.c: Likewise.
41601         * lib/freopen.c: Likewise.
41602         * lib/frexp.c: Likewise.
41603         * lib/frexpl.c: Likewise.
41604         * lib/fseek.c: Likewise.
41605         * lib/fseterr.c: Likewise.
41606         * lib/fseterr.h: Likewise.
41607         * lib/fstatat.c: Likewise.
41608         * lib/fstrcmp.c: Likewise.
41609         * lib/fstrcmp.h: Likewise.
41610         * lib/fsusage.c: Likewise.
41611         * lib/fsusage.h: Likewise.
41612         * lib/ftell.c: Likewise.
41613         * lib/ftello.c: Likewise.
41614         * lib/fts-cycle.c: Likewise.
41615         * lib/fts.c: Likewise.
41616         * lib/fts_.h: Likewise.
41617         * lib/full-read.c: Likewise.
41618         * lib/full-read.h: Likewise.
41619         * lib/full-write.c: Likewise.
41620         * lib/full-write.h: Likewise.
41621         * lib/fwritable.c: Likewise.
41622         * lib/fwritable.h: Likewise.
41623         * lib/fwriteerror.c: Likewise.
41624         * lib/fwriteerror.h: Likewise.
41625         * lib/fwriting.c: Likewise.
41626         * lib/fwriting.h: Likewise.
41627         * lib/gcd.c: Likewise.
41628         * lib/gcd.h: Likewise.
41629         * lib/getcwd.c: Likewise.
41630         * lib/getdate.h: Likewise.
41631         * lib/getdate.y: Likewise.
41632         * lib/getdomainname.c: Likewise.
41633         * lib/getdomainname.h: Likewise.
41634         * lib/getgroups.c: Likewise.
41635         * lib/gethostname.c: Likewise.
41636         * lib/gethrxtime.c: Likewise.
41637         * lib/gethrxtime.h: Likewise.
41638         * lib/getloadavg.c: Likewise.
41639         * lib/getndelim2.c: Likewise.
41640         * lib/getndelim2.h: Likewise.
41641         * lib/getnline.c: Likewise.
41642         * lib/getnline.h: Likewise.
41643         * lib/getopt.c: Likewise.
41644         * lib/getopt.in.h: Likewise.
41645         * lib/getopt1.c: Likewise.
41646         * lib/getopt_int.h: Likewise.
41647         * lib/getpagesize.h: Likewise.
41648         * lib/getsubopt.c: Likewise.
41649         * lib/gettime.c: Likewise.
41650         * lib/getugroups.c: Likewise.
41651         * lib/getugroups.h: Likewise.
41652         * lib/getusershell.c: Likewise.
41653         * lib/gl_anyavltree_list1.h: Likewise.
41654         * lib/gl_anyavltree_list2.h: Likewise.
41655         * lib/gl_anyhash_list1.h: Likewise.
41656         * lib/gl_anyhash_list2.h: Likewise.
41657         * lib/gl_anylinked_list1.h: Likewise.
41658         * lib/gl_anylinked_list2.h: Likewise.
41659         * lib/gl_anyrbtree_list1.h: Likewise.
41660         * lib/gl_anyrbtree_list2.h: Likewise.
41661         * lib/gl_anytree_list1.h: Likewise.
41662         * lib/gl_anytree_list2.h: Likewise.
41663         * lib/gl_anytree_oset.h: Likewise.
41664         * lib/gl_anytreehash_list1.h: Likewise.
41665         * lib/gl_anytreehash_list2.h: Likewise.
41666         * lib/gl_array_list.c: Likewise.
41667         * lib/gl_array_list.h: Likewise.
41668         * lib/gl_array_oset.c: Likewise.
41669         * lib/gl_array_oset.h: Likewise.
41670         * lib/gl_avltree_list.c: Likewise.
41671         * lib/gl_avltree_list.h: Likewise.
41672         * lib/gl_avltree_oset.c: Likewise.
41673         * lib/gl_avltree_oset.h: Likewise.
41674         * lib/gl_avltreehash_list.c: Likewise.
41675         * lib/gl_avltreehash_list.h: Likewise.
41676         * lib/gl_carray_list.c: Likewise.
41677         * lib/gl_carray_list.h: Likewise.
41678         * lib/gl_linked_list.c: Likewise.
41679         * lib/gl_linked_list.h: Likewise.
41680         * lib/gl_linkedhash_list.c: Likewise.
41681         * lib/gl_linkedhash_list.h: Likewise.
41682         * lib/gl_list.c: Likewise.
41683         * lib/gl_list.h: Likewise.
41684         * lib/gl_oset.c: Likewise.
41685         * lib/gl_oset.h: Likewise.
41686         * lib/gl_rbtree_list.c: Likewise.
41687         * lib/gl_rbtree_list.h: Likewise.
41688         * lib/gl_rbtree_oset.c: Likewise.
41689         * lib/gl_rbtree_oset.h: Likewise.
41690         * lib/gl_rbtreehash_list.c: Likewise.
41691         * lib/gl_rbtreehash_list.h: Likewise.
41692         * lib/gl_sublist.c: Likewise.
41693         * lib/gl_sublist.h: Likewise.
41694         * lib/group-member.c: Likewise.
41695         * lib/group-member.h: Likewise.
41696         * lib/hard-locale.c: Likewise.
41697         * lib/hard-locale.h: Likewise.
41698         * lib/hash-pjw.c: Likewise.
41699         * lib/hash-pjw.h: Likewise.
41700         * lib/hash-triple.c: Likewise.
41701         * lib/hash.c: Likewise.
41702         * lib/hash.h: Likewise.
41703         * lib/human.c: Likewise.
41704         * lib/human.h: Likewise.
41705         * lib/i-ring.c: Likewise.
41706         * lib/i-ring.h: Likewise.
41707         * lib/idcache.c: Likewise.
41708         * lib/imaxabs.c: Likewise.
41709         * lib/imaxdiv.c: Likewise.
41710         * lib/inet_pton.c: Likewise.
41711         * lib/inet_pton.h: Likewise.
41712         * lib/intprops.h: Likewise.
41713         * lib/inttostr.c: Likewise.
41714         * lib/inttostr.h: Likewise.
41715         * lib/inttypes.in.h: Likewise.
41716         * lib/isapipe.c: Likewise.
41717         * lib/isdir.c: Likewise.
41718         * lib/isnan.c: Likewise.
41719         * lib/isnan.h: Likewise.
41720         * lib/isnanf.c: Likewise.
41721         * lib/isnanf.h: Likewise.
41722         * lib/isnanl-nolibm.h: Likewise.
41723         * lib/isnanl.c: Likewise.
41724         * lib/isnanl.h: Likewise.
41725         * lib/javacomp.c: Likewise.
41726         * lib/javacomp.h: Likewise.
41727         * lib/javaexec.c: Likewise.
41728         * lib/javaexec.h: Likewise.
41729         * lib/javaversion.c: Likewise.
41730         * lib/javaversion.h: Likewise.
41731         * lib/javaversion.java: Likewise.
41732         * lib/lbrkprop.h: Likewise.
41733         * lib/lchmod.h: Likewise.
41734         * lib/lchown.c: Likewise.
41735         * lib/ldexpl.c: Likewise.
41736         * lib/linebreak.c: Likewise.
41737         * lib/linebreak.h: Likewise.
41738         * lib/linebuffer.c: Likewise.
41739         * lib/linebuffer.h: Likewise.
41740         * lib/locale.in.h: Likewise.
41741         * lib/logl.c: Likewise.
41742         * lib/long-options.c: Likewise.
41743         * lib/long-options.h: Likewise.
41744         * lib/lstat.c: Likewise.
41745         * lib/lstat.h: Likewise.
41746         * lib/math.in.h: Likewise.
41747         * lib/mbchar.c: Likewise.
41748         * lib/mbchar.h: Likewise.
41749         * lib/mbfile.h: Likewise.
41750         * lib/mbiter.h: Likewise.
41751         * lib/mbscasecmp.c: Likewise.
41752         * lib/mbscasestr.c: Likewise.
41753         * lib/mbschr.c: Likewise.
41754         * lib/mbscspn.c: Likewise.
41755         * lib/mbslen.c: Likewise.
41756         * lib/mbsncasecmp.c: Likewise.
41757         * lib/mbsnlen.c: Likewise.
41758         * lib/mbspbrk.c: Likewise.
41759         * lib/mbspcasecmp.c: Likewise.
41760         * lib/mbsrchr.c: Likewise.
41761         * lib/mbssep.c: Likewise.
41762         * lib/mbsspn.c: Likewise.
41763         * lib/mbsstr.c: Likewise.
41764         * lib/mbstok_r.c: Likewise.
41765         * lib/mbswidth.c: Likewise.
41766         * lib/mbswidth.h: Likewise.
41767         * lib/mbuiter.h: Likewise.
41768         * lib/memcasecmp.c: Likewise.
41769         * lib/memcasecmp.h: Likewise.
41770         * lib/memchr.c: Likewise.
41771         * lib/memcmp.c: Likewise.
41772         * lib/memcoll.c: Likewise.
41773         * lib/memcoll.h: Likewise.
41774         * lib/memcpy.c: Likewise.
41775         * lib/memrchr.c: Likewise.
41776         * lib/mkancesdirs.c: Likewise.
41777         * lib/mkdir-p.c: Likewise.
41778         * lib/mkdir-p.h: Likewise.
41779         * lib/mkdir.c: Likewise.
41780         * lib/mkdirat.c: Likewise.
41781         * lib/mkdtemp.c: Likewise.
41782         * lib/mkstemp-safer.c: Likewise.
41783         * lib/mkstemp.c: Likewise.
41784         * lib/modechange.c: Likewise.
41785         * lib/modechange.h: Likewise.
41786         * lib/mountlist.c: Likewise.
41787         * lib/mountlist.h: Likewise.
41788         * lib/mpsort.c: Likewise.
41789         * lib/nanosleep.c: Likewise.
41790         * lib/obstack.c: Likewise.
41791         * lib/obstack.h: Likewise.
41792         * lib/open-safer.c: Likewise.
41793         * lib/open.c: Likewise.
41794         * lib/openat-die.c: Likewise.
41795         * lib/openat-priv.h: Likewise.
41796         * lib/openat-proc.c: Likewise.
41797         * lib/openat.c: Likewise.
41798         * lib/openat.h: Likewise.
41799         * lib/pagealign_alloc.c: Likewise.
41800         * lib/pagealign_alloc.h: Likewise.
41801         * lib/physmem.c: Likewise.
41802         * lib/physmem.h: Likewise.
41803         * lib/pipe-safer.c: Likewise.
41804         * lib/pipe.c: Likewise.
41805         * lib/pipe.h: Likewise.
41806         * lib/posixtm.c: Likewise.
41807         * lib/posixtm.h: Likewise.
41808         * lib/posixver.c: Likewise.
41809         * lib/printf-frexp.c: Likewise.
41810         * lib/printf-frexp.h: Likewise.
41811         * lib/printf-frexpl.c: Likewise.
41812         * lib/printf-frexpl.h: Likewise.
41813         * lib/printf.c: Likewise.
41814         * lib/progname.c: Likewise.
41815         * lib/progname.h: Likewise.
41816         * lib/progreloc.c: Likewise.
41817         * lib/putenv.c: Likewise.
41818         * lib/quote.c: Likewise.
41819         * lib/quote.h: Likewise.
41820         * lib/quotearg.c: Likewise.
41821         * lib/quotearg.h: Likewise.
41822         * lib/raise.c: Likewise.
41823         * lib/readline.c: Likewise.
41824         * lib/readline.h: Likewise.
41825         * lib/readlink.c: Likewise.
41826         * lib/readtokens.c: Likewise.
41827         * lib/readtokens.h: Likewise.
41828         * lib/readtokens0.c: Likewise.
41829         * lib/readtokens0.h: Likewise.
41830         * lib/readutmp.c: Likewise.
41831         * lib/readutmp.h: Likewise.
41832         * lib/realloc.c: Likewise.
41833         * lib/relocwrapper.c: Likewise.
41834         * lib/rename-dest-slash.c: Likewise.
41835         * lib/rename.c: Likewise.
41836         * lib/rmdir.c: Likewise.
41837         * lib/rpmatch.c: Likewise.
41838         * lib/safe-read.c: Likewise.
41839         * lib/safe-read.h: Likewise.
41840         * lib/safe-write.c: Likewise.
41841         * lib/safe-write.h: Likewise.
41842         * lib/same-inode.h: Likewise.
41843         * lib/same.c: Likewise.
41844         * lib/same.h: Likewise.
41845         * lib/save-cwd.c: Likewise.
41846         * lib/save-cwd.h: Likewise.
41847         * lib/savedir.c: Likewise.
41848         * lib/savedir.h: Likewise.
41849         * lib/savewd.c: Likewise.
41850         * lib/savewd.h: Likewise.
41851         * lib/search.in.h: Likewise.
41852         * lib/setenv.c: Likewise.
41853         * lib/setenv.h: Likewise.
41854         * lib/settime.c: Likewise.
41855         * lib/sh-quote.c: Likewise.
41856         * lib/sh-quote.h: Likewise.
41857         * lib/sig2str.c: Likewise.
41858         * lib/sig2str.h: Likewise.
41859         * lib/signal.in.h: Likewise.
41860         * lib/signbitd.c: Likewise.
41861         * lib/signbitf.c: Likewise.
41862         * lib/signbitl.c: Likewise.
41863         * lib/sigprocmask.c: Likewise.
41864         * lib/sincosl.c: Likewise.
41865         * lib/sleep.c: Likewise.
41866         * lib/sprintf.c: Likewise.
41867         * lib/sqrtl.c: Likewise.
41868         * lib/stat-time.h: Likewise.
41869         * lib/stdio--.h: Likewise.
41870         * lib/stdio-safer.h: Likewise.
41871         * lib/stdlib--.h: Likewise.
41872         * lib/stdlib-safer.h: Likewise.
41873         * lib/stdlib.in.h: Likewise.
41874         * lib/stpcpy.c: Likewise.
41875         * lib/stpncpy.c: Likewise.
41876         * lib/strchrnul.c: Likewise.
41877         * lib/strcspn.c: Likewise.
41878         * lib/strerror.c: Likewise.
41879         * lib/strftime.c: Likewise.
41880         * lib/strftime.h: Likewise.
41881         * lib/striconveh.c: Likewise.
41882         * lib/striconveh.h: Likewise.
41883         * lib/striconveha.c: Likewise.
41884         * lib/striconveha.h: Likewise.
41885         * lib/stripslash.c: Likewise.
41886         * lib/strnlen1.c: Likewise.
41887         * lib/strnlen1.h: Likewise.
41888         * lib/strtod.c: Likewise.
41889         * lib/strtoimax.c: Likewise.
41890         * lib/strtok_r.c: Likewise.
41891         * lib/strtol.c: Likewise.
41892         * lib/strtoll.c: Likewise.
41893         * lib/strtoul.c: Likewise.
41894         * lib/strtoull.c: Likewise.
41895         * lib/sysexits.in.h: Likewise.
41896         * lib/tempname.c: Likewise.
41897         * lib/tempname.h: Likewise.
41898         * lib/timespec.h: Likewise.
41899         * lib/tls.c: Likewise.
41900         * lib/tls.h: Likewise.
41901         * lib/tmpdir.c: Likewise.
41902         * lib/tmpdir.h: Likewise.
41903         * lib/tmpfile-safer.c: Likewise.
41904         * lib/tmpfile.c: Likewise.
41905         * lib/trigl.c: Likewise.
41906         * lib/trigl.h: Likewise.
41907         * lib/trim.c: Likewise.
41908         * lib/trim.h: Likewise.
41909         * lib/trunc.c: Likewise.
41910         * lib/truncf.c: Likewise.
41911         * lib/truncl.c: Likewise.
41912         * lib/tsearch.c: Likewise.
41913         * lib/unicodeio.c: Likewise.
41914         * lib/unicodeio.h: Likewise.
41915         * lib/unistd--.h: Likewise.
41916         * lib/unistd-safer.h: Likewise.
41917         * lib/unistdio/ulc-fprintf.c: Likewise.
41918         * lib/unistdio/ulc-vfprintf.c: Likewise.
41919         * lib/unlinkdir.c: Likewise.
41920         * lib/unlinkdir.h: Likewise.
41921         * lib/unlocked-io.h: Likewise.
41922         * lib/unsetenv.c: Likewise.
41923         * lib/userspec.c: Likewise.
41924         * lib/utime.c: Likewise.
41925         * lib/utimecmp.c: Likewise.
41926         * lib/utimecmp.h: Likewise.
41927         * lib/utimens.c: Likewise.
41928         * lib/verify.h: Likewise.
41929         * lib/verror.c: Likewise.
41930         * lib/verror.h: Likewise.
41931         * lib/version-etc-fsf.c: Likewise.
41932         * lib/version-etc.c: Likewise.
41933         * lib/version-etc.h: Likewise.
41934         * lib/vfprintf.c: Likewise.
41935         * lib/vprintf.c: Likewise.
41936         * lib/vsprintf.c: Likewise.
41937         * lib/w32spawn.h: Likewise.
41938         * lib/wait-process.c: Likewise.
41939         * lib/wait-process.h: Likewise.
41940         * lib/wcwidth.c: Likewise.
41941         * lib/write-any-file.c: Likewise.
41942         * lib/xalloc-die.c: Likewise.
41943         * lib/xalloc.h: Likewise.
41944         * lib/xasprintf.c: Likewise.
41945         * lib/xgetcwd.c: Likewise.
41946         * lib/xgetcwd.h: Likewise.
41947         * lib/xgetdomainname.c: Likewise.
41948         * lib/xgetdomainname.h: Likewise.
41949         * lib/xgethostname.c: Likewise.
41950         * lib/xmalloc.c: Likewise.
41951         * lib/xmalloca.c: Likewise.
41952         * lib/xmalloca.h: Likewise.
41953         * lib/xmemcoll.c: Likewise.
41954         * lib/xnanosleep.c: Likewise.
41955         * lib/xreadlink.c: Likewise.
41956         * lib/xreadlink.h: Likewise.
41957         * lib/xsetenv.c: Likewise.
41958         * lib/xsetenv.h: Likewise.
41959         * lib/xstriconv.c: Likewise.
41960         * lib/xstriconv.h: Likewise.
41961         * lib/xstrndup.c: Likewise.
41962         * lib/xstrndup.h: Likewise.
41963         * lib/xstrtod.c: Likewise.
41964         * lib/xstrtod.h: Likewise.
41965         * lib/xstrtol-error.c: Likewise.
41966         * lib/xstrtol.c: Likewise.
41967         * lib/xstrtol.h: Likewise.
41968         * lib/xtime.h: Likewise.
41969         * lib/xvasprintf.c: Likewise.
41970         * lib/xvasprintf.h: Likewise.
41971         * lib/yesno.c: Likewise.
41972         * lib/yesno.h: Likewise.
41973         * posix-modules: Likewise.
41974         * tests/test-alloca-opt.c: Likewise.
41975         * tests/test-arcfour.c: Likewise.
41976         * tests/test-arctwo.c: Likewise.
41977         * tests/test-argmatch.c: Likewise.
41978         * tests/test-argp-2.sh: Likewise.
41979         * tests/test-argp.c: Likewise.
41980         * tests/test-arpa_inet.c: Likewise.
41981         * tests/test-array_list.c: Likewise.
41982         * tests/test-array_oset.c: Likewise.
41983         * tests/test-atexit.c: Likewise.
41984         * tests/test-avltree_list.c: Likewise.
41985         * tests/test-avltree_oset.c: Likewise.
41986         * tests/test-avltreehash_list.c: Likewise.
41987         * tests/test-base64.c: Likewise.
41988         * tests/test-binary-io.c: Likewise.
41989         * tests/test-byteswap.c: Likewise.
41990         * tests/test-c-ctype.c: Likewise.
41991         * tests/test-c-strcasecmp.c: Likewise.
41992         * tests/test-c-strcasestr.c: Likewise.
41993         * tests/test-c-strncasecmp.c: Likewise.
41994         * tests/test-c-strstr.c: Likewise.
41995         * tests/test-canonicalize-lgpl.c: Likewise.
41996         * tests/test-canonicalize.c: Likewise.
41997         * tests/test-carray_list.c: Likewise.
41998         * tests/test-ceilf.c: Likewise.
41999         * tests/test-ceill.c: Likewise.
42000         * tests/test-count-one-bits.c: Likewise.
42001         * tests/test-crc.c: Likewise.
42002         * tests/test-dirname.c: Likewise.
42003         * tests/test-fbufmode.c: Likewise.
42004         * tests/test-fcntl.c: Likewise.
42005         * tests/test-fflush.c: Likewise.
42006         * tests/test-floorf.c: Likewise.
42007         * tests/test-floorl.c: Likewise.
42008         * tests/test-fopen.c: Likewise.
42009         * tests/test-fprintf-posix.c: Likewise.
42010         * tests/test-fprintf-posix.h: Likewise.
42011         * tests/test-fpurge.c: Likewise.
42012         * tests/test-freadable.c: Likewise.
42013         * tests/test-freadahead.c: Likewise.
42014         * tests/test-freading.c: Likewise.
42015         * tests/test-freopen.c: Likewise.
42016         * tests/test-frexp.c: Likewise.
42017         * tests/test-frexpl.c: Likewise.
42018         * tests/test-fseek.c: Likewise.
42019         * tests/test-fseeko.c: Likewise.
42020         * tests/test-fseterr.c: Likewise.
42021         * tests/test-fstrcmp.c: Likewise.
42022         * tests/test-ftell.c: Likewise.
42023         * tests/test-ftello.c: Likewise.
42024         * tests/test-fwritable.c: Likewise.
42025         * tests/test-fwriting.c: Likewise.
42026         * tests/test-getaddrinfo.c: Likewise.
42027         * tests/test-getpass.c: Likewise.
42028         * tests/test-gettimeofday.c: Likewise.
42029         * tests/test-hmac-md5.c: Likewise.
42030         * tests/test-hmac-sha1.c: Likewise.
42031         * tests/test-iconv.c: Likewise.
42032         * tests/test-iconvme.c: Likewise.
42033         * tests/test-inttypes.c: Likewise.
42034         * tests/test-isnan.c: Likewise.
42035         * tests/test-isnanf.c: Likewise.
42036         * tests/test-isnanl-nolibm.c: Likewise.
42037         * tests/test-isnanl.c: Likewise.
42038         * tests/test-isnanl.h: Likewise.
42039         * tests/test-ldexpl.c: Likewise.
42040         * tests/test-linked_list.c: Likewise.
42041         * tests/test-linkedhash_list.c: Likewise.
42042         * tests/test-locale.c: Likewise.
42043         * tests/test-localename.c: Likewise.
42044         * tests/test-lock.c: Likewise.
42045         * tests/test-lseek.c: Likewise.
42046         * tests/test-malloca.c: Likewise.
42047         * tests/test-math.c: Likewise.
42048         * tests/test-mbscasecmp.c: Likewise.
42049         * tests/test-mbscasestr1.c: Likewise.
42050         * tests/test-mbscasestr2.c: Likewise.
42051         * tests/test-mbscasestr3.c: Likewise.
42052         * tests/test-mbscasestr4.c: Likewise.
42053         * tests/test-mbschr.c: Likewise.
42054         * tests/test-mbscspn.c: Likewise.
42055         * tests/test-mbsncasecmp.c: Likewise.
42056         * tests/test-mbspbrk.c: Likewise.
42057         * tests/test-mbspcasecmp.c: Likewise.
42058         * tests/test-mbsrchr.c: Likewise.
42059         * tests/test-mbsspn.c: Likewise.
42060         * tests/test-mbsstr1.c: Likewise.
42061         * tests/test-mbsstr2.c: Likewise.
42062         * tests/test-mbsstr3.c: Likewise.
42063         * tests/test-md5.c: Likewise.
42064         * tests/test-memmem.c: Likewise.
42065         * tests/test-netinet_in.c: Likewise.
42066         * tests/test-open.c: Likewise.
42067         * tests/test-printf-frexp.c: Likewise.
42068         * tests/test-printf-frexpl.c: Likewise.
42069         * tests/test-printf-posix.c: Likewise.
42070         * tests/test-printf-posix.h: Likewise.
42071         * tests/test-rbtree_list.c: Likewise.
42072         * tests/test-rbtree_oset.c: Likewise.
42073         * tests/test-rbtreehash_list.c: Likewise.
42074         * tests/test-read-file.c: Likewise.
42075         * tests/test-rijndael.c: Likewise.
42076         * tests/test-search.c: Likewise.
42077         * tests/test-signbit.c: Likewise.
42078         * tests/test-sleep.c: Likewise.
42079         * tests/test-snprintf-posix.c: Likewise.
42080         * tests/test-snprintf-posix.h: Likewise.
42081         * tests/test-snprintf.c: Likewise.
42082         * tests/test-sprintf-posix.c: Likewise.
42083         * tests/test-sprintf-posix.h: Likewise.
42084         * tests/test-stat-time.c: Likewise.
42085         * tests/test-stdbool.c: Likewise.
42086         * tests/test-stdint.c: Likewise.
42087         * tests/test-stdio.c: Likewise.
42088         * tests/test-stdlib.c: Likewise.
42089         * tests/test-stpncpy.c: Likewise.
42090         * tests/test-strcasestr.c: Likewise.
42091         * tests/test-striconv.c: Likewise.
42092         * tests/test-striconveh.c: Likewise.
42093         * tests/test-striconveha.c: Likewise.
42094         * tests/test-string.c: Likewise.
42095         * tests/test-sys_select.c: Likewise.
42096         * tests/test-sys_socket.c: Likewise.
42097         * tests/test-sys_stat.c: Likewise.
42098         * tests/test-sys_time.c: Likewise.
42099         * tests/test-sysexits.c: Likewise.
42100         * tests/test-time.c: Likewise.
42101         * tests/test-tls.c: Likewise.
42102         * tests/test-trunc.c: Likewise.
42103         * tests/test-truncf.c: Likewise.
42104         * tests/test-truncl.c: Likewise.
42105         * tests/test-unistd.c: Likewise.
42106         * tests/test-vasnprintf-posix.c: Likewise.
42107         * tests/test-vasnprintf-posix2.c: Likewise.
42108         * tests/test-vasnprintf.c: Likewise.
42109         * tests/test-vasprintf-posix.c: Likewise.
42110         * tests/test-vasprintf.c: Likewise.
42111         * tests/test-verify.c: Likewise.
42112         * tests/test-vfprintf-posix.c: Likewise.
42113         * tests/test-vprintf-posix.c: Likewise.
42114         * tests/test-vsnprintf-posix.c: Likewise.
42115         * tests/test-vsnprintf.c: Likewise.
42116         * tests/test-vsprintf-posix.c: Likewise.
42117         * tests/test-wchar.c: Likewise.
42118         * tests/test-wctype.c: Likewise.
42119         * tests/test-wcwidth.c: Likewise.
42120         * tests/test-xstrtol.c: Likewise.
42121         * tests/test-xvasprintf.c: Likewise.
42122         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42123         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42124         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42125         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42126         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42127         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42128         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42129         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42130         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42131         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42132         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42133         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42134         * tests/uniname/test-uninames.c: Likewise.
42135         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42136         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42137         * tests/unistdio/test-u16-printf1.h: Likewise.
42138         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42139         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42140         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42141         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42142         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42143         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42144         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42145         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42146         * tests/unistdio/test-u32-printf1.h: Likewise.
42147         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42148         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42149         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42150         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42151         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42152         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42153         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42154         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42155         * tests/unistdio/test-u8-printf1.h: Likewise.
42156         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42157         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42158         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42159         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42160         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42161         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42162         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42163         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42164         * tests/unistdio/test-ulc-printf1.h: Likewise.
42165         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42166         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42167         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42168         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42169         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42170         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42171         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42172         * tests/uniwidth/test-u16-width.c: Likewise.
42173         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42174         * tests/uniwidth/test-u32-width.c: Likewise.
42175         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42176         * tests/uniwidth/test-u8-width.c: Likewise.
42177         * tests/uniwidth/test-uc_width.c: Likewise.
42178         * config/srclist-update: Likewise.
42179         (fixlicense): Update to GPLv3+.
42180
42181         Change copyright notice from LGPLv2.1+ to LGPLv3+.
42182         * tests/test-tsearch.c: Change copyright notice.
42183
42184         Change copyright notice from LGPLv2.0+ to LGPLv3+.
42185         * lib/c-strcaseeq.h: Change copyright notice.
42186         * lib/streq.h: Likewise.
42187         * lib/uniconv.h: Likewise.
42188         * lib/uniconv/u-conv-from-enc.h: Likewise.
42189         * lib/uniconv/u-conv-to-enc.h: Likewise.
42190         * lib/uniconv/u-strconv-from-enc.h: Likewise.
42191         * lib/uniconv/u-strconv-to-enc.h: Likewise.
42192         * lib/uniconv/u16-conv-from-enc.c: Likewise.
42193         * lib/uniconv/u16-conv-to-enc.c: Likewise.
42194         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
42195         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
42196         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
42197         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
42198         * lib/uniconv/u32-conv-from-enc.c: Likewise.
42199         * lib/uniconv/u32-conv-to-enc.c: Likewise.
42200         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
42201         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
42202         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
42203         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
42204         * lib/uniconv/u8-conv-from-enc.c: Likewise.
42205         * lib/uniconv/u8-conv-to-enc.c: Likewise.
42206         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
42207         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
42208         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
42209         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
42210         * lib/uniname.h: Likewise.
42211         * lib/uniname/uniname.c: Likewise.
42212         * lib/unistdio.h: Likewise.
42213         * lib/unistdio/u-asnprintf.h: Likewise.
42214         * lib/unistdio/u-asprintf.h: Likewise.
42215         * lib/unistdio/u-printf-args.c: Likewise.
42216         * lib/unistdio/u-printf-args.h: Likewise.
42217         * lib/unistdio/u-printf-parse.h: Likewise.
42218         * lib/unistdio/u-snprintf.h: Likewise.
42219         * lib/unistdio/u-sprintf.h: Likewise.
42220         * lib/unistdio/u-vasprintf.h: Likewise.
42221         * lib/unistdio/u-vsnprintf.h: Likewise.
42222         * lib/unistdio/u-vsprintf.h: Likewise.
42223         * lib/unistdio/u16-asnprintf.c: Likewise.
42224         * lib/unistdio/u16-asprintf.c: Likewise.
42225         * lib/unistdio/u16-printf-parse.c: Likewise.
42226         * lib/unistdio/u16-snprintf.c: Likewise.
42227         * lib/unistdio/u16-sprintf.c: Likewise.
42228         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
42229         * lib/unistdio/u16-u16-asprintf.c: Likewise.
42230         * lib/unistdio/u16-u16-snprintf.c: Likewise.
42231         * lib/unistdio/u16-u16-sprintf.c: Likewise.
42232         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
42233         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
42234         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
42235         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
42236         * lib/unistdio/u16-vasnprintf.c: Likewise.
42237         * lib/unistdio/u16-vasprintf.c: Likewise.
42238         * lib/unistdio/u16-vsnprintf.c: Likewise.
42239         * lib/unistdio/u16-vsprintf.c: Likewise.
42240         * lib/unistdio/u32-asnprintf.c: Likewise.
42241         * lib/unistdio/u32-asprintf.c: Likewise.
42242         * lib/unistdio/u32-printf-parse.c: Likewise.
42243         * lib/unistdio/u32-snprintf.c: Likewise.
42244         * lib/unistdio/u32-sprintf.c: Likewise.
42245         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
42246         * lib/unistdio/u32-u32-asprintf.c: Likewise.
42247         * lib/unistdio/u32-u32-snprintf.c: Likewise.
42248         * lib/unistdio/u32-u32-sprintf.c: Likewise.
42249         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
42250         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
42251         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
42252         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
42253         * lib/unistdio/u32-vasnprintf.c: Likewise.
42254         * lib/unistdio/u32-vasprintf.c: Likewise.
42255         * lib/unistdio/u32-vsnprintf.c: Likewise.
42256         * lib/unistdio/u32-vsprintf.c: Likewise.
42257         * lib/unistdio/u8-asnprintf.c: Likewise.
42258         * lib/unistdio/u8-asprintf.c: Likewise.
42259         * lib/unistdio/u8-printf-parse.c: Likewise.
42260         * lib/unistdio/u8-snprintf.c: Likewise.
42261         * lib/unistdio/u8-sprintf.c: Likewise.
42262         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
42263         * lib/unistdio/u8-u8-asprintf.c: Likewise.
42264         * lib/unistdio/u8-u8-snprintf.c: Likewise.
42265         * lib/unistdio/u8-u8-sprintf.c: Likewise.
42266         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
42267         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
42268         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
42269         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
42270         * lib/unistdio/u8-vasnprintf.c: Likewise.
42271         * lib/unistdio/u8-vasprintf.c: Likewise.
42272         * lib/unistdio/u8-vsnprintf.c: Likewise.
42273         * lib/unistdio/u8-vsprintf.c: Likewise.
42274         * lib/unistdio/ulc-asnprintf.c: Likewise.
42275         * lib/unistdio/ulc-asprintf.c: Likewise.
42276         * lib/unistdio/ulc-printf-parse.c: Likewise.
42277         * lib/unistdio/ulc-snprintf.c: Likewise.
42278         * lib/unistdio/ulc-sprintf.c: Likewise.
42279         * lib/unistdio/ulc-vasnprintf.c: Likewise.
42280         * lib/unistdio/ulc-vasprintf.c: Likewise.
42281         * lib/unistdio/ulc-vsnprintf.c: Likewise.
42282         * lib/unistdio/ulc-vsprintf.c: Likewise.
42283         * lib/unistr.h: Likewise.
42284         * lib/unistr/u-cpy-alloc.h: Likewise.
42285         * lib/unistr/u-cpy.h: Likewise.
42286         * lib/unistr/u-endswith.h: Likewise.
42287         * lib/unistr/u-move.h: Likewise.
42288         * lib/unistr/u-set.h: Likewise.
42289         * lib/unistr/u-startswith.h: Likewise.
42290         * lib/unistr/u-stpcpy.h: Likewise.
42291         * lib/unistr/u-stpncpy.h: Likewise.
42292         * lib/unistr/u-strcat.h: Likewise.
42293         * lib/unistr/u-strcpy.h: Likewise.
42294         * lib/unistr/u-strcspn.h: Likewise.
42295         * lib/unistr/u-strdup.h: Likewise.
42296         * lib/unistr/u-strlen.h: Likewise.
42297         * lib/unistr/u-strncat.h: Likewise.
42298         * lib/unistr/u-strncpy.h: Likewise.
42299         * lib/unistr/u-strnlen.h: Likewise.
42300         * lib/unistr/u-strpbrk.h: Likewise.
42301         * lib/unistr/u-strspn.h: Likewise.
42302         * lib/unistr/u-strstr.h: Likewise.
42303         * lib/unistr/u-strtok.h: Likewise.
42304         * lib/unistr/u16-check.c: Likewise.
42305         * lib/unistr/u16-chr.c: Likewise.
42306         * lib/unistr/u16-cmp.c: Likewise.
42307         * lib/unistr/u16-cpy-alloc.c: Likewise.
42308         * lib/unistr/u16-cpy.c: Likewise.
42309         * lib/unistr/u16-endswith.c: Likewise.
42310         * lib/unistr/u16-mblen.c: Likewise.
42311         * lib/unistr/u16-mbsnlen.c: Likewise.
42312         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42313         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42314         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42315         * lib/unistr/u16-mbtouc.c: Likewise.
42316         * lib/unistr/u16-mbtoucr.c: Likewise.
42317         * lib/unistr/u16-move.c: Likewise.
42318         * lib/unistr/u16-next.c: Likewise.
42319         * lib/unistr/u16-prev.c: Likewise.
42320         * lib/unistr/u16-set.c: Likewise.
42321         * lib/unistr/u16-startswith.c: Likewise.
42322         * lib/unistr/u16-stpcpy.c: Likewise.
42323         * lib/unistr/u16-stpncpy.c: Likewise.
42324         * lib/unistr/u16-strcat.c: Likewise.
42325         * lib/unistr/u16-strchr.c: Likewise.
42326         * lib/unistr/u16-strcmp.c: Likewise.
42327         * lib/unistr/u16-strcpy.c: Likewise.
42328         * lib/unistr/u16-strcspn.c: Likewise.
42329         * lib/unistr/u16-strdup.c: Likewise.
42330         * lib/unistr/u16-strlen.c: Likewise.
42331         * lib/unistr/u16-strmblen.c: Likewise.
42332         * lib/unistr/u16-strmbtouc.c: Likewise.
42333         * lib/unistr/u16-strncat.c: Likewise.
42334         * lib/unistr/u16-strncmp.c: Likewise.
42335         * lib/unistr/u16-strncpy.c: Likewise.
42336         * lib/unistr/u16-strnlen.c: Likewise.
42337         * lib/unistr/u16-strpbrk.c: Likewise.
42338         * lib/unistr/u16-strrchr.c: Likewise.
42339         * lib/unistr/u16-strspn.c: Likewise.
42340         * lib/unistr/u16-strstr.c: Likewise.
42341         * lib/unistr/u16-strtok.c: Likewise.
42342         * lib/unistr/u16-to-u32.c: Likewise.
42343         * lib/unistr/u16-to-u8.c: Likewise.
42344         * lib/unistr/u16-uctomb-aux.c: Likewise.
42345         * lib/unistr/u16-uctomb.c: Likewise.
42346         * lib/unistr/u32-check.c: Likewise.
42347         * lib/unistr/u32-chr.c: Likewise.
42348         * lib/unistr/u32-cmp.c: Likewise.
42349         * lib/unistr/u32-cpy-alloc.c: Likewise.
42350         * lib/unistr/u32-cpy.c: Likewise.
42351         * lib/unistr/u32-endswith.c: Likewise.
42352         * lib/unistr/u32-mblen.c: Likewise.
42353         * lib/unistr/u32-mbsnlen.c: Likewise.
42354         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42355         * lib/unistr/u32-mbtouc.c: Likewise.
42356         * lib/unistr/u32-mbtoucr.c: Likewise.
42357         * lib/unistr/u32-move.c: Likewise.
42358         * lib/unistr/u32-next.c: Likewise.
42359         * lib/unistr/u32-prev.c: Likewise.
42360         * lib/unistr/u32-set.c: Likewise.
42361         * lib/unistr/u32-startswith.c: Likewise.
42362         * lib/unistr/u32-stpcpy.c: Likewise.
42363         * lib/unistr/u32-stpncpy.c: Likewise.
42364         * lib/unistr/u32-strcat.c: Likewise.
42365         * lib/unistr/u32-strchr.c: Likewise.
42366         * lib/unistr/u32-strcmp.c: Likewise.
42367         * lib/unistr/u32-strcpy.c: Likewise.
42368         * lib/unistr/u32-strcspn.c: Likewise.
42369         * lib/unistr/u32-strdup.c: Likewise.
42370         * lib/unistr/u32-strlen.c: Likewise.
42371         * lib/unistr/u32-strmblen.c: Likewise.
42372         * lib/unistr/u32-strmbtouc.c: Likewise.
42373         * lib/unistr/u32-strncat.c: Likewise.
42374         * lib/unistr/u32-strncmp.c: Likewise.
42375         * lib/unistr/u32-strncpy.c: Likewise.
42376         * lib/unistr/u32-strnlen.c: Likewise.
42377         * lib/unistr/u32-strpbrk.c: Likewise.
42378         * lib/unistr/u32-strrchr.c: Likewise.
42379         * lib/unistr/u32-strspn.c: Likewise.
42380         * lib/unistr/u32-strstr.c: Likewise.
42381         * lib/unistr/u32-strtok.c: Likewise.
42382         * lib/unistr/u32-to-u16.c: Likewise.
42383         * lib/unistr/u32-to-u8.c: Likewise.
42384         * lib/unistr/u32-uctomb.c: Likewise.
42385         * lib/unistr/u8-check.c: Likewise.
42386         * lib/unistr/u8-chr.c: Likewise.
42387         * lib/unistr/u8-cmp.c: Likewise.
42388         * lib/unistr/u8-cpy-alloc.c: Likewise.
42389         * lib/unistr/u8-cpy.c: Likewise.
42390         * lib/unistr/u8-endswith.c: Likewise.
42391         * lib/unistr/u8-mblen.c: Likewise.
42392         * lib/unistr/u8-mbsnlen.c: Likewise.
42393         * lib/unistr/u8-mbtouc-aux.c: Likewise.
42394         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42395         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42396         * lib/unistr/u8-mbtouc.c: Likewise.
42397         * lib/unistr/u8-mbtoucr.c: Likewise.
42398         * lib/unistr/u8-move.c: Likewise.
42399         * lib/unistr/u8-next.c: Likewise.
42400         * lib/unistr/u8-prev.c: Likewise.
42401         * lib/unistr/u8-set.c: Likewise.
42402         * lib/unistr/u8-startswith.c: Likewise.
42403         * lib/unistr/u8-stpcpy.c: Likewise.
42404         * lib/unistr/u8-stpncpy.c: Likewise.
42405         * lib/unistr/u8-strcat.c: Likewise.
42406         * lib/unistr/u8-strchr.c: Likewise.
42407         * lib/unistr/u8-strcmp.c: Likewise.
42408         * lib/unistr/u8-strcpy.c: Likewise.
42409         * lib/unistr/u8-strcspn.c: Likewise.
42410         * lib/unistr/u8-strdup.c: Likewise.
42411         * lib/unistr/u8-strlen.c: Likewise.
42412         * lib/unistr/u8-strmblen.c: Likewise.
42413         * lib/unistr/u8-strmbtouc.c: Likewise.
42414         * lib/unistr/u8-strncat.c: Likewise.
42415         * lib/unistr/u8-strncmp.c: Likewise.
42416         * lib/unistr/u8-strncpy.c: Likewise.
42417         * lib/unistr/u8-strnlen.c: Likewise.
42418         * lib/unistr/u8-strpbrk.c: Likewise.
42419         * lib/unistr/u8-strrchr.c: Likewise.
42420         * lib/unistr/u8-strspn.c: Likewise.
42421         * lib/unistr/u8-strstr.c: Likewise.
42422         * lib/unistr/u8-strtok.c: Likewise.
42423         * lib/unistr/u8-to-u16.c: Likewise.
42424         * lib/unistr/u8-to-u32.c: Likewise.
42425         * lib/unistr/u8-uctomb-aux.c: Likewise.
42426         * lib/unistr/u8-uctomb.c: Likewise.
42427         * lib/unitypes.h: Likewise.
42428         * lib/uniwidth.h: Likewise.
42429         * lib/uniwidth/cjk.h: Likewise.
42430         * lib/uniwidth/u16-strwidth.c: Likewise.
42431         * lib/uniwidth/u16-width.c: Likewise.
42432         * lib/uniwidth/u32-strwidth.c: Likewise.
42433         * lib/uniwidth/u32-width.c: Likewise.
42434         * lib/uniwidth/u8-strwidth.c: Likewise.
42435         * lib/uniwidth/u8-width.c: Likewise.
42436         * lib/uniwidth/width.c: Likewise.
42437
42438 2007-10-07  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
42441         The file is still under LGPL (see modules/inttypes).
42442
42443 2007-10-06  Bruno Haible  <bruno@clisp.org>
42444
42445         * modules/trunc (Dependencies): Add 'extensions'.
42446         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
42447         Reported by Ben Pfaff <blp@gnu.org>.
42448
42449 2007-10-06  Bruno Haible  <bruno@clisp.org>
42450
42451         * modules/freopen-tests: New file.
42452         * tests/test-freopen.c: New file.
42453
42454         * modules/fopen-tests: New file.
42455         * tests/test-fopen.c: New file.
42456
42457         * modules/fopen: New file.
42458         * lib/fopen.c: New file.
42459         * m4/fopen.m4: New file.
42460         * modules/freopen: New file.
42461         * lib/freopen.c: New file.
42462         * m4/freopen.m4: New file.
42463         * lib/stdio.in.h (fopen, freopen): New declarations.
42464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
42465         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42466         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
42467         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42468         * doc/functions/fopen.texi: Mention the 'fopen' module.
42469         * doc/functions/freopen.texi: Mention the 'freopen' module.
42470
42471 2007-10-06  Bruno Haible  <bruno@clisp.org>
42472
42473         * modules/open-tests: New file.
42474         * tests/test-open.c: New file.
42475
42476         * modules/open: New file.
42477         * lib/open.c: New file.
42478         * m4/open.m4: New file.
42479         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
42480         lib/open.c does.
42481         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
42482         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
42483         macros.
42484         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
42485         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
42486         REPLACE_OPEN.
42487         * doc/functions/open.texi: Mention the 'open' module.
42488
42489 2007-10-04  Bruno Haible  <bruno@clisp.org>
42490
42491         * modules/ceill-tests: New file.
42492         * tests/test-ceill.c: New file.
42493
42494         * modules/ceill: New file.
42495         * lib/ceill.c: Replace entire file.
42496         * m4/ceill.m4: New file.
42497         * lib/math.in.h (ceill): Replace declaration.
42498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42499         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42500         * doc/functions/ceill.texi: Mention the 'ceill' module.
42501         * modules/mathl (Files): Remove lib/ceill.c.
42502         (Depends-on): Add ceill.
42503
42504 2007-10-04  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/ceilf-tests: New file.
42507         * tests/test-ceilf.c: New file.
42508
42509         * modules/ceilf: New file.
42510         * lib/ceil.c: New file.
42511         * lib/ceilf.c: New file.
42512         * m4/ceilf.m4: New file.
42513         * lib/math.in.h (ceilf): New declaration.
42514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42515         HAVE_DECL_CEILF.
42516         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42517         HAVE_DECL_CEILF.
42518         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42519
42520 2007-10-04  Bruno Haible  <bruno@clisp.org>
42521
42522         * modules/floorl-tests: New file.
42523         * tests/test-floorl.c: New file.
42524
42525         * modules/floorl: New file.
42526         * lib/floorl.c: Replace entire file.
42527         * m4/floorl.m4: New file.
42528         * lib/math.in.h (floorl): Replace declaration.
42529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42530         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42531         * doc/functions/floorl.texi: Mention the 'floorl' module.
42532         * modules/mathl (Files): Remove lib/floorl.c.
42533         (Depends-on): Add floorl.
42534
42535 2007-10-04  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/floorf-tests: New file.
42538         * tests/test-floorf.c: New file.
42539
42540         * modules/floorf: New file.
42541         * lib/floor.c: New file.
42542         * lib/floorf.c: New file.
42543         * m4/floorf.m4: New file.
42544         * lib/math.in.h (floorf): New declaration.
42545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42546         HAVE_DECL_FLOORF.
42547         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42548         HAVE_DECL_FLOORF.
42549         * doc/functions/floorf.texi: Mention the 'floorf' module.
42550
42551 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42552             Bruno Haible  <bruno@clisp.org>
42553
42554         Advertise for the Git server instead of the CVS server.
42555         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42556         repository instead of the CVS one.
42557         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42558         about all VCS systems generically.
42559         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42560
42561 2007-10-04  Bruno Haible  <bruno@clisp.org>
42562
42563         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42564         means.
42565         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42566
42567 2007-10-04  Bruno Haible  <bruno@clisp.org>
42568
42569         * modules/truncl-tests: New file.
42570         * tests/test-truncl.c: New file.
42571
42572         * modules/truncl: New file.
42573         * lib/truncl.c: New file.
42574         * m4/truncl.m4: New file.
42575         * lib/math.in.h (truncl): New declaration.
42576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42577         HAVE_DECL_TRUNCL.
42578         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42579         HAVE_DECL_TRUNCL.
42580         * doc/functions/truncl.texi: Mention the 'truncl' module.
42581
42582 2007-10-04  Bruno Haible  <bruno@clisp.org>
42583
42584         * modules/truncf-tests: New file.
42585         * tests/test-truncf.c: New file.
42586
42587         * modules/truncf: New file.
42588         * lib/trunc.c: Make paramerizable through USE_* macros.
42589         * lib/truncf.c: New file.
42590         * m4/truncf.m4: New file.
42591         * lib/math.in.h (truncf): New declaration.
42592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42593         HAVE_DECL_TRUNCF.
42594         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42595         HAVE_DECL_TRUNCF.
42596         * doc/functions/truncf.texi: Mention the 'truncf' module.
42597
42598 2007-10-03  Bruno Haible  <bruno@clisp.org>
42599
42600         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42601         augmentation also for tests modules.
42602         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42603         * modules/atexit-tests (Makefile.am): Likewise.
42604         * modules/binary-io-tests (Makefile.am): Likewise.
42605         * modules/c-strcase-tests (Makefile.am): Likewise.
42606         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42607         * modules/canonicalize-tests (Makefile.am): Likewise.
42608         * modules/closein-tests (Makefile.am): Likewise.
42609         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42610         * modules/freadahead-tests (Makefile.am): Likewise.
42611         * modules/fseek-tests (Makefile.am): Likewise.
42612         * modules/fseeko-tests (Makefile.am): Likewise.
42613         * modules/ftell-tests (Makefile.am): Likewise.
42614         * modules/ftello-tests (Makefile.am): Likewise.
42615         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42616         * modules/isnanl-tests (Makefile.am): Likewise.
42617         * modules/lseek-tests (Makefile.am): Likewise.
42618         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42619         * modules/mbscasestr-tests (Makefile.am): Likewise.
42620         * modules/mbschr-tests (Makefile.am): Likewise.
42621         * modules/mbscspn-tests (Makefile.am): Likewise.
42622         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42623         * modules/mbspbrk-tests (Makefile.am): Likewise.
42624         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42625         * modules/mbsrchr-tests (Makefile.am): Likewise.
42626         * modules/mbsspn-tests (Makefile.am): Likewise.
42627         * modules/mbsstr-tests (Makefile.am): Likewise.
42628         * modules/printf-posix-tests (Makefile.am): Likewise.
42629         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42630         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42631         * modules/tsearch-tests (Makefile.am): Likewise.
42632         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42633         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42634         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42635         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42636         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42637         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42638         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42639         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42640         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42641         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42642         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42643         * modules/xstrtol-tests (Makefile.am): Likewise.
42644         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42645         * modules/yesno-tests (Makefile.am): Likewise.
42646
42647 2007-10-03  Bruno Haible  <bruno@clisp.org>
42648
42649         * modules/trunc-tests: New file.
42650         * tests/test-trunc.c: New file.
42651
42652         * modules/trunc: New file.
42653         * lib/trunc.c: New file.
42654         * m4/trunc.m4: New file.
42655         * lib/math.in.h (trunc): New declaration.
42656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42657         HAVE_DECL_TRUNC.
42658         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42659         HAVE_DECL_TRUNC.
42660         * doc/functions/trunc.texi: Mention the 'trunc' module.
42661
42662 2007-10-03  Bruno Haible  <bruno@clisp.org>
42663
42664         * tests/test-fpending.c: New file, mostly copied
42665         from coreutils/lib/t-fpending.c.
42666         * modules/fpending-tests: New file.
42667
42668 2007-10-03  Bruno Haible  <bruno@clisp.org>
42669
42670         Port the stdio extensions to QNX (untested).
42671         * lib/fseterr.c (fseterr): Add support for QNX.
42672         * lib/fbufmode.c (fbufmode): Likewise.
42673         * lib/freadable.c (freadable): Likewise.
42674         * lib/fwritable.c (fwritable): Likewise.
42675         * lib/freading.c (freading): Likewise.
42676         * lib/fwriting.c (fwriting): Likewise.
42677         * lib/freadahead.c (freadahed): Likewise.
42678         * lib/fpurge.c (fpurge): Likewise.
42679         * lib/fseeko.c (rpl_fseeko): Likewise.
42680
42681 2007-10-03  Bruno Haible  <bruno@clisp.org>
42682             Jim Meyering  <jim@meyering.net>
42683             Eric Blake  <ebb9@byu.net>
42684
42685         * doc/relocatable.texi: Use @command instead of @program.
42686
42687 2007-10-02  Jim Meyering  <jim@meyering.net>
42688
42689         Perform one more "_.h" -> ".in.h" substitution.
42690         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42691         instead of unistd_.h here, too.
42692
42693 2007-10-01  Bruno Haible  <bruno@clisp.org>
42694
42695         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42696         Needed for the alloca-opt module.
42697
42698 2007-09-30  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42701         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42702         alloca_.h.
42703         * lib/argz.in.h: Renamed from lib/argz_.h.
42704         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42705         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42706         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42707         byteswap_.h.
42708         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42709         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42710         dirent_.h.
42711         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42712         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42713         fcntl_.h.
42714         * lib/float.in.h: Renamed from lib/float_.h.
42715         * modules/float (Files, Makefile.am): Use float.in.h instead of
42716         float_.h.
42717         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42718         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42719         fnmatch_.h.
42720         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42721         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42722         getopt_.h.
42723         * lib/glob.in.h: Renamed from lib/glob_.h.
42724         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42725         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42726         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42727         iconv_.h.
42728         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42729         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42730         inttypes_.h.
42731         * lib/locale.in.h: Renamed from lib/locale_.h.
42732         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42733         locale_.h.
42734         * lib/math.in.h: Renamed from lib/math_.h.
42735         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42736         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42737         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42738         of netinet_in_.h. Add dependency.
42739         * lib/poll.in.h: Renamed from lib/poll_.h.
42740         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42741         * lib/search.in.h: Renamed from lib/search_.h.
42742         * modules/search (Files, Makefile.am): Use search.in.h instead of
42743         search_.h.
42744         * lib/signal.in.h: Renamed from lib/signal_.h.
42745         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42746         _signal.h.
42747         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42748         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42749         stdbool_.h.
42750         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42751         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42752         stdint_.h.
42753         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42754         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42755         stdio_.h.
42756         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42757         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42758         stdlib_.h.
42759         * lib/string.in.h: Renamed from lib/string_.h.
42760         * modules/string (Files, Makefile.am): Use string.in.h instead of
42761         string_.h.
42762         * doc/gnulib-tool.texi (Initial import): Update.
42763         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42764         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42765         of sys_select_.h. Add dependency.
42766         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42767         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42768         of sys_socket_.h.
42769         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42770         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42771         sys_stat_.h.
42772         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42773         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42774         sys_time_.h.
42775         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42776         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42777         sysexits_.h.
42778         * lib/time.in.h: Renamed from lib/time_.h.
42779         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42780         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42781         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42782         unistd_.h.
42783         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42784         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42785         wchar_.h.
42786         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42787         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42788         wctype_.h.
42789         * build-aux/bootstrap (slurp): Update.
42790         * lib/.cppi-disable: Update.
42791
42792 2007-09-30  Bruno Haible  <bruno@clisp.org>
42793
42794         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42795         Needed on BeOS.
42796
42797 2007-09-30  Bruno Haible  <bruno@clisp.org>
42798
42799         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42800
42801 2007-09-29  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42804
42805 2007-09-29  Bruno Haible  <bruno@clisp.org>
42806
42807         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42808         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42809         * build-aux/install-reloc: Compile also areadlink.c.
42810         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42811
42812 2007-09-29  Bruno Haible  <bruno@clisp.org>
42813
42814         * gnulib-tool (func_emit_initmacro_done): Indentation.
42815
42816 2007-09-29  Bruno Haible  <bruno@clisp.org>
42817
42818         * README: Add CVS checkout update instructions.
42819         Info from Bob Proulx <bob@proulx.com>.
42820
42821 2007-09-28  Eric Blake  <ebb9@byu.net>
42822
42823         Provide move-if-change.
42824         * build-aux/move-if-change: New file, based on best practice
42825         rather than any canonical upstream location.
42826
42827 2007-09-28  Jim Meyering  <jim@meyering.net>
42828
42829         Fix canonicalize loop-detection corner case.
42830         Do not attempt to stat the symlink values stored via seen_triple.
42831         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42832         on linux-2.6.18, (but not 2.6.22).
42833         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42834         triple_compare.  The former compares dev,ino,filename, while the latter
42835         would actually stat dirname(filename) when dev and ino were equal.
42836         * lib/hash-triple.c: Install <string.h>.
42837         (STREQ): Define.
42838         (triple_compare_ino_str): New function.
42839         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42840
42841 2007-09-28  Eric Blake  <ebb9@byu.net>
42842
42843         Enforce that AC_REPLACE_FUNCS files exist.
42844         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42845         override check for typos.
42846
42847         Fix test-closein on Solaris 10.
42848         * tests/test-closein.c (main): Don't assume stdin can be inherited
42849         closed on all systems.
42850         * tests/test-closein.sh: Likewise.
42851         Reported by Piotr Tarnowski.
42852
42853 2007-09-28  Jim Meyering  <jim@meyering.net>
42854
42855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42856
42857 2007-09-27  Jim Meyering  <jim@meyering.net>
42858
42859         canonicalize: Avoid a false-positive cycle failure.
42860         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42861         Sort.  Remove cycle-check.
42862         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42863         not cycle-check.h.
42864         (seen_triple): New function.
42865         (canonicalize_filename_mode): Use it instead of cycle-check.
42866         * tests/test-canonicalize.c: Add a test for this bug.
42867         * tests/test-canonicalize.sh: Set up and run the test.
42868
42869         New module, file-set, from coreutils.
42870         * modules/file-set: Define it.
42871         * lib/file-set.c, lib/file-set.h: Implement.
42872
42873         New module, hash-triple, from coreutils.
42874         * modules/hash-triple: Define it.
42875         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42876
42877 2007-09-25  Eric Blake  <ebb9@byu.net>
42878
42879         Fix strerror on Interix.
42880         * lib/string_.h (strerror): Declare replacement.
42881         * doc/functions/strerror.texi (strerror): Document the Interix
42882         shortcoming.
42883         * modules/string (Makefile.am): Support new hooks.
42884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42885         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42886         gl_FUNC_STRERROR_SEPARATE.
42887         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42888         * lib/strerror.c (rpl_strerror): Provide replacement.
42889         * modules/strerror (Depends-on): Add string.
42890         (configure.ac): Detect use of module.
42891         * tests/test-strerror.c: New file.
42892         * modules/strerror-tests: New test module.
42893         * modules/argp (Depends-on): Add strerror.
42894         * modules/error (Depends-on): Likewise.
42895         Reported by Martin Koeppe.
42896
42897 2007-09-24  Bruno Haible  <bruno@clisp.org>
42898
42899         * README: Update git instructions.
42900
42901 2007-09-24  Eric Blake  <ebb9@byu.net>
42902
42903         Revert fpending breakage from 2007-09-08.
42904         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42905         __fpending.c.
42906
42907 2007-09-24  Jim Meyering  <jim@meyering.net>
42908
42909         filenamecat.c: Add a test.
42910         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42911         showing how the function works when DIR is the empty string.
42912
42913 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42914
42915         * tests/test-canonicalize.sh: Turn on executable bit.
42916
42917 2007-09-19  Eric Blake  <ebb9@byu.net>
42918
42919         * README: Update CVS instructions.
42920
42921 2007-09-18  Bruno Haible  <bruno@clisp.org>
42922
42923         * modules/areadlink: New file.
42924         * lib/areadlink.h (areadlink): New declaration.
42925         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42926
42927 2007-09-17  Jim Meyering  <jim@meyering.net>
42928
42929         * lib/savewd.c (ESTALE) [!defined]: Define.
42930         Reported to be required on Interix by Martin Koeppe.
42931
42932 2007-09-17  Bruno Haible  <bruno@clisp.org>
42933
42934         * gnulib-tool (func_version): Use $version.
42935
42936 2007-09-16  Bruno Haible  <bruno@clisp.org>
42937
42938         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
42939         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
42940         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
42941         Reported by Greg Schafer <gschafer@zip.com.au>.
42942
42943 2007-09-15  Bruno Haible  <bruno@clisp.org>
42944
42945         * gnulib-tool (sed): Try a little harder to make bash understand the
42946         alias.
42947         Reported by Bruce Korb <bruce.korb@gmail.com>.
42948
42949 2007-09-13  Eric Blake  <ebb9@byu.net>
42950
42951         * ChangeLog: Remove conflict markers.
42952
42953 2007-09-13  Simon Josefsson  <simon@josefsson.org>
42954
42955         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
42956         Reported by Bruno Haible <bruno@clisp.org>.
42957
42958 2007-09-12  Bruno Haible  <bruno@clisp.org>
42959
42960         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
42961         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
42962         is not defined.
42963
42964 2007-09-12  Eric Blake  <ebb9@byu.net>
42965
42966         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
42967         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
42968         Autoconf definition.
42969         * modules/euidaccess (Depends-on): Add extensions, for
42970         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
42971         * modules/fnmatch (Depends-on): Likewise.
42972         * modules/getaddrinfo (Depends-on): Likewise.
42973         * modules/getdelim (Depends-on): Likewise.
42974         * modules/getline (Depends-on): Likewise.
42975         * modules/getsubopt (Depends-on): Likewise.
42976         * modules/gettext (Depends-on): Likewise.
42977         * modules/group-member (Depends-on): Likewise.
42978         * modules/mbchar (Depends-on): Likewise.
42979         * modules/memmem (Depends-on): Likewise.
42980         * modules/mempcpy (Depends-on): Likewise.
42981         * modules/memrchr (Depends-on): Likewise.
42982         * modules/pagealign_alloc (Depends-on): Likewise.
42983         * modules/readutmp (Depends-on): Likewise.
42984         * modules/stpcpy (Depends-on): Likewise.
42985         * modules/stpncpy (Depends-on): Likewise.
42986         * modules/strchrnul (Depends-on): Likewise.
42987         * modules/strndup (Depends-on): Likewise.
42988         * modules/strsep (Depends-on): Likewise.
42989         * modules/strverscmp (Depends-on): Likewise.
42990         * modules/vasprintf (Depends-on): Likewise.
42991         * modules/wcwidth (Depends-on): Likewise.
42992         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42993         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42994         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42997         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42998         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42999         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43000         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
43001         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
43002         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43003         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43004         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43005         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43006         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
43007         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43008         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43009         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43012         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43013         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43014         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43015         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
43016         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
43017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43018         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
43019         so that lock.m4 can be used in gettext without extensions module.
43020
43021 2007-09-11  Bruno Haible  <bruno@clisp.org>
43022
43023         * m4/isc-posix.m4: Remove file.
43024         Suggested by Eric Blake.
43025
43026 2007-09-11  Eric Blake  <ebb9@byu.net>
43027
43028         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
43029
43030 2007-09-10  Bruno Haible  <bruno@clisp.org>
43031
43032         * posix-modules: Fix typo in error message.
43033         Reported by Matt <mkraai@beckman.com>.
43034
43035 2007-09-09  Bruno Haible  <bruno@clisp.org>
43036
43037         * doc/functions/getdelim.texi: Update list of platforms lacking the
43038         function.
43039         * doc/functions/getline.texi: Likewise.
43040
43041 2007-09-09  Jim Meyering  <jim@meyering.net>
43042
43043         * lib/hash.c (hash_initialize): Detect calloc failure.
43044         Reported by Bruno Haible.
43045
43046 2007-09-09  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
43049         malloc or realloc fails.
43050
43051 2007-09-09  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/getcwd (Depends-on): Add malloc-posix.
43054         * modules/glob (Depends-on): Likewise.
43055         * modules/putenv (Depends-on): Likewise.
43056         * modules/strdup (Depends-on): Likewise.
43057         * modules/getdelim (Depends-on): Add realloc-posix.
43058         * modules/read-file (Depends-on): Likewise.
43059
43060 2007-09-09  Bruno Haible  <bruno@clisp.org>
43061
43062         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
43063         (gl_FUNC_MALLOC_POSIX): Require it.
43064         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
43065         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
43066         * modules/realloc (Files): Add m4/malloc.m4.
43067         * modules/calloc (Files): Likewise.
43068
43069 2007-09-09  Bruno Haible  <bruno@clisp.org>
43070
43071         * modules/malloc-posix: New file.
43072         * modules/malloc (Depends-on): Add malloc-posix.
43073         * lib/malloc.c: Include errno.h.
43074         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
43075         and a POSIX-compatible malloc into a single function. Set ENOMEM
43076         when returning NULL.
43077         * m4/malloc.m4: New file.
43078         * doc/functions/malloc.texi: Mention the malloc-posix module.
43079         * lib/stdlib_.h (malloc): New declaration.
43080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43081         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
43082         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
43083         and HAVE_MALLOC_POSIX.
43084
43085 2007-09-09  Bruno Haible  <bruno@clisp.org>
43086
43087         * modules/realloc-posix: New file.
43088         * modules/realloc (Depends-on): Add realloc-posix.
43089         * lib/realloc.c: Include errno.h.
43090         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
43091         and a POSIX-compatible realloc into a single function. Set ENOMEM
43092         when returning NULL.
43093         * m4/realloc.m4: New file.
43094         * doc/functions/realloc.texi: Mention the realloc-posix module.
43095         * lib/stdlib_.h (realloc): New declaration.
43096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43097         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
43098         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
43099         and HAVE_REALLOC_POSIX.
43100
43101 2007-09-09  Bruno Haible  <bruno@clisp.org>
43102
43103         * modules/calloc-posix: New file.
43104         * modules/calloc (Depends-on): Add calloc-posix.
43105         * lib/calloc.c: Include errno.h.
43106         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43107         and a POSIX-compatible calloc into a single function. Set ENOMEM
43108         when returning NULL.
43109         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43110         * doc/functions/calloc.texi: Mention the calloc-posix module.
43111         * lib/stdlib_.h (calloc): New declaration.
43112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43113         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43114         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43115         and HAVE_CALLOC_POSIX.
43116
43117 2007-09-09  Bruno Haible  <bruno@clisp.org>
43118
43119         Allow for modules to show an arbitrary notice.
43120         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43121         * gnulib-tool: New option --extract-notice.
43122         (func_usage): Document it.
43123         (sed_extract_prog): Update.
43124         (func_get_notice): New function.
43125         (func_modules_notice): New function.
43126         (func_import, func_create_testdir): Invoke it.
43127         Suggested by Jim Meyering.
43128
43129 2007-09-09  Bruno Haible  <bruno@clisp.org>
43130
43131         * gnulib-tool: New options --verbose, --quiet.
43132         (func_usage): Document them.
43133         (verbose): New variable.
43134         (func_execute_command): New function.
43135         (func_import): Don't show the module list and the file list if
43136         $verbose < 0.
43137         (func_create_testdir): Likewise. Use func_execute_command.
43138         (func_create_megatestdir): Use func_execute_command.
43139
43140 2007-09-08  Bruno Haible  <bruno@clisp.org>
43141
43142         * gnulib-tool (func_import): Prefer rsync over wget when available,
43143         for fetching the PO files.
43144
43145 2007-09-08  Bruno Haible  <bruno@clisp.org>
43146
43147         * posix-modules: New file. Portions copied from gnulib-tool.
43148         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43149
43150 2007-09-08  Jim Meyering  <jim@meyering.net>
43151
43152         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43153         * lib/fpending.h: Rename from __fpending.h.
43154         * lib/fpending.c: Rename from __fpending.c.
43155         Include "fpending.h", not "__fpending.h".
43156         * lib/__fpending.h, lib/__fpending.c: Remove files.
43157         * modules/fpending (Files): Reflect new file names.
43158         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43159
43160 2007-09-08  Bruno Haible  <bruno@clisp.org>
43161
43162         * m4/inttypes-h.m4: Remove stub file.
43163
43164 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43165
43166         * doc/headers/stdint.texi: Discuss #include_next issue.
43167
43168 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43169
43170         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43171
43172 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43173
43174         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43175         in variable name.
43176
43177 2007-09-03  Jim Meyering  <jim@meyering.net>
43178
43179         New module: git-version-gen.
43180         * modules/git-version-gen: New file.
43181
43182         Import changes from coreutils for bootstrap script.
43183
43184         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
43185
43186         bootstrap: uses rsync to download the .po files
43187         * build-aux/bootstrap (po_download_command_format): New global.
43188         (download_po_files): Use rsync.
43189         (update_po_files): Don't remove .po files after download,
43190         so future rsync runs can take advantage of the copies.
43191
43192         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
43193
43194         Solve the unnecessary-.po-file-regeneration problem once and for all.
43195         * build-aux/bootstrap (download_po_files): New function, renamed from
43196         get_translations.  Now, downloads, but doesn't update LINGUAS.
43197         (update_po_files): New function.
43198
43199         bootstrap: Ignore more.
43200         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
43201         uniwidth to e.g., lib/.gitignore.
43202         (slurp): Handle the sys_stat_.h -> sys mapping, too.
43203
43204         * build-aux/bootstrap: New setting: vc_ignore.
43205         (insert_sorted_if_absent): Create $file if absent.
43206         Adapt to new, possibly empty, list: $vc_ignore.
43207
43208         bootstrap: generate more ignorable names
43209         * build-aux/bootstrap (slurp): When generating ignorable names,
43210         also map .sin to .sed, .gperf to .c, and .y to .c.
43211
43212 2007-09-03  Jim Meyering  <jim@meyering.net>
43213
43214         * build-aux/git-version-gen: New file, from coreutils.  For details, see
43215         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
43216
43217 2007-09-02  Bruno Haible  <bruno@clisp.org>
43218
43219         Fix mis-recognition of 'mcs' on QNX 6.
43220         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
43221         output contains the string "Mono".
43222         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
43223         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
43224
43225 2007-09-01  Bruno Haible  <bruno@clisp.org>
43226
43227         Fix collision between uniwidth/* and linebreak modules.
43228         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
43229         u32_width): Remove declarations.
43230         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
43231         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
43232         streq3, streq2, streq1, streq0): Remove functions.
43233         (STREQ): Remove macro.
43234         (is_cjk_encoding): Remove function.
43235         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
43236         (uc_width, u8_width, u16_width, u32_width): Remove functions.
43237         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
43238         * NEWS: Document the change.
43239
43240 2007-09-01  Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/streq.h: Add double-inclusion guard.
43243
43244 2007-09-01  Karl Berry  <karl@gnu.org>
43245
43246         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
43247
43248 2007-08-28  Jim Meyering  <jim@meyering.net>
43249
43250         Rename mreadlink_with_size to areadlink_with_size.
43251         * NEWS: Document the change.
43252         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
43253         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
43254         * lib/mreadlink.h: Rename this to...
43255         * lib/areadlink.h: ...this.
43256         * modules/mreadlink-with-size: Rename this to...
43257         * modules/areadlink-with-size: ...this.
43258         * lib/canonicalize.c: Reflect the renaming.
43259         * modules/canonicalize: Likewise.
43260
43261 2007-08-26  Bruno Haible  <bruno@clisp.org>
43262
43263         * gnulib-tool (func_import): When deciding which files to remove,
43264         consider also dangling symbolic links.
43265         Reported by Eric Blake.
43266
43267 2007-08-26  Bruno Haible  <bruno@clisp.org>
43268
43269         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
43270
43271 2007-08-23  Simon Josefsson  <simon@josefsson.org>
43272
43273         * lib/readline.c: Don't include getline.h, the prototype is now
43274         found in stdio.h.
43275
43276 2007-08-23  Jim Meyering  <jim@meyering.net>
43277
43278         Getdelim touchup.
43279         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
43280         around the funlockfile call, since funlockfile never sets errno.
43281         Don't set errno upon failed realloc.
43282
43283 2007-08-22  Eric Blake  <ebb9@byu.net>
43284
43285         Getline touchups.
43286         * lib/getdelim.c (getdelim): Revert regression that required *n to
43287         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
43288         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
43289         getdelim, rather than whether implementation is missing.
43290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
43291         * lib/stdio_.h (getline): Also declare if replacement is
43292         required.
43293         * doc/functions/getdelim.texi: New file.
43294         * doc/functions/getline.texi: Likewise.
43295         * doc/gnulib.texi (Function Substitutes): Add new files.
43296         Reported by Bruno Haible.
43297
43298 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
43299
43300         * users.txt: Add Guile.
43301
43302 2007-08-22  Eric Blake  <ebb9@byu.net>
43303
43304         * tests/test-getdelim.c (main): Use remove, not unlink.
43305         * tests/test-getline.c (main): Likewise.
43306
43307         Move getline and getdelim into stdio.h, per POSIX 200x.
43308         * modules/getline (Files): Remove getline.h.
43309         (Depends-on): Add stdio.
43310         (configure.ac): Add module indicator.
43311         * modules/getdelim (Files): Remove getdelim.h.
43312         (Depends-on): Add stdio.
43313         (configure.ac): Add module indicator.
43314         * modules/stdio (Makefile.am): Work with new indicators.
43315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
43317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43318         * lib/getdelim.h: Delete.
43319         * lib/getline.h: Delete.
43320         * lib/stdio_.h (getdelim, getline): Declare.
43321         * modules/getdelim-tests: New module.
43322         * modules/getline-tests: Likewise.
43323         * tests/test-getdelim.c: New file.
43324         * tests/test-getline.c: Likewise.
43325         * NEWS: Document the change.
43326         * lib/getline.c: Update choice of header.
43327         * lib/csharpcomp.c: Likewise.
43328         * lib/getpass.c: Likewise.
43329         * lib/javacomp.c: Likewise.
43330         * lib/javaversion.c: Likewise.
43331         * lib/yesno.c: Likewise.
43332         * lib/getdelim.c: Likewise.
43333         (getdelim): Set errno on failure, and avoid memory leak.
43334
43335 2007-08-19  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/closein (Depends-on): Add freadahead.
43338         * lib/closein.c: Include freadahead.h.
43339         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
43340         is zero.
43341
43342 2007-08-19  Bruno Haible  <bruno@clisp.org>
43343
43344         * modules/freadahead-tests: New file.
43345         * tests/test-freadahead.sh: New file.
43346         * tests/test-freadahead.c: New file.
43347
43348         * modules/freadahead: New file.
43349         * lib/freadahead.h: New file.
43350         * lib/freadahead.c: New file.
43351         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
43352         fbufmode, fpurge, freadable, fwritable.
43353
43354 2007-08-19  Eric Blake  <ebb9@byu.net>
43355
43356         Test yesno in combination with closein.
43357         * lib/yesno.c (yesno): Document use of stdin.
43358         * modules/yesno-tests (Files): New module.
43359         * tests/test-yesno.c (main): New file.
43360         * tests/test-yesno.sh: Likewise.
43361
43362 2007-08-19  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
43365         * lib/fseeko.c (rpl_fseeko): Likewise.
43366         * lib/fseterr.c (fseterr): Likewise.
43367
43368 2007-08-19  Bruno Haible  <bruno@clisp.org>
43369
43370         * tests/test-lseek.c (main): Disable a test for BeOS.
43371         * doc/functions/lseek.texi: Document the BeOS bug.
43372
43373 2007-08-19  Bruno Haible  <bruno@clisp.org>
43374             Eric Blake  <ebb9@byu.net>
43375
43376         * lib/lseek.c: Include <sys/stat.h>.
43377         (rpl_lseek): Add workaround code also for Unix platforms.
43378         Needed for BeOS.
43379         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
43380         * doc/functions/lseek.texi: Document BeOS definiency.
43381
43382 2007-08-18  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/fstrcmp-tests: New file.
43385         * tests/test-fstrcmp.c: New file.
43386
43387 2007-08-18  Bruno Haible  <bruno@clisp.org>
43388
43389         * modules/fstrcmp: New file, from GNU gettext with modifications.
43390         * lib/fstrcmp.h: New file, from GNU gettext.
43391         * lib/fstrcmp.c: New file, from GNU gettext.
43392         * MODULES.html.sh (String handling): Add fstrcmp.
43393
43394 2007-08-18  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
43397         'bool'.
43398         (diag, compareseq): Remove const from the ctxt argument.
43399         (USE_HEURISTIC): Undefine at the end.
43400
43401 2007-08-18  Jim Meyering  <jim@meyering.net>
43402
43403         New file: lib/idcache.h
43404         * NEWS: Mention the addition.
43405         * modules/idcache (Files): Add lib/idcache.h
43406         * lib/idcache.c: Include "idcache.h".
43407         Don't include <sys/types.h>.
43408         Add a FIXME comment.
43409         Move file-scoped "static" declarations to the top.
43410         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
43411
43412 2007-08-17  Bruno Haible  <bruno@clisp.org>
43413         and Paul Eggert  <eggert@cs.ucla.edu>
43414
43415         * MODULES.html.sh: Add diffseq.
43416         * modules/diffseq: New file.
43417         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
43418         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
43419
43420 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43421
43422         Import changes from coreutils for bootstrap script.
43423
43424         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
43425
43426         * build-aux/bootstrap (slurp): Work even in environments where
43427         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
43428         current code does not slurp files whose names start with ".", and
43429         this looks like it might be a troublesome area.
43430
43431         2007-07-11  Jim Meyering  <jim@meyering.net>
43432
43433         If there's a GPL vN copyright comment, require that N == 3.
43434
43435         2007-07-08  Jim Meyering  <jim@meyering.net>
43436
43437         Run the coreutils-specific code only if tests/Makefile.am.in exists.
43438         * build-aux/bootstrap (mam_template): Move definition out of loop.
43439
43440         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
43441
43442         * build-aux/bootstrap (symlink_to_dir): Rename function from
43443         symlink_to_gnulib.  Add a directory parameter.  Update all
43444         callers.
43445         (cp_mark_as_generated): Also check for -- and link to -- files in
43446         gl/.
43447
43448         2007-07-08  Jim Meyering  <jim@meyering.net>
43449
43450         Adapt to deeper hierarchy in gnulib.
43451         * build-aux/bootstrap (symlink_to_dir): If the destination
43452         directory doesn't exist, create it. This is required at least for
43453         "lib/uniwidth/cjk.h".
43454
43455         2007-05-15  Jim Meyering  <jim@meyering.net>
43456
43457         * build-aux/bootstrap: Now that generated Makefile.am files
43458         are no longer under version control, they must be created at
43459         bootstrap time.
43460
43461 2007-08-14  Ben Pfaff  <blp@gnu.org>
43462
43463         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
43464
43465 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43466
43467         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
43468         given the changes below.
43469         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
43470         even on hosts that have padding bits beyond the supported 64.
43471
43472 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43473
43474         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
43475         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
43476         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
43477         depends on it.
43478         (xstrtol_error): Remove.
43479         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
43480         but with a different signature.
43481         (ATTRIBUTE_NORETURN, __attribute__): New macros.
43482         * lib/xstrtol-error.c: Include exitfail.h.
43483         (xstrtol_fatal): New function, with a different signature from the
43484         old xstrtol_error, so that the caller need not worry about passing
43485         in an exit status, or about storage management of the option argument.
43486         (xstrtol_error): Now a static function.  Redo signature to
43487         implement xstrtol_fatal.  Output the correct number of hyphens in
43488         front of the option so that the caller need not worry about
43489         storage management.
43490         (N_): New macro.
43491         (_): Remove; not used now.
43492         * modules/xstrtol: Depend on getopt.
43493         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
43494         of old STRTOL_FATAL_ERROR macro.
43495         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
43496         of test program.
43497         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43498         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43499
43500 2007-08-08  Eric Blake  <ebb9@byu.net>
43501
43502         * lib/xstrtol-error.c: Add missing include.
43503
43504         Move xstrtol messages into gnulib domain, when --pobase is used.
43505         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43506         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43507         * modules/xstrtol (Files): Distribute new file.
43508         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43509         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43510         * tests/test-xstrtol.c: ...into new file.
43511         * tests/test-xstrtoul.c: Also test xstrtoul.
43512         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43513         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43514         * tests/test-xstrtol.sh: Drive the tests.
43515         * tests/test-xstrtoimax.sh: Likewise.
43516         * tests/test-xstrtoumax.sh: Likewise.
43517         * modules/xstrtol-tests: New module.
43518         * modules/xstrtoimax-tests: Likewise.
43519         * modules/xstrtoumax-tests: Likewise.
43520
43521 2007-08-08  Jim Meyering  <jim@meyering.net>
43522
43523         New function: mfile_name_concat.
43524         * lib/filenamecat.c (mfile_name_concat): New function, just like
43525         file_name_concat, but return NULL upon failure rather than exiting
43526         with a diagnostic.
43527         * lib/filenamecat.h: Declare it.
43528
43529 2007-08-07  Bruno Haible  <bruno@clisp.org>
43530
43531         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43532         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43533         warning from gcc.
43534         Reported by Eric Blake.
43535
43536 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43537
43538         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43539         * modules/crypto/arcfour (License): Likewise.
43540         * modules/crypto/des-tests (License): Likewise.
43541         * modules/crypto/gc-arctwo-tests (License): Likewise.
43542         * modules/crypto/gc-des-tests (License): Likewise.
43543         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43544         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43545         * modules/crypto/gc-md2-tests (License): Likewise.
43546         * modules/crypto/gc-md4-tests (License): Likewise.
43547         * modules/crypto/gc-md5-tests (License): Likewise.
43548         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43549         * modules/crypto/gc-rijndael-tests (License): Likewise.
43550         * modules/crypto/gc-sha1-tests (License): Likewise.
43551         * modules/crypto/gc-tests (License): Likewise.
43552         * modules/crypto/hmac-md5 (License): Likewise.
43553         * modules/crypto/hmac-sha1 (License): Likewise.
43554         * modules/crypto/md2-tests (License): Likewise.
43555         * modules/crypto/md4-tests (License): Likewise.
43556         * modules/crypto/md5 (License): Likewise.
43557         * modules/crypto/rijndael (License): Likewise.
43558         * modules/crypto/sha1 (License): Likewise.
43559         * modules/memxor (License): Likewise.
43560
43561 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43562         and Bruno Haible  <bruno@clisp.org>
43563
43564         * NEWS: Describe interface changes to human, xstrtol.
43565         * lib/human.h: Include <xstrtol.h>.
43566         (human_options): Return enum strtol_error, not int.  Remove
43567         bool arg; take int * instead.
43568         * lib/human.c: Don't include "gettext.h".
43569         (_): Remove; no longer used.
43570         Don't include <xstrtol.h>, since human.h does it.
43571         (human_options): Adjust to abovementioned interface changes.
43572         Do not report error to stderr; that's now the caller's
43573         responsibility.
43574         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43575         interface change.
43576         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43577         Str, Argument_type_string.  All uses changed.  Put " argument"
43578         in diagnostics to make them clearer.  Change wording of suffix
43579         message for clarity.
43580         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43581         Argument_type_string.
43582         (STRTOL_FATAL_WARN): Remove; no longer used.
43583         * modules/human (Depends-on): Remove gettext-h.
43584
43585 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43586
43587         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43588
43589 2007-07-31  Bruno Haible  <bruno@clisp.org>
43590
43591         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43592         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43593         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43594
43595 2007-07-31  Bruno Haible  <bruno@clisp.org>
43596
43597         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43598         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43599
43600 2007-07-30  Bruno Haible  <bruno@clisp.org>
43601
43602         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43603         * modules/c-ctype (License): Likewise.
43604         * modules/c-strcase (License): Likewise.
43605         * modules/check-version (License): Likewise.
43606         * modules/iconv (License): Likewise.
43607         * modules/iconv_open (License): Likewise.
43608         * modules/read-file (License): Likewise.
43609         * modules/striconv (License): Likewise.
43610         * modules/strverscmp (License): Likewise.
43611         * modules/vasprintf (License): Likewise.
43612         * modules/crypto/des (License): Likewise.
43613         * modules/crypto/gc (License): Likewise.
43614         * modules/crypto/gc-arcfour (License): Likewise.
43615         * modules/crypto/gc-arctwo (License): Likewise.
43616         * modules/crypto/gc-des (License): Likewise.
43617         * modules/crypto/gc-hmac-md5 (License): Likewise.
43618         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43619         * modules/crypto/gc-md2 (License): Likewise.
43620         * modules/crypto/gc-md4 (License): Likewise.
43621         * modules/crypto/gc-md5 (License): Likewise.
43622         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43623         * modules/crypto/gc-random (License): Likewise.
43624         * modules/crypto/gc-rijndael (License): Likewise.
43625         * modules/crypto/gc-sha1 (License): Likewise.
43626         * modules/crypto/md2 (License): Likewise.
43627         * modules/crypto/md4 (License): Likewise.
43628
43629 2007-07-30  Jim Meyering  <jim@meyering.net>
43630
43631         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43632         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43633         it has valid stat data.  This bug would cause du not to count the
43634         sizes of inaccessible directories.
43635         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43636         in <http://bugzilla.redhat.com/250077>.
43637
43638 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43639             Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43642         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43643         #include_next, gives a diagnostic about it, but reports no error in
43644         the exit code.
43645         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43646
43647 2007-07-24  Ben Pfaff  <blp@gnu.org>
43648
43649         Improve name: "count-one-bits" is better than "popcount".
43650         * MODULES.html.sh: Update name.
43651         * lib/popcount.h: Renamed lib/count-one-bits.h.
43652         (popcount): Renamed count_one_bits.
43653         (popcountl): Renamed count_one_bits_l.
43654         (popcountll): Renamed count_one_bits_ll.
43655         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43656         * modules/popcount: Renamed module/count-one-bits.
43657         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43658         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43659
43660 2007-07-23  Ben Pfaff  <blp@gnu.org>
43661
43662         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43663         better code generation, and add U to large constants to avoid
43664         warnings, in non-GCC case.
43665         Suggested by Bruno Haible.
43666
43667 2007-07-23  Ben Pfaff  <blp@gnu.org>
43668
43669         * lib/popcount.h: Use verify_true instead of if...abort.
43670         * modules/popcount: Depend on verify module.
43671         Suggested by Jim Meyering.
43672
43673 2007-07-23  Bruno Haible  <bruno@clisp.org>
43674
43675         * gnulib-tool (func_import): Create a .cvsignore file also when the
43676         directory is not yet in CVS but the toplevel directory is. When
43677         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43678         Reported by Karl Berry.
43679
43680 2007-07-22  Ben Pfaff  <blp@gnu.org>
43681
43682         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43683         case.
43684         Suggested by Eric Blake.
43685
43686 2007-07-22  Ben Pfaff  <blp@gnu.org>
43687
43688         New module: popcount.
43689         * MODULES.html.sh: Add popcount.
43690         * modules/popcount: New file.
43691         * modules/popcount-tests: New file.
43692         * tests/test-popcount.c: New file.
43693         * lib/popcount.h: New file.
43694         * m4/popcount.m4: New file.
43695
43696 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43697
43698         * build-aux/announce-gen: Update to GPLv3.
43699
43700         * build-aux/config.guess: Update from config.
43701
43702 2007-07-21  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43705         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43706
43707 2007-07-20  Jim Meyering  <jim@meyering.net>
43708
43709         * check-module: Diagnose a self-dependency.
43710
43711 2007-07-19  Bruno Haible  <bruno@clisp.org>
43712
43713         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43714         empty.
43715         Reported by Eric Blake.
43716
43717 2007-07-18  Bruno Haible  <bruno@clisp.org>
43718
43719         * gnulib-tool: New options --po-base, --po-domain.
43720         (func_usage): Document them.
43721         (pobase, po_domain): New variables.
43722         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43723         DEFAULT_TEXT_DOMAIN.
43724         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43725         (func_import): Consider pobase and po_domain. Create a po/ directory.
43726         (func_create_testdir): Set pobase and po_domain to empty.
43727         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43728         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43729
43730 2007-07-18  Bruno Haible  <bruno@clisp.org>
43731
43732         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43733         EXTRA_DIST augmentation for files in build-aux/.
43734
43735 2007-07-16  Bruno Haible  <bruno@clisp.org>
43736
43737         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43738         * modules/getdelim (License): Likewise.
43739
43740 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43741
43742         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43743         * modules/d-type (License): Likewise.
43744         * modules/extensions (License): Likewise.
43745         * modules/fnmatch (License): Likewise.
43746         * modules/fseeko (License): Likewise.
43747         * modules/getaddrinfo (License): Likewise.
43748         * modules/getline (License): Likewise.
43749         * modules/getlogin_r (License): Likewise.
43750         * modules/getpass (License): Likewise.
43751         * modules/gettimeofday (License): Likewise.
43752         * modules/glob (License): Likewise.
43753         * modules/inet_ntop (License): Likewise.
43754         * modules/malloc (License): Likewise.
43755         * modules/malloca (License): Likewise.
43756         * modules/memmem (License): Likewise.
43757         * modules/mempcpy (License): Likewise.
43758         * modules/memset (License): Likewise.
43759         * modules/minmax (License): Likewise.
43760         * modules/mktime (License): Likewise.
43761         * modules/netinet_in (License): Likewise.
43762         * modules/pathmax (License): Likewise.
43763         * modules/poll (License): Likewise.
43764         * modules/regex (License): Likewise.
43765         * modules/snprintf (License): Likewise.
43766         * modules/stdbool (License): Likewise.
43767         * modules/stdint (License): Likewise.
43768         * modules/stdio (License): Likewise.
43769         * modules/strcase (License): Likewise.
43770         * modules/strcasestr (License): Likewise.
43771         * modules/strdup (License): Likewise.
43772         * modules/string (License): Likewise.
43773         * modules/strndup (License): Likewise.
43774         * modules/strnlen (License): Likewise.
43775         * modules/strpbrk (License): Likewise.
43776         * modules/strptime (License): Likewise.
43777         * modules/strsep (License): Likewise.
43778         * modules/sys_select (License): Likewise.
43779         * modules/sys_socket (License): Likewise.
43780         * modules/sys_stat (License): Likewise.
43781         * modules/sys_time (License): Likewise.
43782         * modules/time (License): Likewise.
43783         * modules/time_r (License): Likewise.
43784         * modules/timegm (License): Likewise.
43785         * modules/unistd (License): Likewise.
43786         * modules/vsnprintf (License): Likewise.
43787         * modules/wctype (License): Likewise.
43788
43789 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43790
43791         * modules/argz (License): LGPLv2+.
43792
43793 2007-07-15  Karl Berry  <karl@gnu.org>
43794
43795         * doc/gnulib.texi: revise node structure per new fdl.texi.
43796
43797 2007-07-14  Bruno Haible  <bruno@clisp.org>
43798
43799         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43800         the output file.
43801         * lib/uniname/uninames.h: Regenerated.
43802
43803 2007-07-14  Karl Berry  <karl@gnu.org>
43804
43805         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43806         omitting sectioning and index commands.
43807
43808 2007-07-13  Bruno Haible  <bruno@clisp.org>
43809
43810         New gnulib-tool option --more-symlinks.
43811         * gnulib-tool (func_usage): Document --more-symlinks.
43812         (do_copyrights): New variable.
43813         Recognize option --more-symlinks.
43814         (func_import): Don't add a copyright notice transform to
43815         sed_transform_lib_file if do_copyrights is empty.
43816
43817 2007-07-13  Bruno Haible  <bruno@clisp.org>
43818
43819         * lib/vasnprintf.c (decimal_point_char): Define also if
43820         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43821         && !NEED_PRINTF_DIRECTIVE_A.
43822         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43823         Gary V. Vaughan <gary@gnu.org>.
43824
43825 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43826
43827         * lib/inttypes_.h: Undo previous change, since it was fixed
43828         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43829
43830 2007-07-13  Bruno Haible  <bruno@clisp.org>
43831
43832         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43833         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43834
43835 2007-07-13  Jim Meyering  <jim@meyering.net>
43836
43837         df: Don't fail for Tru64's "file-on-file mount".
43838         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43839         so we fall through and use statfs instead.  Details here:
43840         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43841         Reported by Albert Chin.
43842
43843 2007-07-13  Bruno Haible  <bruno@clisp.org>
43844
43845         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43846         * modules/configmake (License): Likewise.
43847         * modules/gettext (License): Likewise.
43848         * modules/gettext-h (License): Likewise.
43849         * modules/include_next (License): Likewise.
43850         * modules/link-warning (License): Likewise.
43851         * modules/localcharset (License): Likewise.
43852         * modules/localename (License): Likewise.
43853         * modules/lock (License): Likewise.
43854         * modules/relocatable-lib-lgpl (License): Likewise.
43855         * modules/size_max (License): Likewise.
43856         * modules/vasnprintf (License): Likewise.
43857         * modules/wchar (License): Likewise.
43858         * modules/xsize (License): Likewise.
43859
43860 2007-07-13  Bruno Haible  <bruno@clisp.org>
43861
43862         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43863         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43864
43865 2007-07-12  Bruno Haible  <bruno@clisp.org>
43866
43867         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43868         in the modules files.
43869
43870 2007-07-11  Karl Berry  <karl@gnu.org>
43871
43872         * MODULES.html.sh (func_module): use
43873          sed -e '\|^'"${includefile}"'$|d'
43874          instead of /.../d, to avoid errors on $includefile's containing /.
43875
43876 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43877
43878         * gnulib-tool (func_import): Avoid duplication of --avoid
43879         statements
43880         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43881         names to `_' in variable names.
43882
43883 2007-07-10  Eric Blake  <ebb9@byu.net>
43884
43885         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43886         * NEWS: Document this change.
43887
43888 2007-07-08  Bruno Haible  <bruno@clisp.org>
43889
43890         Update to Unicode 5.0.
43891         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43892         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43893         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43894         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43895         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43896         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43897         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43898         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43899         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43900         U+10A3F, U+1D242..U+1D244.
43901         (nonspacing_table_ind): Update.
43902         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43903         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43904
43905 2007-07-08  Bruno Haible  <bruno@clisp.org>
43906
43907         Update to Unicode 5.0.
43908         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43909         code transform. Extend the name index field of unicode_name_to_code and
43910         unicode_code_to_name from 16 to 24 bits.
43911         * lib/uniname/uniname.c (unicode_character_name,
43912         unicode_name_character): Add the range 0x12xxx to the code transform.
43913         * lib/uniname/uninames.h: Regenerated.
43914         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43915
43916 2007-07-07  Bruno Haible  <bruno@clisp.org>
43917
43918         * modules/wcwidth-tests: New file.
43919         * tests/test-wcwidth.c: New file.
43920
43921         Work around MacOS X wcwidth() bug.
43922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43923         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43924         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43925         original wcwidth in non-UTF-8 locales.
43926         * modules/wcwidth (Depends-on): Add localcharset, streq,
43927         uniwidth/width.
43928         * doc/functions/wcwidth.texi: Update.
43929
43930 2007-07-07  Bruno Haible  <bruno@clisp.org>
43931
43932         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
43933         (wcwidth): New declaration.
43934         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
43935         macros.
43936         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
43937         here. Prepare for creating <wchar.h> unconditionally.
43938         * modules/wchar (Depends-on): Add link-warning.
43939         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
43940         REPLACE_WCWIDTH, and GL_LINK_WARNING.
43941         * lib/wcwidth.h: Remove file.
43942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
43943         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
43944         * modules/wcwidth (Files): Remove lib/wcwidth.h.
43945         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
43946         (Include): Replace wcwidth.h with <wchar.h>.
43947         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
43948         * lib/mbchar.h: Don't include wcwidth.h.
43949         * lib/mbswidth.c: Likewise.
43950         * NEWS: Mention the change.
43951
43952 2007-07-07  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
43955         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
43956         definition with an external declaration.
43957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
43958         defined as a function. Remove AC_C_INLINE requirement.
43959         * modules/wcwidth (Files): Add lib/wcwidth.c.
43960         (Makefile.am): Remove redundant statement.
43961
43962 2007-07-07  Bruno Haible  <bruno@clisp.org>
43963
43964         * MODULES.html.sh (Unicode string functions): Add the new modules.
43965
43966         * tests/uniwidth/test-u32-strwidth.c: New file.
43967         * modules/uniwidth/u32-strwidth-tests: New file.
43968
43969         * lib/uniwidth/u32-strwidth.c: New file.
43970         * modules/uniwidth/u32-strwidth: New file.
43971
43972         * tests/uniwidth/test-u16-strwidth.c: New file.
43973         * modules/uniwidth/u16-strwidth-tests: New file.
43974
43975         * lib/uniwidth/u16-strwidth.c: New file.
43976         * modules/uniwidth/u16-strwidth: New file.
43977
43978         * tests/uniwidth/test-u8-strwidth.c: New file.
43979         * modules/uniwidth/u8-strwidth-tests: New file.
43980
43981         * lib/uniwidth/u8-strwidth.c: New file.
43982         * modules/uniwidth/u8-strwidth: New file.
43983
43984         * tests/uniwidth/test-u32-width.c: New file.
43985         * modules/uniwidth/u32-width-tests: New file.
43986
43987         * lib/uniwidth/u32-width.c: New file.
43988         * modules/uniwidth/u32-width: New file.
43989
43990         * tests/uniwidth/test-u16-width.c: New file.
43991         * modules/uniwidth/u16-width-tests: New file.
43992
43993         * lib/uniwidth/u16-width.c: New file.
43994         * modules/uniwidth/u16-width: New file.
43995
43996         * tests/uniwidth/test-u8-width.c: New file.
43997         * modules/uniwidth/u8-width-tests: New file.
43998
43999         * lib/uniwidth/u8-width.c: New file.
44000         * modules/uniwidth/u8-width: New file.
44001
44002         * tests/uniwidth/test-uc_width.c: New file.
44003         * modules/uniwidth/width-tests: New file.
44004
44005         * lib/uniwidth/width.c: New file, from GNU libiconv.
44006         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
44007         * modules/uniwidth/width: New file.
44008
44009         * lib/uniwidth.h: New file, from GNU libiconv.
44010         * modules/uniwidth/base: New file.
44011
44012 2007-07-07  Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/uniname.h: New file, from GNU gettext.
44015         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
44016         * lib/uniname/uninames.h: New file, from GNU gettext.
44017         * lib/uniname/uniname.c: New file, from GNU gettext.
44018         * tests/uniname/test-uninames.sh: New file.
44019         * tests/uniname/test-uninames.c: New file, from GNU gettext.
44020         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
44021         * modules/uniname/base: New file.
44022         * modules/uniname/uniname: New file.
44023         * modules/uniname/uniname-tests: New file.
44024         * MODULES.html.sh (Unicode string functions): Add the new modules.
44025
44026 2007-07-06  Bruno Haible  <bruno@clisp.org>
44027
44028         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
44029
44030 2007-07-06  Bruno Haible  <bruno@clisp.org>
44031
44032         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
44033         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
44034         includes <cygwin/sys_time.h> which includes <sys/select.h> which
44035         include <sys/time.h>.
44036         Reported by Eric Blake.
44037
44038 2007-07-06  Eric Blake  <ebb9@byu.net>
44039
44040         Fix testing canonicalize on cygwin.
44041         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44042         Revert patch from 2007-06-19.
44043         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
44044         canonicalize module is also in use.
44045         * tests/test-canonicalize.c: New file.
44046         * tests/test-canonicalize.sh: Likewise.
44047         * modules/canonicalize-tests: Likewise.
44048
44049 2007-07-06  Jim Meyering  <jim@meyering.net>
44050
44051         * lib/getugroups.c (getugroups): Detect getgrent failure.
44052         Adjust comment to reflect reality: this function may return -1.
44053
44054 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44055
44056         * build-aux/bootstrap (TP_URL,get_translations): Update to use
44057         the new TP address.
44058         (usage): Fix typo
44059         (gnulib_mk): New variable.
44060
44061 2007-07-05  Jim Meyering  <jim@meyering.net>
44062
44063         Don't let endgrent clobber errno, no matter how improbable.
44064         * lib/getugroups.c (getugroups): Save and restore errno around
44065         endgrent call.
44066
44067         Close the group DB even when failing with 2^31 or more members.
44068         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
44069
44070 2007-07-04  Jim Meyering  <jim@meyering.net>
44071
44072         * lib/getugroups.h: New file.
44073         * lib/getugroups.c: Include "getugroups.h".
44074         Remove uses of "register" keyword.
44075         Move local variable, "cp", down into scope where used.
44076         Give "username" parameter the "const" attribute.
44077         * modules/getugroups (Files): Add lib/getugroups.h
44078
44079 2007-07-04  Karl Berry  <karl@gnu.org>
44080
44081         * MODULES.html.sh (func_all_modules): Complete rename of
44082         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
44083
44084 2007-07-02  Bruno Haible  <bruno@clisp.org>
44085
44086         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
44087         mode, when inttypes.h comes from gnulib.
44088         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44089
44090 2007-07-02  Simon Josefsson  <simon@josefsson.org>
44091
44092         * NEWS: Mention lgpl module name change.
44093
44094         * modules/lgpl-2.1: Renamed from lgpl.
44095
44096         * NEWS: Mention gpl module name change.
44097
44098         * modules/gpl-3.0: New file, based on gpl-2.0.
44099
44100         * modules/gpl-2.0: Renamed from gpl.
44101
44102         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44103         doc/gpl-2.0.texi.
44104
44105 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44106
44107         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44108         #define __STDC_LIMIT_MACROS temporarily while including
44109         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44110         Problem reported by Joel E. Denny in
44111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44112
44113 2007-07-01  Bruno Haible  <bruno@clisp.org>
44114
44115         * lib/unistdio.h: New file.
44116         * lib/unistdio/u-asnprintf.h: New file.
44117         * lib/unistdio/u-asprintf.h: New file.
44118         * lib/unistdio/u-printf-args.c: New file.
44119         * lib/unistdio/u-printf-args.h: New file.
44120         * lib/unistdio/u-printf-parse.h: New file.
44121         * lib/unistdio/u-snprintf.h: New file.
44122         * lib/unistdio/u-sprintf.h: New file.
44123         * lib/unistdio/u-vasprintf.h: New file.
44124         * lib/unistdio/u-vsnprintf.h: New file.
44125         * lib/unistdio/u-vsprintf.h: New file.
44126         * lib/unistdio/ulc-asnprintf.c: New file.
44127         * lib/unistdio/ulc-asprintf.c: New file.
44128         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44129         * lib/unistdio/ulc-printf-parse.c: New file.
44130         * lib/unistdio/ulc-snprintf.c: New file.
44131         * lib/unistdio/ulc-sprintf.c: New file.
44132         * lib/unistdio/ulc-vasnprintf.c: New file.
44133         * lib/unistdio/ulc-vasprintf.c: New file.
44134         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44135         * lib/unistdio/ulc-vsnprintf.c: New file.
44136         * lib/unistdio/ulc-vsprintf.c: New file.
44137         * lib/unistdio/u8-asnprintf.c: New file.
44138         * lib/unistdio/u8-asprintf.c: New file.
44139         * lib/unistdio/u8-printf-parse.c: New file.
44140         * lib/unistdio/u8-snprintf.c: New file.
44141         * lib/unistdio/u8-sprintf.c: New file.
44142         * lib/unistdio/u8-vasnprintf.c: New file.
44143         * lib/unistdio/u8-vasprintf.c: New file.
44144         * lib/unistdio/u8-vsnprintf.c: New file.
44145         * lib/unistdio/u8-vsprintf.c: New file.
44146         * lib/unistdio/u8-u8-asnprintf.c: New file.
44147         * lib/unistdio/u8-u8-asprintf.c: New file.
44148         * lib/unistdio/u8-u8-snprintf.c: New file.
44149         * lib/unistdio/u8-u8-sprintf.c: New file.
44150         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44151         * lib/unistdio/u8-u8-vasprintf.c: New file.
44152         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44153         * lib/unistdio/u8-u8-vsprintf.c: New file.
44154         * lib/unistdio/u16-asnprintf.c: New file.
44155         * lib/unistdio/u16-asprintf.c: New file.
44156         * lib/unistdio/u16-printf-parse.c: New file.
44157         * lib/unistdio/u16-snprintf.c: New file.
44158         * lib/unistdio/u16-sprintf.c: New file.
44159         * lib/unistdio/u16-vasnprintf.c: New file.
44160         * lib/unistdio/u16-vasprintf.c: New file.
44161         * lib/unistdio/u16-vsnprintf.c: New file.
44162         * lib/unistdio/u16-vsprintf.c: New file.
44163         * lib/unistdio/u16-u16-asnprintf.c: New file.
44164         * lib/unistdio/u16-u16-asprintf.c: New file.
44165         * lib/unistdio/u16-u16-snprintf.c: New file.
44166         * lib/unistdio/u16-u16-sprintf.c: New file.
44167         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44168         * lib/unistdio/u16-u16-vasprintf.c: New file.
44169         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44170         * lib/unistdio/u16-u16-vsprintf.c: New file.
44171         * lib/unistdio/u32-asnprintf.c: New file.
44172         * lib/unistdio/u32-asprintf.c: New file.
44173         * lib/unistdio/u32-printf-parse.c: New file.
44174         * lib/unistdio/u32-snprintf.c: New file.
44175         * lib/unistdio/u32-sprintf.c: New file.
44176         * lib/unistdio/u32-vasnprintf.c: New file.
44177         * lib/unistdio/u32-vasprintf.c: New file.
44178         * lib/unistdio/u32-vsnprintf.c: New file.
44179         * lib/unistdio/u32-vsprintf.c: New file.
44180         * lib/unistdio/u32-u32-asnprintf.c: New file.
44181         * lib/unistdio/u32-u32-asprintf.c: New file.
44182         * lib/unistdio/u32-u32-snprintf.c: New file.
44183         * lib/unistdio/u32-u32-sprintf.c: New file.
44184         * lib/unistdio/u32-u32-vasnprintf.c: New file.
44185         * lib/unistdio/u32-u32-vasprintf.c: New file.
44186         * lib/unistdio/u32-u32-vsnprintf.c: New file.
44187         * lib/unistdio/u32-u32-vsprintf.c: New file.
44188         * tests/unistdio/test-ulc-asnprintf1.c: New file.
44189         * tests/unistdio/test-ulc-asnprintf1.h: New file.
44190         * tests/unistdio/test-ulc-printf1.h: New file.
44191         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
44192         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
44193         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
44194         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
44195         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
44196         * tests/unistdio/test-ulc-vasprintf1.c: New file.
44197         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
44198         * tests/unistdio/test-ulc-vsprintf1.c: New file.
44199         * tests/unistdio/test-u8-asnprintf1.c: New file.
44200         * tests/unistdio/test-u8-asnprintf1.h: New file.
44201         * tests/unistdio/test-u8-printf1.h: New file.
44202         * tests/unistdio/test-u8-vasnprintf1.c: New file.
44203         * tests/unistdio/test-u8-vasnprintf2.c: New file.
44204         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
44205         * tests/unistdio/test-u8-vasnprintf3.c: New file.
44206         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
44207         * tests/unistdio/test-u8-vasprintf1.c: New file.
44208         * tests/unistdio/test-u8-vsnprintf1.c: New file.
44209         * tests/unistdio/test-u8-vsprintf1.c: New file.
44210         * tests/unistdio/test-u16-asnprintf1.c: New file.
44211         * tests/unistdio/test-u16-asnprintf1.h: New file.
44212         * tests/unistdio/test-u16-printf1.h: New file.
44213         * tests/unistdio/test-u16-vasnprintf1.c: New file.
44214         * tests/unistdio/test-u16-vasnprintf2.c: New file.
44215         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
44216         * tests/unistdio/test-u16-vasnprintf3.c: New file.
44217         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
44218         * tests/unistdio/test-u16-vasprintf1.c: New file.
44219         * tests/unistdio/test-u16-vsnprintf1.c: New file.
44220         * tests/unistdio/test-u16-vsprintf1.c: New file.
44221         * tests/unistdio/test-u32-asnprintf1.c: New file.
44222         * tests/unistdio/test-u32-asnprintf1.h: New file.
44223         * tests/unistdio/test-u32-printf1.h: New file.
44224         * tests/unistdio/test-u32-vasnprintf1.c: New file.
44225         * tests/unistdio/test-u32-vasnprintf2.c: New file.
44226         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
44227         * tests/unistdio/test-u32-vasnprintf3.c: New file.
44228         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
44229         * tests/unistdio/test-u32-vasprintf1.c: New file.
44230         * tests/unistdio/test-u32-vsnprintf1.c: New file.
44231         * tests/unistdio/test-u32-vsprintf1.c: New file.
44232         * modules/unistdio/base: New file.
44233         * modules/unistdio/u-printf-args: New file.
44234         * modules/unistdio/ulc-asnprintf: New file.
44235         * modules/unistdio/ulc-asprintf: New file.
44236         * modules/unistdio/ulc-fprintf: New file.
44237         * modules/unistdio/ulc-printf-parse: New file.
44238         * modules/unistdio/ulc-snprintf: New file.
44239         * modules/unistdio/ulc-sprintf: New file.
44240         * modules/unistdio/ulc-vasnprintf: New file.
44241         * modules/unistdio/ulc-vasprintf: New file.
44242         * modules/unistdio/ulc-vfprintf: New file.
44243         * modules/unistdio/ulc-vsnprintf: New file.
44244         * modules/unistdio/ulc-vsprintf: New file.
44245         * modules/unistdio/u8-asnprintf: New file.
44246         * modules/unistdio/u8-asprintf: New file.
44247         * modules/unistdio/u8-printf-parse: New file.
44248         * modules/unistdio/u8-snprintf: New file.
44249         * modules/unistdio/u8-sprintf: New file.
44250         * modules/unistdio/u8-vasnprintf: New file.
44251         * modules/unistdio/u8-vasprintf: New file.
44252         * modules/unistdio/u8-vsnprintf: New file.
44253         * modules/unistdio/u8-vsprintf: New file.
44254         * modules/unistdio/u8-u8-asnprintf: New file.
44255         * modules/unistdio/u8-u8-asprintf: New file.
44256         * modules/unistdio/u8-u8-snprintf: New file.
44257         * modules/unistdio/u8-u8-sprintf: New file.
44258         * modules/unistdio/u8-u8-vasnprintf: New file.
44259         * modules/unistdio/u8-u8-vasprintf: New file.
44260         * modules/unistdio/u8-u8-vsnprintf: New file.
44261         * modules/unistdio/u8-u8-vsprintf: New file.
44262         * modules/unistdio/u16-asnprintf: New file.
44263         * modules/unistdio/u16-asprintf: New file.
44264         * modules/unistdio/u16-printf-parse: New file.
44265         * modules/unistdio/u16-snprintf: New file.
44266         * modules/unistdio/u16-sprintf: New file.
44267         * modules/unistdio/u16-vasnprintf: New file.
44268         * modules/unistdio/u16-vasprintf: New file.
44269         * modules/unistdio/u16-vsnprintf: New file.
44270         * modules/unistdio/u16-vsprintf: New file.
44271         * modules/unistdio/u16-u16-asnprintf: New file.
44272         * modules/unistdio/u16-u16-asprintf: New file.
44273         * modules/unistdio/u16-u16-snprintf: New file.
44274         * modules/unistdio/u16-u16-sprintf: New file.
44275         * modules/unistdio/u16-u16-vasnprintf: New file.
44276         * modules/unistdio/u16-u16-vasprintf: New file.
44277         * modules/unistdio/u16-u16-vsnprintf: New file.
44278         * modules/unistdio/u16-u16-vsprintf: New file.
44279         * modules/unistdio/u32-asnprintf: New file.
44280         * modules/unistdio/u32-asprintf: New file.
44281         * modules/unistdio/u32-printf-parse: New file.
44282         * modules/unistdio/u32-snprintf: New file.
44283         * modules/unistdio/u32-sprintf: New file.
44284         * modules/unistdio/u32-vasnprintf: New file.
44285         * modules/unistdio/u32-vasprintf: New file.
44286         * modules/unistdio/u32-vsnprintf: New file.
44287         * modules/unistdio/u32-vsprintf: New file.
44288         * modules/unistdio/u32-u32-asnprintf: New file.
44289         * modules/unistdio/u32-u32-asprintf: New file.
44290         * modules/unistdio/u32-u32-snprintf: New file.
44291         * modules/unistdio/u32-u32-sprintf: New file.
44292         * modules/unistdio/u32-u32-vasnprintf: New file.
44293         * modules/unistdio/u32-u32-vasprintf: New file.
44294         * modules/unistdio/u32-u32-vsnprintf: New file.
44295         * modules/unistdio/u32-u32-vsprintf: New file.
44296         * modules/unistdio/ulc-asnprintf-tests: New file.
44297         * modules/unistdio/ulc-vasnprintf-tests: New file.
44298         * modules/unistdio/ulc-vasprintf-tests: New file.
44299         * modules/unistdio/ulc-vsnprintf-tests: New file.
44300         * modules/unistdio/ulc-vsprintf-tests: New file.
44301         * modules/unistdio/u8-asnprintf-tests: New file.
44302         * modules/unistdio/u8-vasnprintf-tests: New file.
44303         * modules/unistdio/u8-vasprintf-tests: New file.
44304         * modules/unistdio/u8-vsnprintf-tests: New file.
44305         * modules/unistdio/u8-vsprintf-tests: New file.
44306         * modules/unistdio/u16-asnprintf-tests: New file.
44307         * modules/unistdio/u16-vasnprintf-tests: New file.
44308         * modules/unistdio/u16-vasprintf-tests: New file.
44309         * modules/unistdio/u16-vsnprintf-tests: New file.
44310         * modules/unistdio/u16-vsprintf-tests: New file.
44311         * modules/unistdio/u32-asnprintf-tests: New file.
44312         * modules/unistdio/u32-vasnprintf-tests: New file.
44313         * modules/unistdio/u32-vasprintf-tests: New file.
44314         * modules/unistdio/u32-vsnprintf-tests: New file.
44315         * modules/unistdio/u32-vsprintf-tests: New file.
44316         * MODULES.html.sh (Unicode string functions): Add the new modules.
44317
44318 2007-07-01  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/sprintf.c (sprintf): Limit the available length estimation,
44321         to avoid address wraparound.
44322         * lib/vsprintf.c (vsprintf): Likewise.
44323         * modules/sprintf-posix (Dependencies): Add stdint.
44324         * modules/vsprintf-posix (Dependencies): Likewise.
44325
44326 2007-07-01  Bruno Haible  <bruno@clisp.org>
44327
44328         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
44329         Windows PATH as well. Conservative double-quoting. Comments.
44330
44331 2007-07-01  Bruno Haible  <bruno@clisp.org>
44332             Eric Blake  <ebb9@byu.net>
44333             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44334
44335         * gnulib-tool (self_abspathname): Fix algorithm to cope with
44336         empty components in $PATH, denoting '.'.
44337
44338 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44339
44340         * gnulib-tool: Fix indentation.
44341         (func_create_megatestdir): Likewise.
44342         Report by Bruno Haible.
44343
44344 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44345
44346         Sync from Automake.
44347         * build-aux/gnupload: Fix shell portability issues with for loops.
44348         Report by Karl Berry.
44349
44350 2007-06-29  Simon Josefsson  <simon@josefsson.org>
44351
44352         * build-aux/maint.mk (POURL): Use translationproject.org.
44353
44354 2007-06-27  Simon Josefsson  <simon@josefsson.org>
44355             Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
44358         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
44359         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
44360         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
44361         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
44362
44363 2007-06-27  Bruno Haible  <bruno@clisp.org>
44364
44365         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
44366         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
44367
44368 2007-06-26  Karl Berry  <karl@gnu.org>
44369
44370         * MODULES.html.sh: remove xreadlink-with-size.
44371
44372 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44373
44374         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
44375         method that I hope also handles the double-include problem noted
44376         by Bruno Haible in
44377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
44378
44379 2007-06-23  Bruno Haible  <bruno@clisp.org>
44380
44381         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44382         Don't let the 'mostlyclean' target fail if the last subdirectory could
44383         not be removed.
44384         Reported by Karl Berry.
44385
44386 2007-06-23  Bruno Haible  <bruno@clisp.org>
44387
44388         * gnulib-tool (echo): Add a speedier workaround for ksh.
44389         * tests/test-echo.sh: Likewise.
44390
44391 2007-06-23  Bruno Haible  <bruno@clisp.org>
44392
44393         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
44394         * tests/test-echo.sh: Likewise.
44395
44396 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44397
44398         * gnulib-tool (IFS): Initialize early, so we don't set it to
44399         empty later.
44400         (self_abspathname): Rewrite algorithm to set it, reindent.
44401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
44402         (func_create_megatestdir): Merge some sed scripts.
44403
44404 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
44407         exposed by Sun Studio 11 cc on Solaris 8.
44408
44409 2007-06-22  Bruno Haible  <bruno@clisp.org>
44410
44411         * gnulib-tool (echo): Ensure the echo primitive does not interpret
44412         backslashes.
44413         * tests/test-echo.sh: New file.
44414
44415 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44416
44417         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
44418         simplify `sed_replace_build_aux' scripts, they are portable but
44419         echoing them with `echo' is not.
44420         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
44421
44422 2007-06-21  Karl Berry  <karl@gnu.org>
44423
44424         * config/srclist.txt: guess we can't handle the licenses via
44425         srclist at the moment.
44426
44427 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44428
44429         * MODULES.html.sh: Add include_next.
44430         * modules/include_next: New file.
44431
44432 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44433
44434         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
44435         INCLUDE_NEXT.
44436         (gl_CHECK_NEXT_HEADERS): New macro.
44437         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
44438         the obsolescent gl_ABSOLUTE_HEADER.
44439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
44440         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
44441         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
44442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44443         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44444         * m4/math_h.m4 (gl_MATH_H): Likewise.
44445         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44446         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44447         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44448         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44449         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
44450         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
44451         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
44452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44454         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44455         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
44456         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44457         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44458         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44459         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44460         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44461         * m4/inttypes.m4 (gl_INTTYPES_H): Define
44462         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
44463         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
44464         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
44465         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
44466         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
44467         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
44468         * lib/float_.h: Likewise.
44469         * lib/inttypes_.h: Likewise.
44470         * lib/math_.h: Likewise.
44471         * lib/search_.h: Likewise.
44472         * lib/signal_.h: Likewise.
44473         * lib/stdint_.h: Likewise.
44474         * lib/stdio_.h: Likewise.
44475         * lib/stdlib_.h: Likewise.
44476         * lib/string_.h: Likewise.
44477         * lib/sys_stat_.h: Likewise.
44478         * lib/sys_time_.h: Likewise.
44479         * lib/time_.h: Likewise.
44480         * lib/unistd_.h: Likewise.
44481         * lib/wchar_.h: Likewise.
44482         * lib/wctype_.h: Likewise.
44483         * lib/dirent_.h: Likewise.
44484         * lib/iconv_.h: Likewise.
44485         * lib/locale_.h: Likewise.
44486         * lib/netinet_in_.h: Likewise.
44487         * lib/sys_select_.h: Likewise.
44488         * lib/sys_socket_.h: Likewise.
44489         * lib/sysexits_.h: Likewise.
44490         * modules/fcntl (Depends-on): Depend on include_next, not
44491         absolute_header.
44492         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
44493         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
44494         * modules/fchdir: Likewise.
44495         * modules/float: Likewise.
44496         * modules/iconv_open: Likewise.
44497         * modules/inttypes: Likewise.
44498         * modules/locale: Likewise.
44499         * modules/math: Likewise.
44500         * modules/netinet_in: Likewise.
44501         * modules/search: Likewise.
44502         * modules/signal: Likewise.
44503         * modules/stdint: Likewise.
44504         * modules/stdio: Likewise.
44505         * modules/stdlib: Likewise.
44506         * modules/string: Likewise.
44507         * modules/sys_select: Likewise.
44508         * modules/sys_socket: Likewise.
44509         * modules/sys_stat: Likewise.
44510         * modules/sys_time: Likewise.
44511         * modules/sysexits: Likewise.
44512         * modules/time: Likewise.
44513         * modules/unistd: Likewise.
44514         * modules/wchar: Likewise.
44515         * modules/wctype: Likewise.
44516         * modules/sys_stat: Change maintainer to "all".
44517         * modules/unistd: Likewise.
44518
44519 2007-06-20  Karl Berry  <karl@gnu.org>
44520
44521         * config/srclist.txt: track www changes in license files.
44522
44523 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44524
44525         * build-aux/bootstrap: Remove stray dot.
44526         Make sure build_aux settings are honored when linking
44527         gnulib_extra_files.
44528
44529 2007-06-19  Eric Blake  <ebb9@byu.net>
44530
44531         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44532         Allow compilation on cygwin.
44533
44534 2007-06-19  Jim Meyering  <jim@meyering.net>
44535
44536         xreadlink-with-size: Remove module.  No longer used.
44537         Ex-callers now use xreadlink or mreadlink-with-size.
44538         * modules/xreadlink-with-size: Remove module.
44539         * lib/xreadlink-with-size.c: Remove file.
44540         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44541         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44542         just before the function definition *is* accurate.
44543
44544         Eliminate one way canonicalize_filename_mode could exit.
44545         * lib/canonicalize.c (canonicalize_filename_mode):
44546         Use mreadlink_with_size, not xreadlink_with_size.
44547
44548 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44549
44550         Detect porting problems to FreeBSD/arm, which has time_t wider than
44551         long int.  Original problem reported for GNU diff by Xin Li in
44552         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44553         * modules/getdate (Depends-on): Add intprops, verify.
44554         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44555         is an integer type no wider than long int.
44556
44557 2007-06-18  Jim Meyering  <jim@meyering.net>
44558
44559         New module: mreadlink-with-size.
44560         * MODULES.html.sh: Add mreadlink-with-size.
44561         * modules/mreadlink-with-size: New module
44562         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44563         not xreadlink-with-size.
44564         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44565
44566 2007-06-16  Bruno Haible  <bruno@clisp.org>
44567
44568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44569         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44570         Reported by Gary V. Vaughan <gary@gnu.org>.
44571
44572 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44573
44574         Revamp lchown so that it lives in unistd.h where it belongs.
44575         * lib/lchown.h: Remove.
44576         * lib/dirchownmod.c: Don't include lib/lchown.h.
44577         * lib/fchownat.c: Likewise.
44578         * lib/openat.c: Likewise.
44579         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44580         does not follow symlinks.
44581         (EOPNOTSUPP): Define if not defined.
44582         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44583         is defined to 0.
44584         (lchown): New decl.
44585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44586         Do not check for lchown decl.
44587         Set REPLACE_LCHOWN.
44588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44589         REPLACE_LCHOWN.
44590         * modules/chown: Make it clear it follows symlinks.
44591         * modules/lchown: Make it clear it doesn't follow symlinks.
44592         (Files): Remove lib/lchown.h
44593         (Depends-on): Add unistd.
44594         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44595         (Include): Include <unistd.h>, not "lchown.h".
44596         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44597         REPLACE_LCHOWN.
44598
44599 2007-06-15  Jim Meyering  <jim@meyering.net>
44600
44601         Change license (GPL to LGPL) of fsusage and dependents.
44602         * modules/fsusage (License): Change to LGPL.
44603         * modules/full-read (License): Likewise.
44604         * modules/full-write (License): Likewise.
44605         * modules/safe-read (License): Likewise.
44606         * modules/safe-write (License): Likewise.
44607
44608 2007-06-14  Ben Pfaff  <blp@gnu.org>
44609
44610         Missing part of allocsa -> malloca transition.
44611         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44612         gl_MALLOCA.
44613
44614 2007-06-12  Bruno Haible  <bruno@clisp.org>
44615
44616         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44617         to ia64, x86_64, i386.
44618         Reported by Eric Blake.
44619
44620 2007-06-12  Bruno Haible  <bruno@clisp.org>
44621
44622         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44623         cross-compiling to x86_64.
44624
44625 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44626
44627         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44628         glitch reported by Ralf Wildenhues in
44629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44630
44631         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44632         Vin Shelton.
44633
44634 2007-06-11  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44637         replacement string.
44638         Reported by Eric Blake.
44639
44640 2007-06-10  Bruno Haible  <bruno@clisp.org>
44641
44642         Prepare vasnprintf code for use with Unicode strings.
44643         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44644         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44645         TYPE_U32_STRING.
44646         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44647         a_u32_string variants.
44648         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44649         * lib/printf-args.c: Don't include config.h and the specification
44650         header if PRINTF_FETCHARGS is already defined.
44651         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44652         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44653         TYPE_U16_STRING, TYPE_U32_STRING.
44654         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44655         u16_directive, u16_directives, u32_directive, u32_directives): New
44656         types.
44657         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44658         New declarations.
44659         * lib/printf-parse.c: Don't include config.h and the specification
44660         header if PRINTF_PARSE is already defined. Eliminate the set of
44661         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44662         them now. Include c-ctype.h.
44663         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44664         directive and CHAR_T_ONLY_ASCII.
44665         * lib/vasnprintf.c: Don't include config.h and the specification header
44666         if VASNPRINTF is already defined.
44667         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44668         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44669         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44670         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44671         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44672         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44673         code accordingly.
44674         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44675         pad_ourselves also in this case, with the 'c' and 's' directives, and
44676         with a different notion of "width".
44677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44678
44679 2007-06-10  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/unistr/u32-mbsnlen: New file.
44682         * lib/unistr/u32-mbsnlen.c: New file.
44683
44684         * modules/unistr/u16-mbsnlen: New file.
44685         * lib/unistr/u16-mbsnlen.c: New file.
44686
44687         * modules/unistr/u8-mbsnlen: New file.
44688         * lib/unistr/u8-mbsnlen.c: New file.
44689
44690         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44691         declarations.
44692
44693 2007-06-10  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/string_.h (mbsnlen): New declaration.
44696         * lib/mbsnlen.c: New file.
44697         * m4/mbsnlen.m4: New file.
44698         * modules/mbsnlen: New file.
44699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44700         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44701         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44702
44703 2007-06-10  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44706
44707 2007-06-10  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44710         * lib/mbuiter.h: Likewise.
44711
44712 2007-06-10  Bruno Haible  <bruno@clisp.org>
44713
44714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44715         declaration.
44716
44717 2007-06-10  Karl Berry  <karl@gnu.org>
44718
44719         * config/srclist.txt: remove gettext entries, Bruno prefers
44720         to update individually.
44721
44722 2007-06-10  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44725         'maxlen'. Ensure only length + width bytes are allocated, not
44726         length + 1 + width.
44727
44728 2007-06-09  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44731         (CHAR_T): Remove macro.
44732         (VASNPRINTF): Update.
44733
44734 2007-06-09  Bruno Haible  <bruno@clisp.org>
44735
44736         * MODULES.html.sh (Unicode string functions): Add the new modules.
44737
44738         * modules/uniconv/u32-conv-to-enc: New file.
44739         * lib/uniconv/u32-conv-to-enc.c: New file.
44740         * modules/uniconv/u32-conv-to-enc-tests: New file.
44741         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44742
44743         * modules/uniconv/u16-conv-to-enc: New file.
44744         * lib/uniconv/u16-conv-to-enc.c: New file.
44745         * lib/uniconv/u-conv-to-enc.h: New file.
44746         * modules/uniconv/u16-conv-to-enc-tests: New file.
44747         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44748
44749         * modules/uniconv/u8-conv-to-enc: New file.
44750         * lib/uniconv/u8-conv-to-enc.c: New file.
44751         * modules/uniconv/u8-conv-to-enc-tests: New file.
44752         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44753
44754         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44755         u32_conv_to_encoding): New declarations.
44756
44757 2007-06-09  Bruno Haible  <bruno@clisp.org>
44758
44759         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44760
44761 2007-06-09  Bruno Haible  <bruno@clisp.org>
44762
44763         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44764         * modules/malloca: Renamed from modules/allocsa, updated.
44765         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44766         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44767         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44768         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44769         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44770         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44771         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44772         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44773         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44774         * modules/c-strcasestr (Depends-on): Update.
44775         * lib/c-strcasestr.c: Update.
44776         * modules/c-strstr (Depends-on): Update.
44777         * lib/c-strstr.c: Update.
44778         * modules/canonicalize-lgpl (Depends-on): Update.
44779         * lib/canonicalize-lgpl.c: Update.
44780         * modules/clean-temp (Depends-on): Update.
44781         * lib/clean-temp.c: Update.
44782         * modules/csharpcomp (Depends-on): Update.
44783         * lib/csharpcomp.c: Update.
44784         * modules/csharpexec (Depends-on): Update.
44785         * lib/csharpexec.c: Update.
44786         * modules/javacomp (Depends-on): Update.
44787         * lib/javacomp.c: Update.
44788         * modules/javaexec (Depends-on): Update.
44789         * lib/javaexec.c: Update.
44790         * modules/mbscasestr (Depends-on): Update.
44791         * lib/mbscasestr.c: Update.
44792         * modules/mbsstr (Depends-on): Update.
44793         * lib/mbsstr.c: Update.
44794         * modules/setenv (Depends-on): Update.
44795         * lib/setenv.c: Update.
44796         * modules/strcasestr (Depends-on): Update.
44797         * lib/strcasestr.c: Update.
44798         * modules/striconveha (Depends-on): Update.
44799         * lib/striconveha.c: Update.
44800         * modules/relocatable-prog-wrapper (Files): Update.
44801         * lib/relocwrapper.c: Update.
44802         * build-aux/install-reloc: Update.
44803         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44804
44805 2007-06-08  Bruno Haible  <bruno@clisp.org>
44806
44807         Port to uClibc.
44808         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44809         * lib/fpurge.c (fpurge): Likewise.
44810         * lib/freading.c (freading): Likewise.
44811         * lib/fseeko.c (rpl_fseeko): Likewise.
44812         * lib/fseterr.c (fseterr): Likewise.
44813         * lib/fwriting.c (fwriting): Likewise.
44814         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44815
44816 2007-06-08  Bruno Haible  <bruno@clisp.org>
44817
44818         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44819         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44820         * modules/gettext (Files): Add m4/intlmacosx.m4.
44821
44822 2007-06-07  Bruno Haible  <bruno@clisp.org>
44823
44824         * modules/localename-tests: New file.
44825         * tests/test-localename.c: New file.
44826
44827         New module 'localename'.
44828         * lib/localename.h: New file.
44829         * lib/localename.c: New file, from GNU gettext.
44830         * m4/localename.m4: New file.
44831         * modules/localename: New file.
44832
44833 2007-06-07  Bruno Haible  <bruno@clisp.org>
44834
44835         Work around the lack of <wchar.h> on some builds of uClibc.
44836         * doc/headers/wchar.texi: Update.
44837         * lib/wchar_.h: Include <wchar.h> only if it exists.
44838         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44839         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44840         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44841         doesn't exist.
44842         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44843         * modules/mbfile (Depends-on): Add wchar.
44844         * modules/mbiter (Depends-on): Likewise.
44845         * modules/mbuiter (Depends-on): Likewise.
44846         Reported by Simon Josefsson.
44847
44848 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44849
44850         Work around problem reported by Steven M. Schweda in
44851         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44852         Tru64 5.1B with the Compaq compiler environment installed declares
44853         an 'isblank' function but does not define it in the C library.
44854         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44855         * lib/regex_internal.h (isblank): Likewise.
44856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44857         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44858
44859 2007-06-05  Bruno Haible  <bruno@clisp.org>
44860
44861         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44862         ia64.
44863         * modules/printf-safe: New file.
44864         * modules/fprintf-posix (Depends-on): Add printf-safe.
44865         * modules/printf-posix (Depends-on): Likewise.
44866         * modules/snprintf-posix (Depends-on): Likewise.
44867         * modules/sprintf-posix (Depends-on): Likewise.
44868         * modules/vasnprintf-posix (Depends-on): Likewise.
44869         * modules/vasprintf-posix (Depends-on): Likewise.
44870         * modules/vfprintf-posix (Depends-on): Likewise.
44871         * modules/vprintf-posix (Depends-on): Likewise.
44872         * modules/vsnprintf-posix (Depends-on): Likewise.
44873         * modules/vsprintf-posix (Depends-on): Likewise.
44874         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44875         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44876         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44877         "no" on i386, x86_64, ia64.
44878         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44879         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44880         on i386, x86_64, ia64.
44881         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44882         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44883         on i386, x86_64, ia64.
44884         * tests/test-vasnprintf-posix.c: Include float.h.
44885         (LDBL80_WORDS): New macro.
44886         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44887         on i386, x86_64, ia64.
44888         * tests/test-vasprintf-posix.c: Include float.h.
44889         (LDBL80_WORDS): New macro.
44890         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44891         on i386, x86_64, ia64.
44892         * tests/test-snprintf-posix.c: Include float.h.
44893         * tests/test-sprintf-posix.c: Likewise.
44894         * tests/test-vsnprintf-posix.c: Likewise.
44895         * tests/test-vsprintf-posix.c: Likewise.
44896
44897 2007-06-05  Bruno Haible  <bruno@clisp.org>
44898
44899         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44900         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44901         non-IEEE numbers on i386, x86_64, ia64.
44902         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44903         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44904         * tests/test-isnanl.h: Include float.h.
44905         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44906
44907 2007-06-05  Bruno Haible  <bruno@clisp.org>
44908
44909         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44910         also the %a / %A. Handle the %a / %A code before this extra handling.
44911
44912 2007-06-05  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44915         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44916
44917 2007-06-05  Bruno Haible  <bruno@clisp.org>
44918
44919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44920         typo in variable name.
44921
44922 2007-06-05  Eric Blake  <ebb9@byu.net>
44923
44924         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44925         Reported by Simon Josefsson.
44926
44927 2007-06-04  Bruno Haible  <bruno@clisp.org>
44928
44929         Avoid test failures on some PowerPC platforms.
44930         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
44931         Define differently for PowerPC.
44932         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
44933         Reported by Gary V. Vaughan <gary@gnu.org>.
44934
44935 2007-06-02  Bruno Haible  <bruno@clisp.org>
44936
44937         Fix test-stdint failure on FreeBSD/ia64.
44938         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
44939         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
44940         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
44941         * doc/headers/stdint.texi: Update.
44942
44943 2007-06-01  Bruno Haible  <bruno@clisp.org>
44944
44945         * tests/test-binary-io.c (main): Pass a third argument to open().
44946         Reported by Gary V. Vaughan <gary@gnu.org>.
44947
44948 2007-06-01  Bruno Haible  <bruno@clisp.org>
44949
44950         * doc/functions/frexpl.texi: Update for mingw.
44951
44952 2007-06-01  Bruno Haible  <bruno@clisp.org>
44953
44954         * tests/test-lseek.c (main): Disable test of errno for invalid third
44955         argument.
44956         * doc/functions/lseek.texi: Update.
44957         Reported by Gary V. Vaughan <gary@gnu.org>.
44958
44959 2007-05-28  Bruno Haible  <bruno@clisp.org>
44960
44961         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
44962
44963 2007-05-31  Eric Blake  <ebb9@byu.net>
44964
44965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
44966         cross compiling.
44967
44968 2007-05-30  Eric Blake  <ebb9@byu.net>
44969         and Bruno Haible  <bruno@clisp.org>
44970
44971         Work around mingw test failures exposed by m4-1.4.9b.
44972         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44973         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44974         moment.
44975
44976 2007-05-30  Bruno Haible  <bruno@clisp.org>
44977
44978         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44979         assuming that they are closed. Needed on HP-UX 11.
44980
44981 2007-05-29  Bruno Haible  <bruno@clisp.org>
44982
44983         Fix a problem with #include_next.
44984         * lib/dirent_.h: Split the double-inclusion guard.
44985         * lib/fcntl_.h: Likewise.
44986         * lib/float_.h: Likewise.
44987         * lib/iconv_.h: Likewise.
44988         * lib/inttypes_.h: Likewise.
44989         * lib/locale_.h: Likewise.
44990         * lib/math_.h: Likewise.
44991         * lib/netinet_in_.h: Likewise.
44992         * lib/search_.h: Likewise.
44993         * lib/signal_.h: Likewise.
44994         * lib/stdint_.h: Likewise.
44995         * lib/stdio_.h: Likewise.
44996         * lib/stdlib_.h: Likewise.
44997         * lib/string_.h: Likewise.
44998         * lib/sys_select_.h: Likewise.
44999         * lib/sys_socket_.h: Likewise.
45000         * lib/sys_stat_.h: Likewise.
45001         * lib/sys_time_.h: Likewise.
45002         * lib/sysexits_.h: Likewise.
45003         * lib/time_.h: Likewise.
45004         * lib/unistd_.h: Likewise.
45005         * lib/wchar_.h: Likewise.
45006         * lib/wctype_.h: Likewise.
45007
45008 2007-05-29  Bruno Haible  <bruno@clisp.org>
45009
45010         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
45011         for the moment.
45012
45013 2007-05-29  Bruno Haible  <bruno@clisp.org>
45014
45015         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
45016         invocation.
45017         Reported by Eric Blake.
45018
45019 2007-05-29  Bruno Haible  <bruno@clisp.org>
45020
45021         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
45022         compiling case.
45023
45024 2007-05-29  Eric Blake  <ebb9@byu.net>
45025             Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
45028         cross compiles.
45029
45030 2007-05-28  Eric Blake  <ebb9@byu.net>
45031
45032         * modules/closein-tests (test_closein_LDADD): Support test on
45033         cygwin with libtool.
45034
45035 2007-05-28  Bruno Haible  <bruno@clisp.org>
45036
45037         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
45038         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45039         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45040         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45041         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45042         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45043         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45044         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45045         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45046
45047 2007-05-28  Eric Blake  <ebb9@byu.net>
45048
45049         Unconditionally include <config.h> in unit tests.
45050         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
45051         * tests/test-allocsa.c, tests/test-arcfour.c,
45052         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
45053         tests/test-array_list.c, tests/test-array_oset.c,
45054         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
45055         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
45056         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
45057         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
45058         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
45059         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
45060         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
45061         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
45062         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
45063         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
45064         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
45065         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
45066         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
45067         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
45068         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
45069         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
45070         test-md5.c, test-memmem.c, test-printf-posix.c,
45071         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
45072         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
45073         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
45074         test-strcasestr.c, test-striconv.c, test-striconveh.c,
45075         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
45076         test-vasnprintf-posix2.c, test-vasnprintf.c,
45077         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
45078         test-vfprintf-posix.c, test-vprintf-posix.c,
45079         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
45080         test-xvasprintf.c: Likewise.
45081
45082 2007-05-28  Bruno Haible  <bruno@clisp.org>
45083
45084         * gnulib-tool (func_import): Remember the --with-tests command-line
45085         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
45086         Reported by Eric Blake.
45087
45088 2007-05-28  Bruno Haible  <bruno@clisp.org>
45089
45090         * modules/ftell-tests: New file.
45091         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
45092         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
45093
45094         * lib/ftell.c: New file.
45095         * modules/ftell: New file.
45096         * m4/ftell.m4: New file.
45097         * doc/functions/ftell.texi: Update.
45098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
45099         REPLACE_FTELL.
45100         * lib/stdio_.h (rpl_ftell): New declaration.
45101         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
45102         REPLACE_FTELL.
45103
45104 2007-05-28  Eric Blake  <ebb9@byu.net>
45105
45106         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45107
45108 2007-05-28  Bruno Haible  <bruno@clisp.org>
45109
45110         * modules/fseek-tests: New file.
45111         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45112         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45113
45114         * lib/fseek.c: New file.
45115         * modules/fseek: New file.
45116         * m4/fseek.m4: New file.
45117         * doc/functions/fseek.texi: Update.
45118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45119         REPLACE_FSEEK.
45120         * lib/stdio_.h (rpl_fseek): New declaration.
45121         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45122         REPLACE_FSEEK.
45123
45124 2007-05-28  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/stdio_.h (fflush): More comments.
45127
45128 2007-05-28  Bruno Haible  <bruno@clisp.org>
45129
45130         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45131         runtime test.
45132
45133 2007-05-28  Eric Blake  <ebb9@byu.net>
45134
45135         Improve lseek module.
45136         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45137         * lib/unistd_.h (lseek): Scale back link warning message.
45138         * tests/test-lseek.c: Beef up test.
45139         * tests/test-lseek.sh: Exercise more facets of lseek.
45140         Reported by Bruno Haible.
45141
45142 2007-05-28  Bruno Haible  <bruno@clisp.org>
45143
45144         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45145         to define.
45146
45147 2007-05-27  Bruno Haible  <bruno@clisp.org>
45148
45149         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45150
45151 2007-05-27  Bruno Haible  <bruno@clisp.org>
45152
45153         * modules/openmp: New file.
45154         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45155         Noah Misch.
45156
45157 2007-05-26  Bruno Haible  <bruno@clisp.org>
45158
45159         * modules/chdir-long (Depends-on): Add fchdir.
45160         * modules/chdir-safer (Depends-on): Likewise.
45161         * modules/fts (Depends-on): Likewise.
45162         * modules/fts-lgpl (Depends-on): Likewise.
45163         * modules/openat (Depends-on): Likewise.
45164         * modules/savewd (Depends-on): Likewise.
45165
45166 2007-05-24  Eric Blake  <ebb9@byu.net>
45167
45168         Fix lseek on mingw.
45169         * modules/lseek: New module.
45170         * m4/lseek.m4: New file.
45171         * lib/lseek.c: New file.
45172         * modules/lseek-tests: New file.
45173         * tests/test-lseek.c: New file.
45174         * tests/test-lseek.sh: New file.
45175         * MODULES.html.sh: Document lseek module.
45176         * modules/fflush (Depends-on): Add lseek, fseeko.
45177         * modules/fseeko (Depends-on): Likewise.
45178         * modules/ftello (Depends-on): Likewise.
45179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
45180         broken.
45181         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
45182         broken.
45183         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
45184         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
45185         * lib/ftello.c (rpl_ftello): Likewise.
45186         * tests/test-fseeko.c (main): Test this.
45187         * tests/test-fseeko.sh: Likewise.
45188         * tests/test-ftello.c (main): Likewise.
45189         * tests/test-ftello.sh: Likewise.
45190         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
45191         implies replacing fseek.
45192         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
45193         HAVE_FTELLO.
45194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
45195         * modules/unistd (Makefile.am): Likewise.
45196         * lib/unistd_.h (lseek): Declare a replacement.
45197         * doc/functions/lseek.texi (lseek): Document this fix.
45198         * doc/functions/fseek.texi (fseek): Likewise.
45199         * doc/functions/ftell.texi (ftell): Likewise.
45200
45201 2007-05-24  Bruno Haible  <bruno@clisp.org>
45202
45203         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
45204         in the printed representation of a NaN.
45205         * tests/test-vasprintf-posix.c (test_function): Likewise.
45206         * tests/test-snprintf-posix.h (test_function): Likewise.
45207         * tests/test-sprintf-posix.h (test_function): Likewise.
45208         Reported by Eric Blake.
45209
45210 2007-05-23  Eric Blake  <ebb9@byu.net>
45211
45212         Fix fseeko/ftello on cygwin 1.5.24.
45213         * doc/functions/fseeko.texi (fseeko): Document the fix.
45214         * doc/functions/ftello.texi (ftello): Document the fix.
45215         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
45216         * doc/functions/stdout.text (stdout): New file.
45217         * doc/functions/stderr.text (stderr): New file.
45218         * doc/gnulib.texi (Function Substitutes): Use new files.
45219         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
45220         prior to 1.7.0.
45221         * tests/test-ftello.c (main): Likewise for ftello.
45222         * tests/test-fseeko.sh: New file.
45223         * tests/test-ftello.sh: New file.
45224         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
45225         with seekable stdin.
45226         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
45227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
45228         (gl_REPLACE_FSEEKO): New macro.
45229         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
45230         * modules/fseeko (Files): Distribute fseeko.c.
45231         * modules/ftello (Files): Distribute ftello.c.
45232         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
45233         mode.
45234         * lib/ftello.c (rpl_ftello): New file.
45235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
45236         fseeko, ftello.
45237         (gl_STDIN_LARGE_OFFSET): New macro.
45238         * modules/stdio (Makefile.am): Perform the replacement.
45239         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
45240
45241 2007-05-23  Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
45244         GNULIB_POSIXCHECK is defined.
45245
45246 2007-05-21  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
45249         Check also the output for NaN arguments. When cross-compiling, guess
45250         no on IRIX.
45251         * lib/vasnprintf.c: Update comments.
45252         * tests/test-vasnprintf-posix.c (strisnan): New function.
45253         (test_function): Use it.
45254         * tests/test-vasprintf-posix.c (strisnan): New function.
45255         (test_function): Use it.
45256         * tests/test-snprintf-posix.h (strisnan): New function.
45257         (test_function): Use it.
45258         * tests/test-sprintf-posix.h (strisnan): New function.
45259         (test_function): Use it.
45260         Reported by Eric Blake.
45261
45262 2007-05-20  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
45265         numbers that fails on BeOS.
45266         * doc/functions/frexpl.texi: Update.
45267
45268 2007-05-20  Jim Meyering  <jim@meyering.net>
45269
45270         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
45271         forced upon us by glibc-2.6.
45272
45273 2007-05-20  Bruno Haible  <bruno@clisp.org>
45274
45275         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
45276         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
45277         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
45278         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
45279         NEED_PRINTF_INFINITE.
45280         (is_infinitel): New function.
45281         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
45282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
45283         gl_PREREQ_VASNPRINTF_INFINITE.
45284         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
45285         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45286         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
45287         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
45288         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
45289         gl_PREREQ_VASNPRINTF_INFINITE.
45290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45297         * doc/functions/fprintf.texi: Update.
45298         * doc/functions/printf.texi: Update.
45299         * doc/functions/snprintf.texi: Update.
45300         * doc/functions/sprintf.texi: Update.
45301         * doc/functions/vfprintf.texi: Update.
45302         * doc/functions/vprintf.texi: Update.
45303         * doc/functions/vsnprintf.texi: Update.
45304         * doc/functions/vsprintf.texi: Update.
45305
45306 2007-05-20  Bruno Haible  <bruno@clisp.org>
45307
45308         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
45309         was not found in libc.
45310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45311
45312 2007-05-20  Bruno Haible  <bruno@clisp.org>
45313
45314         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45315         printed as "-nan" instead of "nan".
45316         * tests/test-vasprintf-posix.c (test_function): Likewise.
45317         * tests/test-snprintf-posix.h (test_function): Likewise.
45318         * tests/test-sprintf-posix.h (test_function): Likewise.
45319         Needed for HP-UX 11.
45320
45321 2007-05-20  Jim Meyering  <jim@meyering.net>
45322
45323         Fix buggy test for the fchownat-deref bug.
45324         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
45325         symlink required for the run-test.  Without it, this test would
45326         always declare that fchownat doesn't work, and client code would
45327         unnecessarily use the replacement function with fixed libc.
45328         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
45329         Reported by Greg Schafer.
45330
45331 2007-05-19  Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
45334         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
45335         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
45336         Needed for IRIX 6.5 and Solaris 2.5.1.
45337
45338 2007-05-19  Bruno Haible  <bruno@clisp.org>
45339
45340         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
45341         (test_function): Skip tests involving -0.0 on platforms where
45342         -0.0 = 0.0.
45343         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
45344         (test_function): Skip tests involving -0.0 on platforms where
45345         -0.0 = 0.0.
45346         * tests/test-snprintf-posix.h (have_minus_zero): New function.
45347         (test_function): Skip tests involving -0.0 on platforms where
45348         -0.0 = 0.0.
45349         * tests/test-sprintf-posix.h (have_minus_zero): New function.
45350         (test_function): Skip tests involving -0.0 on platforms where
45351         -0.0 = 0.0.
45352         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
45353         tests.
45354         * tests/test-printf-posix.h (test_function): Likewise.
45355         * tests/test-printf-posix.output: Remove all -0.0 related results.
45356         Needed for IRIX 6.5.
45357
45358 2007-05-19  Bruno Haible  <bruno@clisp.org>
45359
45360         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45361         printed as "nan0x7fffffff" instead of "nan".
45362         * tests/test-vasprintf-posix.c (test_function): Likewise.
45363         * tests/test-snprintf-posix.h (test_function): Likewise.
45364         * tests/test-sprintf-posix.h (test_function): Likewise.
45365         * tests/test-fprintf-posix.h (NaN): Remove macro.
45366         (test_function): Remove all NaN related tests.
45367         * tests/test-printf-posix.h (NaN): Remove macro.
45368         (test_function): Remove all NaN related tests.
45369         * tests/test-printf-posix.output: Remove all NaN related results.
45370         Needed for IRIX 6.5.
45371
45372 2007-05-19  Bruno Haible  <bruno@clisp.org>
45373
45374         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
45375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45376
45377 2007-05-19  Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/float_.h: New file.
45380         * m4/float_h.m4: New file.
45381         * modules/float: New file.
45382         * modules/isnanl (Dependencies): Add float.
45383         * modules/isnanl-nolibm (Dependencies): Likewise.
45384         * modules/mathl (Dependencies): Likewise.
45385         * modules/printf-frexpl (Dependencies): Likewise.
45386         * modules/signbit (Dependencies): Likewise.
45387         * modules/vasnprintf (Dependencies): Likewise.
45388         * doc/headers/float.texi: Update.
45389
45390 2007-05-19  Jim Meyering  <jim@meyering.net>
45391
45392         * lib/utimens.c (gl_futimens): Rename from futimens,
45393         now that glibc-2.6 declares futimens.
45394         * lib/utimens.h: Likewise.
45395
45396 2007-05-19  Bruno Haible  <bruno@clisp.org>
45397
45398         Avoid test failures on mingw.
45399         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
45400         * tests/test-printf-posix.sh: Likewise.
45401         * tests/test-vfprintf-posix.sh: Likewise.
45402         * tests/test-vprintf-posix.sh: Likewise.
45403
45404 2007-05-19  Bruno Haible  <bruno@clisp.org>
45405
45406         Fix *printf result for NaN, Inf, -0.0 on mingw.
45407         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
45408         * lib/vasnprintf.c: Include math.h and isnan.h.
45409         (is_infinite_or_zero): New function.
45410         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
45411         values in the %f, %F, %e, %E, %g, %G directives.
45412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
45413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45414         gl_PRINTF_INFINITE and test its result. Invoke
45415         gl_PREREQ_VASNPRINTF_INFINITE.
45416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45417         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45418         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45422         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45423         * doc/functions/fprintf.texi: Update.
45424         * doc/functions/printf.texi: Update.
45425         * doc/functions/snprintf.texi: Update.
45426         * doc/functions/sprintf.texi: Update.
45427         * doc/functions/vfprintf.texi: Update.
45428         * doc/functions/vprintf.texi: Update.
45429         * doc/functions/vsnprintf.texi: Update.
45430         * doc/functions/vsprintf.texi: Update.
45431
45432 2007-05-19  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
45435         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
45436         Instead of multiplying with 10^k, set extra_zeroes to k.
45437         (scale10_round_long_double): Remove function.
45438
45439 2007-05-18  Bruno Haible  <bruno@clisp.org>
45440
45441         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
45442         introduced on 2007-05-06.
45443
45444 2007-05-18  Bruno Haible  <bruno@clisp.org>
45445
45446         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
45447         %g directives.
45448         * tests/test-vasprintf-posix.c (test_function): Likewise.
45449         * tests/test-snprintf-posix.h (test_function): Likewise.
45450         * tests/test-sprintf-posix.h (test_function): Likewise.
45451
45452 2007-05-18  Bruno Haible  <bruno@clisp.org>
45453
45454         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
45455         (strmatch): New function.
45456         (test_function): Test the %f directive on numbers of various exponents.
45457         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
45458         (strmatch): New function.
45459         (test_function): Test the %f directive on numbers of various exponents.
45460         * tests/test-snprintf-posix.h (strmatch): New function.
45461         (test_function): Test the %f directive on numbers of various exponents.
45462         * tests/test-sprintf-posix.h (strmatch): New function.
45463         (test_function): Test the %f directive on numbers of various exponents.
45464         * tests/test-snprintf-posix.c (SIZEOF): New macro.
45465         * tests/test-sprintf-posix.c (SIZEOF): New macro.
45466         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
45467         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
45468
45469 2007-05-18  Bruno Haible  <bruno@clisp.org>
45470
45471         Add support for 'long double' number output.
45472         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
45473         * lib/vasnprintf.c: Include math.h and float+.h.
45474         (mp_limb_t): New type.
45475         (GMP_LIMB_BITS): New macro.
45476         (mp_twolimb_t): New type.
45477         (GMP_TWOLIMB_BITS): New macro.
45478         (mpn_t): New type.
45479         (multiply, divide, convert_to_decimal, decode_long_double,
45480         scale10_round_long_double, scale10_round_decimal_long_double,
45481         floorlog10l): New functions.
45482         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
45483         for the %f, %F, %e, %E, %g, %G directives.
45484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
45485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45486         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
45487         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
45488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45495         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
45496         * modules/snprintf-posix (Depends-on): Likewise.
45497         * modules/sprintf-posix (Depends-on): Likewise.
45498         * modules/vasnprintf-posix (Depends-on): Likewise.
45499         * modules/vasprintf-posix (Depends-on): Likewise.
45500         * modules/vfprintf-posix (Depends-on): Likewise.
45501         * modules/vsnprintf-posix (Depends-on): Likewise.
45502         * modules/vsprintf-posix (Depends-on): Likewise.
45503         * modules/vasnprintf (Files): Add lib/float+.h.
45504         * doc/functions/fprintf.texi: Update.
45505         * doc/functions/printf.texi: Update.
45506         * doc/functions/snprintf.texi: Update.
45507         * doc/functions/sprintf.texi: Update.
45508         * doc/functions/vfprintf.texi: Update.
45509         * doc/functions/vprintf.texi: Update.
45510         * doc/functions/vsnprintf.texi: Update.
45511         * doc/functions/vsprintf.texi: Update.
45512
45513 2007-05-18  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45516
45517 2007-05-18  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45520         for printing 64-bit integers. Needed for mingw.
45521
45522 2007-05-18  Bruno Haible  <bruno@clisp.org>
45523
45524         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45525         gl_FUNC_FREXPL_WORKS.
45526         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45527
45528 2007-05-18  Bruno Haible  <bruno@clisp.org>
45529
45530         * modules/frexpl-nolibm-tests: New file.
45531
45532         * modules/frexpl-nolibm: New file.
45533         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45534
45535 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45536
45537         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45538         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45539         GCC 4.2, which otherwise issues a lot of warnings.
45540         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45541         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45542         Likewise.
45543         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45544         * modules/iconv_open (iconv.h): Likewise.
45545         * modules/locale (locale.h): Likewise.
45546         * modules/netinet_in (netinet/in.h): Likewise.
45547         * modules/sys_select (sys_select.h): Likewise.
45548         * modules/sys_socket (sys/socket.h): Likewise.
45549         * modules/sys_stat (sys/stat.h): Likewise.
45550         * modules/sysexits (sysexits.h): Likewise.
45551         * modules/unistd (unistd.h): Likewise.
45552
45553 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45554
45555         * modules/closein-tests (Makefile.am): Distribute
45556         `test-closein.sh'.
45557
45558 2007-05-17  Bruno Haible  <bruno@clisp.org>
45559
45560         * tests/test-printf-posix.output: Renamed from
45561         tests/test-fprintf-posix.out.
45562         * modules/fprintf-posix-tests: Update.
45563         * modules/printf-posix-tests: Update.
45564         * modules/vfprintf-posix-tests: Update.
45565         * modules/vprintf-posix-tests: Update.
45566         * tests/test-fprintf-posix.sh: Update.
45567         * tests/test-printf-posix.sh: Update.
45568         * tests/test-vfprintf-posix.sh: Update.
45569         * tests/test-vprintf-posix.sh: Update.
45570         Reported by Ralf Wildenhues.
45571
45572 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45575         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45576         GCC 4.2, which otherwise issues a lot of warnings.
45577         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45578         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45579         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45580         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45581         it should no longer be needed.
45582         * lib/string_.h: Likewise.
45583         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45584         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45585         * modules/inttypes (inttypes.h): Likewise.
45586         * modules/math (math.h): Likewise.
45587         * modules/search (search.h): Likewise.
45588         * modules/signal (signal.h): Likewise.
45589         * modules/stdint (stdint.h): Likewise.
45590         * modules/stdio (stdio.h): Likewise.
45591         * modules/stdlib (stdlib.h): Likewise.
45592         * modules/string (string.h): Likewise.
45593         * modules/sys_time (sys/time.h): Likewise.
45594         * modules/time (time.h): Likewise.
45595         * modules/wchar (wchar.h): Likewise.
45596         * modules/wctype (wtype.h): Likewise.
45597
45598 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45599
45600         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45601
45602 2007-05-13  Bruno Haible  <bruno@clisp.org>
45603
45604         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45605         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45606         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45607         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45608         (gl_PREREQ_STRTOK_R): Don't require it here.
45609
45610 2007-05-13  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45613         when used in C++ mode.
45614
45615 2007-05-12  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/linebuffer.h: Tweak doc.
45618         * lib/linebuffer.c: Likewise.
45619
45620 2007-05-12  James Youngman  <jay@gnu.org>
45621
45622         * lib/linebuffer.c (readlinebuffer_delim): New function,
45623         like readlinebuffer, but use a caller-specified delimiter.
45624         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45625         as the delimiter.
45626         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45627
45628 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45629
45630         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45631         * modules/openat (Files): Remove openat-die.c.
45632         (Depends-on): Add openat-die.
45633         * modules/openat-die: New module.
45634
45635 2007-05-06  Bruno Haible  <bruno@clisp.org>
45636
45637         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45638         Update with info about Cygwin.
45639         * doc/functions/fprintf.texi: Update.
45640         * doc/functions/printf.texi: Update.
45641         * doc/functions/snprintf.texi: Update.
45642         * doc/functions/sprintf.texi: Update.
45643         * doc/functions/vfprintf.texi: Update.
45644         * doc/functions/vprintf.texi: Update.
45645         * doc/functions/vsnprintf.texi: Update.
45646         * doc/functions/vsprintf.texi: Update.
45647         Reported by Eric Blake.
45648
45649 2007-05-06  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45652         padding ourselves for the floating-point directives.
45653         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45656         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45657         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45665         * tests/test-snprintf-posix.h (test_function): Also check the width
45666         and some flags in the %f directive.
45667         * tests/test-sprintf-posix.h (test_function): Likewise.
45668         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45669         * tests/test-vasprintf-posix.c (test_function): Likewise.
45670         * doc/functions/fprintf.texi: Update.
45671         * doc/functions/printf.texi: Update.
45672         * doc/functions/snprintf.texi: Update.
45673         * doc/functions/sprintf.texi: Update.
45674         * doc/functions/vfprintf.texi: Update.
45675         * doc/functions/vprintf.texi: Update.
45676         * doc/functions/vsnprintf.texi: Update.
45677         * doc/functions/vsprintf.texi: Update.
45678
45679 2007-05-06  Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45682         pass the ' flag character to sprintf or snprintf.
45683         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45686         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45687         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45695         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45696         flag.
45697         * tests/test-sprintf-posix.h (test_function): Likewise.
45698         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45699         * tests/test-vasprintf-posix.c (test_function): Likewise.
45700         * doc/functions/fprintf.texi: Update.
45701         * doc/functions/printf.texi: Update.
45702         * doc/functions/snprintf.texi: Update.
45703         * doc/functions/sprintf.texi: Update.
45704         * doc/functions/vfprintf.texi: Update.
45705         * doc/functions/vprintf.texi: Update.
45706         * doc/functions/vsnprintf.texi: Update.
45707         * doc/functions/vsprintf.texi: Update.
45708
45709 2007-05-01  Bruno Haible  <bruno@clisp.org>
45710
45711         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45712
45713 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45714
45715         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45716         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45717
45718 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45721         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45723
45724 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45725
45726         * lib/argp-help.c (struct hol_entry): New member `ord'.
45727         (HOL_ENTRY_PTRCMP): Use ord for comparison
45728         (hol_sort): Initialize ord.
45729
45730 2007-05-01  Bruno Haible  <bruno@clisp.org>
45731
45732         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45733         Reported by Eric Blake.
45734         * doc/gnulib.texi (Function Substitutes): Update.
45735
45736 2007-05-01  Bruno Haible  <bruno@clisp.org>
45737
45738         * doc/functions.texi: Remove file, now redundant through
45739         doc/functions/*.texi.
45740
45741 2007-05-01  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/argp (Depends-on): Add sleep.
45744
45745 2007-05-01  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/sleep-tests: New file.
45748         * tests/test-sleep.c: New file.
45749
45750         * modules/sleep: New file.
45751         * lib/sleep.c: New file.
45752         * m4/sleep.m4: New file.
45753         * lib/unistd_.h (sleep): New declaration.
45754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45755         HAVE_SLEEP.
45756         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45757         * doc/functions/sleep.texi: Document the sleep module.
45758
45759 2007-05-01  Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/sigprocmask.h: Remove file.
45762         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45763         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45765         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45766         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45767         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45768         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45769         HAVE_SIGSET_T as a shell variable.
45770         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45771         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45772         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45773         (Depends-on): Add signal. Remove verify.
45774         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45775         (Include): Mention <signal.h> instead of sigprocmask.h.
45776         * NEWS: Mention the change.
45777         * lib/fatal-signal.c: Don't include sigprocmask.h.
45778
45779 2007-05-01  Bruno Haible  <bruno@clisp.org>
45780
45781         * modules/signal: New file.
45782         * lib/signal_.h: New file.
45783         * m4/signal_h.m4: New file.
45784
45785 2007-05-01  Bruno Haible  <bruno@clisp.org>
45786
45787         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45788         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45789         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45790         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45791
45792 2007-05-01  Bruno Haible  <bruno@clisp.org>
45793
45794         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45795         configure time.
45796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45797         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45798         * modules/sys_stat (Makefile.am): Substitute their values into
45799         sys/stat.h.
45800
45801 2007-05-01  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45804         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45805         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45806
45807 2007-05-01  Bruno Haible  <bruno@clisp.org>
45808
45809         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45810         'assert' module here.
45811
45812 2007-05-01  Bruno Haible  <bruno@clisp.org>
45813
45814         * doc/functions/*.texi: New files.
45815         * doc/functions/google-ranking.txt: New file.
45816         * doc/gnulib.texi (Function Substitutes): New chapter.
45817         (ctime, inet_ntoa): Remove sections.
45818         * doc/ctime.texi: Remove file.
45819         * doc/inet_ntoa.texi: Remove file.
45820         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45821         dependencies.
45822         (%.info): New rule, specifying a --reference-limit.
45823
45824 2007-05-01  Bruno Haible  <bruno@clisp.org>
45825
45826         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45827
45828 2007-05-01  Bruno Haible  <bruno@clisp.org>
45829
45830         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45831         the portability of 'mkdir' to mingw systems.
45832
45833 2007-05-01  Bruno Haible  <bruno@clisp.org>
45834
45835         * doc/headers/google-ranking.txt: New file.
45836
45837 2007-04-30  Eric Blake  <ebb9@byu.net>
45838
45839         Prefer fseeko to fseek.
45840         * modules/getpass (Depends-on): Add fseeko.
45841         * lib/getpass.c (getpass): Use fseeko, not fseek.
45842
45843 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45844
45845         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45846         assumes the sorting is stable, while most qsort implementations
45847         are not.  Use argument addresses to ensure they never compare as
45848         equal.
45849
45850         * tests/test-argp-2.sh (usage-indent test): Fix output
45851         (func_compare): Restore diff options
45852         * tests/test-argp.c: Restore #include "progname.h"
45853
45854 2007-04-29  Bruno Haible  <bruno@clisp.org>
45855
45856         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45858         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45860         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45861         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45862         (TESTS, check_PROGRAMS): Add test-snprintf.
45863         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45864         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45865         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45866         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45867         assertions that fail on HP-UX, OSF/1, or IRIX.
45868         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45869
45870 2007-04-29  Bruno Haible  <bruno@clisp.org>
45871
45872         * MODULES.html.sh (posix_functions): Remove 'contents'.
45873
45874 2007-04-29  Karl Berry  <karl@gnu.org>
45875
45876         * config/srclist.txt (gendocs_template_min): new entry.
45877
45878 2007-04-29  Bruno Haible  <bruno@clisp.org>
45879
45880         Work around fpurge bug on BSD systems.
45881         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45883         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45884         fpurge to rpl_fpurge if the system already has this function.
45885         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45886         the case where the system already has this function. Correct invariants
45887         on BSD systems.
45888         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45889         BSD systems.
45890
45891 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45892
45893         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45894         proposed by Sven Verdoolaege.
45895
45896         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45897         options.
45898         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45899         (usage and help tests): Update
45900
45901 2007-04-29  Bruno Haible  <bruno@clisp.org>
45902
45903         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45904         Print more information in case of failure. Disable a test on BeOS.
45905
45906 2007-04-29  Bruno Haible  <bruno@clisp.org>
45907
45908         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45909         This helps debugging on systems on which no gdb is available.
45910
45911 2007-04-29  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/freading.h: Improve comments.
45914         * lib/fwriting.h: Likewise.
45915         * tests/test-freading.c (main): Don't check freading immediately after
45916         repositioning. Needed for glibc.
45917
45918 2007-04-29  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/freading.c (freading): Trivial simplification.
45921
45922 2007-04-28  Bruno Haible  <bruno@clisp.org>
45923
45924         * tests/test-fwriting.c (main): Also test the interaction between
45925         fflush and fwriting.
45926         * modules/fwriting-tests (Depends-on): Add fflush.
45927
45928         * tests/test-freading.c (main): Also test the interaction between
45929         fflush and freading.
45930         * modules/freading-tests (Depends-on): Add fflush.
45931
45932 2007-04-28  Bruno Haible  <bruno@clisp.org>
45933
45934         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
45935         fseeko and ftello.
45936         Suggested by Eric Blake.
45937
45938 2007-04-28  Jim Meyering  <jim@meyering.net>
45939
45940         Avoid false-negative in gl_STDINT_H's C99 conformance test.
45941         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
45942         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
45943
45944 2007-04-27  Eric Blake  <ebb9@byu.net>
45945
45946         * doc/headers/assert.texi (assert.h): Document assert module use.
45947
45948 2007-04-27  Bruno Haible  <bruno@clisp.org>
45949
45950         * doc/headers/*.texi: New files.
45951         * doc/gnulib.texi (Header File Substitutes): New chapter.
45952         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
45953         dependencies.
45954         (standards.info ,standards.html, standards.dvi): Update dependencies.
45955         (mostlyclean, clean): New targets.
45956
45957 2007-04-27  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
45960         * modules/sysexits (Files, Makefile.am): Update.
45961
45962         * lib/sys_socket_.h: Renamed from lib/socket_.h.
45963         * modules/sys_socket (Files, Makefile.am): Update.
45964
45965         * lib/sys_stat_.h: Renamed from lib/stat_.h.
45966         * modules/sys_stat (Files, Makefile.am): Update.
45967
45968 2007-04-27  Eric Blake  <ebb9@byu.net>
45969
45970         * lib/freading.h: Improve comments.
45971         * lib/fwriting.h: Likewise.
45972         * lib/fflush.c: Likewise.
45973
45974         Fix closein for mingw.
45975         * modules/closein-tests: Add tests for closein.
45976         * tests/test-closein.c: New file.
45977         * tests/test-closein.sh: Likewise.
45978         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45979         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45980
45981 2007-04-27  Bruno Haible  <bruno@clisp.org>
45982
45983         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45984         version is < 6.
45985         * lib/math_.h [__DECC]: Likewise.
45986         * lib/stdio_.h [__DECC]: Likewise.
45987         * lib/stdlib_.h [__DECC]: Likewise.
45988         * lib/string_.h [__DECC]: Likewise.
45989         * lib/time_.h [__DECC]: Likewise.
45990         * lib/wchar_.h [__DECC]: Likewise.
45991         * lib/wctype_.h [__DECC]: Likewise.
45992
45993 2007-04-27  Bruno Haible  <bruno@clisp.org>
45994
45995         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45996
45997 2007-04-27  Bruno Haible  <bruno@clisp.org>
45998
45999         * lib/fflush.c: Add comments.
46000         * modules/fpurge-tests (Depends-on): Add fflush.
46001         * modules/freadable-tests (Depends-on): Likewise.
46002         * modules/fwritable-tests (Depends-on): Likewise.
46003
46004 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
46005
46006         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
46007         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
46008         Report by Bruno Haible <bruno@clisp.org>.
46009
46010 2007-04-26  Eric Blake  <ebb9@byu.net>
46011
46012         Fix fflush on mingw.
46013         * modules/fflush (Depends-on): Add freading.
46014         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
46015         but unread data.
46016
46017 2007-04-26  Eric Blake  <ebb9@byu.net>
46018         and Bruno Haible  <bruno@clisp.org>
46019
46020         Implement freading and fwriting.
46021         * lib/freading.c: New file.
46022         * lib/freading.h: Likewise.
46023         * m4/freading.m4: Likewise.
46024         * modules/freading: Likewise.
46025         * modules/freading-tests: Likewise.
46026         * tests/test-freading.c: Likewise.
46027         * lib/fwriting.c: New file.
46028         * lib/fwriting.h: Likewise.
46029         * m4/fwriting.m4: Likewise.
46030         * modules/fwriting: Likewise.
46031         * modules/fwriting-tests: Likewise.
46032         * tests/test-fwriting.c: Likewise.
46033         * MODULES.html.sh (File stream based Input/Output): Mention them.
46034
46035 2007-04-26  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
46038         'long' when we assume it.
46039         Suggested by Eric Blake.
46040
46041 2007-04-26  Bruno Haible  <bruno@clisp.org>
46042
46043         Ensure fseeko, ftello are declared on glibc systems.
46044         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
46045         * modules/fseeko (configure.ac-early): Likewise.
46046         * modules/ftello (configure.ac-early): Likewise.
46047         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
46048         AC_FUNC_FSEEKO for this.
46049         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
46050         (gl_CHECK_FSEEKO): Remove macro.
46051
46052 2007-04-26  Bruno Haible  <bruno@clisp.org>
46053
46054         * tests/test-fflush.c (main): Also check the ftell result after
46055         fflush and fseek/fseeko.
46056         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
46057         file descriptor position cache in the stream.
46058         * lib/fseeko.c (rpl_fseeko): Likewise.
46059
46060 2007-04-26  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/fflush-tests (Depends-on): Add fseeko.
46063
46064 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
46065             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46066
46067         * lib/argz_.h: ensure error_t definition is obtained in same
46068         mechanism system argz.h would have.
46069         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
46070         argz facilities are known bad.  Err on the side of caution if
46071         cross-compiling.
46072
46073 2007-04-25  Eric Blake  <ebb9@byu.net>
46074
46075         * lib/fpurge.c (includes): Use stdlib.h for free.
46076         * tests/test-fflush.c (main): Also test fflush-fseeko.
46077
46078 2007-04-25  Bruno Haible  <bruno@clisp.org>
46079
46080         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
46081         * lib/fseeko.c: New file.
46082         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
46083         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
46084         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
46085         gl_FUNC_FSEEKO.
46086         (gl_FUNC_FSEEKO): Invoke it.
46087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
46088         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
46089         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
46090
46091 2007-04-25  Bruno Haible  <bruno@clisp.org>
46092
46093         * modules/fflush (Depends-on): Add ftello.
46094
46095 2007-04-25  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/ftello-tests: New file.
46098         * tests/test-ftello.c: New file.
46099
46100         * modules/ftello: New file.
46101         * m4/ftello.m4: New file.
46102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46103         HAVE_FTELLO.
46104         * lib/stdio_.h (ftello): New declaration.
46105         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46106         HAVE_FTELLO.
46107
46108 2007-04-25  Bruno Haible  <bruno@clisp.org>
46109
46110         * modules/fseeko-tests: New file.
46111         * tests/test-fseeko.c: New file.
46112
46113         * modules/fseeko: New file.
46114         * m4/fseeko.m4: New file.
46115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46116         HAVE_FSEEKO.
46117         * lib/stdio_.h (fseeko): New declaration.
46118         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46119         HAVE_FSEEKO.
46120
46121 2007-04-25  Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46124
46125 2007-04-25  Bruno Haible  <bruno@clisp.org>
46126
46127         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46128         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46129         * tests/test-unistd.c: Likewise.
46130         * tests/test-fcntl.c: Likewise.
46131
46132 2007-04-23  Eric Blake  <ebb9@byu.net>
46133
46134         * lib/fflush.c: Fix missing include.
46135         Reported by Bruno Haible.
46136
46137 2007-04-23  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46140         Reported by Eric Blake.
46141
46142 2007-04-23  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46145
46146 2007-04-23  Bruno Haible  <bruno@clisp.org>
46147
46148         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46149
46150 2007-04-23  Bruno Haible  <bruno@clisp.org>
46151
46152         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46153         Needed on HP-UX 11.
46154
46155 2007-04-16  Eric Blake  <ebb9@byu.net>
46156
46157         Make fflush rely on fpurge.
46158         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46159         open coding all variants.
46160         * modules/fflush (Depends-on): Add fpurge and unistd.
46161         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46162         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46163
46164         Fix --with-tests compilation on cygwin.
46165         * modules/argmatch-tests (Makefile.am): List gnulib library first
46166         in LDADD.
46167         * modules/argp-tests (Makefile.am): Likewise.
46168         * modules/array-list-tests (Makefile.am): Likewise.
46169         * modules/array-oset-tests (Makefile.am): Likewise.
46170         * modules/avltree-list-tests (Makefile.am): Likewise.
46171         * modules/avltree-oset-tests (Makefile.am): Likewise.
46172         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46173         * modules/carray-list-tests (Makefile.am): Likewise.
46174         * modules/dirname-tests (Makefile.am): Likewise.
46175         * modules/frexp-tests (Makefile.am): Likewise.
46176         * modules/isnanl-tests (Makefile.am): Likewise.
46177         * modules/linked-list-tests (Makefile.am): Likewise.
46178         * modules/linkedhash-list-tests (Makefile.am): Likewise.
46179         * modules/lock-tests (Makefile.am): Likewise.
46180         * modules/rbtree-list-tests (Makefile.am): Likewise.
46181         * modules/rbtree-oset-tests (Makefile.am): Likewise.
46182         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
46183         * modules/tls-tests (Makefile.am): Likewise.
46184         * modules/tsearch-tests (Makefile.am): Likewise.
46185         * modules/xvasprintf-tests (Makefile.am): Likewise.
46186
46187         Fix fpurge for cygwin.
46188         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
46189         value.
46190         * modules/fpurge-tests (Depends-on): Clean up trash.
46191
46192 2007-04-16  Simon Josefsson  <simon@josefsson.org>
46193
46194         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
46195
46196         * m4/autobuild.m4: Re-indent.
46197
46198 2007-04-13  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/fpurge-tests: New file.
46201         * tests/test-fpurge.c: New file.
46202
46203         * modules/fpurge: New file.
46204         * lib/fpurge.h: New file.
46205         * lib/fpurge.c: New file.
46206         * m4/fpurge.m4: New file.
46207
46208 2007-04-13  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/fbufmode-tests: New file.
46211         * tests/test-fbufmode.c: New file.
46212
46213         * modules/fbufmode: New file.
46214         * lib/fbufmode.h: New file.
46215         * lib/fbufmode.c: New file.
46216         * m4/fbufmode.m4: New file.
46217
46218 2007-04-13  Bruno Haible  <bruno@clisp.org>
46219
46220         * modules/fwritable-tests: New file.
46221         * tests/test-fwritable.c: New file.
46222
46223         * modules/fwritable: New file.
46224         * lib/fwritable.h: New file.
46225         * lib/fwritable.c: New file.
46226         * m4/fwritable.m4: New file.
46227
46228 2007-04-13  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/freadable-tests: New file.
46231         * tests/test-freadable.c: New file.
46232
46233         * modules/freadable: New file.
46234         * lib/freadable.h: New file.
46235         * lib/freadable.c: New file.
46236         * m4/freadable.m4: New file.
46237
46238 2007-04-13  Bruno Haible  <bruno@clisp.org>
46239
46240         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
46241         MOSTLYCLEANFILES.
46242
46243 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46244
46245         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
46246         gzip bootstrap.conf to avoid dragging in i18n machinery.
46247         (gnulib_tool_option): Use it.
46248
46249 2007-04-13  Bruno Haible  <bruno@clisp.org>
46250
46251         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
46252         %F directives.
46253         * tests/test-vasprintf-posix.c (test_function): Likewise.
46254         * tests/test-snprintf-posix.h (test_function): Likewise.
46255         * tests/test-sprintf-posix.h (test_function): Likewise.
46256         * tests/test-fprintf-posix.h (test_function): Likewise.
46257         * tests/test-printf-posix.h (test_function): Likewise.
46258         * tests/test-fprintf-posix.out: Likewise.
46259
46260 2007-04-13  Bruno Haible  <bruno@clisp.org>
46261
46262         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
46263         * modules/tls-tests (configure.ac): Likewise.
46264         Reported by Arto C. Nirkko <anirkko@insel.ch>.
46265
46266 2007-04-13  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/tls.c (glthread_tls_get): Fix return type.
46269         Patch by Arto C. Nirkko <anirkko@insel.ch>.
46270
46271 2007-04-12  Eric Blake  <ebb9@byu.net>
46272
46273         * modules/gettime (Depends-on): Remove gettime.
46274         Reported by Dmitry V. Levin.
46275
46276 2007-04-12  Bruno Haible  <bruno@clisp.org>
46277
46278         * modules/fflush (Include): Mention <stdio.h>.
46279         * modules/strtoimax (Include): Mention <inttypes.h>.
46280         * modules/strtoumax (Include): Likewise.
46281
46282 2007-04-12  Eric Blake  <ebb9@byu.net>
46283
46284         * .cvsignore: New file.
46285         * .gitignore: Likewise.
46286
46287 2007-04-12  Bruno Haible  <bruno@clisp.org>
46288
46289         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
46290         not before, since $(LDADD) often contains libgnu.a.
46291         * modules/striconv-tests (test_striconv_LDADD): Likewise.
46292         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
46293         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
46294         Needed on Cygwin.
46295
46296 2007-04-12  Eric Blake  <ebb9@byu.net>
46297
46298         Work around glibc's failure to flush stdin on fclose.
46299         * lib/closein.c (close_stdin): Flush stdin before closing.
46300
46301         Work around glibc's failure to reset seekable stdin on exit.
46302         * modules/closein: New module.
46303         * lib/closein.c: New file.
46304         * lib/closein.h: Likewise.
46305         * m4/closein.m4: Likewise.
46306         * MODULES.html.sh (File stream based Input/Output): Document it.
46307
46308 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46309
46310         * gnulib-tool: Rename generated 'autobuild' script to
46311         'do-autobuild' in --create-megatestdir output.
46312
46313         * doc/gnulib.texi (Build robot for gnulib): Fix.
46314
46315 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46316
46317         * modules/sysexits (Depends-on): Add absolute-header.
46318
46319 2007-04-12  Eric Blake  <ebb9@byu.net>
46320
46321         No need to preserve errno on success.
46322         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
46323         Reported by Bruno Haible.
46324
46325 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46326
46327         * MODULES.html.sh (Support for maintaining and releasing
46328         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
46329
46330 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46331
46332         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
46333
46334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46335
46336         * modules/autobuild: New module.
46337
46338         * m4/autobuild.m4: New file.
46339
46340 2007-04-11  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
46343         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
46344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
46345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
46346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46347         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46348         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46350         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46351         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
46353         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46354         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
46356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46358         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
46359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
46362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
46365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
46368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46370         Reported by Eric Blake.
46371
46372 2007-04-11  Bruno Haible  <bruno@clisp.org>
46373
46374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
46375
46376 2007-04-10  Bruno Haible  <bruno@clisp.org>
46377
46378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
46379         for NaN and Infinity. Needed on FreeBSD 6.1.
46380         * tests/test-vasnprintf-posix.c (test_function): Undo last change
46381         regarding results for "%010a" of Infinity and NaN.
46382         * tests/test-vasprintf-posix.c (test_function): Likewise.
46383         * tests/test-snprintf-posix.h (test_function): Likewise.
46384         * tests/test-sprintf-posix.h (test_function): Likewise.
46385         * tests/test-fprintf-posix.h (test_function): Likewise.
46386         * tests/test-printf-posix.h (test_function): Likewise.
46387         * tests/test-fprintf-posix.out: Likewise.
46388
46389 2007-04-10  Bruno Haible  <bruno@clisp.org>
46390
46391         * modules/locale-tests: New file.
46392         * tests/test-locale.c: New file.
46393
46394         * modules/locale: New file.
46395         * lib/locale_.h: New file.
46396         * m4/locale_h.m4: New file.
46397
46398 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
46399             Bruno Haible  <bruno@clisp.org>
46400
46401         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
46402         be determined, test for availability of the copysignf, copysign,
46403         copysignl functions.
46404         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
46405         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
46406         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
46407
46408 2007-04-09  Eric Blake  <ebb9@byu.net>
46409
46410         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
46411         * modules/stdio (Makefile.am): Support fflush.
46412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46413         * modules/fflush: New file.
46414         * lib/fflush.c: Likewise.
46415         * m4/fflush.m4: Likewise.
46416         * modules/fflush-tests: New test.
46417         * tests/test-fflush.c: Likewise.
46418         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
46419
46420 2007-04-06  Bruno Haible  <bruno@clisp.org>
46421
46422         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
46423         (VASNPRINTF): Use signbit for faster determination whether to print a
46424         minus sign.
46425         * modules/vasnprintf (Files): Remove lib/float+.h.
46426         * modules/fprintf-posix (Depends-on): Add signbit.
46427         * modules/snprintf-posix (Depends-on): Likewise.
46428         * modules/sprintf-posix (Depends-on): Likewise.
46429         * modules/vasnprintf-posix (Depends-on): Likewise.
46430         * modules/vasprintf-posix (Depends-on): Likewise.
46431         * modules/vfprintf-posix (Depends-on): Likewise.
46432         * modules/vsnprintf-posix (Depends-on): Likewise.
46433         * modules/vsprintf-posix (Depends-on): Likewise.
46434
46435 2007-04-06  Bruno Haible  <bruno@clisp.org>
46436
46437         * tests/test-frexp.c (main): Test also the sign bit of zero results.
46438         * tests/test-frexpl.c (main): Likewise.
46439         * tests/test-ldexpl.c (main): Likewise.
46440         * modules/frexp-tests (Depends-on): Add signbit.
46441         * modules/frexpl-tests (Depdends-on): Likewise.
46442         * modules/ldexpl-tests (Depdends-on): Likewise.
46443
46444 2007-04-06  Bruno Haible  <bruno@clisp.org>
46445
46446         * modules/signbit-tests: New file.
46447         * tests/test-signbit.c: New file.
46448
46449         * modules/signbit: New file.
46450         * lib/signbitf.c: New file.
46451         * lib/signbitd.c: New file.
46452         * lib/signbitl.c: New file.
46453         * m4/signbit.m4: New file.
46454         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
46455         (signbit): New macro.
46456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
46457         REPLACE_SIGNBIT.
46458         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
46459         REPLACE_FREXPL into math.h.
46460
46461 2007-04-06  Bruno Haible  <bruno@clisp.org>
46462
46463         * modules/isnanf-nolibm-tests: New file.
46464         * tests/test-isnanf.c: New file.
46465
46466         * modules/isnanf-nolibm: New file.
46467         * lib/isnanf.h: New file.
46468         * lib/isnanf.c: New file.
46469         * lib/isnan.c: Consider the USE_FLOAT macro.
46470         * m4/isnanf.m4: New file.
46471
46472 2007-04-06  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
46475         (Link): New section.
46476
46477         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
46478
46479 2007-04-06  Bruno Haible  <bruno@clisp.org>
46480
46481         Assume the 'long double' type.
46482         * m4/longdouble.m4: Remove file.
46483         * config/srclist.txt: Don't mention longdouble.m4.
46484         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
46485         * lib/float+.h: Likewise.
46486         * lib/frexp.c: Likewise.
46487         * lib/printf-args.h: Likewise.
46488         * lib/printf-args.c: Likewise.
46489         * lib/printf-frexp.c: Likewise.
46490         * lib/printf-parse.c: Likewise.
46491         * lib/vasnprintf.c: Likewise.
46492         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
46493         * m4/intl.m4: Likewise.
46494         * m4/isnanl.m4: Likewise.
46495         * m4/printf.m4: Likewise.
46496         * m4/printf-frexpl.m4: Likewise.
46497         * m4/vasnprintf.m4: Likewise.
46498         * modules/allocsa (Files): Remove m4/longdouble.m4.
46499         * modules/gettext (Files): Likewise.
46500         * modules/relocatable-prog-wrapper (Files): Likewise.
46501         * modules/vasnprintf (Files): Likewise.
46502         * modules/isnanl (Files): Likewise.
46503         (Include): Simplify.
46504         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46505         (Include): Simplify.
46506         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46507         (Include): Simplify.
46508         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46509         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46510         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46511         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46512         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46514         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46516         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46518         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46520         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46521         * tests/test-isnanl.c: Likewise.
46522         * tests/test-snprintf-posix.h: Likewise.
46523         * tests/test-sprintf-posix.h: Likewise.
46524         * tests/test-vasnprintf-posix.c: Likewise.
46525         * tests/test-vasnprintf-posix2.c: Likewise.
46526         * tests/test-vasprintf-posix.c: Likewise.
46527
46528 2007-04-06  Bruno Haible  <bruno@clisp.org>
46529
46530         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46531         * lib/math_.h [__DECC]: Include the overridden include file through
46532         #include_next, outside the double-inclusion guard.
46533         * lib/stdio_.h [__DECC]: Likewise.
46534         * lib/stdlib_.h [__DECC]: Likewise.
46535         * lib/string_.h [__DECC]: Likewise.
46536         * lib/time_.h [__DECC]: Likewise.
46537         * lib/wchar_.h [__DECC]: Likewise.
46538         * lib/wctype_.h [__DECC]: Likewise.
46539         * lib/inttypes_.h [__DECC]: Likewise.
46540         Reported by Albert Chin <china@thewrittenword.com> in
46541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46542
46543 2007-04-04  Eric Blake  <ebb9@byu.net>
46544
46545         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46546         1.5.x.
46547
46548 2007-04-04  Bruno Haible  <bruno@clisp.org>
46549
46550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46551         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46552
46553 2007-04-04  Bruno Haible  <bruno@clisp.org>
46554
46555         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46556         results for "%010a" of Infinity and NaN.
46557         * tests/test-vasprintf-posix.c (test_function): Likewise.
46558         * tests/test-snprintf-posix.h (test_function): Likewise.
46559         * tests/test-sprintf-posix.h (test_function): Likewise.
46560         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46561         * tests/test-printf-posix.h (test_function): Likewise.
46562         * tests/test-fprintf-posix.out: Update.
46563         Needed for FreeBSD 6.1.
46564
46565 2007-04-04  Bruno Haible  <bruno@clisp.org>
46566
46567         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46568         directly used by the gnulib modules nor by gnulib-tool.
46569
46570 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46571
46572         * DEPENDENCIES: Give overall description of version dependency
46573         desirability.  Use more-typical names for apps.
46574         Add shell, coreutils, diffutils, grep, tar, gzip.
46575
46576 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46577
46578         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46579
46580 2007-04-04  Karl Berry  <karl@gnu.org>
46581
46582         * MODULES.html.sh (func_module): missing '.
46583
46584 2007-04-03  Bruno Haible  <bruno@clisp.org>
46585
46586         * modules/argmatch-tests (Makefile.am): New variable
46587         test_argmatch_LDADD.
46588         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46589         * modules/array-list-tests (Makefile.am): New variable
46590         test_array_list_LDADD.
46591         * modules/array-oset-tests (Makefile.am): New variable
46592         test_array_oset_LDADD.
46593         * modules/avltree-list-tests (Makefile.am): New variable
46594         test_avltree_list_LDADD.
46595         * modules/avltree-oset-tests (Makefile.am): New variable
46596         test_avltree_oset_LDADD.
46597         * modules/avltreehash-list-tests (Makefile.am): New variable
46598         test_avltreehash_list_LDADD.
46599         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46600         test_canonicalize_lgpl_LDADD.
46601         * modules/carray-list-tests (Makefile.am): New variable
46602         test_carray_list_LDADD.
46603         * modules/dirname-tests (Makefile.am): New variable
46604         test_dirname_LDADD.
46605         * modules/linked-list-tests (Makefile.am): New variable
46606         test_linked_list_LDADD.
46607         * modules/linkedhash-list-tests (Makefile.am): New variable
46608         test_linkedhash_list_LDADD.
46609         * modules/rbtree-list-tests (Makefile.am): New variable
46610         test_rbtree_list_LDADD.
46611         * modules/rbtree-oset-tests (Makefile.am): New variable
46612         test_rbtree_oset_LDADD.
46613         * modules/rbtreehash-list-tests (Makefile.am): New variable
46614         test_rbtreehash_list_LDADD.
46615         * modules/xvasprintf-tests (Makefile.am): New variable
46616         test_xvasprintf_LDADD.
46617         Reported by Eric Blake.
46618
46619 2007-04-03  Eric Blake  <ebb9@byu.net>
46620
46621         * DEPENDENCIES: Weaken m4 requirements.
46622
46623 2007-04-03  Bruno Haible  <bruno@clisp.org>
46624
46625         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46626         * modules/isnanl-tests (configure.ac): Likewise.
46627
46628 2007-04-03  Ben Pfaff  <blp@gnu.org>
46629
46630         * modules/iconv_open: Add $(srcdir)/ to source directory
46631         references in Makefile fragments that call gperf, to fix VPATH
46632         builds.
46633
46634 2007-04-03  Bruno Haible  <bruno@clisp.org>
46635
46636         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46637         * lib/ldexpl.c: Undo last change.
46638
46639 2007-04-03  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/printf-frexpl (Depends-on): Undo last change.
46642         (Files): Add m4/ldexpl.m4.
46643
46644 2007-04-03  Bruno Haible  <bruno@clisp.org>
46645
46646         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46647         * modules/isnanl (Link): New section.
46648
46649         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46650         * modules/frexp (Link): New section.
46651
46652         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46653         * modules/frexpl (Link): New section.
46654
46655         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46656         * modules/ldexpl (Link): New section.
46657
46658 2007-04-03  Bruno Haible  <bruno@clisp.org>
46659
46660         * modules/TEMPLATE-EXTENDED: New file.
46661         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46662
46663 2007-04-03  Bruno Haible  <bruno@clisp.org>
46664
46665         * DEPENDENCIES: New file.
46666         Suggested by Simon Josefsson.
46667
46668 2007-04-03  Bruno Haible  <bruno@clisp.org>
46669
46670         * doc/gnulib.texi: Escape @.
46671
46672 2007-04-03  James Youngman  <jay@gnu.org>
46673         and Paul Eggert  <eggert@cs.ucla.edu>
46674
46675         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46676         birthtime on all systems that have birthtime, not just those which
46677         use st_birthtimensec rather than st_birthtim.  Putting zero in
46678         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46679         that the birth time is not available for files on an NFS mount.
46680
46681 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46682
46683         * modules/memxor: Move back from crypto/, suggested by Bruno.
46684         * modules/crypto/hmac-sha1: Fix memxor dependency.
46685
46686         * modules/crypto/gc: Moved from ../.
46687
46688 2007-04-02  Eric Blake  <ebb9@byu.net>
46689
46690         * lib/ldexpl.c (includes): Avoid libm.
46691
46692         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46693
46694 2007-04-02  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46697         on IRIX.
46698
46699 2007-04-02  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46702         x86 or x86_64 platforms running MacOS X.
46703         Reported by Ryan Schmidt <@ryandesign.com>.
46704
46705 2007-04-02  Bruno Haible  <bruno@clisp.org>
46706
46707         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46708         i386.
46709
46710 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46711
46712         * modules/crypto/arcfour: Moved from ../.
46713         * modules/crypto/arcfour-tests: Moved from ../.
46714         * modules/crypto/arctwo: Moved from ../.
46715         * modules/crypto/arctwo-tests: Moved from ../.
46716         * modules/crypto/des: Moved from ../.
46717         * modules/crypto/des-tests: Moved from ../.
46718         * modules/crypto/gc-arcfour: Moved from ../.
46719         * modules/crypto/gc-arcfour-tests: Moved from ../.
46720         * modules/crypto/gc-arctwo: Moved from ../.
46721         * modules/crypto/gc-arctwo-tests: Moved from ../.
46722         * modules/crypto/gc-des: Moved from ../.
46723         * modules/crypto/gc-des-tests: Moved from ../.
46724         * modules/crypto/gc-hmac-md5: Moved from ../.
46725         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46726         * modules/crypto/gc-hmac-sha1: Moved from ../.
46727         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46728         * modules/crypto/gc-md2: Moved from ../.
46729         * modules/crypto/gc-md2-tests: Moved from ../.
46730         * modules/crypto/gc-md4: Moved from ../.
46731         * modules/crypto/gc-md4-tests: Moved from ../.
46732         * modules/crypto/gc-md5: Moved from ../.
46733         * modules/crypto/gc-md5-tests: Moved from ../.
46734         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46735         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46736         * modules/crypto/gc-random: Moved from ../.
46737         * modules/crypto/gc-rijndael: Moved from ../.
46738         * modules/crypto/gc-rijndael-tests: Moved from ../.
46739         * modules/crypto/gc-sha1: Moved from ../.
46740         * modules/crypto/gc-sha1-tests: Moved from ../.
46741         * modules/crypto/gc-tests: Moved from ../.
46742         * modules/crypto/hmac-md5: Moved from ../.
46743         * modules/crypto/hmac-md5-tests: Moved from ../.
46744         * modules/crypto/hmac-sha1: Moved from ../.
46745         * modules/crypto/hmac-sha1-tests: Moved from ../.
46746         * modules/crypto/md2: Moved from ../.
46747         * modules/crypto/md2-tests: Moved from ../.
46748         * modules/crypto/md4: Moved from ../.
46749         * modules/crypto/md4-tests: Moved from ../.
46750         * modules/crypto/md5: Moved from ../.
46751         * modules/crypto/md5-tests: Moved from ../.
46752         * modules/crypto/memxor: Moved from ../.
46753         * modules/crypto/rijndael: Moved from ../.
46754         * modules/crypto/rijndael-tests: Moved from ../.
46755         * modules/crypto/sha1: Moved from ../.
46756
46757 2007-03-30  James Youngman  <jay@gnu.org>
46758
46759         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46760         rename() to change the ctime of a file (because ctime is unaffected
46761         by rename on jfs2 on AIX 5.1).
46762         (main): Start by doing cleanup, in case a previous run failed leaving
46763         test files behind.
46764
46765 2007-03-31  Bruno Haible  <bruno@clisp.org>
46766
46767         Support old proprietary implementations of iconv.
46768         * modules/iconv_open: New file.
46769         * lib/iconv_.h: New file.
46770         * m4/iconv_h.m4: New file.
46771         * lib/iconv_open.c: New file.
46772         * lib/iconv_open-aix.gperf: New file.
46773         * lib/iconv_open-hpux.gperf: New file.
46774         * lib/iconv_open-irix.gperf: New file.
46775         * lib/iconv_open-osf.gperf: New file.
46776         * m4/iconv_open.m4: New file.
46777         * modules/linebreak (Depends-on): Add iconv_open.
46778         * modules/striconv (Depends-on): Likewise.
46779         * modules/striconveh (Depends-on): Likewise.
46780         * modules/unicodeio (Depends-on): Likewise.
46781         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46782         (iconv_t)(-1).
46783         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46784         conversion if cd is (iconv_t)(-1).
46785         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46786         is not possible.
46787
46788 2007-03-31  Bruno Haible  <bruno@clisp.org>
46789
46790         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46791         work on Solaris either. Protect also second use of "autodetect_jp".
46792
46793 2007-03-31  Bruno Haible  <bruno@clisp.org>
46794
46795         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46796         the function is not present.
46797
46798 2007-03-31  Bruno Haible  <bruno@clisp.org>
46799
46800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46801         the function is not present.
46802
46803 2007-03-31  Bruno Haible  <bruno@clisp.org>
46804
46805         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46806         a bug in HP-UX iconv_open().
46807
46808 2007-03-31  Bruno Haible  <bruno@clisp.org>
46809
46810         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46811         (Mathematics <math.h>): New section, add fpieee.
46812         (Input/output <stdio.h>): Add fseterr.
46813         (Mathematics <math.h>): New section, add printf-frexp.
46814         (Container data structures): Add sublist.
46815         (Core language properties): Add fpucw, inline.
46816         (Functions for greatest-width integer types <inttypes.h>): Add
46817         imaxabs, imaxdiv, inttypes.
46818         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46819         isnanl-nolibm, ldexp.
46820         (Mathematics <math.h>): New section, add printf-frexpl.
46821         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46822         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46823         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46824         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46825         (Unicode string functions): Add unistr/u*-mbtoucr.
46826         (Java): Add javacomp-script, javaexec-script.
46827         (C#): Add csharpcomp-script, csharpexec-script.
46828         (Support for building libraries and executables): Add havelib,
46829         relocatable-*.
46830         (Support for maintaining and releasing projects): Renamed from
46831         'Support for maintaining and release projects'. Add announce-gen.
46832
46833 2007-03-31  Bruno Haible  <bruno@clisp.org>
46834
46835         * README: Talk primarily about git.
46836         (git and CVS): Renamed from CVS.
46837         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46838         gnulib is available through git.
46839         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46840
46841 2007-03-30  Bruno Haible  <bruno@clisp.org>
46842
46843         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46844         * lib/poll_.h: Likewise.
46845         * lib/stat_.h: Likewise.
46846         * lib/sys_time_.h: Likewise.
46847         * lib/sysexit_.h: Likewise.
46848         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46849         * lib/stdbool_.h: Likewise.
46850         * lib/byteswap_.h: Add double-inclusion guard.
46851
46852 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46853
46854         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46855
46856 2007-03-30  Karl Berry  <karl@gnu.org>
46857
46858         * config/srclist-update: double space after USA in the license
46859         substitution, since that's how it's usually (?) written.
46860
46861 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46862
46863         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46864         reported by Bruno Haible.
46865
46866 2007-03-29  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46869         a bug in AIX iconv().
46870
46871 2007-03-29  Bruno Haible  <bruno@clisp.org>
46872
46873         * modules/ldexpl-tests: New file.
46874         * tests/test-ldexpl.c: New file.
46875
46876 2007-03-29  Bruno Haible  <bruno@clisp.org>
46877
46878         * lib/ldexpl.c: Include fpucw.h.
46879         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46880         multiplication.
46881         * modules/ldexpl (Depends-on): Add fpucw.
46882
46883 2007-03-29  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/ldexpl: New file.
46886         * m4/ldexpl.m4: New file.
46887         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46888         set.
46889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46890         REPLACE_LDEXPL.
46891         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46892         REPLACE_LDEXPL.
46893         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46894         gl_FUNC_LDEXPL_WORKS.
46895         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46896         * modules/mathl (Files): Remove lib/ldexpl.c.
46897         (Depends-on): Add ldexpl.
46898
46899 2007-03-29  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46902
46903 2007-03-29  Bruno Haible  <bruno@clisp.org>
46904
46905         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46906         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46907         and possibly also HP-UX.
46908         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46909         work on AIX, IRIX, HP-UX, OSF/1.
46910         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46911         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46912         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46913         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46914         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46915         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46916
46917 2007-03-29  Bruno Haible  <bruno@clisp.org>
46918
46919         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46920
46921 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46922
46923         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46924         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46925
46926 2007-03-29  Eric Blake  <ebb9@byu.net>
46927
46928         * lib/acl-internal.h: Remove redundant include.
46929         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
46930         Cygwin when a file is locked.
46931
46932 2007-03-29  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
46935         file.
46936         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
46937
46938 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46939
46940         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
46941         try to remove a parent directory if the child couldn't be removed
46942         (except for the first rmdir, which could fail because the child
46943         doesn't exist).  Problem reported by Jeff Blaine in
46944         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
46945
46946 2007-03-28  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/striconveh.c (utf8conv_carefully): New function.
46949         (mem_cd_iconveh_internal): Invoke it.
46950
46951 2007-03-28  Bruno Haible  <bruno@clisp.org>
46952
46953         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
46954         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
46955         input.
46956         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
46957         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
46958         unistr/u8-uctomb.
46959
46960 2007-03-28  Bruno Haible  <bruno@clisp.org>
46961
46962         * modules/unistr/u8-mbtoucr: New file.
46963         * lib/unistr/u8-mbtoucr.c: New file.
46964         * modules/unistr/u16-mbtoucr: New file.
46965         * lib/unistr/u16-mbtoucr.c: New file.
46966         * modules/unistr/u16-mbtoucr: New file.
46967         * lib/unistr/u16-mbtoucr.c: New file.
46968         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
46969
46970 2007-03-27  Simon Josefsson  <simon@josefsson.org>
46971             Bruno Haible  <bruno@clisp.org>
46972
46973         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46974         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46975         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46976
46977         * m4/stdio_h.m4: Add stubs for vasprintf too.
46978
46979         * modules/stdio: Support vasprintf in sed command.
46980
46981         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46982         vasprintf.h.  Add stdio module indicator.
46983
46984         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46985         vasprintf.h.
46986
46987         * lib/vasprintf.h: File removed.
46988
46989         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46990         * lib/vasprintf.c: Ditto.
46991         * lib/xvasprintf.c: Ditto.
46992         * tests/test-vasprintf-posix.c: Ditto.
46993         * tests/test-vasprintf.c: Ditto.
46994
46995 2007-03-27  Bruno Haible  <bruno@clisp.org>
46996
46997         Make vasnprintf multithread-safe.
46998         * lib/vasnprintf.c (decimal_point_char): New function.
46999         (VASNPRINTF): Use it.
47000         Suggested by Simon Josefsson.
47001
47002 2007-03-27  Eric Blake  <ebb9@byu.net>
47003
47004         Support sub-second birthtime on cygwin.
47005         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
47006         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
47007         (get_stat_birthtime): Also work with st_birthtim.
47008
47009 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
47010
47011         * lib/stat-time.h (USE_BIRTHTIME): Remove.
47012         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
47013         (get_stat_birthtime_ns): Do not try to use "spare" fields.
47014         (get_stat_birthtime_ns): Simplify compile-time tests.
47015         (get_stat_birthtime): Change the API to look like
47016         get_stat_mtime etc., except return a negative tv_nsec on error.
47017         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
47018         Don't check for "spare" fields.
47019         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
47020         or for struct stat.st_birthtime, as these tests aren't used.
47021         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
47022
47023 2007-03-27  Bruno Haible  <bruno@clisp.org>
47024
47025         * lib/stat-time.h: Include <sys/stat.h>.
47026
47027 2007-03-27  James Youngman  <jay@gnu.org>
47028
47029         * lib/stat-time.h (get_stat_birthtime): New function for
47030           retrieving st_birthtime as provided by UFS2 (hence *BSD).
47031         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
47032           and its variants.
47033         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
47034         * modules/stat-time-test: New file.
47035         * tests/test-stat-time.c: New test, devised by Bruno Haible.
47036
47037 2007-03-26  Bruno Haible  <bruno@clisp.org>
47038
47039         Better support of signalling NaNs.
47040         * lib/atanl.c: Include isnanl.h.
47041         (atanl): Perform test for NaN at the beginning of the function and
47042         through a call to isnanl.
47043         * lib/cosl.c: Include isnanl.h.
47044         (cosl): Perform test for NaN at the beginning of the function and
47045         through a call to isnanl.
47046         * lib/ldexpl.c: Include isnanl.h.
47047         (ldexpl): Perform test for NaN through a call to isnanl.
47048         * lib/logl.c: Include isnanl.h.
47049         (logl): Perform test for NaN at the beginning of the function and
47050         through a call to isnanl.
47051         * lib/sinl.c: Include isnanl.h.
47052         (sinl): Perform test for NaN at the beginning of the function and
47053         through a call to isnanl.
47054         * lib/sqrtl.c: Include isnanl.h.
47055         (sqrtl): Perform test for NaN at the beginning of the function and
47056         through a call to isnanl.
47057         * lib/tanl.c: Include isnanl.h.
47058         (tanl): Perform test for NaN at the beginning of the function and
47059         through a call to isnanl.
47060         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
47061         * modules/mathl (Depends-on): Add isnanl.
47062
47063 2007-03-26  Eric Blake  <ebb9@byu.net>
47064
47065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
47066         regression in logic sense of previous patch.
47067
47068 2007-03-26  Bruno Haible  <bruno@clisp.org>
47069
47070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
47071         unportable shell command "if ! ...".
47072         Reported by Ralf Wildenhues.
47073
47074 2007-03-25  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
47077         <sysexits.h> file, and only add EX_CONFIG.
47078         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
47079         absolute file name and whether it is sufficient. Substitute also
47080         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
47081         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
47082         ABSOLUTE_SYSEXITS_H into sysexits.h.
47083
47084 2007-03-25  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
47087         hints is NULL.
47088
47089 2007-03-25  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
47092         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
47093
47094 2007-03-25  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/vasnprintf.c: Include langinfo.h.
47097         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
47098         multithread-safe.
47099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
47100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
47101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47108         Reported by Simon Josefsson.
47109
47110 2007-03-25  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47113         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47114         * modules/vasnprintf (Depends-on): Add stdint.
47115
47116 2007-03-25  Bruno Haible  <bruno@clisp.org>
47117
47118         * modules/fpieee: New file.
47119         * m4/fpieee.m4: New file.
47120         * modules/isnan-nolibm (Depends-on): Add fpieee.
47121         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47122         * modules/isnanl (Depends-on): Add fpieee.
47123
47124 2007-03-25  Bruno Haible  <bruno@clisp.org>
47125
47126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47127
47128 2007-03-25  Bruno Haible  <bruno@clisp.org>
47129
47130         Avoid test failures on IRIX 6.5.
47131         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47132         (main): Use it.
47133         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47134         macros.
47135         (main): Use them.
47136
47137 2007-03-25  Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47140         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47141         exists but doesn't work.
47142         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47143         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47145         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47146
47147 2007-03-25  Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47150         returns inf. Needed on IRIX 6.5.
47151
47152 2007-03-25  Bruno Haible  <bruno@clisp.org>
47153
47154         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47155         (main): Use isnanl instead of x != x idiom.
47156         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47157
47158         * tests/test-frexp.c: Include isnan.h.
47159         (main): Use isnan instead of x != x idiom.
47160         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47161
47162 2007-03-25  Bruno Haible  <bruno@clisp.org>
47163
47164         * tests/test-frexp.c (NaN): New function/macro.
47165         (main): Use it instead of 0.0 / 0.0.
47166         * tests/test-isnan.c (NaN): New function/macro.
47167         (main): Use it instead of 0.0 / 0.0.
47168         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47169         (test_function): Use it instead of 0.0 / 0.0.
47170         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47171         (test_function): Use it instead of 0.0 / 0.0.
47172         * tests/test-snprintf-posix.h (NaN): New function/macro.
47173         (test_function): Use it instead of 0.0 / 0.0.
47174         * tests/test-sprintf-posix.h (NaN): New function/macro.
47175         (test_function): Use it instead of 0.0 / 0.0.
47176         * tests/test-fprintf-posix.h (NaN): New function/macro.
47177         (test_function): Use it instead of 0.0 / 0.0.
47178         * tests/test-printf-posix.h (NaN): New function/macro.
47179         (test_function): Use it instead of 0.0 / 0.0.
47180
47181         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47182
47183 2007-03-25  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
47186
47187 2007-03-25  Bruno Haible  <bruno@clisp.org>
47188
47189         * lib/regexec.c (merge_state_with_log): Make static.
47190
47191 2007-03-25  Bruno Haible  <bruno@clisp.org>
47192
47193         * lib/trigl.c (kernel_rem_pio2): Make static.
47194
47195 2007-03-25  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/sincosl.c (sincosl_table): Make static.
47198
47199 2007-03-25  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
47202         if the compiler does not support C99.
47203
47204 2007-03-25  Bruno Haible  <bruno@clisp.org>
47205
47206         * modules/time (Makefile.am): Ensure all rule action lines start with a
47207         tab.
47208
47209 2007-03-24  Bruno Haible  <bruno@clisp.org>
47210
47211         * modules/tsearch-tests: New file.
47212         * tests/test-tsearch.sh: New file.
47213         * tests/test-tsearch.c: New file, mostly copied from glibc.
47214
47215         * modules/search-tests: New file.
47216         * tests/test-search.c: New file.
47217
47218         * modules/search: New file.
47219         * lib/search_.h: New file, incorporating lib/tsearch.h.
47220         * m4/search_h.m4: New file.
47221         * lib/tsearch.h: Remove file.
47222         * lib/tsearch.c: Include search.h instead of tsearch.h.
47223         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
47224         HAVE_TSEARCH.
47225         * modules/tsearch (Files): Remove lib/tsearch.h.
47226         (Depends-on): Add search.
47227         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
47228         (Include): Change tsearch.h into search.h.
47229
47230 2007-03-24  Bruno Haible  <bruno@clisp.org>
47231
47232         * modules/fpucw: New file.
47233         * lib/fpucw.h: New file.
47234         * lib/frexp.c: Include fpucw.h.
47235         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47236         (FUNC): Use them.
47237         * lib/printf-frexp.c: Include fpucw.h.
47238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47239         (FUNC): Use them.
47240         * lib/vasnprintf.c: Include fpucw.h.
47241         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
47242         'long double' calculations.
47243         * tests/test-frexpl.c: Include fpucw.h.
47244         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47245         * tests/test-printf-frexpl.c: Include fpucw.h.
47246         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47247         * modules/frexpl (Depends-on): Add fpucw.
47248         * modules/printf-frexpl (Depends-on): Likewise.
47249         * modules/fprintf-posix (Depends-on): Likewise.
47250         * modules/snprintf-posix (Depends-on): Likewise.
47251         * modules/sprintf-posix (Depends-on): Likewise.
47252         * modules/vasnprintf-posix (Depends-on): Likewise.
47253         * modules/vasprintf-posix (Depends-on): Likewise.
47254         * modules/vfprintf-posix (Depends-on): Likewise.
47255         * modules/vsnprintf-posix (Depends-on): Likewise.
47256         * modules/vsprintf-posix (Depends-on): Likewise.
47257         * modules/frexpl-tests (Depends-on): Likewise.
47258         * modules/printf-frexpl-tests (Depends-on): Likewise.
47259
47260 2007-03-24  Bruno Haible  <bruno@clisp.org>
47261
47262         * lib/float+.h: New file.
47263         * lib/isnan.c: Include float+.h.
47264         (SIZE): New macro.
47265         (FUNC): Compare only SIZE bytes of the value.
47266         * lib/vasnprintf.c: Include float+.h.
47267         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
47268         SIZEOF_LDBL or SIZEOF_DBL bytes.
47269         * modules/isnan-nolibm (Files): Add lib/float+.h.
47270         * modules/isnanl-nolibm (Files): Add lib/float+.h.
47271         * modules/isnanl (Files): Add lib/float+.h.
47272         * modules/vasnprintf (Files): Add lib/float+.h.
47273
47274 2007-03-24  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
47277         include isnanl-nolibm.h.
47278
47279 2007-03-24  Bruno Haible  <bruno@clisp.org>
47280
47281         * tests/test-read-file.c (main): Don't produce spurious output for
47282         expected situations. Make the test fail if it encountered unexpected
47283         results.
47284
47285 2007-03-24  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
47288         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
47289
47290 2007-03-24  Bruno Haible  <bruno@clisp.org>
47291
47292         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
47293
47294 2007-03-24  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
47297         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
47298
47299         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
47300         * modules/utf8-ucs4: Turn into a symbolic link to module
47301         unistr/u8-mbtouc.
47302
47303         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
47304         utf8-ucs4-unsafe.
47305         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
47306         unistr/u8-mbtouc-unsafe.
47307
47308         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
47309         * modules/utf16-ucs4: Turn into a symbolic link to module
47310         unistr/u16-mbtouc.
47311
47312         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
47313         utf16-ucs4-unsafe.
47314         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
47315         unistr/u16-mbtouc-unsafe.
47316
47317         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
47318         * modules/ucs4-utf8: Turn into a symbolic link to module
47319         unistr/u8-ubtomb.
47320
47321         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
47322         * modules/ucs4-utf16: Turn into a symbolic link to module
47323         unistr/u16-ubtomb.
47324
47325 2007-03-24  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
47328         Enable the function only if HAVE_INLINE.
47329         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
47330         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47331         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
47332         Enable the function only if HAVE_INLINE.
47333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
47334         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47335         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
47336         Enable the function only if HAVE_INLINE.
47337         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
47338         Enable the function only if HAVE_INLINE.
47339         * modules/utf8-ucs4: Update.
47340         * modules/utf8-ucs4-unsafe: Update.
47341         * modules/utf16-ucs4: Update.
47342         * modules/utf16-ucs4-unsafe: Update.
47343         * modules/ucs4-utf8: Update.
47344         * modules/ucs4-utf16: Update.
47345
47346 2007-03-24  Bruno Haible  <bruno@clisp.org>
47347
47348         * lib/utf8-ucs4.h: Remove file.
47349         * lib/utf8-ucs4-unsafe.h: Remove file.
47350         * lib/utf16-ucs4.h: Remove file.
47351         * lib/utf16-ucs4-unsafe.h: Remove file.
47352         * lib/ucs4-utf8.h: Remove file.
47353         * lib/ucs4-utf16.h: Remove file.
47354         * lib/unistr.h: Include their previous contents.
47355         * m4/utf-ucs4.m4: Remove file.
47356         * m4/ucs4-utf.m4: Remove file.
47357         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
47358         (Depends-on): Add unistr/base.
47359         (configure.ac): Remove gl_UTF_UCS4.
47360         (Makefile.am): Update.
47361         (Include): Change to unistr.h.
47362         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
47363         (Depends-on): Add unistr/base.
47364         (configure.ac): Remove gl_UTF_UCS4.
47365         (Makefile.am): Update.
47366         (Include): Change to unistr.h.
47367         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
47368         (Depends-on): Add unistr/base.
47369         (configure.ac): Remove gl_UTF_UCS4.
47370         (Makefile.am): Update.
47371         (Include): Change to unistr.h.
47372         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
47373         (Depends-on): Add unistr/base.
47374         (configure.ac): Remove gl_UTF_UCS4.
47375         (Makefile.am): Update.
47376         (Include): Change to unistr.h.
47377         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
47378         (Depends-on): Add unistr/base.
47379         (configure.ac): Remove gl_UCS4_UTF.
47380         (Makefile.am): Update.
47381         (Include): Change to unistr.h.
47382         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
47383         (Depends-on): Add unistr/base.
47384         (configure.ac): Remove gl_UCS4_UTF.
47385         (Makefile.am): Update.
47386         (Include): Change to unistr.h.
47387         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
47388         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
47389         utf8-ucs4-unsafe.h.
47390         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
47391         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
47392         utf16-ucs4-unsafe.h.
47393         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
47394         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
47395         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
47396         * lib/unistr/u8-strchr.c: Likewise.
47397         * lib/unistr/u8-strrchr.c: Likewise.
47398         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
47399         * lib/unistr/u16-strchr.c: Likewise.
47400         * lib/unistr/u16-strrchr.c: Likewise.
47401         * lib/striconveh.c: Update.
47402         * lib/linebreak.c: Update.
47403
47404 2007-03-24  Bruno Haible  <bruno@clisp.org>
47405
47406         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
47407         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
47408
47409 2007-03-22  Bruno Haible  <bruno@clisp.org>
47410
47411         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
47412
47413 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
47414
47415         * MODULES.html.sh (File system functions): New module write-any-file.
47416         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
47417         * m4/write-any-file.m4: New files.
47418
47419 2007-03-23  Eric Blake  <ebb9@byu.net>
47420
47421         * gnulib-tool: Rearrange space-tab sequences, since some editors
47422         like to eat them.
47423
47424 2007-03-23  Eric Blake  <ebb9@byu.net>
47425
47426         * lib/version-etc.c (version_etc_va): Update license wording to
47427         be more concise.  Recommended by Richard Stallman.
47428
47429 2007-03-22  Bruno Haible  <bruno@clisp.org>
47430
47431         * lib/poll.c (MSG_PEEK): New fallback definition.
47432
47433 2007-03-22  Bruno Haible  <bruno@clisp.org>
47434
47435         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
47436         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
47437         (main): Update.
47438         Fixes a compilation error on BeOS.
47439
47440 2007-03-22  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/frexpl-tests: New file.
47443         * tests/test-frexpl.c: New file.
47444
47445         * modules/frexpl: New file.
47446         * m4/frexpl.m4: New file.
47447         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
47448         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
47449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
47450         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
47451         (Depends-on): Add frexpl. Remove isnanl-nolibm.
47452         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
47453
47454 2007-03-22  Bruno Haible  <bruno@clisp.org>
47455
47456         * lib/frexpl.c: Share code with lib/frexp.c.
47457         * modules/mathl (Files): Add lib/frexp.c.
47458         (Depends-on): Add isnanl-nolibm.
47459
47460 2007-03-22  Bruno Haible  <bruno@clisp.org>
47461
47462         * modules/printf-frexp (Files): Add m4/frexp.m4.
47463         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
47464         only if the found frexp function actually works.
47465
47466 2007-03-22  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/frexp.c: Remove older implementation that uses divisions.
47469
47470 2007-03-21  Bruno Haible  <bruno@clisp.org>
47471
47472         * modules/frexp-tests: New file.
47473         * tests/test-frexp.c: New file.
47474
47475         * modules/frexp: New file.
47476         * lib/frexp.c: New file.
47477         * m4/frexp.m4: New file.
47478         * lib/math_.h (frexp): New declaration.
47479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
47480         REPLACE_FREXP.
47481         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
47482
47483 2007-03-21  Bruno Haible  <bruno@clisp.org>
47484
47485         * modules/isnanl-tests: New file.
47486         * tests/test-isnanl.c: New file.
47487
47488         * modules/isnanl: New file.
47489         * lib/isnanl.h: New file.
47490         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
47491         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
47492         gl_FUNC_ISNANL_WORKS.
47493         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
47494         New macros.
47495
47496 2007-03-21  Bruno Haible  <bruno@clisp.org>
47497
47498         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47499         lib/isnanl.h.
47500         (Include): Update.
47501         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47502         * lib/vasnprintf.c: Update.
47503         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47504         tests/test-isnanl.h, remove tests/test-isnanl.c.
47505         (Makefile.am): Update.
47506         * tests/test-isnanl-nolibm.c: New file.
47507         * tests/test-isnanl.h: New file.
47508         * tests/test-isnanl.c: Remove file.
47509
47510 2007-03-21  Jim Meyering  <jim@meyering.net>
47511
47512         When trying to open ".", treat ESTALE like EACCES.
47513         * lib/savewd.c (savewd_save): Resort to forking not just upon
47514         failure with EACCES, but also when errno is ESTALE.
47515
47516 2007-03-20  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47519         Needed on AIX 5.1. Reported by Matthew Woehlke.
47520
47521 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47522
47523         Suggestions by Bruno Haible:
47524         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47525         our own.
47526         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47527         * modules/acl (Depends-on): Add gettext.
47528
47529 2007-03-19  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/iconvme: Remove file.
47532         * lib/iconvme.h: Remove file.
47533         * lib/iconvme.c: Remove file.
47534         * m4/iconvme.m4: Remove file.
47535
47536 2007-03-19  Bruno Haible  <bruno@clisp.org>
47537
47538         * doc/relocatable-maint.texi: Break long shell script line.
47539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47540
47541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47542
47543         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47544         handle file_has_acl.
47545         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47546         * lib/acl.c: Move header inclusions and related macro defns into
47547         lib/acl-internal.h.
47548         (S_ISLNK): Remove defn, since that's now done for us.
47549         (file_has_acl): Move to lib/file-has-acl.c.
47550         Call acl_trivial if available.  This is the crucial part of the fix.
47551         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47552         shared within the library.  Rewrite a bit, partly to make it compatible
47553         with the GNU coding style.
47554         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47555         Remove unnecessary double-quotes.
47556         Don't test for acl_to_text; the build will catch that.
47557         Replace acl_entries if it doesn't exist and it is needed.
47558         Check for -lsec and acl_trivial (as used on Solaris 10).
47559         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47560         lib/file-has-acl.c.
47561         (Depends-on): Add sys_stat, for S_ISLNK.
47562
47563 2007-03-19  Ben Pfaff  <blp@gnu.org>
47564
47565         * doc/gnulib.texi: Fix typos.
47566         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47567
47568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47569
47570         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47571         If size is zero here, buf must be zero.
47572
47573 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47574
47575         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47576         <bruno@clisp.org>.
47577
47578 2007-03-18  Bruno Haible  <bruno@clisp.org>
47579
47580         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47581         Suggested by Eric Blake.
47582
47583 2007-03-18  Ben Pfaff  <blp@gnu.org>
47584
47585         * doc/relocatable.texi: Recommend using as prefix a directory
47586         that does not exist and will never be created.  Based on
47587         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47588         and others.
47589
47590 2007-03-17  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/fchownat.c: Include lchown.h.
47593
47594 2007-03-17  Bruno Haible  <bruno@clisp.org>
47595
47596         Fix endless loop when the given allocated size was > INT_MAX.
47597         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47598         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47599         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47600         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47601         * lib/sprintf.c (sprintf): Likewise.
47602
47603 2007-03-17  Bruno Haible  <bruno@clisp.org>
47604
47605         * tests/test-argp-2.sh (func_compare): Output a context diff.
47606
47607 2007-03-17  Bruno Haible  <bruno@clisp.org>
47608
47609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47610         locale's decimal-point character.
47611
47612 2007-03-17  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47615         before comparing it. Needed because on some platforms (e.g. x86) a
47616         'long double' occupies less bytes than sizeof (long double).
47617
47618 2007-03-17  Bruno Haible  <bruno@clisp.org>
47619
47620         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47621         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47622         * tests/test-getaddrinfo.c (simple): Likewise.
47623         * tests/test-read-file.c (main): Likewise.
47624
47625 2007-03-17  Bruno Haible  <bruno@clisp.org>
47626
47627         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47628
47629 2007-03-17  Bruno Haible  <bruno@clisp.org>
47630
47631         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47632         unused variable.
47633
47634 2007-03-17  Bruno Haible  <bruno@clisp.org>
47635
47636         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47637         * tests/test-c-strncasecmp.c: Likewise.
47638
47639 2007-03-17  Bruno Haible  <bruno@clisp.org>
47640
47641         * modules/stdlib (Depends-on): Add unistd.
47642         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47643         Needed for MacOS X 10.3.
47644
47645 2007-03-17  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47648
47649 2007-03-17  Bruno Haible  <bruno@clisp.org>
47650
47651         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47652
47653 2007-03-17  Bruno Haible  <bruno@clisp.org>
47654
47655         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47656         to reflect files copied from gnulib (with or without modifications).
47657         Suggested by Jim Meyering.
47658
47659 2007-03-17  Eric Blake  <ebb9@byu.net>
47660
47661         * NEWS: Document stdlib change from 2007-02-18.
47662
47663 2007-03-17  Jim Meyering  <jim@meyering.net>
47664
47665         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47666         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47667         someone uses a name containing shell meta-characters.
47668         Reported by Alfred M. Szmidt.
47669
47670         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47671
47672 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47673
47674         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47675         and copy gettext configuration files only if configure.ac contains
47676         a use of AM_GNU_GETTEXT_VERSION.
47677
47678 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47679
47680         * build-aux/bootstrap (gnulib_name): New variable.
47681         (gnulib_tool_options): Use it.
47682
47683 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47684
47685         * tests/test-des.c: Use new namespace.
47686
47687 2007-03-15  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47690         Reported by James Youngman <jay@gnu.org>.
47691
47692 2007-03-15  Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47695         declared prototype. Needed with cc on OSF/1 5.1.
47696
47697 2007-03-15  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47700         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47701         (struct gl_list_implementation): Add dispose_fn argument to the
47702         'create_empty', 'create' methods.
47703         (struct gl_list_impl_base): Add field 'dispose_fn'.
47704         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47705         argument.
47706         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47707         dispose_fn argument.
47708         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47709         dispose_fn on the dropped values.
47710         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47711         dispose_fn argument.
47712         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47713         dropped values.
47714         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47715         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47716         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47717         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47718         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47719         argument.
47720         (gl_tree_list_free): Call dispose_fn on the dropped values.
47721         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47722         the dropped values.
47723         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47724         Add dispose_fn argument.
47725         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47726         Call dispose_fn on the dropped values.
47727         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47728         Add dispose_fn argument.
47729         (gl_sublist_create): Initialize the 'dispose_fn' field.
47730         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47731         * tests/test-array_list.c (main): Update.
47732         * tests/test-carray_list.c (main): Update.
47733         * tests/test-avltree_list.c (main): Update.
47734         * tests/test-rbtree_list.c (main): Update.
47735         * tests/test-avltreehash_list.c (main): Update.
47736         * tests/test-rbtreehash_list.c (main): Update.
47737         * tests/test-linked_list.c (main): Update.
47738         * tests/test-linkedhash_list.c (main): Update.
47739         * tests/test-array_oset.c (main): Update.
47740
47741 2007-03-15  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47744         (gl_oset_create_empty): Add dispose_fn argument.
47745         (struct gl_oset_implementation): Add dispose_fn argument to
47746         'create_empty' method.
47747         (struct gl_oset_impl_base): Add dispose_fn field.
47748         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47749         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47750         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47751         values.
47752         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47753         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47754         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47755         dropped value.
47756         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47757         dropped value.
47758         * tests/test-array_oset.c (main): Update.
47759         * tests/test-avltree_oset.c (main): Update.
47760         * tests/test-rbtree_oset.c (main): Update.
47761         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47762
47763 2007-03-13  Bruno Haible  <bruno@clisp.org>
47764
47765         * tests/test-stdbool.c (i): Update after last patch.
47766
47767 2007-03-12  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47770         the iswprint macro. Needed on Solaris 2.5.1.
47771
47772 2007-03-12  Bruno Haible  <bruno@clisp.org>
47773
47774         * tests/test-printf-frexp.c (main): Declare x as volatile.
47775
47776 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47777
47778         * doc/gnulib.texi (Build robot for gnulib): New section.
47779
47780 2007-03-12  Jim Meyering  <jim@meyering.net>
47781
47782         * build-aux/bootstrap: New file.
47783         * build-aux/bootstrap.conf: New file, from coreutils.
47784
47785 2007-03-11  Bruno Haible  <bruno@clisp.org>
47786
47787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47788
47789 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47790
47791         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47792         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47793         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47794
47795 2007-03-11  Bruno Haible  <bruno@clisp.org>
47796
47797         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47798         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47799
47800 2007-03-11  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47803         formula. Needed for SunPRO C 5.0.
47804
47805 2007-03-11  Bruno Haible  <bruno@clisp.org>
47806
47807         * modules/long-options (Depends-on): Add getopt.
47808
47809 2007-03-11  Bruno Haible  <bruno@clisp.org>
47810
47811         * modules/modechange (Depends-on): Add stdbool.
47812
47813 2007-03-11  Bruno Haible  <bruno@clisp.org>
47814
47815         * modules/i-ring (Depends-on): Add stdbool.
47816
47817 2007-03-11  Bruno Haible  <bruno@clisp.org>
47818
47819         * modules/gc-des (Depends-on): Add stdbool.
47820
47821 2007-03-11  Bruno Haible  <bruno@clisp.org>
47822
47823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47824
47825 2007-03-11  Bruno Haible  <bruno@clisp.org>
47826
47827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47828
47829 2007-03-11  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47832
47833 2007-03-11  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/vasnprintf.c (sprintf): Undefine.
47836
47837 2007-03-11  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47840         initializers in SunPRO C and Compaq C compilers.
47841
47842 2007-03-11  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47845         decrementing code ANSI C compliant.
47846
47847 2007-03-11  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47850         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47851
47852 2007-03-11  Bruno Haible  <bruno@clisp.org>
47853
47854         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47855         <stdbool.h> substitute doesn't pass.
47856
47857 2007-03-11  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47860
47861 2007-03-11  Bruno Haible  <bruno@clisp.org>
47862
47863         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47864         script, for submission to autobuild.josefsson.org.
47865
47866 2007-03-10  Bruno Haible  <bruno@clisp.org>
47867
47868         * modules/canonicalize-lgpl-tests: New file.
47869         * tests/test-canonicalize-lgpl.sh: New file.
47870         * tests/test-canonicalize-lgpl.c: New file.
47871
47872         * modules/c-strcase-tests: New file.
47873         * tests/test-c-strcase.sh: New file.
47874         * tests/test-c-strcasecmp.c: New file.
47875         * tests/test-c-strncasecmp.c: New file.
47876
47877         * modules/atexit-tests: New file.
47878         * tests/test-atexit.sh: New file.
47879         * tests/test-atexit.c: New file.
47880
47881 2007-03-10  Bruno Haible  <bruno@clisp.org>
47882
47883         * tests/test-binary-io.sh: Use temporary filenames that are not so
47884         likely to clash with those of other tests (in a parallel make).
47885         * tests/test-binary-io.c: Likewise.
47886
47887 2007-03-10  Bruno Haible  <bruno@clisp.org>
47888
47889         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47890         fallback; use #error instead.
47891         Suggested by Simon Josefsson.
47892
47893 2007-03-10  Bruno Haible  <bruno@clisp.org>
47894
47895         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47896         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47897         first and the last.
47898
47899 2007-03-10  Bruno Haible  <bruno@clisp.org>
47900
47901         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47902
47903 2007-03-10  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47906         "make distcheck".
47907         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47908         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47909         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47910
47911 2007-03-10  Bruno Haible  <bruno@clisp.org>
47912
47913         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47914         variable.
47915         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47916         variable.
47917
47918 2007-03-09  Eric Blake  <ebb9@byu.net>
47919         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47920
47921         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47922         types are not being provided by gnulib.
47923         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47924         types are supported.
47925
47926 2007-03-10  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/stdio_.h (__attribute__): New macro.
47929         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
47930         vsprintf): Specify __attribute__ __format__ for GCC.
47931         Suggested by Eric Blake.
47932
47933 2007-03-09  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/printf-posix-tests: New file.
47936         * tests/test-printf-posix.sh: New file.
47937         * tests/test-printf-posix.c: New file.
47938
47939         * modules/printf-posix: New file.
47940         * lib/printf.c: New file.
47941         * m4/printf-posix-rpl.m4: New file.
47942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
47943         REPLACE_PRINTF.
47944         * lib/stdio_.h (printf): New declaration.
47945         (format, __format__, ____printf____, ____scanf____, ____strftime____,
47946         ____strfmon____): New macros.
47947         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
47948         REPLACE_PRINTF.
47949
47950 2007-03-09  Bruno Haible  <bruno@clisp.org>
47951
47952         * tests/test-vasnprintf-posix2.sh: New file.
47953         * tests/test-vasnprintf-posix2.c: New file.
47954         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
47955         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47956         (Makefile.am): Activate test-vasnprintf-posix2.sh.
47957
47958         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
47959         a locale dependent decimal point, rather than always '.'.
47960
47961 2007-03-09  Eric Blake  <ebb9@byu.net>
47962
47963         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
47964         spite of platforms like Tandem/NSK that define it to -1.
47965
47966 2007-03-08  Bruno Haible  <bruno@clisp.org>
47967
47968         * modules/vprintf-posix-tests: New file.
47969         * tests/test-vprintf-posix.sh: New file.
47970         * tests/test-vprintf-posix.c: New file.
47971         * tests/test-printf-posix.h: New file.
47972
47973         * modules/vprintf-posix: New file.
47974         * lib/vprintf.c: New file.
47975         * m4/vprintf-posix.m4: New file.
47976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47977         REPLACE_VPRINTF.
47978         * lib/stdio_.h (vprintf): New declaration.
47979         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47980         REPLACE_VPRINTF.
47981
47982 2007-03-08  Bruno Haible  <bruno@clisp.org>
47983
47984         * modules/fprintf-posix-tests: New file.
47985         * tests/test-fprintf-posix.sh: New file.
47986         * tests/test-fprintf-posix.c: New file.
47987
47988         * modules/fprintf-posix: New file.
47989         * lib/fprintf.c: New file.
47990         * m4/fprintf-posix.m4: New file.
47991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47992         REPLACE_FPRINTF.
47993         * lib/stdio_.h (fprintf): New declaration.
47994         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47995         REPLACE_FPRINTF.
47996
47997 2007-03-08  Bruno Haible  <bruno@clisp.org>
47998
47999         * modules/vfprintf-posix-tests: New file.
48000         * tests/test-vfprintf-posix.sh: New file.
48001         * tests/test-vfprintf-posix.c: New file.
48002         * tests/test-fprintf-posix.h: New file.
48003         * tests/test-fprintf-posix.out: New file.
48004
48005         * modules/vfprintf-posix: New file.
48006         * lib/vfprintf.c: New file.
48007         * m4/vfprintf-posix.m4: New file.
48008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
48009         REPLACE_VFPRINTF.
48010         * lib/stdio_.h (vfprintf): New declaration.
48011         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
48012         REPLACE_VFPRINTF.
48013
48014 2007-03-08  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
48017
48018 2007-03-08  Bruno Haible  <bruno@clisp.org>
48019
48020         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
48021         instead of 'expr' invocations.
48022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48027         Suggested by Paul Eggert.
48028
48029 2007-03-08  Bruno Haible  <bruno@clisp.org>
48030
48031         * modules/fseterr-tests: New file.
48032         * tests/test-fseterr.c: New file.
48033
48034         * modules/fseterr: New file.
48035         * lib/fseterr.h: New file.
48036         * lib/fseterr.c: New file.
48037
48038 2007-03-08  Bruno Haible  <bruno@clisp.org>
48039
48040         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
48041         * lib/getopt_.h: Likewise.
48042         * lib/mbswidth.h: Likewise.
48043         * lib/setenv.h: Likewise.
48044         * lib/vasnprintf.h: Likewise.
48045         * lib/vasprintf.h: Likewise.
48046         * lib/verror.h: Likewise.
48047         * lib/xsetenv.h: Likewise.
48048         * lib/xvasprintf.h: Likewise.
48049
48050 2007-03-08  Jim Meyering  <jim@meyering.net>
48051
48052         * users.txt: Add parted.
48053
48054         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
48055
48056 2007-03-07  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/printf.m4: Make the shell script snippets copy&pastable.
48059
48060 2007-03-02  Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/netinet_in_.h: New file.
48063         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
48064         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
48065         * modules/netinet_in (Files): Add lib/netinet_in_.h.
48066         (Depends-on): Add absolute-header.
48067         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
48068         into netinet/in.h.
48069
48070 2007-03-03  Bruno Haible  <bruno@clisp.org>
48071
48072         * lib/sys_select_.h: New file.
48073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
48074         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
48075         * modules/sys_select (Files): Add lib/sys_select_.h.
48076         (Depends-on): Add absolute-header.
48077         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
48078         into sys/select.h.
48079
48080 2007-03-02  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
48083         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
48084         values.
48085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
48086         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
48087         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
48088         * modules/sys_socket (Depends-on): Add absolute-header.
48089         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
48090         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
48091         (Include): Remove requirement of inclusion of <sys/types.h>.
48092
48093 2007-03-02  Bruno Haible  <bruno@clisp.org>
48094
48095         * lib/byteswap_.h (bswap_32): Fix formula.
48096
48097 2007-03-06  Bruno Haible  <bruno@clisp.org>
48098
48099         * modules/sprintf-posix-tests: New file.
48100         * tests/test-sprintf-posix.c: New file.
48101
48102         * modules/sprintf-posix: New file.
48103         * lib/sprintf.c: New file.
48104         * m4/sprintf-posix.m4: New file.
48105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48106         REPLACE_SPRINTF.
48107         * lib/stdio_.h (sprintf): New declaration.
48108         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48109         REPLACE_SPRINTF.
48110
48111 2007-03-06  Bruno Haible  <bruno@clisp.org>
48112
48113         * modules/vsprintf-posix-tests: New file.
48114         * tests/test-vsprintf-posix.c: New file.
48115         * tests/test-sprintf-posix.h: New file.
48116
48117         * modules/vsprintf-posix: New file.
48118         * lib/vsprintf.c: New file.
48119         * m4/vsprintf-posix.m4: New file.
48120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48121         REPLACE_VSPRINTF.
48122         * lib/stdio_.h (vsprintf): New declaration.
48123         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48124         REPLACE_VSPRINTF.
48125
48126 2007-03-06  Bruno Haible  <bruno@clisp.org>
48127
48128         * modules/vsnprintf (Depend-on): Remove minmax.
48129
48130 2007-03-06  Bruno Haible  <bruno@clisp.org>
48131
48132         * modules/snprintf-posix-tests: New file.
48133         * tests/test-snprintf-posix.c: New file.
48134
48135         * modules/snprintf-posix: New file.
48136         * m4/snprintf-posix.m4: New file.
48137         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48138         gl_FUNC_SNPRINTF.
48139         (gl_FUNC_SNPRINTF): Invoke it.
48140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48141         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48142         is set.
48143         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48144
48145 2007-03-06  Bruno Haible  <bruno@clisp.org>
48146
48147         * modules/vsnprintf-posix-tests: New file.
48148         * tests/test-vsnprintf-posix.c: New file.
48149         * tests/test-snprintf-posix.h: New file.
48150
48151         * modules/vsnprintf-posix: New file.
48152         * m4/vsnprintf-posix.m4: New file.
48153         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48154         gl_FUNC_VSNPRINTF.
48155         (gl_FUNC_VSNPRINTF): Invoke it.
48156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48157         * lib/stdio_.h (vsnprintf): Define as a replacement if
48158         REPLACE_VSNPRINTF is set.
48159         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48160
48161 2007-03-06  Bruno Haible  <bruno@clisp.org>
48162
48163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48165
48166 2007-03-06  Bruno Haible  <bruno@clisp.org>
48167
48168         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48169         (asinl): Declare also if HAVE_DECL_ASINL is set.
48170         (atanl): Declare also if HAVE_DECL_ATANL is set.
48171         (ceill): Declare also if HAVE_DECL_CEILL is set.
48172         (cosl): Declare also if HAVE_DECL_COSL is set.
48173         (expl): Declare also if HAVE_DECL_EXPL is set.
48174         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48175         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48176         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
48177         (logl): Declare also if HAVE_DECL_LOGL is set.
48178         (sinl): Declare also if HAVE_DECL_SINL is set.
48179         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
48180         (tanl): Declare also if HAVE_DECL_TANL is set.
48181         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
48182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
48183         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
48184         declaration of frexpl, ldexpl.
48185         * modules/printf-frexpl (Depends-on): Add math.
48186         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
48187
48188 2007-03-05  Bruno Haible  <bruno@clisp.org>
48189
48190         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
48191         frexpl and ldexpl are declared.
48192         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
48193
48194 2007-03-05  Bruno Haible  <bruno@clisp.org>
48195
48196         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
48197         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
48198
48199 2007-03-05  Bruno Haible  <bruno@clisp.org>
48200
48201         * lib/stdio_.h: Include <stddef.h>.
48202
48203 2007-03-05  Bruno Haible  <bruno@clisp.org>
48204
48205         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
48206
48207 2007-03-05  Bruno Haible  <bruno@clisp.org>
48208
48209         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
48210         NetBSD 4, from Ralf Wildenhues.
48211
48212 2007-03-04  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/vasprintf.h: Update #if logic for the case when the functions
48215         exist but are overridden.
48216
48217 2007-03-04  Bruno Haible  <bruno@clisp.org>
48218
48219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
48220         implementations: glibc-2.4 and MacOS X 10.3.
48221         * tests/test-vasnprintf-posix.c (test_function): Test also the case
48222         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
48223         * tests/test-vasprintf-posix.c (test_function): Likewise.
48224
48225 2007-03-04  Bruno Haible  <bruno@clisp.org>
48226
48227         * modules/vasprintf-posix-tests: New file.
48228         * tests/test-vasprintf-posix.c: New file.
48229
48230         * modules/vasprintf-posix: New file.
48231         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
48232         defined.
48233         * m4/vasprintf-posix.m4: New file.
48234         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
48235         gl_FUNC_VASPRINTF.
48236         (gl_FUNC_VASPRINTF): Invoke it.
48237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
48238         here.
48239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
48240
48241 2007-03-04  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
48244         REPLACE_GETTIMEOFDAY.
48245         * modules/sys_time (Makefile.am): Likewise.
48246         * m4/sys_time_h.m4: Likewise.
48247         * m4/gettimeofday.m4: Likewise.
48248
48249 2007-03-04  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/vasnprintf-posix-tests: New file.
48252         * tests/test-vasnprintf-posix.c: New file.
48253
48254         * modules/vasnprintf-posix: New file.
48255         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
48256         printf-frexpl.h.
48257         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
48258         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
48259         REPLACE_VASNPRINTF is defined.
48260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
48261         gl_FUNC_VASNPRINTF.
48262         (gl_FUNC_VASNPRINTF): Invoke it.
48263         * m4/vasnprintf-posix.m4: New file.
48264         * m4/printf.m4: New file.
48265
48266 2007-03-04  Bruno Haible  <bruno@clisp.org>
48267
48268         Compile progreloc.c only if --enable-relocatable is specified.
48269         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
48270         if --enable-relocatable was specified.
48271         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
48272         lib_SOURCES.
48273
48274 2007-03-04  Jim Meyering  <jim@meyering.net>
48275
48276         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
48277         Use it consistently, rather than enumerating errno constants.
48278
48279 2007-03-04  Bruno Haible  <bruno@clisp.org>
48280
48281         * modules/xvasprintf-tests: New file.
48282         * tests/test-xvasprintf.c: New file.
48283
48284         * modules/vasprintf-tests: New file.
48285         * tests/test-vasprintf.c: New file.
48286
48287         * modules/vasnprintf-tests: New file.
48288         * tests/test-vasnprintf.c: New file.
48289
48290         * modules/vsnprintf-tests: New file.
48291         * tests/test-vsnprintf.c: New file.
48292
48293         * modules/snprintf-tests: New file.
48294         * tests/test-snprintf.c: New file.
48295
48296 2007-03-04  Bruno Haible  <bruno@clisp.org>
48297
48298         Compile relocatable.c only if --enable-relocatable is specified.
48299         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
48300         gl_RELOCATABLE_LIBRARY.
48301         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
48302         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
48303         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
48304         gl_RELOCATABLE_LIBRARY.
48305         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
48306         (Makefile.am): Remove lib_SOURCES.
48307         * modules/relocatable-lib-lgpl (configure.ac): Invoke
48308         gl_RELOCATABLE_LIBRARY.
48309         (Makefile.am): Remove lib_SOURCES.
48310         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
48311         always.
48312         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48313         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
48314
48315 2007-03-04  Bruno Haible  <bruno@clisp.org>
48316
48317         * modules/argmatch-tests: New file.
48318         * tests/test-argmatch.c: New file.
48319
48320         * tests/test-allocsa.c (main): Halve the number of loop runs.
48321
48322         * modules/alloca-opt-tests: New file.
48323         * tests/test-alloca-opt.c: New file.
48324
48325 2007-03-04  Jim Meyering  <jim@meyering.net>
48326
48327         Work around difference between Linux ACLs and Solaris 10 ZFS.
48328         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
48329         for EINVAL.
48330
48331 2007-03-03  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/relocatable-prog (Depends-on): Add back progreloc's
48334         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
48335
48336 2007-03-03  Bruno Haible  <bruno@clisp.org>
48337
48338         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
48339         * modules/relocatable-lib: New file.
48340
48341 2007-03-03  Bruno Haible  <bruno@clisp.org>
48342
48343         * modules/relocatable-prog: Renamed from modules/relocatable.
48344         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
48345
48346 2007-03-03  Bruno Haible  <bruno@clisp.org>
48347
48348         * modules/relocatable-script (Files): Add doc/relocatable.texi,
48349         m4/relocatable-lib.m4.
48350         (Depends-on): Remove 'relocatable'.
48351         (configure.ac): Add gl_RELOCATABLE_NOP.
48352
48353 2007-03-03  Bruno Haible  <bruno@clisp.org>
48354
48355         * modules/relocatable-prog-wrapper: New file.
48356         * modules/relocatable (Depends-on): Add it. Remove all other
48357         dependencies except progname.
48358         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
48359
48360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
48361         (gl_FUNC_STRERROR): Nop.
48362         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
48363
48364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
48365         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
48366
48367         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
48368         (gl_FUNC_READLINK): Update.
48369
48370         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
48371
48372 2007-03-03  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/xreadlink.c: Include <unistd.h> unconditionally.
48375         * modules/xreadlink (Depends-on): Add unistd.
48376         * modules/xreadlink-with-size (Depends-on): Likewise.
48377
48378 2007-03-03  Bruno Haible  <bruno@clisp.org>
48379
48380         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
48381         extracted from gt_FUNC_SETENV.
48382         (gt_FUNC_SETENV): Remove macro.
48383         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
48384         remove gt_FUNC_SETENV.
48385
48386 2007-03-03  Bruno Haible  <bruno@clisp.org>
48387
48388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
48389         ENABLE_RELOCATABLE here.
48390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
48391
48392 2007-03-03  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/rbtreehash-list-tests (Depends-on): Add progname.
48395         * tests/test-rbtreehash_list.c: Include progname.h.
48396         (main): Call set_program_name.
48397
48398         * modules/rbtree-oset-tests (Depends-on): Add progname.
48399         * tests/test-rbtree_oset.c: Include progname.h.
48400         (main): Call set_program_name.
48401
48402         * modules/rbtree-list-tests (Depends-on): Add progname.
48403         * tests/test-rbtree_list.c: Include progname.h.
48404         (main): Call set_program_name.
48405
48406         * modules/linked-list-tests (Depends-on): Add progname.
48407         * tests/test-linked_list.c: Include progname.h.
48408         (main): Call set_program_name.
48409
48410 2007-03-03  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
48413         All uses of __restrict changed to _Restrict_.
48414         * lib/glob_.h (__restrict): Remove macro.
48415
48416 2007-03-02  Bruno Haible  <bruno@clisp.org>
48417
48418         * modules/gettext (configure.ac): Require gettext infrastructure
48419         from version 0.16.1.
48420
48421 2007-03-02  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/linkedhash-list-tests (Depends-on): Add progname.
48424         * tests/test-linkedhash_list.c: Include progname.h.
48425         (main): Call set_program_name.
48426
48427         * modules/carray-list-tests (Depends-on): Add progname.
48428         * tests/test-carray_list.c: Include progname.h.
48429         (main): Call set_program_name.
48430
48431         * modules/avltreehash-list-tests (Depends-on): Add progname.
48432         * tests/test-avltreehash_list.c: Include progname.h.
48433         (main): Call set_program_name.
48434
48435         * modules/avltree-oset-tests (Depends-on): Add progname.
48436         * tests/test-avltree_oset.c: Include progname.h.
48437         (main): Call set_program_name.
48438
48439         * modules/avltree-list-tests (Depends-on): Add progname.
48440         * tests/test-avltree_list.c: Include progname.h.
48441         (main): Call set_program_name.
48442
48443         * modules/array-oset-tests (Depends-on): Add progname.
48444         * tests/test-array_oset.c: Include progname.h.
48445         (main): Call set_program_name.
48446
48447         * modules/array-list-tests (Depends-on): Add progname.
48448         * tests/test-array_list.c: Include progname.h.
48449         (main): Call set_program_name.
48450
48451         * modules/argp-tests (Depends-on): Add progname.
48452         * tests/test-argp.c: Include argp.h first. Include progname.h.
48453         (main): Call set_program_name.
48454
48455 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
48456
48457         * doc/gnulib-tool.texi (Initial import): Reword description of
48458         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
48459         limited effect even if defined after the first system include.
48460
48461 2007-03-01  Bruno Haible  <bruno@clisp.org>
48462
48463         * build-aux/config.libpath: Update to libtool-1.5.22.
48464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48465
48466 2007-03-01  Bruno Haible  <bruno@clisp.org>
48467
48468         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
48469         foo_CFLAGS.
48470         Reported by Ralf Wildenhues.
48471
48472 2007-03-01  Bruno Haible  <bruno@clisp.org>
48473
48474         * build-aux/install-reloc: Remove object files left over by some
48475         compilers.
48476         Reported by Ralf Wildenhues.
48477
48478 2007-03-01  Bruno Haible  <bruno@clisp.org>
48479
48480         * build-aux/install-reloc: Break long lines.
48481
48482 2007-03-01  Bruno Haible  <bruno@clisp.org>
48483
48484         * doc/relocatable.texi: Document that it may not work on OpenBSD.
48485         Reported by Ralf Wildenhues.
48486
48487 2007-03-01  Bruno Haible  <bruno@clisp.org>
48488
48489         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
48490         include ordering constraints.
48491
48492 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48493
48494         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
48495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
48496         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48497         as another example.
48498         * lib/time_.h: Fix misspelling.
48499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48500         Require gl_HEADER_TIME_H_DEFAULTS.
48501         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48502         * m4/time_r.m4 (gl_TIME_R): Likewise.
48503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48504
48505 2007-03-01  Bruno Haible  <bruno@clisp.org>
48506
48507         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48508         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48509
48510 2007-03-01  Jim Meyering  <jim@meyering.net>
48511
48512         * modules/xreadlink (Maintainer): Add my name.
48513         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48514
48515 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48516             Bruno Haible  <bruno@clisp.org>
48517
48518         * build-aux/install-reloc: Compile also c-ctype.c.
48519         * build-aux/relocatable.sh.in: New file.
48520         * doc/relocatable.texi: New file.
48521         * doc/relocatable-maint.texi: New file.
48522         * doc/gnulib.texi: Include relocatable-maint.texi.
48523         * lib/progreloc.c: Include unistd.h unconditionally.
48524         * lib/relocwrapper.c: Include unistd.h unconditionally.
48525         Include c-ctype.h.
48526         (add_dotbin): Use c_tolower.
48527         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48528         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48529         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48530         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48531         to m4/relocatable-lib.m4.
48532         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48533         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48534         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48535         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48536         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48537         * modules/relocatable: New file.
48538         * modules/relocatable-lib: New file.
48539         * modules/relocatable-script: New file.
48540
48541 2007-02-28  Bruno Haible  <bruno@clisp.org>
48542
48543         Import --enable-relocatable infrastructure.
48544         * build-aux/config.libpath: New file, from GNU gettext.
48545         * build-aux/install-reloc: New file, from GNU gettext.
48546         * build-aux/reloc-ldflags: New file, from GNU gettext.
48547         * lib/relocatable.h: New file, from GNU gettext.
48548         * lib/relocatable.c: New file, from GNU gettext.
48549         * lib/relocwrapper.c: New file, from GNU gettext.
48550         * m4/relocatable.m4: New file, from GNU gettext.
48551
48552 2007-02-28  Bruno Haible  <bruno@clisp.org>
48553
48554         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48555
48556         * modules/xreadlink: New file, from GNU gettext with modifications.
48557         * lib/xreadlink.c: New file, from GNU gettext.
48558         * lib/xreadlink.h: Add comments.
48559         (xreadlink): New declaration.
48560
48561         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48562         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48563         lib/xreadlink-with-size.c.
48564         (configure.ac): Remove gl_XREADLINK invocation.
48565         (Makefile.am): Augment lib_SOURCES.
48566         * m4/xreadlink.m4: Remove file.
48567         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48568         (xreadlink_with_size): Renamed from xreadink.
48569         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48570         * modules/canonicalize (Depends-on): Replace xreadlink with
48571         xreadlink-with-size.
48572         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48573
48574 2007-02-25  Jim Meyering  <jim@meyering.net>
48575
48576         * build-aux/announce-gen: When complaining about excess arguments,
48577         list them.
48578
48579 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48580
48581         * README: Document signed integer overflow situation more
48582         accurately.
48583
48584 2007-02-25  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48587         'a' or 'A' conversion.
48588
48589 2007-02-25  Bruno Haible  <bruno@clisp.org>
48590
48591         * modules/filename: Renamed from modules/pathname.
48592         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48593         lib/concatpath.c with lib/concat-filename.c.
48594         (Makefile.am): Update.
48595         (Include): Replace pathname.h with filename.h.
48596         * lib/filename.h: Renamed from lib/pathname.h.
48597         (concatenated_filename): Renamed from concatenated_pathname.
48598         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48599         (concatenated_filename): Renamed from concatenated_pathname.
48600         * lib/findprog.c: Include filename.h instead of pathname.h.
48601         (find_in_path): Update.
48602         * lib/javacomp.c: Include filename.h instead of pathname.h.
48603         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48604         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48605         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48606         is_oldgcj_14_13_usable, is_javac_usable): Update.
48607         * lib/javaexec.c: Include filename.h instead of pathname.h.
48608         (execute_java_class): Update.
48609         * modules/findprog: Update.
48610         * modules/javacomp: Update.
48611         * modules/javaexec: Update.
48612         * MODULES.html.sh (File system functions): Add 'filename', remove
48613         'pathname'.
48614
48615 2007-02-25  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/printf-frexpl-tests: New file.
48618         * tests/test-printf-frexpl.c: New file.
48619
48620         * modules/printf-frexpl: New file.
48621         * lib/printf-frexpl.h: New file.
48622         * lib/printf-frexpl.c: New file.
48623         * m4/printf-frexpl.m4: New file.
48624
48625 2007-02-25  Bruno Haible  <bruno@clisp.org>
48626
48627         * modules/printf-frexp-tests: New file.
48628         * tests/test-printf-frexp.c: New file.
48629
48630         * modules/printf-frexp: New file.
48631         * lib/printf-frexp.h: New file.
48632         * lib/printf-frexp.c: New file.
48633         * m4/printf-frexp.m4: New file.
48634
48635 2007-02-25  Bruno Haible  <bruno@clisp.org>
48636
48637         Assume automake >= 1.10 for the tests.
48638         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48639         * modules/arctwo-tests: Likewise.
48640         * modules/argp-tests: Likewise.
48641         * modules/avltree-list-tests: Likewise.
48642         * modules/avltree-oset-tests: Likewise.
48643         * modules/avltreehash-list-tests: Likewise.
48644         * modules/carray-list-tests: Likewise.
48645         * modules/crc-tests: Likewise.
48646         * modules/des-tests: Likewise.
48647         * modules/gc-arcfour-tests: Likewise.
48648         * modules/gc-arctwo-tests: Likewise.
48649         * modules/gc-des-tests: Likewise.
48650         * modules/gc-hmac-md5-tests: Likewise.
48651         * modules/gc-hmac-sha1-tests: Likewise.
48652         * modules/gc-md2-tests: Likewise.
48653         * modules/gc-md4-tests: Likewise.
48654         * modules/gc-md5-tests: Likewise.
48655         * modules/gc-pbkdf2-sha1-tests: Likewise.
48656         * modules/gc-rijndael-tests: Likewise.
48657         * modules/gc-sha1-tests: Likewise.
48658         * modules/gc-tests: Likewise.
48659         * modules/getaddrinfo-tests: Likewise.
48660         * modules/hmac-md5-tests: Likewise.
48661         * modules/hmac-sha1-tests: Likewise.
48662         * modules/linked-list-tests: Likewise.
48663         * modules/linkedhash-list-tests: Likewise.
48664         * modules/lock-tests: Likewise.
48665         * modules/md2-tests: Likewise.
48666         * modules/md4-tests: Likewise.
48667         * modules/md5-tests: Likewise.
48668         * modules/rbtree-list-tests: Likewise.
48669         * modules/rbtree-oset-tests: Likewise.
48670         * modules/rbtreehash-list-tests: Likewise.
48671         * modules/read-file-tests: Likewise.
48672         * modules/rijndael-tests: Likewise.
48673         * modules/stdint-tests: Likewise.
48674         * modules/tls-tests: Likewise.
48675
48676 2007-02-24  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48679         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48680         function; instead check whether isnan with a double argument links.
48681         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48682         function; instead check whether isnan with a 'long double' argument
48683         links.
48684         Reported by Eric Blake <ebb9@byu.net>.
48685
48686 2007-02-24  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48689         defined.
48690         * lib/isnanl.c: Remove all code. Just include isnan.c.
48691         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48692
48693 2007-02-25  Jim Meyering  <jim@meyering.net>
48694
48695         Avoid conflicting types for 'unsetenv' on FreeBSD.
48696         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48697         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48698         in stdlib.h.
48699
48700 2007-02-24  Bruno Haible  <bruno@clisp.org>
48701
48702         * modules/isnanl-nolibm-tests: New file.
48703         * tests/test-isnanl.c: New file.
48704
48705         * modules/isnanl-nolibm: New file.
48706         * lib/isnanl.h: New file.
48707         * lib/isnanl.c: New file.
48708         * m4/isnanl.m4: New file.
48709
48710 2007-02-24  Bruno Haible  <bruno@clisp.org>
48711
48712         * modules/isnan-nolibm-tests: New file.
48713         * tests/test-isnan.c: New file.
48714
48715         * modules/isnan-nolibm: New file.
48716         * lib/isnan.h: New file.
48717         * lib/isnan.c: New file.
48718         * m4/isnan.m4: New file.
48719
48720 2007-02-24  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48723         assume that an exponent fits in 20 bits.
48724
48725 2007-02-24  Jim Meyering  <jim@meyering.net>
48726
48727         * m4/regex.m4: Update the description of the configure-time option,
48728         --without-included-regex, to state accurately what the defaults are,
48729         and perhaps to give people an idea why using this option is risky.
48730
48731 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48732
48733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48734         loops on small arguments.  This attempts to avoid the problem
48735         Bruno Haible reported for AIX 4.3.2 in
48736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48737
48738 2007-02-23  Bruno Haible  <bruno@clisp.org>
48739
48740         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48741         Needed for help2man.
48742
48743 2007-02-23  Karl Berry  <karl@gnu.org>
48744
48745         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48746         exists, foo.h should be cvs-ignored, not committed.
48747
48748 2007-02-23  Eric Blake  <ebb9@byu.net>
48749
48750         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48751         * lib/stat-time.h (includes): Likewise.
48752         * lib/utimecmp.c (includes): Likewise.
48753         * lib/utimens.h (includes): Likewise.
48754         * lib/getdate.y (includes): Also include "timespec.h" for use
48755         internal to the module.
48756         * modules/utimens (Depends-on): Revert yesterday's patch.
48757         * modules/nanosleep (Depends-on): Add missing dependency.
48758
48759 2007-02-22  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/glob.c: Don't include getlogin_r.h.
48762
48763 2007-02-22  Jim Meyering  <jim@meyering.net>
48764
48765         * modules/utimens (Depends-on): Add timespec, required for
48766         utimens.h's inclusion of timespec.h.
48767
48768 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48769
48770         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48771         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48772         Schwab in
48773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48774         I'll try to think of a better way to fix the Solaris problem.
48775
48776         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48777         like glibc; on Solaris 10, it fails with errno == EINVAL.
48778         POSIX says the behavior is unspecified if the first argument is NULL,
48779         so play it safe and never pass NULL to the system getcwd.
48780
48781 2007-02-21  Jim Meyering  <jim@meyering.net>
48782
48783         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48784         of gettimeofday.  It would conflict with the one now always
48785         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48786         an IRIX 6.5 build failure.
48787
48788 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         Minor fixups to port to Solaris 10 with Sun C 5.8.
48791         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48792         * modules/getcwd (Depends-on): Add dirfd.
48793         * lib/putenv.c (putenv): #undef it.
48794         (rpl_putenv): New decl.
48795         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48796
48797 2007-02-20  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/stdio-tests: New file.
48800         * tests/test-stdio.c: New file.
48801
48802         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48803         (Depends-on): Add stdio.
48804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48805         (Include): Use <stdio.h> instead of vsnprintf.h.
48806         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48807         HAVE_DECL_VSNPRINTF.
48808         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48809
48810         * modules/snprintf (Files): Remove lib/snprintf.h.
48811         (Depends-on): Add stdio.
48812         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48813         (Include): Use <stdio.h> instead of snprintf.h.
48814         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48815         HAVE_DECL_SNPRINTF.
48816         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48817         * lib/getaddrinfo.c: Likewise.
48818
48819         * modules/stdio: New file.
48820         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48821         * lib/snprintf.h: Remove file.
48822         * lib/vsnprintf.h: Remove file.
48823         * lib/.cppi-disable: Remove snprintf.h.
48824         * m4/stdio_h.m4: New file.
48825         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48826
48827 2007-02-20  Jim Meyering  <jim@meyering.net>
48828
48829         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48830         used by e.g., mingw.  From Bruno Haible.
48831
48832 2007-02-19  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48835         warnings.
48836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48837
48838 2007-02-19  Bruno Haible  <bruno@clisp.org>
48839
48840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48841         from mingw users.
48842
48843 2007-02-19  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48846         warnings.
48847         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48848
48849 2007-02-19  Jim Meyering  <jim@meyering.net>
48850
48851         Don't use FD after a successful "fdopendir (fd)".
48852         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48853         Reset it by calling dirfd on the just-obtained DIR*.
48854
48855         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48856         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48857
48858 2007-02-18  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/readlink.c: Include <unistd.h>.
48861         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48862         HAVE_READLINK.
48863         * modules/readlink (Depends-on): Add unistd.
48864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48865         (Include): Add <unistd.h>.
48866
48867         * lib/getlogin_r.h: Remove file.
48868         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48869         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48870         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48871         HAVE_DECL_GETLOGIN_R.
48872         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48874         (Include): Use <unistd.h> instead of getlogin_r.h.
48875
48876         * lib/getcwd.h: Remove file.
48877         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48878         * lib/xgetcwd.c: Likewise.
48879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48880         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48881         * modules/getcwd (Files): Remove lib/getcwd.h.
48882         (Depends-on): Add unistd.
48883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48884         (Include): Use <unistd.h> instad of getcwd.h.
48885
48886         * lib/ftruncate.c: Include <unistd.h> first.
48887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48888         Set HAVE_FTRUNCATE.
48889         * modules/ftruncate (Depends-on): Add unistd.
48890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48891
48892         * lib/fchdir.c: Include <unistd.h> first.
48893         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48895         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48896         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48897         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48898
48899         * lib/dup2.c: Include <unistd.h> first.
48900         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48901         HAVE_DUP2.
48902         * modules/dup2 (Depends-on): Add unistd.
48903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48904
48905         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48906         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48907         REPLACE_CHOWN. Don't define chown as a macro here.
48908         * modules/chown (Depends-on): Add unistd.
48909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48910
48911         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48912         Add definition for GL_LINK_WARNING.
48913         (chown, dup2): New declarations.
48914         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48915         link warning.
48916         (ftruncate): New declaration.
48917         (getcwd): New declaration, taken from old getcwd.h.
48918         (getlogin_r): New declaration, taken from old getlogin_r.h.
48919         (readlink): New declaration.
48920         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48921         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48922         (gl_PREREQ_UNISTD): Remove macro.
48923         (gl_UNISTD_MODULE_INDICATOR): New macro.
48924         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48925         many new variables. Don't set UNISTD_H.
48926         * modules/unistd (Description): Change.
48927         (Depends-on): Add link-warning.
48928         (configure.ac): Update.
48929         (Makefile.am): Create unistd.h always. Substitute many new variables
48930         into it.
48931
48932 2007-02-18  Bruno Haible  <bruno@clisp.org>
48933
48934         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
48935         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
48936         HAVE_GETSUBOPT.
48937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
48938         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
48939         * lib/getsubopt.h: Remove file.
48940         * modules/getsubopt (Files): Remove lib/getsubopt.h.
48941         (Depends-on): Add stdlib.
48942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48943         (Includes): Use <stdlib.h> instead of getsubopt.h.
48944         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
48945         Set HAVE_GETSUBOPT.
48946         * lib/getsubopt.c: Don't include getsubopt.h.
48947
48948 2007-02-18  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/fchdir (Depends-on): Add dup2.
48951
48952 2007-02-18  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/stdlib_.h: Handle glibc's special invocation convention
48955         specially.
48956
48957 2007-02-18  Bruno Haible  <bruno@clisp.org>
48958
48959         * modules/stdlib-tests: New file.
48960         * tests/test-stdlib.c: New file.
48961
48962         * modules/mkstemp (Files): Remove lib/mkstemp.h.
48963         (Depends-on): Add stdlib.
48964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48965         (Includes): Use <stdlib.h> instead of mkstemp.h.
48966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48967         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
48968         * lib/mkstemp.c: Don't include mkstemp.h.
48969         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
48970         * lib/stdlib--.h: Don't include mkstemp.h.
48971
48972         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48973         (Depends-on): Add stdlib.
48974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48975         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48976         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48977         HAVE_MKDTEMP.
48978         * lib/mkdtemp.c: Don't include mkdtemp.h.
48979         * lib/clean-temp.c: Don't include mkdtemp.h.
48980
48981         * modules/exit (Files): Remove lib/exit.h.
48982         (Depends-on): Add stdlib.
48983         (Makefile.am): Remove lib_SOURCES.
48984         (Include): Use <stdlib.h> instead of exit.h.
48985         * lib/argmatch.c: Don't include exit.h.
48986         * lib/execute.c: Likewise.
48987         * lib/pagealign_alloc.c: Likewise.
48988         * lib/pipe.c: Likewise.
48989         * lib/wait-process.c: Likewise.
48990         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48991         * lib/exitfail.c: Likewise.
48992         * lib/savewd.c: Likewise.
48993         * lib/xsetenv.c: Likewise.
48994
48995         * modules/stdlib: New file.
48996         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48997         and extra comments about mkstemp().
48998         * lib/exit.h: Remove file.
48999         * lib/mkdtemp.h: Remove file.
49000         * lib/mkstemp.h: Remove file.
49001         * m4/stdlib_h.m4: New file.
49002         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
49003
49004 2007-02-18  Bruno Haible  <bruno@clisp.org>
49005
49006         * modules/math-tests: New file.
49007         * tests/test-math.c: New file.
49008
49009         * modules/math: New file.
49010         * modules/mathl (Files): Remove lib/mathl.h.
49011         (Depends-on): Add math.
49012         (Makefile.am): Don't mention mathl.h.
49013         (Include): Use <math.h> instead of mathl.h.
49014         * lib/math_.h: New file.
49015         * lib/mathl.h: Remove file.
49016         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
49017         mathl.h.
49018         * lib/asinl.c: Likewise.
49019         * lib/atanl.c: Likewise.
49020         * lib/ceill.c: Likewise.
49021         * lib/cosl.c: Likewise.
49022         * lib/expl.c: Likewise.
49023         * lib/floorl.c: Likewise.
49024         * lib/frexpl.c: Likewise.
49025         * lib/ldexpl.c: Likewise.
49026         * lib/logl.c: Likewise.
49027         * lib/sincosl.c: Likewise.
49028         * lib/sinl.c: Likewise.
49029         * lib/sqrtl.c: Likewise.
49030         * lib/tanl.c: Likewise.
49031         * lib/trigl.c: Likewise.
49032         * m4/math_h.m4: New file.
49033         * MODULES.html.sh (Mathematics): Add math.
49034
49035 2007-02-17  Bruno Haible  <bruno@clisp.org>
49036
49037         * modules/wctype-tests: New file.
49038         * tests/test-wctype.c: New file.
49039
49040         * modules/wchar-tests: New file.
49041         * tests/test-wchar.c: New file.
49042
49043         * modules/unistd-tests: New file.
49044         * tests/test-unistd.c: New file.
49045
49046         * modules/time-tests: New file.
49047         * tests/test-time.c: New file.
49048
49049         * modules/sysexits-tests: New file.
49050         * tests/test-sysexits.c: New file.
49051
49052         * modules/sys_time-tests: New file.
49053         * tests/test-sys_time.c: New file.
49054
49055         * modules/sys_stat-tests: New file.
49056         * tests/test-sys_stat.c: New file.
49057
49058         * modules/sys_socket-tests: New file.
49059         * tests/test-sys_socket.c: New file.
49060
49061         * modules/sys_select-tests: New file.
49062         * tests/test-sys_select.c: New file.
49063
49064         * modules/string-tests: New file.
49065         * tests/test-string.c: New file.
49066
49067         * modules/stdbool-tests: New file.
49068         * tests/test-stdbool.c: New file.
49069
49070         * modules/netinet_in-tests: New file.
49071         * tests/test-netinet_in.c: New file.
49072
49073         * modules/inttypes-tests: New file.
49074         * tests/test-inttypes.c: New file.
49075
49076         * modules/fcntl-tests: New file.
49077         * tests/test-fcntl.c: New file.
49078
49079         * modules/byteswap-tests: New file.
49080         * tests/test-byteswap.c: New file.
49081
49082         * modules/arpa_inet-tests: New file.
49083         * tests/test-arpa_inet.c: New file.
49084
49085 2007-02-17  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
49088         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
49089         if the corresponding module is not enabled. Emit link warnings if
49090         the function is used nevertheless.
49091         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
49092         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
49093         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
49094         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
49095         * modules/inttypes (Depends-on): Add link-warning.
49096         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49097         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
49098         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
49099         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
49100         * modules/imaxdiv (configure.ac): Likewise.
49101         * modules/strtoimax (configure.ac): Likewise.
49102         * modules/strtoumax (configure.ac): Likewise.
49103
49104 2007-02-17  Bruno Haible  <bruno@clisp.org>
49105
49106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49107         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49108         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49109         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49110
49111 2007-02-17  Bruno Haible  <bruno@clisp.org>
49112
49113         * modules/link-warning: New file.
49114         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49115         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49116         * modules/string (Depends-on): Add link-warning.
49117         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49118         string.h.
49119         * MODULES.html.sh (Support for building libraries and executables): Add
49120         link-warning.
49121
49122 2007-02-17  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49125         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49126         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49127         long lines.
49128
49129 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49130             Bruno Haible  <bruno@clisp.org>
49131
49132         * modules/tmpfile: New file.
49133         * lib/tmpfile.c: New file.
49134         * m4/tmpfile.m4: New file.
49135         * MODULES.html.sh (func_all_modules): New section "Input/output".
49136
49137 2007-02-15  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49140         (supports_delete_on_close): New function.
49141         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49142
49143 2007-02-14  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/mbspcasecmp-tests: New file.
49146         * tests/test-mbspcasecmp.sh: New file.
49147         * tests/test-mbspcasecmp.c: New file.
49148
49149         New module mbspcasecmp.
49150         * modules/mbspcasecmp: New file.
49151         * lib/mbspcasecmp.c: New file.
49152         * lib/string_.h (strncasecmp): Change warning message.
49153         (mbspcasecmp): New declaration.
49154         * m4/mbspcasecmp.m4: New file.
49155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49156         GNULIB_MBSPCASECMP.
49157         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49158         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49159
49160 2007-02-14  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/mbsncasecmp-tests: New file.
49163         * tests/test-mbsncasecmp.sh: New file.
49164         * tests/test-mbsncasecmp.c: New file.
49165
49166         New module mbsncasecmp.
49167         * modules/mbsncasecmp: New file.
49168         * lib/mbsncasecmp.c: New file.
49169         * lib/string_.h (mbsncasecmp): New declaration.
49170         * m4/mbsncasecmp.m4: New file.
49171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49172         GNULIB_MBSNCASECMP.
49173         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49174         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49175
49176 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
49179         Verify that it doesn't overlap with our flags.
49180         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
49181         do not have the desired effect in multibyte locales; instead, use
49182         mbscasecmp.
49183         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
49184         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
49185         we don't require GNU fnmatch ourselves (if our users require it, they
49186         should do so explicitly).
49187
49188         Fix regex code so it doesn't rely on strcasecmp.
49189         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
49190         Otherwise, include gnulib's langinfo.h.
49191         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
49192         undesirable behavior in non-C locales.  Instead, rely on localecharset.
49193         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
49194         * modules/regex (FILES): Remove m4/codeset.m4.
49195         (Depends-on): Add localcharset.  Remove strcase.
49196
49197 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49198
49199         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
49200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
49201
49202 2007-02-13  Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
49205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49206
49207 2007-02-12  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49210         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
49211         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
49212         time warning rather than a link error.
49213
49214 2007-02-12  Bruno Haible  <bruno@clisp.org>
49215
49216         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
49217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49219
49220 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
49223         args, not 2.
49224
49225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49226
49227         New module 'time', so that apps can include <time.h> as per
49228         POSIX and GNU instead of separate include files like time_r.h
49229         and timegm.h.  This implementation tries out a simpler approach
49230         for replacing decls in standard include files (as compared to
49231         the string module), somewhat as an experiment.
49232
49233         * config/srclist.txt: Comment out mktime.c for now.
49234         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
49235         since it doesn't apply any more.  Use generic wording instead.
49236         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
49237         'time'.
49238         * lib/time_.h, m4/time_h.m4, modules/time: New files.
49239         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
49240         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
49241         Don't include <sys/types.h>; no longer needed since we assume C89.
49242         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
49243         * lib/strftime.c: Likewise.
49244         * lib/time_r.c: Likewise.
49245         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
49246         * lib/nanosleep.c: Include <time.h> first, to check interface.
49247         * lib/strptime.c: Likewise.
49248         * lib/time_r.c: Likewise.
49249         * lib/timegm.c: Likewise.
49250         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
49251         needed.
49252         * lib/timegm.c: Don't include timegm.h; no longer needed.
49253         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
49254         time.h now handles any problems in that area.
49255         (struct timespec, nanosleep): Remove; time.h now arranges for these.
49256         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
49257         that time.h defines struct timespec.
49258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
49259         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
49260         handles that.
49261         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
49262         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
49263         needed.  Set REPLACE_LOCALTIME.
49264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
49265         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
49266         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
49267         nanosleep; time_h.m4 now does that.  Don't require
49268         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
49269         module handles this now.
49270         * modules/getdate (Depends-on): Remove timespec.  Add time.
49271         * modules/nanosleep (Depends-on): Likewise.
49272         * modules/stat-time (Depends-on): Likewise.
49273         * modules/nanosleep (Include): Include time.h, not timespec.h.
49274         * modules/strptime (Files): Remove lib/strptime.h.
49275         (Depends-on): Add extensions, time.
49276         (Include): Include time.h, not strptime.h.
49277         * modules/time_r (Files): Remove lib/time_r.h.
49278         (Depends-on): Add time.
49279         (Include): Include time.h, not time_r.h.
49280         * modules/timegm: Likewise.
49281         * modules/timespec (Description): Now does timespec-related decls
49282         of our own, instead of struct timespec itself.
49283         (Depends-on): Add time; remove extensions.
49284         (Maintainer): Add self.
49285         * modules/utimecmp (Depends-on): Add time; remove timespec.
49286         * modules/utimens (Depends-on): Likewise.
49287         * modules/xnanosleep (Depends-on): Likewise.
49288
49289 2007-02-11  Bruno Haible  <bruno@clisp.org>
49290
49291         * lib/c-strstr.c: Include allocsa.h.
49292         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49293         * lib/c-strcasestr.c: Include allocsa.h.
49294         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49295         * lib/strcasestr.c: Include allocsa.h.
49296         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49297         * lib/mbsstr.c: Include allocsa.h.
49298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49299         allocsa/freesa instead of malloc/free.
49300         * lib/mbscasestr.c: Include allocsa.h.
49301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49302         allocsa/freesa instead of malloc/free.
49303         * modules/c-strstr (Depends-on): Add allocsa.
49304         * modules/c-strcasestr (Depends-on): Likewise.
49305         * modules/strcasestr (Depends-on): Likewise.
49306         * modules/mbsstr (Depends-on): Likewise.
49307         * modules/mbscasestr (Depends-on): Likewise.
49308
49309 2007-02-11  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
49312
49313         * modules/mbsspn-tests: New file.
49314         * tests/test-mbsspn.sh: New file.
49315         * tests/test-mbsspn.c: New file.
49316
49317 2007-02-11  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
49320
49321         * modules/mbspbrk-tests: New file.
49322         * tests/test-mbspbrk.sh: New file.
49323         * tests/test-mbspbrk.c: New file.
49324
49325 2007-02-11  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
49328         unneeded cast.
49329
49330         * modules/mbscspn-tests: New file.
49331         * tests/test-mbscspn.sh: New file.
49332         * tests/test-mbscspn.c: New file.
49333
49334 2007-02-11  Bruno Haible  <bruno@clisp.org>
49335
49336         * modules/mbscasecmp-tests: New file.
49337         * tests/test-mbscasecmp.sh: New file.
49338         * tests/test-mbscasecmp.c: New file.
49339
49340 2007-02-11  Bruno Haible  <bruno@clisp.org>
49341
49342         Ensure O(n) worst-case complexity of mbscasestr.
49343         * lib/mbscasestr.c: Include stdbool.h.
49344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49345         functions.
49346         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
49347         the bookkeeping indicates that it's worth it.
49348         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
49349
49350         * modules/mbscasestr-tests: New file.
49351         * tests/test-mbscasestr1.c: New file.
49352         * tests/test-mbscasestr2.sh: New file.
49353         * tests/test-mbscasestr2.c: New file.
49354         * tests/test-mbscasestr3.sh: New file.
49355         * tests/test-mbscasestr3.c: New file.
49356         * tests/test-mbscasestr4.sh: New file.
49357         * tests/test-mbscasestr4.c: New file.
49358         * m4/locale-tr.m4: New file.
49359
49360 2007-02-11  Bruno Haible  <bruno@clisp.org>
49361
49362         Ensure O(n) worst-case complexity of mbsstr.
49363         * lib/mbsstr.c: Include stdbool.h.
49364         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49365         functions.
49366         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
49367         bookkeeping indicates that it's worth it.
49368         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
49369
49370         * modules/mbsstr-tests: New file.
49371         * tests/test-mbsstr1.c: New file.
49372         * tests/test-mbsstr2.sh: New file.
49373         * tests/test-mbsstr2.c: New file.
49374         * tests/test-mbsstr3.sh: New file.
49375         * tests/test-mbsstr3.c: New file.
49376         * m4/locale-fr.m4: New file.
49377
49378 2007-02-11  Bruno Haible  <bruno@clisp.org>
49379
49380         * lib/mbsrchr.c (mbsrchr): Fix bug.
49381
49382         * modules/mbsrchr-tests: New file.
49383         * tests/test-mbsrchr.sh: New file.
49384         * tests/test-mbsrchr.c: New file.
49385
49386 2007-02-11  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/mbschr.c (mbschr): Fix bug.
49389
49390         * modules/mbschr-tests: New file.
49391         * tests/test-mbschr.sh: New file.
49392         * tests/test-mbschr.c: New file.
49393         * m4/locale-zh.m4: New file.
49394
49395 2007-02-11  Bruno Haible  <bruno@clisp.org>
49396
49397         Support for copying multibyte string iterators.
49398         * lib/mbiter.h: Include <string.h>.
49399         (mbiter_multi_copy): New function.
49400         (mbi_copy): New macro.
49401         * lib/mbuiter.h: Include <string.h>.
49402         (mbuiter_multi_copy): New function.
49403         (mbui_copy): New macro.
49404
49405 2007-02-11  Bruno Haible  <bruno@clisp.org>
49406
49407         New module mbslen.
49408         * modules/mbslen: New file.
49409         * lib/mbslen.c: New file.
49410         * lib/string_.h (mbslen): New declaration.
49411         * m4/mbslen.m4: New file.
49412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49413         GNULIB_MBSLEN.
49414         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
49415         * MODULES.html.sh (Internationalization functions): Add mbslen.
49416
49417 2007-02-11  Bruno Haible  <bruno@clisp.org>
49418
49419         Ensure O(n) worst-case complexity of strcasestr substitute.
49420         * lib/strcasestr.c: Include stdbool.h.
49421         (knuth_morris_pratt): New function.
49422         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49423         bookkeeping indicates that it's worth it.
49424         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
49425
49426         * modules/strcasestr-tests: New file.
49427         * tests/test-strcasestr.c: New file.
49428
49429 2007-02-11  Bruno Haible  <bruno@clisp.org>
49430
49431         Ensure O(n) worst-case complexity of c_strcasestr.
49432         * lib/c-strcasestr.c: Include stdbool.h, string.h.
49433         (knuth_morris_pratt): New function.
49434         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
49435         the bookkeeping indicates that it's worth it.
49436         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
49437
49438         * modules/c-strcasestr-tests: New file.
49439         * tests/test-c-strcasestr.c: New file.
49440
49441 2007-02-11  Bruno Haible  <bruno@clisp.org>
49442
49443         Ensure O(n) worst-case complexity of c_strstr.
49444         * lib/c-strstr.c: Include stdbool.h, string.h.
49445         (knuth_morris_pratt): New function.
49446         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49447         bookkeeping indicates that it's worth it.
49448         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
49449
49450         * lib/c-strstr.c: Complete rewrite for maintainability.
49451
49452         * modules/c-strstr-tests: New file.
49453         * tests/test-c-strstr.c: New file.
49454
49455 2007-02-11  Bruno Haible  <bruno@clisp.org>
49456
49457         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
49458         5.2.1 and earlier, whereby \055 was treated just like the range
49459         delimiter '-'.
49460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49461
49462 2007-02-08  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/regex (Depends-on): Add stdbool.
49465         Reported by Dalibor Topic <robilad@kaffe.org>.
49466
49467 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49468
49469         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
49470         Prefer returning from main to exiting from it.
49471         Remove unnecessary parens after sizeof.
49472
49473 2007-02-05  Bruno Haible  <bruno@clisp.org>
49474
49475         New module mbssep.
49476         * modules/mbssep: New file.
49477         * lib/mbssep.c: New file.
49478         * lib/string_.h (strsep): Add a conditional link warning.
49479         (mbssep): New declaration.
49480         * m4/mbssep.m4: New file.
49481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49482         GNULIB_MBSSEP.
49483         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
49484         * MODULES.html.sh (Internationalization functions): Add mbssep.
49485
49486 2007-02-05  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
49489         Optimize search in case of 1 delimiter.
49490
49491 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49492
49493         * lib/acl.h: Include sys/types.h before sys/acl.h.
49494
49495 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49496
49497         Merge upstream fix for glibc bugzilla #3957:
49498
49499         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49500
49501         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49502         bit for RE_HAT_LISTS_NOT_NEWLINE.
49503         (build_charclass_op): Remove bogus comment.
49504
49505 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49506
49507         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49508
49509 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49510
49511         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49512         * lib/memmem.c [!defined _LIBC]: Include config.h.
49513
49514 2007-02-04  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49517         warning message.
49518
49519 2007-02-04  Bruno Haible  <bruno@clisp.org>
49520
49521         New module mbstok_r.
49522         * modules/mbstok_r: New file.
49523         * lib/mbstok_r.c: New file.
49524         * lib/string_.h (strtok_r): Change argument names to match the
49525         comments. Add a conditional link warning.
49526         (mbstok_r): New declaration.
49527         * m4/mbstok_r.m4: New file.
49528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49529         GNULIB_MBSTOK_R.
49530         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49531         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49532
49533 2007-02-04  Bruno Haible  <bruno@clisp.org>
49534
49535         New module mbsspn.
49536         * modules/mbsspn: New file.
49537         * lib/mbsspn.c: New file.
49538         * lib/string_.h (strspn): Add a conditional link warning.
49539         (mbsspn): New declaration.
49540         * m4/mbsspn.m4: New file.
49541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49542         GNULIB_MBSSPN.
49543         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49544         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49545
49546 2007-02-04  Bruno Haible  <bruno@clisp.org>
49547
49548         New module mbspbrk.
49549         * modules/mbspbrk: New file.
49550         * lib/mbspbrk.c: New file.
49551         * lib/string_.h (strpbrk): Add a conditional link warning.
49552         (mbspbrk): New declaration.
49553         * m4/mbspbrk.m4: New file.
49554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49555         GNULIB_MBSPBRK.
49556         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49557         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49558
49559 2007-02-04  Bruno Haible  <bruno@clisp.org>
49560
49561         New module mbscspn.
49562         * modules/mbscspn: New file.
49563         * lib/mbscspn.c: New file.
49564         * lib/string_.h (strcspn): Add a conditional link warning.
49565         (mbscspn): New declaration.
49566         * m4/mbscspn.m4: New file.
49567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49568         GNULIB_MBSCSPN.
49569         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49570         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49571
49572 2007-02-04  Bruno Haible  <bruno@clisp.org>
49573
49574         New module mbscasestr, reduced goal of strcasestr.
49575         * modules/mbscasestr: New file.
49576         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49577         (mbscasestr): Renamed from strcasestr.
49578         * lib/strcasestr.c: Don't include mbuiter.h.
49579         (strcasestr): Remove support for multibyte locales.
49580         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49581         Change the conditional link warning.
49582         (mbscasestr): New declaration.
49583         * m4/mbscasestr.m4: New file.
49584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49585         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49586         REPLACE_STRCASESTR.
49587         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49589         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49590         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49591         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49592         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49593         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49594         (Depends-on): Remove mbuiter.
49595         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49596
49597 2007-02-04  Bruno Haible  <bruno@clisp.org>
49598
49599         Simplify handling of strncasecmp.
49600         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49601         the conditional link warning.
49602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49603         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49605         * modules/strcase (configure.ac): Don't invoke
49606         gl_STRING_MODULE_INDICATOR.
49607         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49608
49609 2007-02-04  Bruno Haible  <bruno@clisp.org>
49610
49611         New module mbscasecmp, reduced goal of strcasecmp.
49612         * modules/mbscasecmp: New file.
49613         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49614         (mbscasecmp): Renamed from strcasecmp.
49615         * lib/strcasecmp.c: Don't include mbuiter.h.
49616         (strcasecmp): Remove support for multibyte locales.
49617         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49618         Change the conditional link warning.
49619         (mbscasecmp): New declaration.
49620         * m4/mbscasecmp.m4: New file.
49621         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49622         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49623         REPLACE_STRCASECMP.
49624         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49626         GNULIB_MBSCASECMP.
49627         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49628         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49629         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49630         (Depends-on): Remove mbuiter.
49631         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49632
49633 2007-02-04  Bruno Haible  <bruno@clisp.org>
49634
49635         New module mbsstr. Remove module strstr.
49636         * modules/mbsstr: New file.
49637         * modules/strstr: Remove file.
49638         * lib/mbsstr.c: Renamed from lib/strstr.c.
49639         (mbsstr): Renamed from strstr.
49640         * lib/string_.h (strstr): Remove declaration. Change the conditional
49641         link warning.
49642         (mbsstr): New declaration.
49643         * m4/mbsstr.m4: New file.
49644         * m4/strstr.m4: Remove file.
49645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49646         REPLACE_STRSTR.
49647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49648         Don't initialize GNULIB_STRSTR.
49649         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49650         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49651         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49652         (Support for systems lacking ANSI C 89): Remove strstr.
49653
49654 2007-02-04  Bruno Haible  <bruno@clisp.org>
49655
49656         New module mbsrchr.
49657         * modules/mbsrchr: New file.
49658         * lib/mbsrchr.c: New file.
49659         * lib/string_.h (strrchr): Add a conditional link warning.
49660         (mbsrchr): New declaration.
49661         * m4/mbsrchr.m4: New file.
49662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49663         GNULIB_MBSRCHR.
49664         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49665         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49666
49667 2007-02-04  Bruno Haible  <bruno@clisp.org>
49668
49669         New module mbschr.
49670         * modules/mbschr: New file.
49671         * lib/mbschr.c: New file.
49672         * lib/string_.h (strchr): Add a conditional link warning.
49673         (mbschr): New declaration.
49674         * m4/mbschr.m4: New file.
49675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49676         GNULIB_MBSCHR.
49677         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49678         * MODULES.html.sh (Internationalization functions): Add mbschr.
49679
49680 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49683
49684         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49685
49686 2007-02-04  Bruno Haible  <bruno@clisp.org>
49687
49688         New module description section 'configure.ac-early'.
49689         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49690         (func_get_autoconf_early_snippet): New function.
49691         (func_import, func_create_testdir): Use it. Remove special cases for
49692         modules 'extensions' and 'lock'.
49693         * modules/extensions (configure.ac-early): Require
49694         gl_USE_SYSTEM_EXTENSIONS.
49695         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49696
49697 2007-02-04  Bruno Haible  <bruno@clisp.org>
49698
49699         Make use of gcj-4.3's -fsource and -ftarget option.
49700         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49701         and if so try the options -fsource and -ftarget.
49702         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49703         source_version, ftarget_option, target_version arguments.
49704         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49705         (is_envjavac_oldgcj_14_14_usable): Renamed from
49706         is_envjavac_gcj_14_14_usable.
49707         (is_envjavac_oldgcj_14_13_usable): Renamed from
49708         is_envjavac_gcj_14_13_usable.
49709         (is_gcj_present): Update.
49710         (is_gcj_43, is_gcj43_usable): New functions.
49711         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49712         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49713         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49714         try the options -fsource and -ftarget.
49715
49716 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49717
49718         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49719         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49720         larger value.
49721
49722 2007-02-03  Jim Meyering  <jim@meyering.net>
49723
49724         Give tools a better chance to allocate space for very large buffers.
49725         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49726
49727         Make pwd and readlink work also when run with an unreadable parent dir
49728         on systems with openat support.
49729         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49730         provided getcwd function, even when we have openat support.
49731         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49732
49733 2007-02-02  Bruno Haible  <bruno@clisp.org>
49734
49735         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49736         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49737         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49738         portability problems if one of these functions is only used on specific
49739         platforms.
49740         Reported by Paul Eggert.
49741
49742 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49743
49744         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49745         is causing more trouble than it's curing.
49746         * lib/regex_internal.h (__mempcpy): Remove.
49747         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49748         (and make the code a tad smaller to boot).
49749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49750
49751 2007-02-02  Jim Meyering  <jim@meyering.net>
49752
49753         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49754         section, not in the Makefile.am: one.
49755
49756 2007-02-02  Eric Blake  <ebb9@byu.net>
49757
49758         * lib/strchrnul.c: Always include config.h first.
49759
49760         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49761         gnulib strstr is not necessary here.
49762
49763 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49764
49765         * m4/socklen.m4: Fix typo.
49766
49767 2007-02-02  Eric Blake  <ebb9@byu.net>
49768
49769         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49770         * modules/netinet_in (Makefile.am): Likewise.
49771
49772 2007-02-01  Bruno Haible  <bruno@clisp.org>
49773
49774         * lib/string_.h (GL_LINK_WARNING): New macro.
49775         (strcasecmp, strstr, strcasestr): If provided by the system,
49776         conditionally define as a macro that leads to a warning instead of to
49777         an error.
49778         (strncasecmp): Conditionally define as a macro that leads to a warning.
49779
49780 2007-02-01  Karl Berry  <karl@gnu.org>
49781
49782         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49783
49784 2007-02-01  Bruno Haible  <bruno@clisp.org>
49785
49786         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49787         renamings.
49788
49789 2007-02-01  Eric Blake  <ebb9@byu.net>
49790
49791         * modules/regex (Depends-on): Revert dependence on mempcpy.
49792         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49793         module's definition of mempcpy.
49794         Reported by Paul Eggert.
49795
49796 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49797
49798         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49799         the symbol XYZ before redefining it.  This fixes a problem with
49800         programs that don't use XYZ, when compiled on systems that define
49801         XYZ to something else.
49802
49803 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49806         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49807         writeable to group or other and (2) is intended to have a special
49808         mode bit that is set or cleared.  In such a case, the directory
49809         should be neither group- nor other-writeable until the special
49810         mode bits are right.
49811
49812 2007-01-31  Eric Blake  <ebb9@byu.net>
49813
49814         * modules/mountlist (Depends-on): Add strstr.
49815
49816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49817         bug.
49818         * modules/string (Makefile.am): Remove redundant replacement.
49819         * modules/regex (Depends-on): Add mempcpy.
49820
49821 2007-01-31  Bruno Haible  <bruno@clisp.org>
49822
49823         New module description field 'Link'.
49824         * gnulib-tool (func_usage): Document --extract-link-directive.
49825         (sed_extract_prog): Recognize 'Link' directive.
49826         (func_get_link_directive): New function.
49827         (func_import): Show summary of link directives.
49828         Handle --extract-link-directive option.
49829         * modules/acl (Link): New section.
49830         * modules/clock-time (Link): New section.
49831         * modules/euidaccess (Link): New section.
49832         * modules/gettext (Link): New section.
49833         * modules/iconv (Link): New section.
49834         * modules/lock (Link): New section.
49835         * modules/nanosleep (Link): New section.
49836         * modules/readline (Link): New section.
49837
49838 2007-01-27  Bruno Haible  <bruno@clisp.org>
49839
49840         Enforce the use of gnulib modules for unportable <string.h> functions.
49841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49843         (gl_HEADER_STRING_H_BODY): Require it.
49844         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49845         the symbol XYZ to one that gives a link error.
49846         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49847         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49848         * modules/mempcpy (configure.ac): Likewise.
49849         * modules/memrchr (configure.ac): Likewise.
49850         * modules/stpcpy (configure.ac): Likewise.
49851         * modules/stpncpy (configure.ac): Likewise.
49852         * modules/strcase (configure.ac): Likewise.
49853         * modules/strcasestr (configure.ac): Likewise.
49854         * modules/strchrnul (configure.ac): Likewise.
49855         * modules/strdup (configure.ac): Likewise.
49856         * modules/strndup (configure.ac): Likewise.
49857         * modules/strnlen (configure.ac): Likewise.
49858         * modules/strpbrk (configure.ac): Likewise.
49859         * modules/strsep (configure.ac): Likewise.
49860         * modules/strstr (configure.ac): Likewise.
49861         * modules/strtok_r (configure.ac): Likewise.
49862
49863 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49864
49865         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49866
49867 2007-01-30  Jim Meyering  <jim@meyering.net>
49868
49869         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49870
49871 2007-01-29  Bruno Haible  <bruno@clisp.org>
49872
49873         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49874         * lib/execute.c: Likewise.
49875         * lib/pipe.c: Likewise.
49876         * lib/printf-args.h: Likewise.
49877         * lib/printf-args.c: Likewise.
49878         * lib/printf-parse.c: Likewise.
49879         * lib/vasnprintf.c: Likewise.
49880
49881 2007-01-29  Eric Blake  <ebb9@byu.net>
49882
49883         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49884         declaration.
49885
49886 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * lib/strptime.h (strptime): Use 'restrict' for args where
49889         POSIX requires this.
49890         * lib/strptime.c (strptime): Likewise.
49891         Change license notice from LGPL to GPL, since gnulib-tool will
49892         change this as needed.
49893         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49894         defined.
49895         Include "strptime.h" first, to check interface.
49896         Do not #undef _LIBC and _NL_CURRENT.
49897         Do not include <stdlib.h>; no longer needed.
49898         Include "time_r.h" and declare ptime_locale_status
49899         only if _LIBC is not defined.
49900         (__P): Remove unused macro.
49901         (match_string): Bring back glibc version, but use it only if _LIBC
49902         is defined.
49903         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49904         Remove unnecessary assertion and abort() call.
49905         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49906         * m4/strptime.m4: Fix serial number comment.
49907         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49908         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49909         (Depends-on): Add time_r.
49910
49911 2007-01-29  Bruno Haible  <bruno@clisp.org>
49912
49913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49914         strptime.
49915         * modules/strptime (Depends-on): Add stdbool.
49916         * lib/strptime.h: Include <time.h> always. Add comments.
49917
49918 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49919
49920         * modules/strptime: New file.
49921         * lib/strptime.h: New file.
49922         * lib/strptime.c: New file.
49923         * m4/strptime.m4: New file.
49924
49925 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49926
49927         * MODULES.html.sh: New module mpsort.
49928         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
49929
49930         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
49931         a circularity problem with HP-UX ia64 reported by Bob Proulx in
49932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
49933         All uses changed.
49934         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
49935         All uses changed.
49936         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
49937         to _Restrict_.
49938         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
49939         the parameter matches the prototype.
49940
49941 2007-01-28  Jim Meyering  <jim@meyering.net>
49942
49943         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
49944         sys/time.h here, reverting that part of the previous patch:
49945         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
49946
49947 2007-01-28  Bruno Haible  <bruno@clisp.org>
49948
49949         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
49950         value of $(SYS_TIME_H).
49951         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
49952         remove it conditionally, too. [added by Jim Meyering]
49953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
49954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
49956         GETTIMEOFDAY_REPLACEMENT to 1.
49957
49958 2007-01-28  Bruno Haible  <bruno@clisp.org>
49959
49960         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
49961         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
49962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
49963         Set UNISTD_H instead of UNISTD_H2.
49964         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
49965
49966 2007-01-28  Bruno Haible  <bruno@clisp.org>
49967
49968         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
49969         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
49970
49971 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49972
49973         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49974         (func_create_testdir): Ensure C locale for `grep' and `tr'
49975         character ranges.
49976         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49977         ACLOCAL_AMFLAGS parsing state machine.
49978
49979 2007-01-27  Bruno Haible  <bruno@clisp.org>
49980
49981         * modules/unistr/base: Update.
49982
49983 2007-01-27  Bruno Haible  <bruno@clisp.org>
49984
49985         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49986         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49987         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49988         modules/unistr/u32-mbtouc.
49989         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49990         * lib/unistr.h: Update.
49991         * lib/linebreak.c: Update.
49992         * modules/unistr/u32-mbtouc: Renamed from
49993         modules/unistr/u32-mbtouc-safe.
49994         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49995         * lib/unistr.h: Update.
49996         * lib/unistr/u32-to-u8.c: Update.
49997         * lib/unistr/u32-to-u16.c: Update.
49998
49999 2007-01-27  Bruno Haible  <bruno@clisp.org>
50000
50001         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
50002         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
50003         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
50004         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
50005         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
50006         * modules/unistr/u16-mbtouc-unsafe: Renamed from
50007         modules/unistr/u16-mbtouc.
50008         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
50009         * lib/unistr.h: Update.
50010         * lib/linebreak.c: Update.
50011         * modules/linebreak: Update.
50012         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
50013         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
50014         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
50015         * modules/unistr/u16-mbtouc: Renamed from
50016         modules/unistr/u16-mbtouc-safe.
50017         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
50018         * lib/unistr.h: Update.
50019         * lib/unistr/u16-to-u8.c: Update.
50020         * modules/unistr/u16-to-u8: Update.
50021         * lib/unistr/u16-to-u32.c: Update.
50022         * modules/unistr/u16-to-u32: Update.
50023
50024 2007-01-27  Bruno Haible  <bruno@clisp.org>
50025
50026         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
50027         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
50028         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
50029         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
50030         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
50031         * modules/unistr/u8-mbtouc-unsafe: Renamed from
50032         modules/unistr/u8-mbtouc.
50033         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
50034         * lib/unistr.h: Update.
50035         * lib/striconveh.c: Update.
50036         * modules/striconveh: Update.
50037         * lib/linebreak.c: Update.
50038         * modules/linebreak: Update.
50039         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
50040         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
50041         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
50042         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
50043         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
50044         * lib/unistr.h: Update.
50045         * lib/striconveh.c: Update.
50046         * modules/striconveh: Update.
50047         * lib/unistr/u8-to-u16.c: Update.
50048         * modules/unistr/u8-to-u16: Update.
50049         * lib/unistr/u8-to-u32.c: Update.
50050         * modules/unistr/u8-to-u32: Update.
50051
50052 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50053
50054         Sync from Libtool.
50055         * lib/argz.c: Do not include strings.h nor memory.h, include
50056         string.h unconditionally.  Patch by Simon Josefsson.
50057
50058 2007-01-27  Bruno Haible  <bruno@clisp.org>
50059
50060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
50061         from gl_HEADER_STRING_H_BODY.
50062         (gl_HEADER_STRING_H_BODY): Require it.
50063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
50064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50068         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
50069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50071         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
50072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50073         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
50075         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50078
50079 2007-01-27  Bruno Haible  <bruno@clisp.org>
50080
50081         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
50082         check_PROGRAMS into noinst_PROGRAMS.
50083         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
50084         check_PROGRAMS in this case.
50085         (func_import): Set for_test to false.
50086         (func_create_testdir): Set for_test to true.
50087
50088 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50089             Bruno Haible  <bruno@clisp.org>
50090
50091         * modules/strcasestr (Files): Remove lib/strcasestr.h.
50092         (Depends-on): Add string.
50093         (Includes): Use <string.h> instead of strcasestr.h.
50094         * modules/string (Makefile.am): Also substitute the value of
50095         REPLACE_STRCASESTR.
50096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
50097         assume strcasestr is declared in <string.h> not <strings.h>. Also
50098         set REPLACE_STRCASESTR.
50099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
50100         REPLACE_STRCASESTR.
50101         * lib/strcasestr.h: Remove file.
50102         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50103         * lib/string_.h (strcasestr): New declaration.
50104
50105 2007-01-27  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/string_.h: Use 'extern'.
50108
50109 2007-01-27  Jim Meyering  <jim@meyering.net>
50110
50111         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50112         of set-but-not-used local, "q".
50113
50114         * lib/mempcpy.c: Include <config.h> before <string.h>.
50115         This fixes a compilation error on HP-UX, due to the system's
50116         "restrict"-using mempcpy prototype.
50117
50118 2007-01-26  Bruno Haible  <bruno@clisp.org>
50119
50120         Small optimization.
50121         * lib/javacomp.c: Include c-strstr.h.
50122          (is_envjavac_gcj): Use c_strstr instead of strstr.
50123         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50124
50125 2007-01-26  Bruno Haible  <bruno@clisp.org>
50126
50127         * MODULES.html.sh (Unicode string functions): Add the new modules.
50128
50129         * modules/uniconv/u32-strconv-to-locale: New file.
50130         * lib/uniconv/u32-strconv-to-locale.c: New file.
50131
50132         * modules/uniconv/u16-strconv-to-locale: New file.
50133         * lib/uniconv/u16-strconv-to-locale.c: New file.
50134
50135         * modules/uniconv/u8-strconv-to-locale: New file.
50136         * lib/uniconv/u8-strconv-to-locale.c: New file.
50137
50138         * modules/uniconv/u32-strconv-from-locale: New file.
50139         * lib/uniconv/u32-strconv-from-locale.c: New file.
50140
50141         * modules/uniconv/u16-strconv-from-locale: New file.
50142         * lib/uniconv/u16-strconv-from-locale.c: New file.
50143
50144         * modules/uniconv/u8-strconv-from-locale: New file.
50145         * lib/uniconv/u8-strconv-from-locale.c: New file.
50146
50147         * modules/uniconv/u32-strconv-to-enc: New file.
50148         * lib/uniconv/u32-strconv-to-enc.c: New file.
50149         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50150         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50151
50152         * modules/uniconv/u16-strconv-to-enc: New file.
50153         * lib/uniconv/u16-strconv-to-enc.c: New file.
50154         * lib/uniconv/u-strconv-to-enc.h: New file.
50155         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50156         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50157
50158         * modules/uniconv/u8-strconv-to-enc: New file.
50159         * lib/uniconv/u8-strconv-to-enc.c: New file.
50160         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50161         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50162
50163         * modules/uniconv/u32-strconv-from-enc: New file.
50164         * lib/uniconv/u32-strconv-from-enc.c: New file.
50165         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50166         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50167
50168         * modules/uniconv/u16-strconv-from-enc: New file.
50169         * lib/uniconv/u16-strconv-from-enc.c: New file.
50170         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50171         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50172
50173         * modules/uniconv/u8-strconv-from-enc: New file.
50174         * lib/uniconv/u8-strconv-from-enc.c: New file.
50175         * lib/uniconv/u-strconv-from-enc.h: New file.
50176         * modules/uniconv/u8-strconv-from-enc-tests: New file.
50177         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
50178
50179         * modules/uniconv/u32-conv-from-enc: New file.
50180         * lib/uniconv/u32-conv-from-enc.c: New file.
50181         * modules/uniconv/u32-conv-from-enc-tests: New file.
50182         * tests/uniconv/test-u32-conv-from-enc.c: New file.
50183
50184         * modules/uniconv/u16-conv-from-enc: New file.
50185         * lib/uniconv/u16-conv-from-enc.c: New file.
50186         * lib/uniconv/u-conv-from-enc.h: New file.
50187         * modules/uniconv/u16-conv-from-enc-tests: New file.
50188         * tests/uniconv/test-u16-conv-from-enc.c: New file.
50189
50190         * modules/uniconv/u8-conv-from-enc: New file.
50191         * lib/uniconv/u8-conv-from-enc.c: New file.
50192         * modules/uniconv/u8-conv-from-enc-tests: New file.
50193         * tests/uniconv/test-u8-conv-from-enc.c: New file.
50194
50195         * modules/uniconv/base: New file.
50196         * lib/uniconv.h: New file.
50197
50198 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50199
50200         * doc/gnulib-tool.texi (Initial import): Update to match current
50201         behavior with strdup module.
50202         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
50203         * lib/memmem.h: Remove; all uses removed.  This is now done
50204         by <string.h>.
50205         * lib/mempcpy.h: Likewise.
50206         * lib/memrchr.h: Likewise.
50207         * lib/stpcpy.h: Likewise.
50208         * lib/stpncpy.h: Likewise.
50209         * lib/strcase.h: Likewise.
50210         * lib/strchrnul.h: Likewise.
50211         * lib/strdup.h: Likewise.
50212         * lib/strndup.h: Likewise.
50213         * lib/strnlen.h: Likewise.
50214         * lib/strpbrk.h: Likewise.
50215         * lib/strsep.h: Likewise.
50216         * lib/strstr.h: Likewise.
50217         * lib/strtok_r.h: Likewise.
50218         * lib/string_.h: New file.
50219         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
50220         Rely on <string.h> instead.
50221         * lib/canon-host.c: Likewise.
50222         * lib/chdir-long.c: Likewise.
50223         * lib/concatpath.c: Likewise.
50224         * lib/exclude.c: Likewise.
50225         * lib/fchdir.c: Likewise.
50226         * lib/getaddrinfo.c: Likewise.
50227         * lib/getcwd.c: Likewise.
50228         * lib/getsubopt.c: Likewise.
50229         * lib/glob.c: Likewise.
50230         * lib/hard-locale.c: Likewise.
50231         * lib/iconvme.c: Likewise.
50232         * lib/javacomp.c: Likewise.
50233         * lib/mempcpy.c: Likewise.
50234         * lib/memrchr.c: Likewise.
50235         * lib/regex_internal.h: Likewise.
50236         * lib/stpncpy.c: Likewise.
50237         * lib/strcasecmp.c: Likewise.
50238         * lib/strchrnul.c: Likewise.
50239         * lib/strdup.c: Likewise.
50240         * lib/striconv.c: Likewise.
50241         * lib/striconveh.c: Likewise.
50242         * lib/striconveha.c: Likewise.
50243         * lib/strncasecmp.c: Likewise.
50244         * lib/strndup.c: Likewise.
50245         * lib/strnlen.c: Likewise.
50246         * lib/strsep.c: Likewise.
50247         * lib/strstr.c: Likewise.
50248         * lib/strtok_r.c: Likewise.
50249         * lib/userspec.c: Likewise.
50250         * lib/w32spawn.h: Likewise.
50251         * lib/xstrndup.c: Likewise.
50252         * lib/mountlist.c (strstr): Remove decl.
50253         * m4/string_h.m4: New file.
50254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
50255         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
50256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
50257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
50258         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
50259         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
50260         Set REPLACE_STRCASECMP if necessary.
50261         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
50262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
50263         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
50264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
50265         HAVE_DECL_STRDUP if necessary.
50266         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
50267         since gl_FUNC_STRNDUP does that now.
50268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
50269         Check for decl here...
50270         (gl_PREREQ_STRNLEN): ... not here.
50271         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
50272         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
50273         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
50274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
50275         necessary.
50276         * modules/string: New file.
50277         * modules/memmem (Files): Remove special-purpose include file.
50278         (Depends-on): Add string.
50279         (Include): Include <string.h>, not the removed file.
50280         * modules/mempcpy: Likewise.
50281         * modules/memrchr: Likewise.
50282         * modules/stpcpy: Likewise.
50283         * modules/stpncpy: Likewise.
50284         * modules/strcase: Likewise.
50285         * modules/strchrnul: Likewise.
50286         * modules/strdup: Likewise.
50287         * modules/strndup: Likewise.
50288         * modules/strnlen: Likewise.
50289         * modules/strpbrk: Likewise.
50290         * modules/strsep: Likewise.
50291         * modules/strstr: Likewise.
50292         * modules/strtok_r: Likewise.
50293         * tests/test-dirname.c: Don't include "strdup.h", since
50294         <string.h> now suffices.
50295         * tests/test-memmem.c: Don't include "memmem.h", since
50296         <string.h> now suffices.
50297
50298 2007-01-25  Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
50301         *resultp is 0.
50302
50303         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
50304         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
50305         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
50306         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
50307
50308         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
50309         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
50310         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
50311         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
50312         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
50313         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
50314
50315 2007-01-24  Bruno Haible  <bruno@clisp.org>
50316
50317         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
50318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
50319         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
50320         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
50321         gl_FUNC_FTS_CORE.
50322         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
50323         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
50324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
50326         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
50327         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
50328         gl_FUNC_FCHOWNAT.
50329         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
50330         gl_FUNC_STRFTIME.
50331         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
50332         Reported by Ralf Wildenhues.
50333
50334 2007-01-24  Bruno Haible  <bruno@clisp.org>
50335
50336         Drop AC_REQUIRE calls that are redundant with the module dependencies.
50337         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
50338         gl_GETADDRINFO.
50339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
50340         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
50341         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
50342
50343 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
50344
50345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
50346         Don't use 'exit'; just return from 'main'.
50347         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
50348
50349         * lib/fnmatch_.h: Readjust white space and comments to match
50350         glibc, to avoid spurious diffs.
50351
50352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50353
50354         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
50355         2004-12-01 change by Jakub Jelinek, since this code won't compile
50356         if !LIBC.  Problem reported by Bob Proulx.
50357
50358 2007-01-23  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/striconveh.c: Include c-strcaseeq.h.
50361         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
50362         * modules/striconveh (Depends-on): Add c-strcaseeq.
50363
50364 2007-01-23  Bruno Haible  <bruno@clisp.org>
50365
50366         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
50367
50368         * modules/c-strcaseeq: New file.
50369         * lib/c-strcaseeq.h: New file.
50370
50371         * modules/streq: New file.
50372         * lib/streq.h: New file.
50373
50374 2007-01-23  Bruno Haible  <bruno@clisp.org>
50375
50376         * modules/striconveha-tests: New file.
50377         * tests/test-striconveha.c: New file.
50378
50379         * lib/striconveha.h: Include <stdbool.h>.
50380         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
50381         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
50382         (mem_iconveha_notranslit): Renamed from mem_iconveha.
50383         (mem_iconveha): New function.
50384         (str_iconveha_notranslit): Renamed from str_iconveha.
50385         (str_iconveha): New function.
50386         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
50387         c-strcase.
50388
50389 2007-01-23  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
50392         encodings without forgiving before trying any encoding with handler.
50393         (str_iconveha): Try all encodings without forgiving before trying any
50394         encoding with handler.
50395
50396 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50397
50398         Import the following changes from libc.
50399
50400         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50401
50402         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
50403
50404         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50405
50406         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
50407         normal_bracket label.
50408
50409         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
50410
50411         [BZ #361]
50412         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
50413         to normal_bracket after fetching the next character.
50414
50415 2007-01-22  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
50418         argument.
50419         * lib/striconveh.c (iconv_carefully_1): New function.
50420         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
50421         argument.
50422         (str_cd_iconveh): Update.
50423         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
50424         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
50425         * tests/test-striconveh.c (MAGIC): New macro.
50426         (new_offsets): New function.
50427         (main): Test call with and without offsets.
50428
50429 2007-01-22  Bruno Haible  <bruno@clisp.org>
50430
50431         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
50432         * modules/sys_select (Makefile.am): Likewise.
50433         * modules/sys_socket (Makefile.am): Likewise.
50434         * modules/sys_time (Makefile.am): Likewise.
50435
50436 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * modules/gettimeofday (License): Change from GPL to LGPL, since
50439         gettimeofday is a library function.
50440
50441 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50442
50443         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
50444
50445 2007-01-21  Bruno Haible  <bruno@clisp.org>
50446
50447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
50448
50449 2007-01-21  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/striconveha: New file.
50452         * lib/striconveha.h: New file.
50453         * lib/striconveha.c: New file.
50454         * MODULES.html.sh (Internationalization functions): Add striconveha.
50455         * lib/striconv.c (str_iconv): Optimize the case of an empty input
50456         string.
50457         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
50458
50459 2007-01-21  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
50462         * lib/striconveh.c (str_iconveh): Likewise.
50463
50464 2007-01-21  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/striconveh.h (mem_iconveh): New declaration.
50467         * lib/striconveh.c (mem_iconveh): New function.
50468         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
50469
50470 2007-01-21  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
50473
50474         * lib/striconveh.h (mem_cd_iconveh): Change specification.
50475         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
50476         original result buffer.
50477         (str_cd_iconveh): Update.
50478         * tests/test-striconveh.c (main): Update.
50479
50480         * lib/striconv.h (mem_cd_iconv): Change specification.
50481         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
50482         result buffer.
50483         (str_cd_iconv): Update.
50484         * tests/test-striconv.c (main): Update.
50485
50486 2007-01-21  Bruno Haible  <bruno@clisp.org>
50487
50488         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
50489
50490 2007-01-20  Jim Meyering  <jim@meyering.net>
50491
50492         * lib/userspec.c (parse_with_separator): If a user or group string
50493         starts with "+", skip the corresponding name-to-ID look-up, since
50494         such a look-up must fail: user and group names may not include "+".
50495
50496 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50499         since we now assume the sys_time module.
50500         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50501         check for sys/time.h; no longer needed.
50502         * modules/poll (Depends-on): Depend on sys_time.
50503
50504 2007-01-18  Bruno Haible  <bruno@clisp.org>
50505
50506         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50508
50509         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50510         gettimeofday.
50511
50512         * tests/test-gettimeofday.c: Include <time.h>.
50513         (dummy): Remove variable.
50514
50515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50516         gl_HEADER_SYS_TIME_H.
50517         (gl_HEADER_SYS_TIME_H): New macro.
50518
50519         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50520         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50522         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50525         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50526         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50527         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50528         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50529         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50530
50531         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50532         last change; it caused a compilation error when cross-compiling to
50533         Cygwin.
50534
50535 2007-01-18  Jim Meyering  <jim@meyering.net>
50536
50537         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50538         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50539         than the race-prone "test -d sys || mkdir sys".
50540         (configure.ac): Use AC_PROG_MKDIR_P.
50541         * modules/sys_select: Likewise.
50542         * modules/sys_socket: Likewise.
50543         * modules/sys_time: Likewise.
50544
50545 2007-01-18  Eric Blake  <ebb9@byu.net>
50546
50547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50548         replace gettimeofday.
50549         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50550         name, to avoid infinite recursion.
50551
50552 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50553
50554         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50555         module sys_time.
50556         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50557         assume timespec.h defines struct timeval.
50558         * lib/settime.c: Likewise.
50559         * lib/utimens.c: Likewise.
50560         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50561         since we now assume the gettimeofday module.
50562         * lib/tempname.c (__gen_tempname): Likewise.
50563         * lib/gettimeofday.h: Remove.
50564         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50565         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50566         Include <time.h>, for 'time()'.
50567         (localtime_buffer_addr): Also use this workaround if
50568         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50569         to simplify the uses.  All uses changed.
50570         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50571         that #undef is inside {}, and 'const' follows type name consistently.
50572         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50573         (gettimeofday): Do not use the maximum possible value for
50574         tv->tv_usec, since that might break usages other than ls.c.
50575         Instead, we'll leave ls.c alone.  This undoes today's patch
50576         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50577         we've never observed the problem but might as well keep the
50578         canary.
50579         * lib/nanosleep.c: Include timespec.h first, for interface check.
50580         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50581         now assume the sys_time module.
50582         * lib/tempname.c: Likewise.
50583         * lib/timespec.h: Likewise.
50584         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50585         needed.
50586         * lib/strftime.c: Likewise.
50587         * lib/timespec.h: Likewise.
50588         * lib/posixtm.c: Include posixtm.h first, for interface check.
50589         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50590         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50591         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50592         * lib/sys_time_.h: New file.
50593         * lib/timespec.h (struct timespec): Use long int, not long.
50594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50595         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50596         Remove obsolescent call to AC_HEADER_TIME.
50597         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50600         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50601         Likewise.
50602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50603         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50605         into the sys_time module.  Check for gettimeofday just once.
50606         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50607         for gettimeofday signature to just check the signature.  Merely
50608         compile it, since linking doesn't test signature.  Improve test for
50609         whether gettimeofday.o is actually needed.
50610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50611         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50612         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50613         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50615         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50616         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50617         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50618         than worrying about sys/time.h.
50619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50620         Don't bother worrying about TIME_WITH_SYS_TIME.
50621         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50622         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50623         * m4/sys_time_h.m4: New file.
50624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50625         Don't include sys/time.h.  Return from main rather than exiting.
50626         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50627         all uses changed.
50628         * modules/gethrxtime (Depends-on): Add sys_time.
50629         * modules/gettime (Depends-on): Likewise.
50630         * modules/gettimeofday (Depends-on): Likewise.
50631         * modules/nanosleep (Depends-on): Likewise.
50632         * modules/settime (Depends-on): Likewise.
50633         * modules/tempname (Depends-on): Likewise.
50634         * modules/utimens (Depends-on): Likewise.
50635         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50636         (Include:) Change back to <sys/time.h>.
50637         (Maintainer:) Add self.
50638         * modules/sys_time: New file.
50639         * modules/tempname (Depends-on): Add gettimeofday.
50640         * tests/test-gettimeofday.c: Include <sys/time.h>
50641         rather than gettimeofday.h.
50642
50643 2007-01-17  Bruno Haible  <bruno@clisp.org>
50644
50645         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50646         the license default to GPL.
50647         (func_create_testdir): Don't complain if a module is LGPL and its
50648         tests module depends on GPLed modules.
50649
50650 2007-01-17  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/gettimeofday.c (gettimeofday): Add code for the case
50653         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50654         maximum possible value for tv->tv_usec, rather than the minimum one.
50655
50656 2005-10-08  Martin Lambers  <marlam@marlam.de>
50657 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50658 2007-01-16  Bruno Haible  <bruno@clisp.org>
50659
50660         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50661         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50662         gl_FUNC_GETTIMEOFDAY.
50663         (Include): Add gettimeofday.h.
50664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50665         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50666         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50667         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50668         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50669         * lib/gettimeofday.h: New file.
50670         * lib/gettimeofday.c: Include <sys/timeb.h>.
50671         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50672         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50673         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50674         fall back on time().
50675
50676         * tests/test-gettimeofday.c: New file.
50677         * modules/gettimeofday-tests: New file.
50678
50679 2007-01-16  Eric Blake  <ebb9@byu.net>
50680
50681         * modules/fnmatch (Depends-on): Depend on wchar.
50682         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50683         * m4/fnmatch.m4: Likewise.
50684         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50685         * m4/mbchar.m4: Likewise.
50686         * modules/mbswidth (Depends-on): Depend on wchar.
50687         * lib/mbswidth.c: Assume <wchar.h>.
50688         * m4/mbswidth.m4: Likewise.
50689         * modules/quotearg (Depends-on): Depend on wchar.
50690         * lib/quotearg.c: Assume <wchar.h>.
50691         * m4/quotearg.m4: Likewise.
50692         * modules/regex (Depends-on): Depend on wchar.
50693         * lib/regex_internal.h: Assume <wchar.h>.
50694         * m4/regex.m4: Likewise.
50695         * modules/stdint (Depends-on): Depend on wchar.
50696         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50697         * m4/stdint.m4: Likewise.
50698         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50699         * modules/strftime (Depends-on): Depend on wchar.
50700         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50701         * modules/strtol (Depends-on): Depend on wchar.
50702         * lib/strtol.c: Assume <wchar.h>.
50703         * modules/wcwidth (Depends-on): Depend on wchar.
50704         * lib/wcwidth.h: Assume <wchar.h>.
50705         * m4/wcwidth.m4: Likewise.
50706
50707 2007-01-16  Bruno Haible  <bruno@clisp.org>
50708
50709         * modules/csharpexec-script: New, created from...
50710         * modules/csharpexec: ... this.
50711
50712 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50713
50714         * modules/javaexec-script: New, created from...
50715         * modules/javaexec: ... this.
50716
50717 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50718
50719         * modules/poll (Dependencies): Add sys_select.
50720
50721 2007-01-15  Jim Meyering  <jim@meyering.net>
50722
50723         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50724         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50725         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50726         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50727
50728 2007-01-15  Bruno Haible  <bruno@clisp.org>
50729
50730         * modules/striconveh: New file.
50731         * lib/striconveh.h: New file.
50732         * lib/striconveh.c: New file.
50733         * MODULES.html.sh (Internationalization functions): Add striconveh.
50734
50735         * modules/striconveh-tests: New file.
50736         * tests/test-striconveh.c: New file.
50737
50738 2007-01-15  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50741         not from GNU libiconv or GNU libc.
50742
50743 2007-01-15  Bruno Haible  <bruno@clisp.org>
50744
50745         * doc/gnulib-intro.texi (Copyright): Explain the different license
50746         terms for module descriptions, autoconf macros, tests, documentation.
50747
50748 2007-01-14  Bruno Haible  <bruno@clisp.org>
50749
50750         * modules/striconv-tests: New file.
50751         * tests/test-striconv.c: New file.
50752
50753 2007-01-14  Bruno Haible  <bruno@clisp.org>
50754
50755         * modules/iconv-tests: New file.
50756         * tests/test-iconv.c: New file.
50757
50758 2007-01-14  Bruno Haible  <bruno@clisp.org>
50759
50760         * gnulib-tool (func_get_license): For test modules, use the license of
50761         the main module.
50762
50763 2007-01-14  Bruno Haible  <bruno@clisp.org>
50764
50765         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50766         if iconv is found to exist.
50767
50768 2007-01-14  Bruno Haible  <bruno@clisp.org>
50769
50770         * modules/c-ctype-tests: New file.
50771         * tests/test-c-ctype.c: New file.
50772
50773 2007-01-14  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/binary-io-tests: New file.
50776         * tests/test-binary-io.sh: New file.
50777         * tests/test-binary-io.c: New file.
50778
50779 2007-01-14  Bruno Haible  <bruno@clisp.org>
50780
50781         * modules/array-oset-tests: New file.
50782         * tests/test-array_oset.c: New file.
50783
50784 2007-01-14  Bruno Haible  <bruno@clisp.org>
50785
50786         * modules/array-list-tests: New file.
50787         * tests/test-array_list.c: New file.
50788
50789 2007-01-14  Bruno Haible  <bruno@clisp.org>
50790
50791         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50792         and make.
50793         Reported by Simon Josefsson in
50794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50795
50796 2007-01-14  Bruno Haible  <bruno@clisp.org>
50797
50798         * modules/allocsa-tests: New file.
50799         * tests/test-allocsa.c: New file.
50800
50801 2007-01-14  Bruno Haible  <bruno@clisp.org>
50802
50803         * modules/fchdir (Depends-on): Add absolute-header.
50804         * modules/unistd (Depends-on): Likewise.
50805
50806 2006-12-30  Bruno Haible  <bruno@clisp.org>
50807
50808         * modules/fchdir: New file.
50809         * modules/unistd (Files): Add lib/unistd_.h.
50810         (Makefile.am): Generate unistd.h from unistd_.h.
50811         * lib/fchdir.c: New file.
50812         * lib/dirent_.h: New file.
50813         * lib/unistd_.h: New file.
50814         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50815         * m4/fchdir.m4: New file.
50816         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50817         (gl_HEADER_UNISTD): Invoke it.
50818         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50819         function.
50820         * lib/backupfile.c (opendir, closedir): Undefine.
50821         * lib/chown.c (open, close): Undefine.
50822         * lib/clean-temp.c (open, close): Undefine.
50823         * lib/copy-file.c (open, close): Undefine.
50824         * lib/execute.c (open, close): Undefine.
50825         * lib/fsusage.c (open, close): Undefine.
50826         * lib/gc-gnulib.c (open, close): Undefine.
50827         * lib/getcwd.c (opendir, closedir): Undefine.
50828         * lib/glob.c (opendir, closedir): Undefine.
50829         * lib/javacomp.c (open, close): Undefine.
50830         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50831         * lib/openat-proc.c (open, close): Undefine.
50832         * lib/pagealign_alloc.c (open, close): Undefine.
50833         * lib/pipe.c (open, close): Undefine.
50834         * lib/progreloc.c (open, close): Undefine.
50835         * lib/savedir.c (opendir, closedir): Undefine.
50836         * lib/utime.c (open, close): Undefine.
50837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50838
50839 2007-01-10  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50842
50843 2007-01-12  Eric Blake  <ebb9@byu.net>
50844
50845         Provide a robust <wchar.h>.  Further simplifications are now
50846         possible in other modules, but not included here.
50847         * modules/wchar: New module.
50848         * m4/wchar.m4: New file.
50849         * lib/wchar_.h: Likewise.
50850         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50851         of the new module.
50852         * MODULES.html.sh (Extended multibyte and wide character utilities):
50853         New section.
50854
50855 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50856
50857         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50858         to a reasonable default for memory allocation.
50859         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50860         file system that reports garbage st_size values for symlinks.
50861         Problem reported by Liyang Hu.
50862
50863 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50864
50865         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50866         Emacs .#* auto-save files).
50867
50868 2007-01-11  Bruno Haible  <bruno@clisp.org>
50869
50870         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50871         directory.
50872
50873 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50874
50875         Use @...@ consistently in lib/wctype_.h.
50876         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50877         on it being set to 1 or 0.
50878         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50879         go back to AC_SUBSTing it.
50880         * modules/wctype (Makefile.am): Undo previous change.
50881
50882 2007-01-10  Eric Blake  <ebb9@byu.net>
50883
50884         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50885         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50886         * modules/wctype (Makefile.am): Likewise.
50887         Reported by Chris McGuire.
50888
50889 2007-01-10  Jim Meyering  <jim@meyering.net>
50890
50891         fts.c: a small readability/maintainability improvement
50892         * lib/fts.c (fts_read): Make this code slightly more readable and
50893         maintainable by hoisting the "sp->fts_cur = p" assignments to
50894         immediately follow the statements that set P.  Derived from
50895         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50896
50897 2007-01-10  Eric Blake  <ebb9@byu.net>
50898
50899         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50900         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50903         Reported by Chris McGuire.
50904
50905 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50906
50907         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50908         in sed script.
50909
50910 2007-01-09  Bruno Haible  <bruno@clisp.org>
50911
50912         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50913         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50914         variables.
50915         (func_module): Use them.
50916
50917 2007-01-09  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/unistr/base: New file.
50920         * lib/unistr.h: New file.
50921
50922         * modules/unistr/u8-to-u16: New file.
50923         * lib/unistr/u8-to-u16.c: New file.
50924
50925         * modules/unistr/u8-to-u32: New file.
50926         * lib/unistr/u8-to-u32.c: New file.
50927
50928         * modules/unistr/u16-to-u8: New file.
50929         * lib/unistr/u16-to-u8.c: New file.
50930
50931         * modules/unistr/u16-to-u32: New file.
50932         * lib/unistr/u16-to-u32.c: New file.
50933
50934         * modules/unistr/u32-to-u8: New file.
50935         * lib/unistr/u32-to-u8.c: New file.
50936
50937         * modules/unistr/u32-to-u16: New file.
50938         * lib/unistr/u32-to-u16.c: New file.
50939
50940         * modules/unistr/u8-check: New file.
50941         * modules/unistr/u16-check: New file.
50942         * modules/unistr/u32-check: New file.
50943         * lib/unistr/u8-check.c: New file.
50944         * lib/unistr/u16-check.c: New file.
50945         * lib/unistr/u32-check.c: New file.
50946
50947         * modules/unistr/u8-chr: New file.
50948         * modules/unistr/u16-chr: New file.
50949         * modules/unistr/u32-chr: New file.
50950         * lib/unistr/u8-chr.c: New file.
50951         * lib/unistr/u16-chr.c: New file.
50952         * lib/unistr/u32-chr.c: New file.
50953
50954         * modules/unistr/u8-cmp: New file.
50955         * modules/unistr/u16-cmp: New file.
50956         * modules/unistr/u32-cmp: New file.
50957         * lib/unistr/u8-cmp.c: New file.
50958         * lib/unistr/u16-cmp.c: New file.
50959         * lib/unistr/u32-cmp.c: New file.
50960
50961         * modules/unistr/u8-cpy: New file.
50962         * modules/unistr/u16-cpy: New file.
50963         * modules/unistr/u32-cpy: New file.
50964         * lib/unistr/u8-cpy.c: New file.
50965         * lib/unistr/u16-cpy.c: New file.
50966         * lib/unistr/u32-cpy.c: New file.
50967         * lib/unistr/u-cpy.h: New file.
50968
50969         * modules/unistr/u8-cpy-alloc: New file.
50970         * modules/unistr/u16-cpy-alloc: New file.
50971         * modules/unistr/u32-cpy-alloc: New file.
50972         * lib/unistr/u8-cpy-alloc.c: New file.
50973         * lib/unistr/u16-cpy-alloc.c: New file.
50974         * lib/unistr/u32-cpy-alloc.c: New file.
50975         * lib/unistr/u-cpy-alloc.h: New file.
50976
50977         * modules/unistr/u8-endswith: New file.
50978         * modules/unistr/u16-endswith: New file.
50979         * modules/unistr/u32-endswith: New file.
50980         * lib/unistr/u8-endswith.c: New file.
50981         * lib/unistr/u16-endswith.c: New file.
50982         * lib/unistr/u32-endswith.c: New file.
50983         * lib/unistr/u-endswith.h: New file.
50984
50985         * modules/unistr/u8-mblen: New file.
50986         * modules/unistr/u16-mblen: New file.
50987         * modules/unistr/u32-mblen: New file.
50988         * lib/unistr/u8-mblen.c: New file.
50989         * lib/unistr/u16-mblen.c: New file.
50990         * lib/unistr/u32-mblen.c: New file.
50991
50992         * modules/unistr/u8-mbtouc: New file.
50993         * modules/unistr/u16-mbtouc: New file.
50994         * modules/unistr/u32-mbtouc: New file.
50995         * lib/unistr/u8-mbtouc.c: New file.
50996         * lib/unistr/u16-mbtouc.c: New file.
50997         * lib/unistr/u32-mbtouc.c: New file.
50998
50999         * modules/unistr/u8-mbtouc-safe: New file.
51000         * modules/unistr/u16-mbtouc-safe: New file.
51001         * modules/unistr/u32-mbtouc-safe: New file.
51002         * lib/unistr/u8-mbtouc-safe.c: New file.
51003         * lib/unistr/u16-mbtouc-safe.c: New file.
51004         * lib/unistr/u32-mbtouc-safe.c: New file.
51005
51006         * modules/unistr/u8-move: New file.
51007         * modules/unistr/u16-move: New file.
51008         * modules/unistr/u32-move: New file.
51009         * lib/unistr/u8-move.c: New file.
51010         * lib/unistr/u16-move.c: New file.
51011         * lib/unistr/u32-move.c: New file.
51012         * lib/unistr/u-move.h: New file.
51013
51014         * modules/unistr/u8-next: New file.
51015         * modules/unistr/u16-next: New file.
51016         * modules/unistr/u32-next: New file.
51017         * lib/unistr/u8-next.c: New file.
51018         * lib/unistr/u16-next.c: New file.
51019         * lib/unistr/u32-next.c: New file.
51020
51021         * modules/unistr/u8-prev: New file.
51022         * modules/unistr/u16-prev: New file.
51023         * modules/unistr/u32-prev: New file.
51024         * lib/unistr/u8-prev.c: New file.
51025         * lib/unistr/u16-prev.c: New file.
51026         * lib/unistr/u32-prev.c: New file.
51027
51028         * modules/unistr/u8-set: New file.
51029         * modules/unistr/u16-set: New file.
51030         * modules/unistr/u32-set: New file.
51031         * lib/unistr/u8-set.c: New file.
51032         * lib/unistr/u16-set.c: New file.
51033         * lib/unistr/u32-set.c: New file.
51034         * lib/unistr/u-set.h: New file.
51035
51036         * modules/unistr/u8-startswith: New file.
51037         * modules/unistr/u16-startswith: New file.
51038         * modules/unistr/u32-startswith: New file.
51039         * lib/unistr/u8-startswith.c: New file.
51040         * lib/unistr/u16-startswith.c: New file.
51041         * lib/unistr/u32-startswith.c: New file.
51042         * lib/unistr/u-startswith.h: New file.
51043
51044         * modules/unistr/u8-stpcpy: New file.
51045         * modules/unistr/u16-stpcpy: New file.
51046         * modules/unistr/u32-stpcpy: New file.
51047         * lib/unistr/u8-stpcpy.c: New file.
51048         * lib/unistr/u16-stpcpy.c: New file.
51049         * lib/unistr/u32-stpcpy.c: New file.
51050         * lib/unistr/u-stpcpy.h: New file.
51051
51052         * modules/unistr/u8-stpncpy: New file.
51053         * modules/unistr/u16-stpncpy: New file.
51054         * modules/unistr/u32-stpncpy: New file.
51055         * lib/unistr/u8-stpncpy.c: New file.
51056         * lib/unistr/u16-stpncpy.c: New file.
51057         * lib/unistr/u32-stpncpy.c: New file.
51058         * lib/unistr/u-stpncpy.h: New file.
51059
51060         * modules/unistr/u8-strcat: New file.
51061         * modules/unistr/u16-strcat: New file.
51062         * modules/unistr/u32-strcat: New file.
51063         * lib/unistr/u8-strcat.c: New file.
51064         * lib/unistr/u16-strcat.c: New file.
51065         * lib/unistr/u32-strcat.c: New file.
51066         * lib/unistr/u-strcat.h: New file.
51067
51068         * modules/unistr/u8-strchr: New file.
51069         * modules/unistr/u16-strchr: New file.
51070         * modules/unistr/u32-strchr: New file.
51071         * lib/unistr/u8-strchr.c: New file.
51072         * lib/unistr/u16-strchr.c: New file.
51073         * lib/unistr/u32-strchr.c: New file.
51074
51075         * modules/unistr/u8-strcmp: New file.
51076         * modules/unistr/u16-strcmp: New file.
51077         * modules/unistr/u32-strcmp: New file.
51078         * lib/unistr/u8-strcmp.c: New file.
51079         * lib/unistr/u16-strcmp.c: New file.
51080         * lib/unistr/u32-strcmp.c: New file.
51081
51082         * modules/unistr/u8-strcpy: New file.
51083         * modules/unistr/u16-strcpy: New file.
51084         * modules/unistr/u32-strcpy: New file.
51085         * lib/unistr/u8-strcpy.c: New file.
51086         * lib/unistr/u16-strcpy.c: New file.
51087         * lib/unistr/u32-strcpy.c: New file.
51088         * lib/unistr/u-strcpy.h: New file.
51089
51090         * modules/unistr/u8-strcspn: New file.
51091         * modules/unistr/u16-strcspn: New file.
51092         * modules/unistr/u32-strcspn: New file.
51093         * lib/unistr/u8-strcspn.c: New file.
51094         * lib/unistr/u16-strcspn.c: New file.
51095         * lib/unistr/u32-strcspn.c: New file.
51096         * lib/unistr/u-strcspn.h: New file.
51097
51098         * modules/unistr/u8-strdup: New file.
51099         * modules/unistr/u16-strdup: New file.
51100         * modules/unistr/u32-strdup: New file.
51101         * lib/unistr/u8-strdup.c: New file.
51102         * lib/unistr/u16-strdup.c: New file.
51103         * lib/unistr/u32-strdup.c: New file.
51104         * lib/unistr/u-strdup.h: New file.
51105
51106         * modules/unistr/u8-strlen: New file.
51107         * modules/unistr/u16-strlen: New file.
51108         * modules/unistr/u32-strlen: New file.
51109         * lib/unistr/u8-strlen.c: New file.
51110         * lib/unistr/u16-strlen.c: New file.
51111         * lib/unistr/u32-strlen.c: New file.
51112         * lib/unistr/u-strlen.h: New file.
51113
51114         * modules/unistr/u8-strmblen: New file.
51115         * modules/unistr/u16-strmblen: New file.
51116         * modules/unistr/u32-strmblen: New file.
51117         * lib/unistr/u8-strmblen.c: New file.
51118         * lib/unistr/u16-strmblen.c: New file.
51119         * lib/unistr/u32-strmblen.c: New file.
51120
51121         * modules/unistr/u8-strmbtouc: New file.
51122         * modules/unistr/u16-strmbtouc: New file.
51123         * modules/unistr/u32-strmbtouc: New file.
51124         * lib/unistr/u8-strmbtouc.c: New file.
51125         * lib/unistr/u16-strmbtouc.c: New file.
51126         * lib/unistr/u32-strmbtouc.c: New file.
51127
51128         * modules/unistr/u8-strncat: New file.
51129         * modules/unistr/u16-strncat: New file.
51130         * modules/unistr/u32-strncat: New file.
51131         * lib/unistr/u8-strncat.c: New file.
51132         * lib/unistr/u16-strncat.c: New file.
51133         * lib/unistr/u32-strncat.c: New file.
51134         * lib/unistr/u-strncat.h: New file.
51135
51136         * modules/unistr/u8-strncmp: New file.
51137         * modules/unistr/u16-strncmp: New file.
51138         * modules/unistr/u32-strncmp: New file.
51139         * lib/unistr/u8-strncmp.c: New file.
51140         * lib/unistr/u16-strncmp.c: New file.
51141         * lib/unistr/u32-strncmp.c: New file.
51142
51143         * modules/unistr/u8-strncpy: New file.
51144         * modules/unistr/u16-strncpy: New file.
51145         * modules/unistr/u32-strncpy: New file.
51146         * lib/unistr/u8-strncpy.c: New file.
51147         * lib/unistr/u16-strncpy.c: New file.
51148         * lib/unistr/u32-strncpy.c: New file.
51149         * lib/unistr/u-strncpy.h: New file.
51150
51151         * modules/unistr/u8-strnlen: New file.
51152         * modules/unistr/u16-strnlen: New file.
51153         * modules/unistr/u32-strnlen: New file.
51154         * lib/unistr/u8-strnlen.c: New file.
51155         * lib/unistr/u16-strnlen.c: New file.
51156         * lib/unistr/u32-strnlen.c: New file.
51157         * lib/unistr/u-strnlen.h: New file.
51158
51159         * modules/unistr/u8-strpbrk: New file.
51160         * modules/unistr/u16-strpbrk: New file.
51161         * modules/unistr/u32-strpbrk: New file.
51162         * lib/unistr/u8-strpbrk.c: New file.
51163         * lib/unistr/u16-strpbrk.c: New file.
51164         * lib/unistr/u32-strpbrk.c: New file.
51165         * lib/unistr/u-strpbrk.h: New file.
51166
51167         * modules/unistr/u8-strrchr: New file.
51168         * modules/unistr/u16-strrchr: New file.
51169         * modules/unistr/u32-strrchr: New file.
51170         * lib/unistr/u8-strrchr.c: New file.
51171         * lib/unistr/u16-strrchr.c: New file.
51172         * lib/unistr/u32-strrchr.c: New file.
51173
51174         * modules/unistr/u8-strspn: New file.
51175         * modules/unistr/u16-strspn: New file.
51176         * modules/unistr/u32-strspn: New file.
51177         * lib/unistr/u8-strspn.c: New file.
51178         * lib/unistr/u16-strspn.c: New file.
51179         * lib/unistr/u32-strspn.c: New file.
51180         * lib/unistr/u-strspn.h: New file.
51181
51182         * modules/unistr/u8-strstr: New file.
51183         * modules/unistr/u16-strstr: New file.
51184         * modules/unistr/u32-strstr: New file.
51185         * lib/unistr/u8-strstr.c: New file.
51186         * lib/unistr/u16-strstr.c: New file.
51187         * lib/unistr/u32-strstr.c: New file.
51188         * lib/unistr/u-strstr.h: New file.
51189
51190         * modules/unistr/u8-strtok: New file.
51191         * modules/unistr/u16-strtok: New file.
51192         * modules/unistr/u32-strtok: New file.
51193         * lib/unistr/u8-strtok.c: New file.
51194         * lib/unistr/u16-strtok.c: New file.
51195         * lib/unistr/u32-strtok.c: New file.
51196         * lib/unistr/u-strtok.h: New file.
51197
51198         * modules/unistr/u8-uctomb: New file.
51199         * modules/unistr/u16-uctomb: New file.
51200         * modules/unistr/u32-uctomb: New file.
51201         * lib/unistr/u8-uctomb.c: New file.
51202         * lib/unistr/u16-uctomb.c: New file.
51203         * lib/unistr/u32-uctomb.c: New file.
51204
51205         * MODULES.html.sh (Unicode string functions): Add the new modules.
51206
51207 2007-01-08  Bruno Haible  <bruno@clisp.org>
51208
51209         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
51210         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
51211         subdirectories.
51212
51213 2007-01-08  Karl Berry  <karl@gnu.org>
51214
51215         * doc/error.texi: mention that main() fns must set program_name
51216         when progname is used.
51217
51218 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
51221         WCTYPE_H is empty, for the benefit of builds from non-distclean
51222         directories.  Problem reported by Eric Blake in
51223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
51224
51225 2007-01-08  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
51228         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
51229         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
51230         PROVIDE_CANONICALIZE_FILENAME_MODE.
51231         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
51232
51233 2007-01-08  Bruno Haible  <bruno@clisp.org>
51234
51235         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
51236         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
51237         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
51238         * lib/fts.c: Likewise.
51239         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
51240
51241 2006-12-25  Bruno Haible  <bruno@clisp.org>
51242
51243         * modules/utf8-ucs4-safe: New file.
51244         * lib/utf8-ucs4-safe.h: New file.
51245         * lib/unistr/utf8-ucs4-safe.c: New file.
51246
51247         * modules/utf16-ucs4-safe: New file.
51248         * lib/utf16-ucs4-safe.h: New file.
51249         * lib/unistr/utf16-ucs4-safe.c: New file.
51250
51251         * MODULES.html.sh (Unicode string functions): Add the new modules.
51252
51253 2007-01-08  Bruno Haible  <bruno@clisp.org>
51254
51255         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
51256         (Depends-on): Add unitypes.
51257         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51258         (u8_mbtouc_aux): Move out to separate file.
51259         (u8_mbtouc): Use ucs4_t, uint8_t types.
51260         * lib/unistr/utf8-ucs4.c: New file.
51261
51262         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
51263         (Depends-on): Add unitypes.
51264         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51265         (u16_mbtouc_aux): Move out to separate file.
51266         (u16_mbtouc): Use ucs4_t, uint16_t types.
51267         * lib/unistr/utf16-ucs4.c: New file.
51268
51269         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
51270         (Depends-on): Add unitypes.
51271         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
51272         (u8_uctomb_aux): Move out to separate file.
51273         (u8_uctomb): Use ucs4_t, uint8_t types.
51274         * lib/unistr/ucs4-utf8.c: New file.
51275
51276         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
51277         (Depends-on): Add unitypes.
51278         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
51279         (u16_uctomb_aux): Move out to separate file.
51280         (u16_uctomb): Use ucs4_t, uint16_t types.
51281         * lib/unistr/ucs4-utf16.c: New file.
51282
51283 2006-12-25  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/unitypes: New file.
51286         * lib/unitypes.h: New file.
51287         * MODULES.html.sh (func_all_modules): New section "Unicode string
51288         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
51289         this section. Add unitypes.
51290
51291 2007-01-08  Bruno Haible  <bruno@clisp.org>
51292
51293         Avoid variable names that conflict with those from libtool.
51294         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
51295         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
51296         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
51297         library_names_spec to acl_library_names_spec, hardcode_* to
51298         acl_hardcode_*.
51299         Reported by Ralf Wildenhues.
51300
51301 2007-01-08  Bruno Haible  <bruno@clisp.org>
51302
51303         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
51304         definition.
51305         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
51306         definition.
51307         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
51308         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
51309         definition.
51310         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
51311         definition.
51312         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
51313         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
51314         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
51315         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
51316         definition.
51317         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
51318         definition.
51319         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
51320         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
51321         GC_USE_<algorithm>.
51322         * lib/gc-libgcrypt.c: Likewise.
51323         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
51324         * modules/gc-arctwo (configure.ac): Likewise.
51325         * modules/gc-des (configure.ac): Likewise.
51326         * modules/gc-hmac-md5 (configure.ac): Likewise.
51327         * modules/gc-hmac-sha1 (configure.ac): Likewise.
51328         * modules/gc-md2 (configure.ac): Likewise.
51329         * modules/gc-md4 (configure.ac): Likewise.
51330         * modules/gc-md5 (configure.ac): Likewise.
51331         * modules/gc-random (configure.ac): Likewise.
51332         * modules/gc-rijndael (configure.ac): Likewise.
51333         * modules/gc-sha1 (configure.ac): Likewise.
51334
51335 2007-01-08  Bruno Haible  <bruno@clisp.org>
51336
51337         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
51338         macro definition.
51339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
51340         definition.
51341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
51342         definition.
51343         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
51344         * modules/fcntl-safer (configure.ac): Likewise.
51345         * modules/fopen-safer (configure.ac): Likewise.
51346         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
51347         GNULIB_FWRITEERROR macro definition.
51348
51349 2007-01-08  Bruno Haible  <bruno@clisp.org>
51350
51351         * m4/gnulib-common.m4: New file.
51352         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
51353         (func_get_filelist): Add m4/gnulib-common.m4.
51354
51355 2007-01-08  Bruno Haible  <bruno@clisp.org>
51356
51357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
51358         command.
51359
51360 2007-01-08  Jim Meyering  <jim@meyering.net>
51361
51362         Use a more robust test for a "can't happen" condition.
51363         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
51364         narrowed the st_size value.  Presuming the "can't happen" condition
51365         is true, that narrowing could conceivably convert an invalid st_size
51366         value into a valid one.  Instead, use a change based on Matthew
51367         Woehlke's original patch.
51368
51369         Slight readability improvement: use an assert-like macro
51370         in place of literal "abort ()" uses.
51371         * lib/fts.c (fts_assert): Define.
51372         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
51373         Use this macro instead of a bare 'abort'.
51374
51375 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         Don't worry about using IRIX 5.3's wctype.h broken definitions;
51378         simply work around them.
51379         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
51380         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
51381         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
51382         declaring.
51383         Don't bother to define as macros, since the standard doesn't require it.
51384         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
51385         longer worry about IRIX 5.3.
51386         (HAVE_WCTYPE_CTMP_BUG): Remove.
51387
51388 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51389
51390         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
51391         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
51392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51393         Problems reported by Georg Schwarz for IRIX 5.3.
51394
51395         * gnulib-tool (autoconf_minversion): Take the maximum version number
51396         found, not the minimum.  Problem reported by James Youngman.
51397
51398 2007-01-03  Karl Berry  <karl@gnu.org>
51399
51400         * doc/error.texi: new file, explaining interaction with progname.
51401         * doc/gnulib.texi: include it.  Update copyright.
51402
51403 2007-01-03  Simon Josefsson  <simon@josefsson.org>
51404
51405         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
51406         AC_CANONICAL_HOST, to improve autobuild outputs.
51407
51408 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
51409             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51410
51411         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
51412         sockets, server sockets, and other file descriptors.  Count errors
51413         to compute the return value.  Reorder the code a bit to be easier
51414         to follow.  Don't set event bits that were not requested (except
51415         POLLERR and POLLHUP).
51416
51417 2007-01-01  Bruno Haible  <bruno@clisp.org>
51418
51419         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
51420
51421 2007-01-03  Jim Meyering  <jim@meyering.net>
51422
51423         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
51424
51425 2007-01-02  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/settime (Include): Require timespec.h.
51428         * modules/nanosleep (Include): Likewise.
51429
51430 2007-01-01  Bruno Haible  <bruno@clisp.org>
51431
51432         * gnulib-tool (func_emit_copyright_notice): Bump year.
51433         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
51434
51435 2007-01-01  Bruno Haible  <bruno@clisp.org>
51436
51437         Improve support for OpenBSD.
51438         * build-aux/config.rpath (libname_spec): Export.
51439         (library_names_spec): New variable. Export.
51440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
51441         library_names_spec from the config.rpath output. Locate shared library
51442         through the name pattern in library_names_spec.
51443
51444 2007-01-01  Eric Blake  <ebb9@byu.net>
51445
51446         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
51447
51448 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
51449
51450         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
51451         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
51452         assume the C locale, and avoid an "eval" that could cause trouble.
51453         Problem with SORT reported by Bob Proulx.
51454
51455         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
51456         Define.  Trivial patch from Henning Nielsen Lund, originally
51457         sent to bug-grep@gnu.org today.
51458
51459 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51460
51461         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
51462         struct stat.  Problem reported by Henning Nielsen Lund.
51463         * lib/acl.c: Include acl.h first, to check interface.  Don't
51464         bother to include sys/types.h and sys/stat.h again.
51465
51466 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51467
51468         Import the following change from libc; problem reported by
51469         Sven Verdoolaege.
51470
51471         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
51472
51473         [BZ #1373]
51474         * lib/argp.h: Remove __NTH for __argp_usage inline function.
51475
51476 2006-12-28  Jim Meyering  <jim@meyering.net>
51477
51478         * build-aux/announce-gen: Do not assume that the package
51479         builds any of tar.gz, tar.bz2, and .xdelta files.
51480         Suggestion from Simon Josefsson.
51481
51482 2006-12-28  Simon Josefsson  <simon@josefsson.org>
51483
51484         * modules/announce-gen: New file.
51485
51486 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51487
51488         * lib/mbchar.h: Just include <wctype.h>; the wctype module
51489         handles its gotchas now.
51490         * lib/mbswidth.c: Likewise.
51491         * lib/wcwidth.h: Likewise.
51492         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
51493         and iswcntrl; the wctype module does this stuff now.
51494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51496         * modules/mbchar (Depends-on): Add wctype.
51497         * modules/mbswidth (Depends-on): Likewise.
51498         * modules/wcwidth (Depends-on): Likewise.
51499
51500 2006-12-27  Eric Blake  <ebb9@byu.net>
51501
51502         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51503         module uses more than what <wctype.h> is required to provide.
51504
51505 2006-12-26  Eric Blake  <ebb9@byu.net>
51506
51507         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51508
51509 2006-12-26  Eric Blake  <ebb9@byu.net>
51510
51511         * modules/absolute-header: New module.
51512         * modules/fcntl (Depends-on): Depend on it.
51513         * modules/inttypes (Depends-on): Likewise.
51514         * modules/stdint (Depends-on): Likewise.
51515         * modules/sys_stat (Depends-on): Likewise.
51516         * modules/wctype (Depends-on): Likewise.
51517         * MODULES.html.sh (Support for building libraries and
51518         executables): Document it.
51519
51520 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * gnulib-tool (SED): Remove, undoing previous change.
51523         The problem was that it broke coreutils on Solaris, because
51524         "sed --posix" leaked into a makefile.
51525         (sed): New alias, if 'alias' and GNU sed.
51526
51527 2006-12-24  Jim Meyering  <jim@meyering.net>
51528
51529         Work around an fchownat bug in glibc-2.4:
51530         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51531         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51532         in spite of the -P option.
51533         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51534         New macros.
51535         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51536         * modules/openat (Files): Add lib/fchownat.c.
51537         * lib/openat.c (fchownat): Don't define here.  Move to...
51538         * lib/fchownat.c: ...this new file.
51539
51540 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         Fix bug reported by Bruno Haible in
51543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51544         where quotearg.c didn't compile on Mac OS X 10.2 because it
51545         lacks <wchar.h> and wint_t.
51546         * lib/wctype_.h (__wctype_wint_t): New type.
51547         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51548         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51549         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51550         Arg is now of type __wctype_wint_t, not wint_t.
51551         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51552         substitute HAVE_WINT_T.
51553         * modules/wctype (Files): Add m4/wint_t.m4.
51554         (wctype.h): Substitute HAVE_WINT_T.
51555
51556 2006-12-23  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51559
51560 2006-12-23  Bruno Haible  <bruno@clisp.org>
51561
51562         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51563         S_ISLNK.
51564         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51565         mingw.
51566
51567 2006-12-22  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/copy-file.c: Include acl.h.
51570         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51571         Close the file descriptors only after being done with copy_acl.
51572         * modules/copy-file (Depends-on): Add acl.
51573
51574 2006-12-22  Bruno Haible  <bruno@clisp.org>
51575
51576         * gnulib-tool (SED): New variable.
51577         Use $SED instead of sed everywhere.
51578
51579 2006-12-22  Bruno Haible  <bruno@clisp.org>
51580
51581         * modules/no-c++: New file.
51582         * m4/no-c++.m4: New file.
51583         * MODULES.html.sh (Support for building libraries and executables):
51584         Add no-c++.
51585
51586 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51587
51588         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51589         Include <limits.h>, and use its INT_MAX to rewrite the
51590         j loop so that it does not overflow 'int'.  Problem reported by
51591         Ralf Wildenhues in
51592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51593         Play it safe by shifting left by 1 rather than multiplying by 2,
51594         as GCC is less likely to optimize this away when the value
51595         is signed (when it assumes overflow leads to undefined behavior).
51596         Also, don't assume time_t uses two's complement.
51597
51598 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * MODULES.html.sh: New module wctype.
51601         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51602         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51603         <wctype.h>, since the new wctype module should fix this.
51604         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51605         the wctype module should arrange for it.
51606         * lib/regex_internal.h: Likewise.
51607         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51608         since the wctype module should handle this now.
51609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51610         * modules/fnmatch (Depends-on): Add wctype.
51611         * modules/quotearg (Depends-on): Likewise.
51612         * modules/regex (Depends-on): Likewise.
51613
51614 2006-12-19  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51617         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51618
51619 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51620
51621         * modules/savewd (Depends-on): Fix dependency on fcntl.
51622
51623 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51626         conforms to C99, rather than relying on the user's environment
51627         setting of STDINT_H.
51628
51629 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51630         and Eric Blake  <ebb9@byu.net>
51631
51632         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51633         This is more consistent with the other defines here.
51634         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51635         Port to z/OS.  Problem reported by Paul Gilmartin.
51636         Change local vars to use gl_ prefix rather than ac_.
51637         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51638         with other defines.
51639         * modules/double-slash-root: New module.
51640         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51641         (Depends-on): Add double-slash-root.
51642         * MODULES.html.sh (File system functions): Mention new module.
51643
51644 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51645
51646         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51647         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51648         This is for the benefit of gzip, which doesn't do i18n.
51649
51650 2006-12-12  Jim Meyering  <jim@meyering.net>
51651
51652         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51653         Reported by Andreas Schwab <schwab@suse.de>.
51654
51655 2006-12-12  Bruno Haible  <bruno@clisp.org>
51656
51657         Merge these changes.
51658         2006-09-05  Bruno Haible  <bruno@clisp.org>
51659         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51660         iconv_alloc succeeded.
51661         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51662         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51663         test for " && dest " at the end - dest is always != NULL there. Call
51664         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51665         with 2xNULL arguments, also to flush the state storage. Handle the
51666         IRIX iconv behaviour. Realloc the final result, to throw away unused
51667         memory.
51668
51669 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51672         and fchmodat unconditionally, since glibc 2.4 has them.
51673         Problem reported by Arkadiusz Miskiewicz.
51674
51675 2006-12-10  Bruno Haible  <bruno@clisp.org>
51676
51677         * gnulib-tool (func_import): Show the include files only for those
51678         modules that are copied and specified.
51679         Reported by Karl Berry.
51680
51681 2006-12-08  Jim Meyering  <jim@meyering.net>
51682
51683         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51684         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51685
51686         * build-aux/announce-gen: Add two new options, both optional:
51687         --bootstrap-tools=TOOL_LIST
51688               a comma-separated list of tools, e.g.,
51689               autoconf,automake,bison,gnulib
51690         --gnulib-snapshot-date=DATE
51691               if gnulib is in the bootstrap tool list,
51692               then report this as the snapshot date.
51693               If not specified, use the current date/time.
51694               If you specify a date here, be sure it's UTC.
51695
51696 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51697
51698         * tests/test-argp-2.sh: Fix test to match actual output.
51699         (func_compare): Fix sed script to be portable.
51700
51701 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51702
51703         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51704         workaround for this case.  It is not autoconfigured now; offhand
51705         it's hard to see how to autoconfigure it.
51706
51707 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51708
51709         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51710         a directory that is about to be chowned.  Such a directory's
51711         initial file permissions should permit the owner only and this
51712         should not be changed until after the chown, since the group and
51713         other bits would be incorrect if they granted permission before
51714         the chown.
51715
51716         Fix porting problem for iswctype reported by Georg Schwarz in:
51717         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51718         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51719         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51721         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51722
51723 2006-12-03  Jim Meyering  <jim@meyering.net>
51724
51725         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51726         p->fts_statp may not yet be defined.
51727         (fts_read): Instead, set it in the caller, once p->fts_statp is
51728         sure to be defined, and corresponds to a top-level directory.
51729         This bug made du -x fail.  Here's the coreutils test case:
51730         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51731         Reported by Mike Frysinger.
51732
51733 2006-12-01  Jim Meyering  <jim@meyering.net>
51734
51735         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51736         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51737         Reported by Simon Josefsson.
51738
51739 2006-11-30  Jim Meyering  <jim@meyering.net>
51740
51741         * m4/warning.m4: Use the all-permissive copyright notice
51742         recommended by RMS (rather than LGPL).
51743         * m4/vararrays.m4: Likewise.
51744         * m4/flexmember.m4: Likewise.
51745
51746 2006-11-29  Bruno Haible  <bruno@clisp.org>
51747
51748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51749         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51750         using +=.
51751         Reported by Simon Josefsson <simon@josefsson.org>.
51752
51753 2006-11-28  James Youngman <jay@gnu.org>
51754
51755         * README: Advise users that they might find the bug-gnulib@gnu.org
51756         and autotools-announce@gnu.org mailing lists useful.
51757
51758 2006-11-28  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/ptrdiff_max.m4: Remove file.
51761
51762 2006-11-21  Bruno Haible  <bruno@clisp.org>
51763
51764         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51765         _AC_COMPUTE_INT.
51766         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51767         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51768         _AC_COMPUTE_INT.
51769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51770         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51771         _AC_COMPUTE_INT.
51772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51773
51774 2006-11-28  Jim Meyering  <jim@meyering.net>
51775
51776         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51777         warning from "gcc -Wshadow" about shadowing the builtin.
51778
51779 2006-11-27  Bruno Haible  <bruno@clisp.org>
51780
51781         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51782         _AC_COMPUTE_INT.
51783         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51784
51785 2006-11-27  Bruno Haible  <bruno@clisp.org>
51786             Paul Eggert  <eggert@cs.ucla.edu>
51787
51788         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51789
51790 2006-11-26  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51793         noinst_LTLIBRARIES.
51794
51795 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51796             Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51799         if compiling with "gcc -ansi".
51800
51801 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         Fix some incompatibilities with gcc -ansi -pedantic.
51804         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51805         if compiling pedantically with GCC, unless it's C99 or later.
51806         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51807         it mishandles gcc -ansi -pedantic as well.
51808         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51809         if gcc -pedantic.
51810         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51811         initializers for struct if -pedantic, unless it's C99 or later.
51812
51813 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51814
51815         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51816         Don't close an fd more than once. Identical atimes indicate
51817         success, not failure.
51818
51819 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51820
51821         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51822
51823 2006-11-23  Jim Meyering  <jim@meyering.net>
51824
51825         * build-aux/announce-gen: New file.  From coreutils.
51826
51827 2006-11-22  Jim Meyering  <jim@meyering.net>
51828
51829         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51830         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51831         (fts_read): Use a temporary to narrow the overused st_size member
51832         before using it in a switch statement.  Reported by Matthew Woehlke.
51833
51834         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51836
51837 2006-11-20  Bruno Haible  <bruno@clisp.org>
51838
51839         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51840         changequote instead of pairs of brackets.
51841         Reported by Andreas Schwab <schwab@suse.de>.
51842
51843 2006-11-21  Jim Meyering  <jim@meyering.net>
51844
51845         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51846         so as to remain compatible with older compilers.
51847         Patch from Michael Deutschmann.
51848
51849 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51850
51851         * MODULES.html.sh (File system functions): Add openat.
51852
51853         * lib/openat.h (rpl_fstatat): New macro, if
51854         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51855         (fstatat): Define to rpl_fstatat under the same conditions,
51856         unless COMPILING_FSTATAT.
51857         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51858         seems to have the bug.
51859         * lib/fstatat.c: New file.
51860         * modules/openat (Files): Add it.
51861
51862 2006-11-20  Bruno Haible  <bruno@clisp.org>
51863
51864         * Makefile: New file.
51865
51866 2006-11-20  Jim Meyering  <jim@meyering.net>
51867
51868         The beginnings of syntax-related checks for gnulib.
51869         * lib/Makefile: New file.
51870         * lib/t-idcache: New script.  Ensure that the two halves of
51871         idcache.c stay in sync.
51872
51873         * lib/idcache.c: Adjust comments in user- and group- portions to
51874         be more accurate, and to be consistent with one another.
51875
51876 2006-11-20  Jim Meyering  <jim@meyering.net>
51877
51878         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51879         continue using the flexible array member (thus, this module performs
51880         half as many malloc calls), with the addition that...
51881         (getgroup, getuser): Consistently record a non-match via an empty
51882         "name" string, and map an empty string match to a NULL return value.
51883         * modules/idcache (Depends-on): Re-add flexmember.
51884
51885         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51886         (getuidbyname, getgroup, getgidbyname): Likewise.
51887
51888         Use cleaner syntax: NULL rather than 0.
51889         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51890
51891 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51894         It mishandled the case where the group was missing.
51895         Problem reported by Greg Schafer.
51896         * modules/idcache: Likewise.
51897
51898 2006-11-18  Jim Meyering  <jim@meyering.net>
51899
51900         * check-module (%exempt_header): Add exception for some
51901         conditionally-included headers.
51902
51903         * modules/i-ring (Depends-on): Add verify.
51904         (License): Change to LGPL.
51905
51906 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51909         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51910         and inttostr.h.  Use snprintf rather than uinttostr, so that
51911         LGPLed code doesn't depend on GPLed.
51912
51913 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * modules/inline (License): Change from GPL to LGPL.
51916
51917 2006-11-17  Jim Meyering  <jim@meyering.net>
51918
51919         * modules/d-type (License): Switch to LGPL.
51920
51921 2006-11-15  Bruno Haible  <bruno@clisp.org>
51922
51923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51924
51925 2006-11-15  Eric Blake  <ebb9@byu.net>
51926
51927         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51928         the module dependency.
51929
51930 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51931             Bruno Haible  <bruno@clisp.org>
51932
51933         * gnulib-tool (func_create_testdir): Add license consistency check.
51934
51935 2006-11-15  Eric Blake  <ebb9@byu.net>
51936
51937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
51938         random "(cached)" in configure output.
51939
51940 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51941
51942         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
51943         test for conforming inttypes.h is both announced and cached.
51944
51945         * MODULES.html.sh (seen_modules, seen_files): New variables.
51946         (func_module): Rewrite to use a few less gnulib-tool and sed
51947         invocations.  Avoid a couple of quadratic algorithms for ...
51948         (missed_modules, missed_files): ... these, with ...
51949         (func_append, func_tmpdir): ... these new functions, from
51950         gnulib-tool.  Analogously, install traps for cleanup.
51951
51952         * tests/test-gc.c (main): Remove unused variables.
51953         * tests/test-read-file.c: Include stdlib.h, for 'free'.
51954
51955 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * modules/inttostr (License): Change to LGPL.
51958
51959 2006-11-14  Eric Blake  <ebb9@byu.net>
51960
51961         * modules/tempname (License): Change to LGPL.
51962
51963 2006-11-14  Eric Blake  <ebb9@byu.net>
51964
51965         * doc/functions.texi (Function Portability): *printf functions on
51966         Cygwin now understand all POSIX size specifiers.
51967
51968 2006-11-14  Bruno Haible  <bruno@clisp.org>
51969
51970         * modules/c-ctype (License): Change to LGPL.
51971
51972 2006-11-12  Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51975         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51976         for GNOME libraries, for which the include files are installed in
51977         subdirectories of $prefix/include.
51978
51979 2006-11-12  Bruno Haible  <bruno@clisp.org>
51980
51981         * m4/lib-link.m4: Require at least autoconf-2.54.
51982         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51983         name to underscores for the --with option.
51984
51985 2006-11-13  Bruno Haible  <bruno@clisp.org>
51986
51987         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51988         the tests directory.
51989         Reported by Ralf Wildenhues.
51990
51991 2006-11-13  Bruno Haible  <bruno@clisp.org>
51992
51993         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51994         (func_emit_initmacro_end): Undo the override here.
51995         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51996         Works around the famous automake error in coreutils.
51997
51998 2006-11-13  Eric Blake  <ebb9@byu.net>
51999
52000         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
52001         element, not its node.
52002
52003 2006-11-12  Bruno Haible  <bruno@clisp.org>
52004
52005         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
52006         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
52007
52008 2006-11-12  Bruno Haible  <bruno@clisp.org>
52009
52010         * gnulib-tool: New option --local-symlink.
52011         (func_usage): Document it.
52012         (lsymbolic): New variable.
52013         (func_import, func_create_testdir): If --symlink was not specified,
52014         test whether --local-symlink was specified and the file comes from
52015         the local_gnulib_dir.
52016
52017 2006-11-12  Bruno Haible  <bruno@clisp.org>
52018
52019         * gnulib-tool (func_ln): New function.
52020         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
52021
52022 2006-11-12  Bruno Haible  <bruno@clisp.org>
52023
52024         Finish support for source files in subdirectories.
52025         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
52026         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
52027         AUTOMAKE_OPTIONS.
52028         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
52029
52030 2006-11-12  Bruno Haible  <bruno@clisp.org>
52031
52032         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52033         EXTRA_lib_SOURCES augmentation.
52034         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
52035
52036 2006-11-12  Jim Meyering  <jim@meyering.net>
52037
52038         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
52039         file descriptors.  This also averts a failure on systems with
52040         native openat support when a traversed directory lacks "x" access.
52041         * lib/fts_.h: Include "i-ring.h"
52042         (struct FTS) [fts_fd_ring]: New member.
52043         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
52044         (FCHDIR): Add parentheses.
52045         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
52046         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
52047         When descending, rather than simply closing the previous
52048         fts_cwd_fd value, push that file descriptor onto the ring.
52049         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
52050         (fts_open): Initialize the new fd_ring member.
52051         (fts_close): Clear the ring.
52052         (fts_safe_changedir): When possible, use our new fd_ring to skip
52053         the diropen and fstat and dev/ino comparison that would normally
52054         accompany a virtual `chdir ("..")'.
52055
52056         * modules/fts (Depends-on): Add i-ring.
52057         * modules/i-ring: New module.
52058         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
52059         * m4/i-ring.m4: New file.
52060
52061 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52062
52063         * gnulib-tool (func_create_testdir): Fix replacement of
52064         `build-aux' in configure.ac.  Run autotools in gltests
52065         subdirectory.
52066         (func_create_testdir, func_create_megatestdir, test): There is
52067         no need for '--force' in most autotool invocations in a new
52068         tree.  Actually fail the whole test if any of the tools, or the
52069         configure or make stages fail.
52070
52071         Sync from Automake.
52072         * build-aux/gnupload: Revert last change.  Add pointer to upload
52073         instructions of the GNU Maintenance Instructions.
52074         Suggestion by Karl Berry.
52075
52076 2006-11-10  Jim Meyering  <jim@meyering.net>
52077
52078         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
52079
52080 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52081
52082         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
52083         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
52084         (bind_textdomain_codeset) [! ENABLE_NLS]:
52085         Evaluate all the arguments.  That way, callers get compatible behavior
52086         if the arguments have side effects.  Also, it avoids some GCC
52087         diagnostics in some cases; Joel E. Denny reported problems when Bison
52088         was configured with --enable-gcc-warnigs.
52089
52090 2006-11-10  Jim Meyering  <jim@meyering.net>
52091
52092         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
52093         relevant options in CFLAGS (like -O, -fno-inline) are taken into
52094         account.
52095
52096 2006-11-10  Jim Meyering  <jim@meyering.net>
52097
52098         * modules/inline: New file/module.
52099         * modules/xalloc (Files): Remove m4/inline.m4.
52100         (Depends-on): Add inline, instead.
52101         * modules/oset: Likewise.
52102         * modules/list: Likewise.
52103
52104 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52107         Problem reported by Matthew Woehlke.
52108
52109 2006-11-09  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/tempname.c (gen_tempname): Remove variant that invokes
52112         __gen_tempname.
52113         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52114         __gen_tempname.
52115
52116 2006-11-08  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52119         to 'yes' instead of 'cross-compiling'.
52120
52121 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52122
52123         * lib/quotearg.h (quotearg_free): New decl.
52124         * lib/quotearg.c (quotearg_free): New function.
52125         (slot0, nslots, slotvec0, slotvec):
52126         Now file-scope so that quotearg_free can get at them.
52127
52128 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52129
52130         Sync from Automake.
52131         * build-aux/gnupload: Add missing 'gnu' to example URL.
52132         Report by Karl Berry.
52133
52134 2006-11-08  Bruno Haible  <bruno@clisp.org>
52135
52136         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52137         Suggested by Paul Eggert.
52138
52139 2006-11-08  Jim Meyering  <jim@meyering.net>
52140
52141         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52142         It's already included if !_LIBC.
52143         (fts_safe_changedir): Add a comment.
52144
52145 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52148         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52149         Matthew Woehlke.
52150
52151         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52152         definitions up, to avoid colliding with change below.
52153         (static_inline) [HAVE_INLINE]: New macro.
52154         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52155         Provide extern decls when !HAVE_INLINE.  Do not define unless
52156         static_inline is defined, either by us or by xmalloc.c.  Use
52157         static_inline rather than static inline.
52158         (XCALLOC): Optimize sizeof(T) = 1 case.
52159         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52160
52161 2006-11-07  Bruno Haible  <bruno@clisp.org>
52162
52163         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52165         AC_C_INLINE.
52166         * modules/xalloc (Files): Add m4/inline.m4.
52167
52168 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52169
52170         * README: Fix typo.
52171         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52172         (Miscellanous Notes): ...from this.
52173
52174 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
52177         Mention that offsetof should be used instead of sizeof.
52178         From Bruno Haible.
52179
52180 2006-11-07  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
52183
52184 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52185
52186         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
52188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52189         (gl_tree_add_before, gl_tree_add_after):
52190         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
52191         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
52192         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52193         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
52194         (gl_linked_add_after, gl_linked_add_at): Likewise.
52195         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
52196         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52197         (gl_tree_add_before, gl_tree_add_after): Likewise.
52198         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
52199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
52200         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52201
52202 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52203
52204         * lib/gl_oset.h: Use C comment style, not C++ comment style.
52205
52206 2006-11-06  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/inline.m4: New file.
52209         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
52210         * modules/list (Files): Add m4/inline.m4.
52211         * modules/oset (Files): Likewise.
52212
52213 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52214
52215         * lib/idcache.c: Include <stddef.h>, for offsetof.
52216         (struct userid.name): Change from char * to a flexible array member.
52217         All uses changed.
52218         * modules/idcache (Depends-on): Add flexmember.
52219
52220         * MODULES.html.sh (Core language properties): New module flexmember.
52221         * modules/flexmember, m4/flexmember.m4: New files.
52222
52223         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
52224         inline functions that are identical with the old xnmalloc_inline,
52225         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
52226         that we can avoid some unnecessary integer multiplications and
52227         divisions in the common case where the element size is known at
52228         compile time.
52229         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
52230         needed.
52231         (xnboundedmalloc): Remove.
52232         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
52233         arguments, for consistency with rest of this header.
52234         (xcharalloc): Rewrite using XNMALLOC.
52235         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
52236         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
52237         versions have been moved to lib/xalloc.h and renamed to be the
52238         non-*_inline versions.
52239         (xmalloc, xrealloc): Implement without reference to the xnmalloc
52240         and xnrealloc functions, since those functions are now inline and
52241         now call us.
52242         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
52243         renaming described above.
52244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
52245         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
52246         captures the dependency in AC_C_INLINE.
52247
52248         New module canonicalize-lgpl, proposed by Charles Wilson in
52249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
52250         with a few small changes afterwards.
52251         * MODULES.html.sh (File system functions): New module
52252         canonicalize-lgpl.
52253         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
52254         and canonicalize_file_name.
52255         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
52256         * modules/canonicalize-lgpl: New files.
52257
52258 2006-11-05  Bruno Haible  <bruno@clisp.org>
52259
52260         * gnulib-tool (func_import, func_create_testdir): Create directories
52261         also for files in subdirectories of lib/.
52262
52263 2006-11-05  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
52266         ANSI C compliant.
52267
52268 2006-11-03  Bruno Haible  <bruno@clisp.org>
52269
52270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52271         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
52272         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
52273         (xnboundedmalloc): New inline function.
52274         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
52275         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
52276         xmalloc.
52277         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
52278         xmalloc.
52279         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
52280         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
52281         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
52282         xmalloc.
52283         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52284         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
52285         xmalloc.
52286         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
52287         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52288         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
52289         xmalloc.
52290         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52291         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
52292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52293         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
52294         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
52295         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
52296         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
52297
52298 2006-11-03  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/c-ctype.h [C++]: Define functions without name mangling.
52301         * lib/fwriteerror.h [C++]: Likewise.
52302         * lib/gcd.h [C++]: Likewise.
52303         * lib/linebreak.h [C++]: Likewise.
52304
52305 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52306
52307         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
52308         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
52309         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
52310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52311         Check for functions and headers just once.
52312         Check for declaration of canonicalize_file_name.
52313         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
52314
52315 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52316
52317         * gnulib-tool (func_import): Fix typo in actioncmd.
52318
52319 2006-11-02  Bruno Haible  <bruno@clisp.org>
52320
52321         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
52322         newline sequence in the Makefile.am snippet as a space, like "make"
52323         does.
52324         Reported by Roger Persson <perrog@gmail.com>.
52325
52326 2006-11-01  Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
52329         already declared in <string.h>.
52330         * lib/strcase.h (strncasecmp): Don't declare it if yes.
52331
52332 2006-11-01  Bruno Haible  <bruno@clisp.org>
52333
52334         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
52335         * lib/strcase.h: Include <string.h>.
52336         (strcasecmp): Define to rpl_strcasecmp here.
52337
52338 2006-11-01  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
52341
52342 2006-11-01  Eric Blake  <ebb9@byu.net>
52343
52344         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
52345
52346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
52347
52348 2006-10-29  Bruno Haible  <bruno@clisp.org>
52349
52350         Make it compile in C++ mode.
52351         * lib/full-write.c (full_rw): Add a cast.
52352
52353 2006-11-01  Bruno Haible  <bruno@clisp.org>
52354
52355         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
52356         be POSIX compliant.
52357         Reported by Roger Persson <perrog@gmail.com>.
52358
52359 2006-11-01  Eric Blake  <ebb9@byu.net>
52360
52361         * lib/getopt_.h: Fix comments.
52362
52363 2006-10-31  Eric Blake  <ebb9@byu.net>
52364
52365         * modules/tmpdir (Depends-on): Add sys_stat.
52366         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
52367         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
52368         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
52369         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
52370         tempname.
52371
52372 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
52373
52374         Avoid some C++ diagnostics reported by Bruno Haible.
52375         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
52376         xmalloc.
52377         (quotearg_alloc): Use xcharalloc rather than xmalloc.
52378         (struct slotvec): Move to top level.
52379         (quotearg_n_options): Rewrite to avoid xmalloc.
52380         * lib/xalloc.h (xcharalloc): New function.
52381         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
52382         [defined __cplusplus]: Add function template that provides result
52383         type propagation.  This part of the change is from Bruno Haible.
52384
52385 2006-10-29  Bruno Haible  <bruno@clisp.org>
52386
52387         Make it compile in C++ mode.
52388         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
52389         * lib/strnlen1.c (strnlen1): Cast memchr result.
52390         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
52391         * lib/clean-temp.c (string_equals, string_hash): Add casts.
52392         (create_temp_dir): Rename local variable 'template'.
52393         (compile_csharp_using_sscli): Add cast.
52394         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
52395         * lib/findprog.c (find_in_path): Likewise.
52396         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
52397         * lib/wait-process.c (register_slave_subprocess): Likewise.
52398
52399 2006-10-22  Bruno Haible  <bruno@clisp.org>
52400
52401         * modules/tsearch: New file.
52402         * lib/tsearch.h: New file.
52403         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
52404         * m4/tsearch.m4: New file.
52405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
52406
52407 2006-10-29  Eric Blake  <ebb9@byu.net>
52408
52409         * lib/arcfour.c: Assume config.h.
52410         * lib/arctwo.c: Likewise.
52411         * lib/base64.c: Likewise.
52412         * lib/check-version.c: Likewise.
52413         * lib/crc.c: Likewise.
52414         * lib/des.c: Likewise.
52415         * lib/gc-gnulib.c: Likewise.
52416         * lib/gc-libgcrypt.c: Likewise.
52417         * lib/gc-pbkdf2-sha1.c: Likewise.
52418         * lib/getaddrinfo.c: Likewise.
52419         * lib/getdelim.c: Likewise.
52420         * lib/getline.c: Likewise.
52421         * lib/hmac-md5.c: Likewise.
52422         * lib/hmac-sha1.c: Likewise.
52423         * lib/iconvme.c: Likewise.
52424         * lib/md2.c: Likewise.
52425         * lib/md4.c: Likewise.
52426         * lib/memxor.c: Likewise.
52427         * lib/read-file.c: Likewise.
52428         * lib/readline.c: Likewise.
52429         * lib/rijndael-alg-fst.c: Likewise.
52430         * lib/rijndael-api-fst.c: Likewise.
52431         * lib/xgetdomainname.c: Likewise.
52432
52433 2006-10-28  Eric Blake  <ebb9@byu.net>
52434
52435         * lib/xstrndup.c: Assume config.h.
52436
52437 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
52440         stat-macros.h is now for our own macros, whereas stat_h is for
52441         macros in the <sys/stat.h> name space.
52442         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
52443         (STAT_MACROS_H): Remove.
52444         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
52445         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
52446         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
52447         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
52448         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
52449         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
52450         Move these macros to ...
52451         * lib/stat_.h: here.  Don't include stat-macros.h.
52452         * lib/canonicalize.c: Don't include stat-macros.h.
52453         * lib/chown.c: Likewise.
52454         * lib/euidaccess.c: Likewise.
52455         * lib/file-type.c: Likewise.
52456         * lib/filemode.c: Likewise.
52457         * lib/glob.c: Likewise.
52458         * lib/isapipe.c: Likewise.
52459         * lib/lchown.c: Likewise.
52460         * lib/lstat.c: Likewise.
52461         * lib/mkdir-p.c: Likewise.
52462         * lib/rmdir.c: Likewise.
52463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
52464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
52465         unless mkdir isn't declared, to speed up 'configure'.
52466         Always create sys/stat.h, since it's unlikely any real sys/stat.h
52467         would define all the S_* symbols.
52468         * modules/canonicalize (Depends-on):
52469         Depend on sys_stat, not stat-macros.
52470         * modules/chown: Likewise.
52471         * modules/euidaccess: Likewise.
52472         * modules/filemode: Likewise.
52473         * modules/file-type: Likewise.
52474         * modules/glob: Likewise.
52475         * modules/isapipe: Likewise.
52476         * modules/lchown: Likewise.
52477         * modules/lstat: Likewise.
52478         * modules/mkancesdirs: Likewise.
52479         * modules/rmdir: Likewise.
52480         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
52481         * modules/modechange: Likewise.
52482         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
52483         (configure.ac): Remove gl_STAT_MACROS.
52484         * modules/sys_stat (Depends-on): Remove stat-macros.
52485
52486 2006-10-27  Bruno Haible  <bruno@clisp.org>
52487
52488         * m4/signed.m4: Remove file.
52489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
52490         invocation.
52491         * modules/vasnprintf (Files): Remove m4/signed.m4.
52492
52493 2006-10-27  Bruno Haible  <bruno@clisp.org>
52494
52495         Update to GNU gettext 0.16.
52496         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52497         m4/inttypes-h.m4, m4/signed.m4.
52498         * m4/gettext.m4: Update to GNU gettext 0.16.
52499         * m4/intl.m4: New file, from GNU gettext.
52500         * m4/intldir.m4: New file, from GNU gettext.
52501         * config/srclist.txt: Update
52502
52503 2006-10-27  Eric Blake  <ebb9@byu.net>
52504
52505         * MODULES.html.sh: Document tempname.
52506         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52507         dependencies.
52508         (Files): Move lib/tempname.c...
52509         * modules/tempname: ...to this new module.
52510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52511         (gl_PREREQ_TEMPNAME): Move...
52512         * m4/tempname.m4: ...to this new file.
52513         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52514         * modules/sys_stat (Depends-on): Add stat-macros.
52515         * lib/stat_.h (includes): Pick up stat macros.
52516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52517         if stat macros are broken.
52518         * lib/tempname.c (includes): No need to include "stat-macros.h".
52519         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52520         (direxists, __path_search) [!_LIBC]: Don't compile these in
52521         gnulib; the tmpdir module covers that.
52522         * lib/tempname.h: New file.
52523
52524 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         * COPYING: Explain how gnulib-tool converts licence headers.
52527         Almost all wording by Eric Blake.
52528
52529 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * lib/mbchar.h (is_basic_table): Make read-only.
52532         * lib/mbchar.c (is_basic_table): Likewise.
52533         Reported by John Darrington.
52534
52535 2006-10-25  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/progname.h (set_program_name): Undefine before defining.
52538
52539 2006-10-25  Bruno Haible  <bruno@clisp.org>
52540
52541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52542         false for non-gcc C++ compilers.
52543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52544
52545 2006-10-24  Bruno Haible  <bruno@clisp.org>
52546
52547         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52548         iconv implementations like Irix iconv.
52549
52550 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52551
52552         * modules/vararrays: New file.
52553         * m4/vararrays.m4: New file, taken from diffutils.
52554         * MODULES.html.sh: New module vararrays.
52555
52556 2006-10-24  Karl Berry  <karl@gnu.org>
52557
52558         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52559         Don't call GNU Unix.
52560
52561 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52562
52563         * users.txt: Add Libtool.
52564
52565         Sync from Libtool:
52566
52567         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52568
52569         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52570         to gnulib's policy of including config.h unconditionally.
52571
52572 2006-10-24  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/wcwidth (Files): Add m4/wint_t.m4.
52575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52576         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52577
52578 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52581         to pacify GCC with some -W flags enabled.  Problem reported by
52582         Bruno Haible.
52583
52584 2006-10-24  Jim Meyering  <jim@meyering.net>
52585
52586         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52587         Reported by Karl Berry.
52588
52589 2006-10-23  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52592
52593 2006-10-24  Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/gl_list.h: Use C comment style, not C++ comment style.
52596
52597 2006-10-23  Eric Blake  <ebb9@byu.net>
52598
52599         * lib/getaddrinfo.c (includes): Add missing include.
52600
52601 2006-10-23  Bruno Haible  <bruno@clisp.org>
52602             Paul Eggert  <eggert@cs.ucla.edu>
52603
52604         Ability to rename obstack_free.
52605         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52606         obstack_free.
52607         (obstack_free): Invoke the __obstack_free macro.
52608         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52609
52610 2006-10-23  Bruno Haible  <bruno@clisp.org>
52611             Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52614         __argc, __argv from the declaration. (They are defined as macros on
52615         mingw.)
52616
52617 2006-10-22  Bruno Haible  <bruno@clisp.org>
52618
52619         * doc/gnulib-intro.texi: New file.
52620         * doc/gnulib.texi: Include it.
52621
52622 2006-10-21  Bruno Haible  <bruno@clisp.org>
52623
52624         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52625         "Introduction", "Miscellanous Notes", "Particular Modules".
52626
52627 2006-10-21  Bruno Haible  <bruno@clisp.org>
52628
52629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52630         Change mostlyclean-local rule to avoid sh syntax error from bash
52631         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52632
52633 2006-10-23  Jim Meyering  <jim@meyering.net>
52634
52635         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52636         in place of snprintf.
52637
52638         * modules/inttostr (Files): Add lib/uinttostr.c.
52639         * lib/uinttostr.c (inttostr): New file/function.
52640         * lib/inttostr.h (uinttostr): Declare.
52641         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52642         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52643         Add uinttostr.
52644         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52645
52646 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         * lib/canonicalize.c (ELOOP): Define if not already defined.
52649         Problem reported by Bruno Haible in
52650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52651
52652 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52655         Problem reported by Perry Smith and Ville Laurikari.
52656
52657         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52658         uses.
52659
52660 2006-10-19  Bruno Haible  <bruno@clisp.org>
52661
52662         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52663         for mingw.
52664
52665 2006-10-19  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52668         Needed for mingw.
52669
52670 2006-10-19  Bruno Haible  <bruno@clisp.org>
52671
52672         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52673
52674 2006-10-19  Bruno Haible  <bruno@clisp.org>
52675
52676         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52677         it.
52678
52679 2006-10-19  Bruno Haible  <bruno@clisp.org>
52680
52681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52682         invocation.
52683
52684 2006-10-19  Bruno Haible  <bruno@clisp.org>
52685
52686         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52687         mountlist by default.
52688
52689 2006-10-16  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/c-strstr.c: Include c-strstr.h.
52692
52693 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52694
52695         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52696         in a slash.
52697
52698 2006-10-18  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/lock.h [C++]: Wrap definitions in extern "C".
52701
52702 2006-10-18  Bruno Haible  <bruno@clisp.org>
52703
52704         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52705         gl_LIBOBJS list.
52706
52707 2006-10-18  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52710
52711 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         * lib/xstrtol.h: Include gettext.h.
52714         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52715         Problem reported by Eric Blake.
52716         * modules/xstrtol (Depends-on): Add gettext-h.
52717
52718 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52719
52720         * lib/strftime.c (advance): New macro.
52721         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52722         incomplete type, so you can't add 0 to it.  Problem and patch
52723         reported by Eelco Dolstra for dietlibc.
52724
52725 2006-10-18  Jim Meyering  <jim@meyering.net>
52726
52727         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52728         type for a local, and rename it: s/up/user_proc/.
52729
52730 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52731
52732         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52733         READ_UTMP_USER_PROCESS.
52734         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52735
52736 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52739         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52740
52741 2006-10-17  Eric Blake  <ebb9@byu.net>
52742
52743         * lib/sigprocmask.c (sigprocmask): Fix typo.
52744
52745         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52746
52747         * modules/clean-temp (Makefile.am): Don't add to make output...
52748         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52749         config.h.
52750
52751 2006-10-17  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52754         differently if DEFAULT_TEXT_DOMAIN is set.
52755
52756 2006-10-16  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/clean-temp.c: Include fwriteerror.h.
52759
52760 2006-10-16  Bruno Haible  <bruno@clisp.org>
52761
52762         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52763
52764 2006-10-16  Bruno Haible  <bruno@clisp.org>
52765
52766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52767         * lib/sigprocmask.h: Include <sys/types.h>.
52768         (sigset_t): Use the system's definition if present.
52769
52770 2006-10-17  Eric Blake  <ebb9@byu.net>
52771
52772         * lib/xvasprintf.c (includes): Assume config.h.
52773         * lib/xasprintf.c (includes): Likewise.
52774
52775 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52778         at least as wide as intmax_t.
52779
52780 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52781
52782         (Imported from Automake.)
52783         * build-aux/gnupload: Update to version 1.1 of directive file.
52784
52785 2006-10-16  Eric Blake  <ebb9@byu.net>
52786
52787         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52788         match Automake 1.10a.
52789
52790 2006-10-14  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/sigprocmask: New file.
52793         * lib/sigprocmask.h: New file.
52794         * lib/sigprocmask.c: New file.
52795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52796         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52797         request sigprocmask.o.
52798         (gl_PREREQ_SIGPROCMASK): New macro.
52799         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52800         (Depends-on): Add sigprocmask.
52801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52802         gt_SIGNALBLOCKING. Test for 'raise' only once.
52803         * lib/fatal-signal.c: Include sigprocmask.h.
52804         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52805         unblock_fatal_signals): Define always.
52806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52807         sigprocmask.
52808
52809 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         Sync from Automake.
52812         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52813         which incorrectly sets the mode of an existing destination
52814         directory.  In some cases the unpatched install-sh could do the
52815         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52816         system.  We hope this is rare in practice, but it's clearly worth
52817         fixing.  Problem reported by Alex Unleashed in
52818         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52819         Also, don't bother to check for -m bugs unless we're using -m;
52820         suggested by Stepan Kasal.
52821
52822 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52823
52824         Sync from Automake.
52825         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52826         `-c' flag, so they appear at the same position as in %FASTDEP%
52827         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52828         which ignores unknown options only after the first non-option.
52829         Bug report against M4 by Nelson H. F. Beebe.
52830
52831 2006-10-13  Jim Meyering  <jim@meyering.net>
52832
52833         Fix a bug in yesterday's change.
52834         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52835         p->fts_statp->st_dev would be used uninitialized.
52836         Ensures that we always call fts_stat on the very first entry.
52837         Miklos Szeredi reported that find -xdev stopped working.
52838
52839 2006-10-12  Bruno Haible  <bruno@clisp.org>
52840
52841         * gnulib-tool (func_get_automake_snippet): Append an automatically
52842         computed EXTRA_DIST augmentation.
52843         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52844         * modules/alloca-opt (Makefile.am): Likewise.
52845         * modules/allocsa (Makefile.am): Likewise.
52846         * modules/arcfour (Makefile.am): Likewise.
52847         * modules/arctwo (Makefile.am): Likewise.
52848         * modules/argmatch (Makefile.am): Likewise.
52849         * modules/argz (Makefile.am): Likewise.
52850         * modules/atexit (Makefile.am): Likewise.
52851         * modules/backupfile (Makefile.am): Likewise.
52852         * modules/byteswap (Makefile.am): Likewise.
52853         * modules/c-strtod (Makefile.am): Likewise.
52854         * modules/c-strtold (Makefile.am): Likewise.
52855         * modules/calloc (Makefile.am): Likewise.
52856         * modules/canon-host (Makefile.am): Likewise.
52857         * modules/canonicalize (Makefile.am): Likewise.
52858         * modules/chdir-long (Makefile.am): Likewise.
52859         * modules/chdir-safer (Makefile.am): Likewise.
52860         * modules/check-version (Makefile.am): Likewise.
52861         * modules/chown (Makefile.am): Likewise.
52862         * modules/cloexec (Makefile.am): Likewise.
52863         * modules/close-stream (Makefile.am): Likewise.
52864         * modules/closeout (Makefile.am): Likewise.
52865         * modules/crc (Makefile.am): Likewise.
52866         * modules/csharpexec (Makefile.am): Likewise.
52867         * modules/cycle-check (Makefile.am): Likewise.
52868         * modules/des (Makefile.am): Likewise.
52869         * modules/dev-ino (Makefile.am): Likewise.
52870         * modules/dirfd (Makefile.am): Likewise.
52871         * modules/dirname (Makefile.am): Likewise.
52872         * modules/dup2 (Makefile.am): Likewise.
52873         * modules/eealloc (Makefile.am): Likewise.
52874         * modules/error (Makefile.am): Likewise.
52875         * modules/euidaccess (Makefile.am): Likewise.
52876         * modules/exclude (Makefile.am): Likewise.
52877         * modules/exitfail (Makefile.am): Likewise.
52878         * modules/fcntl-safer (Makefile.am): Likewise.
52879         * modules/fcntl (Makefile.am): Likewise.
52880         * modules/file-type (Makefile.am): Likewise.
52881         * modules/fileblocks (Makefile.am): Likewise.
52882         * modules/filemode (Makefile.am): Likewise.
52883         * modules/filenamecat (Makefile.am): Likewise.
52884         * modules/fnmatch (Makefile.am): Likewise.
52885         * modules/fopen-safer (Makefile.am): Likewise.
52886         * modules/fpending (Makefile.am): Likewise.
52887         * modules/fprintftime (Makefile.am): Likewise.
52888         * modules/free (Makefile.am): Likewise.
52889         * modules/fsusage (Makefile.am): Likewise.
52890         * modules/ftruncate (Makefile.am): Likewise.
52891         * modules/fts (Makefile.am): Likewise.
52892         * modules/gc-arcfour (Makefile.am): Likewise.
52893         * modules/gc-des (Makefile.am): Likewise.
52894         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52895         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52896         * modules/gc-md4 (Makefile.am): Likewise.
52897         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52898         * modules/gc-sha1 (Makefile.am): Likewise.
52899         * modules/gc (Makefile.am): Likewise.
52900         * modules/getaddrinfo (Makefile.am): Likewise.
52901         * modules/getcwd (Makefile.am): Likewise.
52902         * modules/getdelim (Makefile.am): Likewise.
52903         * modules/getdomainname (Makefile.am): Likewise.
52904         * modules/getgroups (Makefile.am): Likewise.
52905         * modules/gethostname (Makefile.am): Likewise.
52906         * modules/gethrxtime (Makefile.am): Likewise.
52907         * modules/getline (Makefile.am): Likewise.
52908         * modules/getloadavg (Makefile.am): Likewise.
52909         * modules/getlogin_r (Makefile.am): Likewise.
52910         * modules/getndelim2 (Makefile.am): Likewise.
52911         * modules/getopt (Makefile.am): Likewise.
52912         * modules/getpagesize (Makefile.am): Likewise.
52913         * modules/getpass-gnu (Makefile.am): Likewise.
52914         * modules/getpass (Makefile.am): Likewise.
52915         * modules/getsubopt (Makefile.am): Likewise.
52916         * modules/gettime (Makefile.am): Likewise.
52917         * modules/gettimeofday (Makefile.am): Likewise.
52918         * modules/getugroups (Makefile.am): Likewise.
52919         * modules/getusershell (Makefile.am): Likewise.
52920         * modules/glob (Makefile.am): Likewise.
52921         * modules/group-member (Makefile.am): Likewise.
52922         * modules/hard-locale (Makefile.am): Likewise.
52923         * modules/hash (Makefile.am): Likewise.
52924         * modules/hmac-md5 (Makefile.am): Likewise.
52925         * modules/hmac-sha1 (Makefile.am): Likewise.
52926         * modules/human (Makefile.am): Likewise.
52927         * modules/idcache (Makefile.am): Likewise.
52928         * modules/imaxabs (Makefile.am): Likewise.
52929         * modules/imaxdiv (Makefile.am): Likewise.
52930         * modules/inet_ntop (Makefile.am): Likewise.
52931         * modules/inet_pton (Makefile.am): Likewise.
52932         * modules/intprops (Makefile.am): Likewise.
52933         * modules/inttostr (Makefile.am): Likewise.
52934         * modules/inttypes (Makefile.am): Likewise.
52935         * modules/isapipe (Makefile.am): Likewise.
52936         * modules/javaversion (Makefile.am): Likewise.
52937         * modules/lchmod (Makefile.am): Likewise.
52938         * modules/lchown (Makefile.am): Likewise.
52939         * modules/localcharset (Makefile.am): Likewise.
52940         * modules/long-options (Makefile.am): Likewise.
52941         * modules/lstat (Makefile.am): Likewise.
52942         * modules/malloc (Makefile.am): Likewise.
52943         * modules/mathl (Makefile.am): Likewise.
52944         * modules/mbchar (Makefile.am): Likewise.
52945         * modules/md2 (Makefile.am): Likewise.
52946         * modules/md4 (Makefile.am): Likewise.
52947         * modules/md5 (Makefile.am): Likewise.
52948         * modules/memcasecmp (Makefile.am): Likewise.
52949         * modules/memchr (Makefile.am): Likewise.
52950         * modules/memcmp (Makefile.am): Likewise.
52951         * modules/memcoll (Makefile.am): Likewise.
52952         * modules/memcpy (Makefile.am): Likewise.
52953         * modules/memmem (Makefile.am): Likewise.
52954         * modules/memmove (Makefile.am): Likewise.
52955         * modules/mempcpy (Makefile.am): Likewise.
52956         * modules/memrchr (Makefile.am): Likewise.
52957         * modules/memset (Makefile.am): Likewise.
52958         * modules/memxor (Makefile.am): Likewise.
52959         * modules/mkancesdirs (Makefile.am): Likewise.
52960         * modules/mkdir-p (Makefile.am): Likewise.
52961         * modules/mkdir (Makefile.am): Likewise.
52962         * modules/mkdtemp (Makefile.am): Likewise.
52963         * modules/mkstemp (Makefile.am): Likewise.
52964         * modules/mktime (Makefile.am): Likewise.
52965         * modules/modechange (Makefile.am): Likewise.
52966         * modules/mountlist (Makefile.am): Likewise.
52967         * modules/nanosleep (Makefile.am): Likewise.
52968         * modules/obstack (Makefile.am): Likewise.
52969         * modules/openat (Makefile.am): Likewise.
52970         * modules/pagealign_alloc (Makefile.am): Likewise.
52971         * modules/pathmax (Makefile.am): Likewise.
52972         * modules/physmem (Makefile.am): Likewise.
52973         * modules/poll (Makefile.am): Likewise.
52974         * modules/posixtm (Makefile.am): Likewise.
52975         * modules/posixver (Makefile.am): Likewise.
52976         * modules/putenv (Makefile.am): Likewise.
52977         * modules/quote (Makefile.am): Likewise.
52978         * modules/quotearg (Makefile.am): Likewise.
52979         * modules/raise (Makefile.am): Likewise.
52980         * modules/read-file (Makefile.am): Likewise.
52981         * modules/readline (Makefile.am): Likewise.
52982         * modules/readlink (Makefile.am): Likewise.
52983         * modules/readtokens (Makefile.am): Likewise.
52984         * modules/readutmp (Makefile.am): Likewise.
52985         * modules/realloc (Makefile.am): Likewise.
52986         * modules/regex (Makefile.am): Likewise.
52987         * modules/rename-dest-slash (Makefile.am): Likewise.
52988         * modules/rename (Makefile.am): Likewise.
52989         * modules/rijndael (Makefile.am): Likewise.
52990         * modules/rmdir (Makefile.am): Likewise.
52991         * modules/rpmatch (Makefile.am): Likewise.
52992         * modules/safe-read (Makefile.am): Likewise.
52993         * modules/safe-write (Makefile.am): Likewise.
52994         * modules/same-inode (Makefile.am): Likewise.
52995         * modules/same (Makefile.am): Likewise.
52996         * modules/save-cwd (Makefile.am): Likewise.
52997         * modules/savedir (Makefile.am): Likewise.
52998         * modules/setenv (Makefile.am): Likewise.
52999         * modules/settime (Makefile.am): Likewise.
53000         * modules/sha1 (Makefile.am): Likewise.
53001         * modules/sig2str (Makefile.am): Likewise.
53002         * modules/snprintf (Makefile.am): Likewise.
53003         * modules/stat-macros (Makefile.am): Likewise.
53004         * modules/stat-time (Makefile.am): Likewise.
53005         * modules/stdbool (Makefile.am): Likewise.
53006         * modules/stdint (Makefile.am): Likewise.
53007         * modules/stdlib-safer (Makefile.am): Likewise.
53008         * modules/stpcpy (Makefile.am): Likewise.
53009         * modules/stpncpy (Makefile.am): Likewise.
53010         * modules/strcase (Makefile.am): Likewise.
53011         * modules/strcasestr (Makefile.am): Likewise.
53012         * modules/strchrnul (Makefile.am): Likewise.
53013         * modules/strcspn (Makefile.am): Likewise.
53014         * modules/strdup (Makefile.am): Likewise.
53015         * modules/strerror (Makefile.am): Likewise.
53016         * modules/strftime (Makefile.am): Likewise.
53017         * modules/strndup (Makefile.am): Likewise.
53018         * modules/strnlen (Makefile.am): Likewise.
53019         * modules/strpbrk (Makefile.am): Likewise.
53020         * modules/strsep (Makefile.am): Likewise.
53021         * modules/strstr (Makefile.am): Likewise.
53022         * modules/strtod (Makefile.am): Likewise.
53023         * modules/strtoimax (Makefile.am): Likewise.
53024         * modules/strtok_r (Makefile.am): Likewise.
53025         * modules/strtol (Makefile.am): Likewise.
53026         * modules/strtoll (Makefile.am): Likewise.
53027         * modules/strtoul (Makefile.am): Likewise.
53028         * modules/strtoull (Makefile.am): Likewise.
53029         * modules/strtoumax (Makefile.am): Likewise.
53030         * modules/strverscmp (Makefile.am): Likewise.
53031         * modules/sys_socket (Makefile.am): Likewise.
53032         * modules/sys_stat (Makefile.am): Likewise.
53033         * modules/sysexits (Makefile.am): Likewise.
53034         * modules/time_r (Makefile.am): Likewise.
53035         * modules/timegm (Makefile.am): Likewise.
53036         * modules/timespec (Makefile.am): Likewise.
53037         * modules/tmpfile-safer (Makefile.am): Likewise.
53038         * modules/trim (Makefile.am): Likewise.
53039         * modules/unistd-safer (Makefile.am): Likewise.
53040         * modules/unlinkdir (Makefile.am): Likewise.
53041         * modules/unlocked-io (Makefile.am): Likewise.
53042         * modules/userspec (Makefile.am): Likewise.
53043         * modules/utime (Makefile.am): Likewise.
53044         * modules/utimecmp (Makefile.am): Likewise.
53045         * modules/utimens (Makefile.am): Likewise.
53046         * modules/vasnprintf (Makefile.am): Likewise.
53047         * modules/vasprintf (Makefile.am): Likewise.
53048         * modules/vsnprintf (Makefile.am): Likewise.
53049         * modules/xalloc (Makefile.am): Likewise.
53050         * modules/xgetcwd (Makefile.am): Likewise.
53051         * modules/xnanosleep (Makefile.am): Likewise.
53052         * modules/xreadlink (Makefile.am): Likewise.
53053         * modules/xstrtod (Makefile.am): Likewise.
53054         * modules/xstrtol (Makefile.am): Likewise.
53055         * modules/xstrtold (Makefile.am): Likewise.
53056         * modules/yesno (Makefile.am): Likewise.
53057         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
53058
53059 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * modules/error (Makefile.am): Distribute files through
53062         EXTRA_DIST, not lib_SOURCES.
53063
53064 2006-10-12  Eric Blake  <ebb9@byu.net>
53065
53066         * modules/error (Makefile.am): Distribute files in /lib.
53067         * modules/obstack (Makefile.am): Likewise.
53068
53069 2006-10-12  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/acl (Makefile.am): Distribute all files in lib/ through
53072         EXTRA_DIST.
53073         * modules/arcfour (Makefile.am): Likewise.
53074         * modules/arctwo (Makefile.am): Likewise.
53075         * modules/argmatch (Makefile.am): Likewise.
53076         * modules/argz (Makefile.am): Likewise.
53077         * modules/atexit (Makefile.am): Likewise.
53078         * modules/backupfile (Makefile.am): Likewise.
53079         * modules/c-strtod (Makefile.am): Likewise.
53080         * modules/c-strtold (Makefile.am): Likewise.
53081         * modules/calloc (Makefile.am): Likewise.
53082         * modules/canon-host (Makefile.am): Likewise.
53083         * modules/canonicalize (Makefile.am): Likewise.
53084         * modules/chdir-long (Makefile.am): Likewise.
53085         * modules/chdir-safer (Makefile.am): Likewise.
53086         * modules/check-version (Makefile.am): Likewise.
53087         * modules/chown (Makefile.am): Likewise.
53088         * modules/cloexec (Makefile.am): Likewise.
53089         * modules/close-stream (Makefile.am): Likewise.
53090         * modules/closeout (Makefile.am): Likewise.
53091         * modules/crc (Makefile.am): Likewise.
53092         * modules/cycle-check (Makefile.am): Likewise.
53093         * modules/des (Makefile.am): Likewise.
53094         * modules/dirfd (Makefile.am): Likewise.
53095         * modules/dirname (Makefile.am): Likewise.
53096         * modules/dup2 (Makefile.am): Likewise.
53097         * modules/euidaccess (Makefile.am): Likewise.
53098         * modules/exclude (Makefile.am): Likewise.
53099         * modules/exitfail (Makefile.am): Likewise.
53100         * modules/fcntl-safer (Makefile.am): Likewise.
53101         * modules/file-type (Makefile.am): Likewise.
53102         * modules/fileblocks (Makefile.am): Likewise.
53103         * modules/filemode (Makefile.am): Likewise.
53104         * modules/filenamecat (Makefile.am): Likewise.
53105         * modules/fnmatch (Makefile.am): Likewise.
53106         * modules/fopen-safer (Makefile.am): Likewise.
53107         * modules/fpending (Makefile.am): Likewise.
53108         * modules/fprintftime (Makefile.am): Likewise.
53109         * modules/free (Makefile.am): Likewise.
53110         * modules/fsusage (Makefile.am): Likewise.
53111         * modules/ftruncate (Makefile.am): Likewise.
53112         * modules/fts (Makefile.am): Likewise.
53113         * modules/gc (Makefile.am): Likewise.
53114         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53115         * modules/getaddrinfo (Makefile.am): Likewise.
53116         * modules/getcwd (Makefile.am): Likewise.
53117         * modules/getdelim (Makefile.am): Likewise.
53118         * modules/getdomainname (Makefile.am): Likewise.
53119         * modules/getgroups (Makefile.am): Likewise.
53120         * modules/gethostname (Makefile.am): Likewise.
53121         * modules/gethrxtime (Makefile.am): Likewise.
53122         * modules/getline (Makefile.am): Likewise.
53123         * modules/getloadavg (Makefile.am): Likewise.
53124         * modules/getlogin_r (Makefile.am): Likewise.
53125         * modules/getopt (Makefile.am): Likewise.
53126         * modules/getpass (Makefile.am): Likewise.
53127         * modules/getpass-gnu (Makefile.am): Likewise.
53128         * modules/getsubopt (Makefile.am): Likewise.
53129         * modules/gettime (Makefile.am): Likewise.
53130         * modules/gettimeofday (Makefile.am): Likewise.
53131         * modules/getugroups (Makefile.am): Likewise.
53132         * modules/getusershell (Makefile.am): Likewise.
53133         * modules/glob (Makefile.am): Likewise.
53134         * modules/group-member (Makefile.am): Likewise.
53135         * modules/hard-locale (Makefile.am): Likewise.
53136         * modules/hash (Makefile.am): Likewise.
53137         * modules/hmac-md5 (Makefile.am): Likewise.
53138         * modules/hmac-sha1 (Makefile.am): Likewise.
53139         * modules/human (Makefile.am): Likewise.
53140         * modules/idcache (Makefile.am): Likewise.
53141         * modules/imaxabs (Makefile.am): Likewise.
53142         * modules/imaxdiv (Makefile.am): Likewise.
53143         * modules/inet_ntop (Makefile.am): Likewise.
53144         * modules/inet_pton (Makefile.am): Likewise.
53145         * modules/inttostr (Makefile.am): Likewise.
53146         * modules/isapipe (Makefile.am): Likewise.
53147         * modules/lchown (Makefile.am): Likewise.
53148         * modules/long-options (Makefile.am): Likewise.
53149         * modules/lstat (Makefile.am): Likewise.
53150         * modules/malloc (Makefile.am): Likewise.
53151         * modules/mathl (Makefile.am): Likewise.
53152         * modules/mbchar (Makefile.am): Likewise.
53153         * modules/md2 (Makefile.am): Likewise.
53154         * modules/md4 (Makefile.am): Likewise.
53155         * modules/md5 (Makefile.am): Likewise.
53156         * modules/memcasecmp (Makefile.am): Likewise.
53157         * modules/memchr (Makefile.am): Likewise.
53158         * modules/memcmp (Makefile.am): Likewise.
53159         * modules/memcoll (Makefile.am): Likewise.
53160         * modules/memcpy (Makefile.am): Likewise.
53161         * modules/memmem (Makefile.am): Likewise.
53162         * modules/memmove (Makefile.am): Likewise.
53163         * modules/mempcpy (Makefile.am): Likewise.
53164         * modules/memrchr (Makefile.am): Likewise.
53165         * modules/memset (Makefile.am): Likewise.
53166         * modules/memxor (Makefile.am): Likewise.
53167         * modules/mkancesdirs (Makefile.am): Likewise.
53168         * modules/mkdir (Makefile.am): Likewise.
53169         * modules/mkdir-p (Makefile.am): Likewise.
53170         * modules/mkdtemp (Makefile.am): Likewise.
53171         * modules/mkstemp (Makefile.am): Likewise.
53172         * modules/mktime (Makefile.am): Likewise.
53173         * modules/modechange (Makefile.am): Likewise.
53174         * modules/mountlist (Makefile.am): Likewise.
53175         * modules/nanosleep (Makefile.am): Likewise.
53176         * modules/openat (Makefile.am): Likewise.
53177         * modules/pagealign_alloc (Makefile.am): Likewise.
53178         * modules/physmem (Makefile.am): Likewise.
53179         * modules/poll (Makefile.am): Likewise.
53180         * modules/posixtm (Makefile.am): Likewise.
53181         * modules/posixver (Makefile.am): Likewise.
53182         * modules/putenv (Makefile.am): Likewise.
53183         * modules/quote (Makefile.am): Likewise.
53184         * modules/quotearg (Makefile.am): Likewise.
53185         * modules/raise (Makefile.am): Likewise.
53186         * modules/read-file (Makefile.am): Likewise.
53187         * modules/readline (Makefile.am): Likewise.
53188         * modules/readlink (Makefile.am): Likewise.
53189         * modules/readtokens (Makefile.am): Likewise.
53190         * modules/readutmp (Makefile.am): Likewise.
53191         * modules/realloc (Makefile.am): Likewise.
53192         * modules/regex (Makefile.am): Likewise.
53193         * modules/rename (Makefile.am): Likewise.
53194         * modules/rename-dest-slash (Makefile.am): Likewise.
53195         * modules/rijndael (Makefile.am): Likewise.
53196         * modules/rmdir (Makefile.am): Likewise.
53197         * modules/rpmatch (Makefile.am): Likewise.
53198         * modules/safe-read (Makefile.am): Likewise.
53199         * modules/safe-write (Makefile.am): Likewise.
53200         * modules/same (Makefile.am): Likewise.
53201         * modules/save-cwd (Makefile.am): Likewise.
53202         * modules/savedir (Makefile.am): Likewise.
53203         * modules/setenv (Makefile.am): Likewise.
53204         * modules/settime (Makefile.am): Likewise.
53205         * modules/sha1 (Makefile.am): Likewise.
53206         * modules/sig2str (Makefile.am): Likewise.
53207         * modules/snprintf (Makefile.am): Likewise.
53208         * modules/stdlib-safer (Makefile.am): Likewise.
53209         * modules/stpcpy (Makefile.am): Likewise.
53210         * modules/stpncpy (Makefile.am): Likewise.
53211         * modules/strcase (Makefile.am): Likewise.
53212         * modules/strcasestr (Makefile.am): Likewise.
53213         * modules/strchrnul (Makefile.am): Likewise.
53214         * modules/strcspn (Makefile.am): Likewise.
53215         * modules/strdup (Makefile.am): Likewise.
53216         * modules/strerror (Makefile.am): Likewise.
53217         * modules/strftime (Makefile.am): Likewise.
53218         * modules/strndup (Makefile.am): Likewise.
53219         * modules/strnlen (Makefile.am): Likewise.
53220         * modules/strpbrk (Makefile.am): Likewise.
53221         * modules/strsep (Makefile.am): Likewise.
53222         * modules/strstr (Makefile.am): Likewise.
53223         * modules/strtod (Makefile.am): Likewise.
53224         * modules/strtoimax (Makefile.am): Likewise.
53225         * modules/strtok_r (Makefile.am): Likewise.
53226         * modules/strtol (Makefile.am): Likewise.
53227         * modules/strtoll (Makefile.am): Likewise.
53228         * modules/strtoul (Makefile.am): Likewise.
53229         * modules/strtoull (Makefile.am): Likewise.
53230         * modules/strtoumax (Makefile.am): Likewise.
53231         * modules/strverscmp (Makefile.am): Likewise.
53232         * modules/time_r (Makefile.am): Likewise.
53233         * modules/timegm (Makefile.am): Likewise.
53234         * modules/tmpfile-safer (Makefile.am): Likewise.
53235         * modules/unistd-safer (Makefile.am): Likewise.
53236         * modules/unlinkdir (Makefile.am): Likewise.
53237         * modules/userspec (Makefile.am): Likewise.
53238         * modules/utime (Makefile.am): Likewise.
53239         * modules/utimecmp (Makefile.am): Likewise.
53240         * modules/utimens (Makefile.am): Likewise.
53241         * modules/vasnprintf (Makefile.am): Likewise.
53242         * modules/vasprintf (Makefile.am): Likewise.
53243         * modules/vsnprintf (Makefile.am): Likewise.
53244         * modules/xalloc (Makefile.am): Likewise.
53245         * modules/xgetcwd (Makefile.am): Likewise.
53246         * modules/xnanosleep (Makefile.am): Likewise.
53247         * modules/xreadlink (Makefile.am): Likewise.
53248         * modules/xstrtod (Makefile.am): Likewise.
53249         * modules/xstrtol (Makefile.am): Likewise.
53250         * modules/xstrtold (Makefile.am): Likewise.
53251         * modules/yesno (Makefile.am): Likewise.
53252
53253 2006-10-12  Jim Meyering  <jim@meyering.net>
53254
53255         * m4/getloadavg.m4: Revert the change below.
53256
53257         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
53258         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
53259         fail with a symlink, which is what coreutils' ./bootstrap now
53260         creates by default.
53261
53262 2006-10-12  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
53265         mingw.
53266         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
53267         MSVC and mingw explicitly.
53268
53269 2006-10-11  Simon Josefsson  <jas@extundo.com>
53270             Bruno Haible  <bruno@clisp.org>
53271
53272         Add support for multiple gnulib-tool invocations in the scope of a
53273         single configure.ac file.
53274         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
53275         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
53276         with the same contents as the _LIBADD variable.
53277         (func_emit_initmacro_start, func_emit_initmacro_end,
53278         func_emit_initmacro_done): New functions.
53279         (func_import, func_create_testdir): Invoke them. Allow the identifiers
53280         gl_LIBOBJS and gl_LTLIBOBJS.
53281
53282 2006-10-11  Bruno Haible  <bruno@clisp.org>
53283
53284         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
53285         (func_create_testdir): Don't create po/Makefile.am, don't invoke
53286         autoreconf. Instead, invoke autopoint explicitly but move back the
53287         *.m4 files from gnulib.
53288
53289 2006-10-11  Bruno Haible  <bruno@clisp.org>
53290
53291         * gnulib-tool (func_usage): Make module names after --create-testdir
53292         optional.
53293         (func_create_testdir): If no module was specified, use nearly all
53294         modules.
53295
53296 2006-10-12  Jim Meyering  <jim@meyering.net>
53297
53298         Big performance improvement for fts-based tools that use FTS_NOSTAT.
53299         Avoid spurious inode-mismatch problems on non-POSIX file systems.
53300         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
53301         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
53302         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
53303         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
53304         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
53305         (fts_set_stat_required): New function.
53306         (fts_open): Defer the calls to fts_stat, if possible or requested.
53307         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
53308         into fts_stat itself.
53309         (fts_read): Perform any required (deferred) fts_stat call.
53310         (fts_build): Likewise, for the directory we're about to open and read.
53311         In the readdir loop, carefully decide whether each entry will require
53312         an eventual call to fts_stat, using dirent.d_type info if available.
53313         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
53314         a command line argument into this function.  Update all callers.
53315         Map a return value of FTS_DOT to FTS_D for a command line argument.
53316         * modules/fts (Depends-on): Add d-type.  Alphabetize.
53317         Thanks to Miklos Szeredi for his tenacity and for the initial
53318         bug report about "find" failing on a FUSE-based file system.
53319
53320         * lib/fts.c (fts_open): Use consistent indentation.
53321
53322 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
53325         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
53326         reported by Jim Meyering.  All uses of cache variables renamed
53327         to match Autoconf's.
53328         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
53329         the other one.
53330
53331         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
53332         Fix misspelling in diagnostic.
53333
53334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
53337         defined.  Problem reported by Matthew Woehlke.
53338
53339         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
53340         Add support for Tandem NonStop R series.
53341         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
53342         Use new macro.
53343
53344         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
53345         (has_trailing_slash): Omit size arg; all callers changed.
53346         Omit 'inline', since it doesn't help performance and we'd
53347         need to configure it.
53348         Don't count //, ///, etc. as having a trailing slash.
53349         As a side effect, this removes a C99ism reported by Matthew Woehlke.
53350         (rpl_rename_dest_slash): On failure, use rename's errno rather
53351         than (in some cases) an incorrect or junk errno.
53352         Simplify code by removing need to compute length; this does
53353         cause it to make two passes instead of one over the file name,
53354         but it's worth it.
53355
53356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
53357         change, since Autoconf's version may no longer be appropriate now
53358         that we are using CVS Autoconf's version.  Add support for Tandem.
53359
53360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53361             Bruno Haible  <bruno@clisp.org>
53362
53363         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
53364         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
53365         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
53366         gl_AC_TYPE_LONG_LONG.
53367
53368         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
53369         instead of HAVE_LONG_LONG.
53370         * lib/printf-args.c (printf_fetchargs): Likewise.
53371         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
53374         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
53375         gl_AC_TYPE_LONG_LONG.
53376
53377 2006-10-11  Bruno Haible  <bruno@clisp.org>
53378
53379         * m4/longlong.m4: Add comments.
53380         * m4/ulonglong.m4: Likewise.
53381
53382 2006-10-10  Bruno Haible  <bruno@clisp.org>
53383
53384         Make it possible to #define stpcpy, strdup to aliases.
53385         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
53386         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
53387
53388 2006-10-10  Bruno Haible  <bruno@clisp.org>
53389
53390         Make it possible to #define gcd to an alias.
53391         * lib/gcd.c: Include config.h.
53392
53393 2006-10-10  Bruno Haible  <bruno@clisp.org>
53394
53395         Make it possible to #define c_isascii to an alias.
53396         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
53397         defined. Undefine the macros before defining them, to avoid gcc
53398         warnings.
53399         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
53400         define NO_C_CTYPE_MACROS early.
53401
53402 2006-10-10  Bruno Haible  <bruno@clisp.org>
53403
53404         Make it possible to #define set_program_name to an alias.
53405         * lib/progname.c: Don't undefine set_program_name; instead, undefine
53406         ENABLE_RELOCATABLE early.
53407
53408 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53409
53410         Port to Tandem NSK OSS, which has 64-bit signed int but at most
53411         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
53412         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
53413         More generally, don't assume that 64-bit signed int is available
53414         if unsigned int is, and vice versa.
53415         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
53416         unsigned symbols, not on their signed counterparts.
53417         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
53418         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
53419         (UINT64_C, UINTMAX_C):
53420         Likewise.
53421         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
53422         unsigned counterparts.
53423         (Have_long_long, Unsigned): New macros.
53424         (Int): Renamed from INT.
53425         (strtoimax): Use the new macros.
53426         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
53427         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
53428         * modules/inttypes (inttypes.h): Substitute
53429         HAVE_UNSIGNED_LONG_LONG_INT.
53430         * modules/stdint (stdint.h): Likewise.
53431         (Files): Add m4/ulonglong.m4.
53432
53433 2006-10-10  Bruno Haible  <bruno@clisp.org>
53434
53435         Fix a gcc -Wshadow warning.
53436         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
53437         to 'bucket'.
53438         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
53439         gl_linked_indexof_from_to): Likewise.
53440         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
53441         Likewise.
53442         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
53443         Likewise.
53444         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53445         Reported by Eric Blake.
53446
53447 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
53450         for NetBSD.  Problem reported by Bruno Haible.
53451
53452 2006-10-09  Jim Meyering  <jim@meyering.net>
53453
53454         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
53455         Patch from Bruno Haible.
53456
53457 2006-10-09  Jim Meyering  <jim@meyering.net>
53458
53459         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
53460         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
53461         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
53462
53463 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         Don't include <config.h> twice; this doesn't work in some cases,
53466         e.g., when config.h has "#define intmax_t long long int" and
53467         we include <config.h>, <inttypes.h>, <config.h> in that order.
53468         Problem reported by Matthew Woehlke in:
53469         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
53470         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
53471         * lib/fts-cycle.c: Don't include config.h.
53472         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
53473         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
53474         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
53475         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
53476         inttypes.h.
53477         * lib/xstrtoumax.c: Likewise.
53478         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
53479         __strtol and the like, so that this module is more like its siblings.
53480         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
53481         Remove; no longer needed now that we assume gnulib inttypes.h.
53482
53483 2006-10-08  Bruno Haible  <bruno@clisp.org>
53484
53485         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
53486         option.
53487
53488 2006-10-07  Jim Meyering  <jim@meyering.net>
53489
53490         * modules/inttypes (inttypes.h): Revert what seems to have been
53491         an inadvertent part of today's change: use "|", not "/" in the
53492         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
53493
53494 2006-10-07  Bruno Haible  <bruno@clisp.org>
53495
53496         * modules/sublist: New file.
53497
53498 2006-10-07  Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53501         * modules/argz (argz.h): Likewise.
53502         * modules/arpa_inet (arpa/inet.h): Likewise.
53503         * modules/byteswap (byteswap.h): Likewise.
53504         * modules/configmake (configmake.h): Likewise.
53505         * modules/fcntl (fcntl.h): Likewise.
53506         * modules/fnmatch (fnmatch.h): Likewise.
53507         * modules/getopt (getopt.h): Likewise.
53508         * modules/glob (glob.h): Likewise.
53509         * modules/inttypes (inttypes.h): Likewise.
53510         * modules/netinet_in (netinet/in.h): Likewise.
53511         * modules/poll (poll.h): Likewise.
53512         * modules/stdbool (stdbool.h): Likewise.
53513         * modules/stdint (stdint.h): Likewise.
53514         * modules/sys_select (sys/select.h): Likewise.
53515         * modules/sys_socket (sys/socket.h): Likewise.
53516         * modules/sys_stat (sys/stat.h): Likewise.
53517         * modules/sysexits (sysexits.h): Likewise.
53518         * modules/unistd (unistd.h): Likewise.
53519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53520         Add a "DO NOT EDIT" comment to the generated file.
53521         (func_import): Likewise for gnulib-comp.m4.
53522
53523 2006-10-07  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/gl_sublist.h: New file.
53526         * lib/gl_sublist.c: New file.
53527
53528 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53531         name (relative to the original working directory) and the file
53532         name component (relative to the temporary working directory).  All
53533         callers changed.
53534         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53535         * lib/mkdir-p.c (make_dir_parents): Likewise.
53536         * lib/mkdir-p.h (make_dir_parents): Likewise.
53537
53538 2006-10-06  Eric Blake  <ebb9@byu.net>
53539
53540         Define several macros for use by the clean-temp module.
53541         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53542         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53543         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53544
53545         * lib/clean-temp.h (close_stream_temp): New declaration.
53546         * lib/clean-temp.c (includes): Pull in headers according to what
53547         other modules are in use.
53548         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53549
53550 2006-10-06  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53553         instead of fopen, fwriteerror.
53554
53555 2006-10-06  Bruno Haible  <bruno@clisp.org>
53556
53557         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53558         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53559         int.
53560         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53561         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53562         Return an error indicator.
53563         Suggested by Eric Blake.
53564
53565 2006-10-06  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53568         Reported by Eric Blake.
53569
53570 2006-10-06  Bruno Haible  <bruno@clisp.org>
53571
53572         * modules/closeout (Description): Mention stderr too.
53573
53574 2006-10-06  Bruno Haible  <bruno@clisp.org>
53575         and Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         * lib/closeout.c (close_stdout): Also close stderr.
53578         * lib/closeout.h: Update comment.
53579
53580 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53581
53582         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53584         * lib/dirchownmod.c: Include lchown.h.
53585         * lib/lchown.c: Don't include files that lchown.h now includes.
53586         Don't declare chown, since lchown.h now does that.
53587         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53588         (lchown): Define to rpl_chown if lchown is declared but
53589         does not exist.  Declare using a prototype if lchown is not
53590         declared.  Add a copyright notice.
53591         * lib/mkstemp.h: Include <unistd.h>.
53592         * lib/openat.c: Include lchown.h.
53593
53594         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53595         we now test for that separately.
53596         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53597         rather than O_NOFOLLOW, when testing whether it's possible to
53598         avoid a race condition reliably.
53599         * lib/savewd.c (savewd_chdir): Likewise.
53600
53601         Remove macros that are no longer needed now that stdint.h is
53602         reliable.
53603         * lib/fsusage.c (UINTMAX_MAX): Remove.
53604         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53605         * lib/utimecmp.c (SIZE_MAX): Remove.
53606
53607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53608
53609         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53610         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53611         O_NOATIME works.
53612
53613 2006-10-05  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/gl_list.h (gl_sortedlist_search_from_to,
53616         gl_sortedlist_indexof_from_to): New declarations.
53617         (gl_list_implementation): New fields sortedlist_search_from_to,
53618         sortedlist_indexof_from_to.
53619         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53620         inline functions.
53621         * lib/gl_list.c (gl_sortedlist_search_from_to,
53622         gl_sortedlist_indexof_from_to): New functions.
53623         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53624         function.
53625         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53626         (gl_array_sortedlist_search_from_to): New function.
53627         (gl_array_list_implementation): Update.
53628         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53629         function.
53630         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53631         (gl_carray_sortedlist_search_from_to): New function.
53632         (gl_carray_list_implementation): Update.
53633         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53634         gl_linked_sortedlist_indexof_from_to): New functions.
53635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53637         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53638         gl_tree_sortedlist_indexof_from_to): New functions.
53639         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53641         Update.
53642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53643         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53644         Update.
53645
53646 2006-10-05  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53649         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53650         (struct gl_list_implementation): Add fields search_from_to,
53651         indexof_from_to. Remove fields search, indexof.
53652         (gl_list_search): Use the search_from_to method.
53653         (gl_list_search_from, gl_list_search_from_to): New functions.
53654         (gl_list_indexof): Use the indexof_from_to method.
53655         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53656         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53657         (gl_list_search_from, gl_list_search_from_to): New functions.
53658         (gl_list_indexof): Use the indexof_from_to method.
53659         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53660         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53661         gl_array_indexof. Add start_index, end_index arguments.
53662         (gl_array_search_from_to): Renamed from gl_array_search. Add
53663         start_index, end_index arguments.
53664         (gl_array_remove, gl_array_list_implementation): Update.
53665         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53666         gl_carray_indexof. Add start_index, end_index arguments.
53667         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53668         start_index, end_index arguments.
53669         (gl_carray_remove, gl_carray_list_implementation): Update.
53670         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53671         gl_linked_search. Add start_index, end_index arguments.
53672         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53673         start_index, end_index arguments.
53674         (gl_linked_remove): Update.
53675         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53676         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53677         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53678         field to 'size_t'.
53679         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53680         gl_tree_search. Add start_index, end_index arguments.
53681         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53682         start_index, end_index arguments.
53683         (gl_tree_remove): Update.
53684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53686         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53687         function.
53688         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53689         gl_tree_search. Add start_index, end_index arguments.
53690         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53691         start_index, end_index arguments.
53692         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53693         Update.
53694         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53695
53696 2006-10-05  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53699
53700         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53701         fwriteerror_temp): New declarations.
53702         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53703         (descriptors): New variable.
53704         (cleanup): First, close the descriptors.
53705         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53706         fclose_temp, fwriteerror_temp): New functions.
53707
53708 2006-10-04  Jim Meyering  <jim@meyering.net>
53709
53710         * lib/fts.c (fts_open): Tiny comment change.
53711
53712 2006-10-04  Bruno Haible  <bruno@clisp.org>
53713
53714         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53715         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53716         gl_LOCK_BODY.
53717         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53718         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53719         gl_LOCK_EARLY_BODY.
53720         (gl_LOCK): Require gl_LOCK_BODY.
53721
53722 2006-10-04  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53725         (gl_oset_search_atleast): New declaration.
53726         (struct gl_oset_implementation): Add field 'search_atleast'.
53727         (gl_oset_search_atleast): New inline function.
53728         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53729         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53730         (gl_array_oset_implementation): Update.
53731         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53732         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53733         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53734
53735 2006-10-04  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53738
53739 2006-10-03  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53742         from gl_avltreehash_list_implementation.
53743
53744 2006-10-03  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/gl_oset.c (gl_oset_add): Fix return type.
53747
53748 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53749
53750         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53751
53752 2006-10-02  Eric Blake  <ebb9@byu.net>
53753
53754         * modules/strnlen (Depends-on): Add extensions.
53755
53756 2006-10-02  Eric Blake  <ebb9@byu.net>
53757
53758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53759         definition in 2.60+.
53760
53761 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53762
53763         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53764         checks.
53765
53766 2006-10-02  Bruno Haible  <bruno@clisp.org>
53767
53768         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53769         to the AUTOMAKE_OPTIONS.
53770         Reported by Jim Meyering.
53771
53772 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         Work around bug in Solaris 10 /proc file system:
53775         /proc/self/fd/NNN/.. isn't the parent directory of
53776         the directory whose file descriptor is NNN.  This needs to
53777         be worked around at run time, not compile time, since a
53778         program might be built on Solaris 8, where things work, and
53779         run on Solaris 10.
53780         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53781         to use the following interface instead:
53782         (OPENAT_BUFFER_SIZE): New macro.
53783         (openat_proc_name): New function.
53784         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53785         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53786         Likewise.
53787         * lib/openat-proc.c: New file.
53788         * modules/openat (Files): Add lib/openat-proc.c.
53789         (Depends-on): Add same-inode, stdbool.
53790         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53791
53792 2006-09-29  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53795         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53796         argument. Set stdout_closed before testing for ferror, not after.
53797         (fwriteerror, fwriteerror_no_ebadf): New functions.
53798
53799 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53800
53801         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53802
53803 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53804
53805         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53806         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53807
53808 2006-09-28  Jim Meyering  <jim@meyering.net>
53809
53810         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53811         Include <unistd.h>.
53812
53813 2006-09-28  Bruno Haible  <bruno@clisp.org>
53814
53815         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53816         * modules/linkedhash-list (Depends-on): Likewise.
53817         * modules/rbtreehash-list (Depends-on): Likewise.
53818
53819 2006-09-28  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/strndup.h: Simplify the redefinition of strndup.
53822         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53824
53825 2006-09-28  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53828         * lib/gl_linkedhash_list.c: Likewise.
53829         * lib/gl_rbtreehash_list.c: Likewise.
53830
53831 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53832
53833         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53834         getaddrinfo.
53835
53836         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53837         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53838         it causes <stdio_ext.h> to cause a compile-time error.
53839         Problem reported by Nelson H. F. Beebe.
53840         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53841         of HAVE_DECL___PENDING.
53842
53843         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53844         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53845         declaration.
53846
53847 2006-09-27  Jim Meyering  <jim@meyering.net>
53848
53849         This file could end up with a definition for a function
53850         named __strndup, rather than rpl_strndup on a system with
53851         incomplete weak_alias support.
53852         * lib/strndup.c (strndup): Rename from __strndup.
53853         Remove #defines that used to map __strndup to strndup.
53854         Don't use K&R prototypes.
53855         Remove LIBC-related code, since this file is not sync'd with glibc.
53856         * lib/strndup.h: Revamp, accordingly.
53857         * m4/strndup.m4: Modernize.
53858
53859 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * modules/savewd (Depends-on): Add 'raise'.
53862         * lib/savewd.c: Include <signal.h>, for 'raise'.
53863
53864 2006-09-26  Jim Meyering  <jim@meyering.net>
53865
53866         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53867         when we detect Darwin 8.7.0's acl_get_file bug.
53868         Rearrange to perform the new (below) run-test while $LIBS
53869         contains any acl-related library.  Set USE_ACL at the end.
53870         (gl_ACL_GET_FILE): New function.
53871
53872 2006-09-26  Eric Blake  <ebb9@byu.net>
53873
53874         * lib/verror.c: Include <config.h> unconditionally.
53875
53876 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53877
53878         * modules/clock-time (Maintainer): Add self.
53879         * modules/getlogin_r (Depends-on): Add extensions.
53880
53881 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53882
53883         * modules/clock-time: New module.
53884         * modules/nanosleep (Depends-on): Add clock-time.
53885         * modules/gethrxtime (Depends-on): Likewise.
53886         * modules/gettime (Depends-on): Likewise.
53887         * modules/settime (Depends-on): Likewise.
53888
53889         * modules/fts-lgpl: Depend on openat.
53890         * modules/mkancesdirs: Depend on savewd.
53891         * modules/mkdir-p: Likewise.
53892
53893 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53894
53895         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53896
53897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53898         `gl_have_arbitrary_file_name_length_limit' to
53899         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53900         actually works between configure runs.
53901
53902 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53903             Bruno Haible  <bruno@clisp.org>
53904
53905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53906
53907 2006-09-25  Jim Meyering  <jim@meyering.net>
53908
53909         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53910         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53911
53912 2006-09-25  Eric Blake  <ebb9@byu.net>
53913
53914         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53915         exec's in 2006-09-18 patch when shuffling fds.
53916
53917 2006-09-25  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53920         Reported by Jim Meyering.
53921
53922 2006-09-24  Jim Meyering  <jim@meyering.net>
53923
53924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53925         compare a pointer against a literal "0".  That caused failures with
53926         at least HP-UX's hpcc.
53927
53928 2006-09-22  Simon Josefsson  <jas@extundo.com>
53929
53930         * modules/gc-sha1:
53931         * modules/gc-md4:
53932         * modules/gc-hmac-sha1:
53933         * modules/gc-hmac-md5:
53934         * modules/gc-des:
53935         * modules/gc-arcfour: Distribute more files.
53936
53937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53938
53939         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
53940         (gl_linked_iterator_from_to): Initialize struct completely.
53941         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
53942         (gl_tree_iterator_from_to): Likewise
53943         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
53944         * lib/gl_array_list.c [lint] (gl_array_iterator)
53945         (gl_array_iterator_from_to): Likewise.
53946         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
53947         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
53948         (gl_carray_iterator_from_to): Likewise.
53949
53950         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
53951         * lib/md4.c (md4_process_block): Remove unused variable.
53952         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
53953         parentheses for clarity.
53954
53955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53956
53957         * modules/bison-i18n (Depends-on): Add gettext.
53958
53959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53960
53961         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
53962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
53963         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
53964         also add missing comma that caused broken test.
53965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
53966         stdlib.h, for `abort'.
53967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
53968         variables.
53969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
53970         include unistd.h if present, for `rmdir'.
53971         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
53972         variables.
53973         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53974         in the process include standard headers for prototypes.
53975         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53976         gets declared on GNU/Linux.
53977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53978         unistd.h, for `rmdir'.
53979         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53980
53981         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53982         always true.
53983         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53984
53985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53986
53987 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53988
53989         * gnulib-tool (func_version): Create output all at once.  This
53990         may help avoid triggering unnecessary SIGPIPEs, and at any
53991         rate it doesn't hurt.
53992
53993 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53994             Bruno Haible  <bruno@clisp.org>
53995
53996         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53998         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53999
54000         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
54001         (gl_FUNC_VASPRINTF): Invoke it.
54002
54003 2006-09-22  Bruno Haible  <bruno@clisp.org>
54004
54005         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
54006         getloadavg.c as first argument.
54007
54008 2006-09-22  Bruno Haible  <bruno@clisp.org>
54009
54010         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
54011         at the beginning of the gl_INIT macro.
54012         * modules/getloadavg (configure.ac): Pass $gl_source_base to
54013         gl_GETLOADAVG.
54014
54015 2006-09-22  Bruno Haible  <bruno@clisp.org>
54016
54017         * gnulib-tool (func_create_megatestdir): Don't include the config-h
54018         module.
54019         Suggested by Ralf Wildenhues.
54020
54021 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         Import this patch from libc:
54024
54025         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
54026
54027         * lib/regex_internal.c (re_string_reconstruct): Handle
54028         offset < pstr->valid_raw_len && pstr->offsets_needed case.
54029         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
54030         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
54031         re_string_context_at.
54032
54033         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
54034         now requires it.
54035         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
54036         gl_REGEX now does it for us.
54037         (gl_REGEX): Add test taken from
54038         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
54039
54040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
54041         Check that large offsets work.  Modernize Autoconf usages.
54042         Prefer "yes" to mean a good thing rather than a bad.
54043         Don't put "#define mkstemp" in config.h, as this might interfere
54044         with standard system headers that "#define mkstemp mkstemp64".
54045
54046         * modules/mkstemp (Depends-on): Add extensions, so that
54047         mkstemp is visible on some platforms.
54048         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
54049         (Include): Change to "mkstemp.h" from <stdlib.h>.
54050         (Files): Add mkstemp.h.
54051
54052         * lib/mkstemp.h: New file, since some standard headers
54053         #define mkstemp.
54054         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
54055         Include "mkstemp.h".
54056         Make the _LIBC code resemble glibc original more,
54057         e.g., use K&R style.
54058         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
54059         (mkstemp): Remove, since mkstemp.h does this for us.
54060         * lib/stdlib--.h: Include mkstemp.h.
54061
54062         Import this patch from libc:
54063
54064         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54065
54066         * lib/tempname.c (__gen_tempname): Change attempts_min
54067         into a macro.  Use preprocessor to decide how to initialize
54068         attempts [Coverity CID 67].
54069
54070 2006-09-20  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/mkdtemp.c: Import from libc.
54073         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54074                 * sysdeps/posix/tempname.c (__gen_tempname): Change
54075                 attempts_min into a macro.  Use preprocessor to decide how to
54076                 initialize attempts [Coverity CID 67].
54077         2001-11-27  Paul Eggert  <eggert@twinsun.com>
54078                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
54079                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
54080
54081 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54082
54083         * gnulib-tool (func_exit): New function, to allow to pass the
54084         exit status portably through the trap.  Use everywhere.
54085         (--help, --version): Signal a write error.
54086         (trap): catch SIGPIPE, for write errors.
54087         Exit at the end of the trap, with the correct exit status.
54088
54089 2006-09-19  Karl Berry  <karl@gnu.org>
54090
54091         * doc/gnulib.texi: note about the license texinfo files.
54092
54093 2006-09-19  Eric Blake  <ebb9@byu.net>
54094
54095         * gnulib-tool: Avoid space-tab.
54096
54097 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
54100         that prevented coreutils 6.1 from building.  Problem reported
54101         by Petter Reinholdtsen.
54102
54103 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         * gnulib-tool (avoidlist): Fix typo that broke options like
54106         --avoid=lock that are used by coreutils bootstrap.
54107
54108 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54109
54110         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54111         more systematically.
54112
54113 2006-09-18  Jim Meyering  <jim@meyering.net>
54114
54115         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54116
54117 2006-09-18  Bruno Haible  <bruno@clisp.org>
54118
54119         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54120
54121 2006-09-18  Bruno Haible  <bruno@clisp.org>
54122
54123         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54124         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54125         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54126         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54127         * m4/gettext.m4: Require autoconf >= 2.52.
54128         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54129         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54130         of gl_cv_header_inttypes_h.
54131
54132 2006-09-18  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/javaversion.c: Include configmake.h.
54135
54136 2006-09-18  Bruno Haible  <bruno@clisp.org>
54137
54138         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54139         avoid that the while loops be executed in a subshell.
54140
54141 2006-09-18  Bruno Haible  <bruno@clisp.org>
54142
54143         * MODULES.html.sh (func_module): Break long lines.
54144         Suggested by Bruce Korb <bkorb@gnu.org>.
54145
54146 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54147
54148         Speed up by a factor of 1.12.
54149         * gnulib-tool (nl): New variable.
54150         (func_import): Rewrite include directive extraction to only read each
54151         directive once.
54152
54153 2006-09-17  Bruno Haible  <bruno@clisp.org>
54154
54155         * modules/javaversion (Makefile.am): Remove DEFS setting.
54156         (Depends-on): Add configmake, for PKGDATADIR definition.
54157
54158 2006-09-17  Bruno Haible  <bruno@clisp.org>
54159
54160         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54161
54162 2006-09-17  Bruno Haible  <bruno@clisp.org>
54163
54164         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54165         (func_modules_transitive_closure, func_modules_add_dummy,
54166         func_modules_to_filelist, func_import, func_create_testdir,
54167         func_create_megatestdir, ...): Use it wherever possible.
54168         Suggested by Ralf Wildenhues.
54169
54170 2006-09-16  Karl Berry  <karl@gnu.org>
54171
54172         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54173         to avoid sectioning errors.
54174         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54175         [ifinfo]: blank line after @center-ed titles.
54176         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
54177         Spell FSF address consistently with others.
54178         (These changes approved by rms.)
54179
54180 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54181
54182         Speed up by a factor of 1.61.
54183         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
54184         already checked module names again.
54185
54186 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54187
54188         Speed up by a factor of 1.13.
54189         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
54190         for new_files, and the input to func_add_or_update.
54191
54192 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54193
54194         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
54195         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
54196
54197 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         * modules/mkancesdirs (Depends-on): Add fcntl.
54200         * modules/savewd: New file.
54201         * MODULES.html.sh (File system functions): Add savewd.
54202
54203         * modules/configmake (Makefile.am): Add support for the
54204         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
54205
54206 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         * m4/savewd.m4: New file.
54209
54210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
54213         (dirchownmod): New arg FD.  All callers changed.
54214         Use FD rather than opening the directory ourself, as opening is
54215         now the caller's responsibility.
54216         * lib/dirchownmod.h: Likewise.
54217         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
54218         hosts that require <sys/types.h> before <sys/stat.h>.  Include
54219         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
54220         (test_dir): Remove.
54221         (mkancesdirs): Return length of prefix of FILE that has already
54222         been made, or -2 if there is a child doing the work.  Redo
54223         algorithm so that it is O(N) rather than O(N**2).  Optimize away
54224         ".", and treat ".." specially since it might stray back into
54225         already-created areas.  Use a subprocess if necessary.  New arg
54226         WD; all users changed.  MAKE_DIR function should now return 1
54227         if it creates a directory that is not readable.  Return -2 if
54228         a child process is spun off.
54229         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
54230         Adjust signature to match code.
54231         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
54232         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
54233         all users changed.
54234         * lib/savewd.c, lib/savewd.h: New files.
54235
54236 2006-09-15  Jim Meyering  <jim@meyering.net>
54237
54238         * modules/rename-dest-slash: New module.
54239         * MODULES.html.sh (posix_compat): Add it here.
54240
54241         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
54242
54243 2006-09-15  Jim Meyering  <jim@meyering.net>
54244
54245         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
54246         file.
54247
54248         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
54249
54250 2006-09-15  Jim Meyering  <jim@meyering.net>
54251
54252         * lib/rename-dest-slash.c (has_trailing_slash): Use
54253         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
54254         (rpl_rename_dest_slash): Perform the cheaper trailing slash
54255         test before testing whether SRC is a directory.
54256         Suggestions from Bruno Haible.
54257
54258         Avoid a warning about an unused variable.
54259         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
54260         into the #ifdef block where it's used.
54261
54262         * lib/rename-dest-slash.c: New file.
54263
54264 2006-09-14  Bruno Haible  <bruno@clisp.org>
54265
54266         * lib/allocsa.c: Include <config.h> unconditionally.
54267         * lib/asnprintf.c: Likewise.
54268         * lib/asprintf.c: Likewise.
54269         * lib/c-strcasecmp.c: Likewise.
54270         * lib/c-strcasestr.c: Likewise.
54271         * lib/c-strncasecmp.c: Likewise.
54272         * lib/c-strstr.c: Likewise.
54273         * lib/classpath.c: Likewise.
54274         * lib/clean-temp.c: Likewise.
54275         * lib/concatpath.c: Likewise.
54276         * lib/copy-file.c: Likewise.
54277         * lib/csharpcomp.c: Likewise.
54278         * lib/csharpexec.c: Likewise.
54279         * lib/execute.c: Likewise.
54280         * lib/fatal-signal.c: Likewise.
54281         * lib/findprog.c: Likewise.
54282         * lib/fwriteerror.c: Likewise.
54283         * lib/gl_array_list.c: Likewise.
54284         * lib/gl_array_oset.c: Likewise.
54285         * lib/gl_avltree_list.c: Likewise.
54286         * lib/gl_avltree_oset.c: Likewise.
54287         * lib/gl_avltreehash_list.c: Likewise.
54288         * lib/gl_carray_list.c: Likewise.
54289         * lib/gl_linked_list.c: Likewise.
54290         * lib/gl_linkedhash_list.c: Likewise.
54291         * lib/gl_list.c: Likewise.
54292         * lib/gl_oset.c: Likewise.
54293         * lib/gl_rbtree_list.c: Likewise.
54294         * lib/gl_rbtree_oset.c: Likewise.
54295         * lib/gl_rbtreehash_list.c: Likewise.
54296         * lib/imaxabs.c: Likewise.
54297         * lib/imaxdiv.c: Likewise.
54298         * lib/javacomp.c: Likewise.
54299         * lib/javaexec.c: Likewise.
54300         * lib/javaversion.c: Likewise.
54301         * lib/linebreak.c: Likewise.
54302         * lib/localcharset.c: Likewise.
54303         * lib/lock.c: Likewise.
54304         * lib/mbchar.c: Likewise.
54305         * lib/mbswidth.c: Likewise.
54306         * lib/mkdtemp.c: Likewise.
54307         * lib/pipe.c: Likewise.
54308         * lib/printf-args.c: Likewise.
54309         * lib/printf-parse.c: Likewise.
54310         * lib/progname.c: Likewise.
54311         * lib/progreloc.c: Likewise.
54312         * lib/readlink.c: Likewise.
54313         * lib/sh-quote.c: Likewise.
54314         * lib/stpcpy.c: Likewise.
54315         * lib/stpncpy.c: Likewise.
54316         * lib/strcasecmp.c: Likewise.
54317         * lib/strcasestr.c: Likewise.
54318         * lib/strcspn.c: Likewise.
54319         * lib/striconv.c: Likewise.
54320         * lib/strncasecmp.c: Likewise.
54321         * lib/strnlen1.c: Likewise.
54322         * lib/strstr.c: Likewise.
54323         * lib/strtok_r.c: Likewise.
54324         * lib/tls.c: Likewise.
54325         * lib/tmpdir.c: Likewise.
54326         * lib/unicodeio.c: Likewise.
54327         * lib/unsetenv.c: Likewise.
54328         * lib/vasnprintf.c: Likewise.
54329         * lib/vasprintf.c: Likewise.
54330         * lib/wait-process.c: Likewise.
54331         * lib/xallocsa.c: Likewise.
54332         * lib/xsetenv.c: Likewise.
54333         * lib/xstriconv.c: Likewise.
54334
54335 2006-09-13  Simon Josefsson  <jas@extundo.com>
54336
54337         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
54338         that internally, suggested by Ralf Wildenhues
54339         <Ralf.Wildenhues@gmx.de>.
54340
54341 2006-09-13  Simon Josefsson  <jas@extundo.com>
54342
54343         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
54344         @LIBOBJS@.
54345         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54346
54347 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54348
54349         * lib/_fpending.c: Include <config.h> unconditionally, since we no
54350         longer worry about uses that don't define HAVE_CONFIG_H.
54351         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
54352         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
54353         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
54354         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
54355         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
54356         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
54357         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
54358         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
54359         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
54360         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
54361         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
54362         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
54363         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
54364         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
54365         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
54366         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
54367         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
54368         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
54369         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
54370         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
54371         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
54372         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
54373         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
54374         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
54375         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
54376         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
54377         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
54378         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
54379         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
54380         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
54381         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
54382         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
54383         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
54384         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
54385         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
54386         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
54387         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
54388         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
54389         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
54390         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
54391         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
54392         Likewise.
54393
54394 2006-09-13  Eric Blake  <ebb9@byu.net>
54395
54396         * lib/getopt.c: Fix typo in last commit.
54397
54398 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54399
54400         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
54401         dgettext.
54402
54403 2006-09-12  Jim Meyering  <jim@meyering.net>
54404
54405         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
54406         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
54407         Reported by Nelson H. F. Beebe.
54408
54409 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54410
54411         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
54412         program_invocation_name and program_invocation_short_name are
54413         initialized.
54414         * lib/argp-namefrob.h: Move declarations of program_invocation_name
54415         and program_invocation_short_name to argp.h, so they are visible
54416         to user programs.
54417         * lib/argp.h: Likewise
54418
54419 2006-09-10  Bruno Haible  <bruno@clisp.org>
54420
54421         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54422         m4/inttypes_h.m4, m4/uintmax_t.m4.
54423
54424 2006-09-10  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
54427         gl_AC_TYPE_UINTMAX_T.
54428
54429 2006-09-10  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
54432
54433 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54434
54435         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
54436         convention.  Text proposed by Bruno Haible.
54437         (struct argp_option): Document the use of N_() wrappers.
54438
54439         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
54440         '\v', and translate the two parts separately, instead of feeding
54441         the whole string to gettext.  This allows to exclude
54442         '\v' from the strings visible to the translator by writing doc
54443         strings as N_("..") "\v" N_("..").
54444
54445 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * config/srclist.txt: Undo latest change; the bug was fixed.
54448
54449 2006-09-09  Bruno Haible  <bruno@clisp.org>
54450
54451         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
54452         assignments if building a library without libtool.
54453         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
54454         in func_emit_lib_Makefile_am.
54455         (func_import): When building a static library libfoo.a, arrange to
54456         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
54457         (func_create_testdir): Likewise.
54458         * modules/gc (configure.ac, Makefile.am): If building statically,
54459         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
54460         * modules/iconvme (configure.ac, Makefile.am): Likewise.
54461         * modules/striconv (configure.ac, Makefile.am): Likewise.
54462         Based on a suggestion by Ralf Wildenhues.
54463
54464 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54467         Check for unistd.h too, since Autoconf doesn't assume POSIX.
54468         Also:
54469
54470         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54471         Add year_2050_test to catch glibc bug 2821
54472         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54473
54474         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54475         Prefer #ifdef to #if.
54476
54477         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
54478         Return from 'main' instead of calling 'exit'.
54479
54480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54481
54482         * lib/mktime.c (guess_time_tm): Fix bug where mktime
54483         returned the maximum time_t value rather than (time_t) -1.
54484         Problem originally reported by William Bardwell
54485         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54486
54487         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54488         Moved to here ...
54489         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54490         ... from here.
54491
54492 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54493
54494         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
54495         2821 is fixed.
54496
54497 2006-09-08  Jim Meyering  <jim@meyering.net>
54498
54499         Don't make generated files read-only.  That would bother too many
54500         people.  However, do retain the ability to work when targets are
54501         read-only: remove the destination and temporary files before writing
54502         them (when generated via sed or echo), or by using the -f option for
54503         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54504         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54505         * modules/byteswap, modules/configmake, modules/fcntl:
54506         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54507         * modules/localcharset, modules/netinet_in, modules/poll:
54508         * modules/stdbool, modules/stdint, modules/sys_select:
54509         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54510
54511 2006-09-08  Jim Meyering  <jim@meyering.net>
54512
54513         Avoid new build failure on FreeBSD 6.0.
54514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54515         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54516         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54517
54518 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54519
54520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54521
54522 2006-09-07  Jim Meyering  <jim@meyering.net>
54523
54524         Fix global typo in last change: use chmod u-w, not chmod u-x.
54525         Spotted by Paul Eggert and Bruce Korb.
54526         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54527         * modules/byteswap, modules/configmake, modules/fcntl:
54528         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54529         * modules/localcharset, modules/netinet_in, modules/poll:
54530         * modules/stdbool, modules/stdint, modules/sys_select:
54531         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54532
54533 2006-09-06  Jim Meyering  <jim@meyering.net>
54534
54535         Make generated files be read-only.
54536         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54537         Ensure that each generated file is now read-only.
54538         * modules/argz: Likewise.
54539         * modules/arpa_inet: Likewise.
54540         * modules/byteswap: Likewise.
54541         * modules/configmake: Likewise.
54542         * modules/fcntl: Likewise.
54543         * modules/fnmatch: Likewise.
54544         * modules/getopt: Likewise.
54545         * modules/glob: Likewise.
54546         * modules/inttypes: Likewise.
54547         * modules/netinet_in: Likewise.
54548         * modules/poll: Likewise.
54549         * modules/stdbool: Likewise.
54550         * modules/stdint: Likewise.
54551         * modules/sys_select: Likewise.
54552         * modules/sys_socket: Likewise.
54553         * modules/sys_stat: Likewise.
54554         * modules/sysexits: Likewise.
54555         * modules/localcharset: Same as above, but continue using temporary
54556         file named "t-$@" (why different?) rather than the "$@-t" used
54557         everywhere else.
54558
54559         * modules/sysexits (Makefile.am): Replace literal occurrences
54560         of "sysexit.h" more readable, and more consistent, "$@".
54561
54562 2006-09-06  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/striconv: New file.
54565         * modules/xstriconv: New file.
54566         * MODULES.html.sh (Internationalization functions): Add striconv,
54567         xstriconv.
54568
54569 2006-09-06  Bruno Haible  <bruno@clisp.org>
54570
54571         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54572         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54573         not using libtool correctly.
54574
54575 2006-09-06  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/striconv.h: New file.
54578         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54579         iconvstring.c.
54580         * lib/xstriconv.h: New file.
54581         * lib/xstriconv.c: New file.
54582
54583 2006-09-06  Bruno Haible  <bruno@clisp.org>
54584
54585         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54586         lib_..._LDFLAGS.
54587
54588 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54589
54590         * lib/argz_.h: Sync from Libtool.
54591
54592         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54593                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54594
54595         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54596
54597 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54598
54599         * modules/trim: New file.
54600
54601 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54602
54603         * lib/trim.h: New file.
54604         * lib/trim.c: New file.
54605
54606 2006-09-05  Bruno Haible  <bruno@clisp.org>
54607
54608         * MODULES.html.sh (String handling): Add trim.
54609
54610 2006-09-04  Karl Berry  <karl@gnu.org>
54611
54612         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54613         until next release.
54614
54615 2006-09-03  Bruno Haible  <bruno@clisp.org>
54616
54617         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54618         correctly.
54619
54620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54623         not gl_GETLOADAVG.  Omit unneeded semicolons.
54624         Problems reported by Ralf Wildenhues in
54625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54626         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54627         at the end, which is the usual gnulib style.
54628
54629         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54630         of doing all the work ourselves.
54631         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54632         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54633
54634 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54635
54636         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54637         Problem reported by Ralf Wildenhues in
54638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54639
54640         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54641         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54642
54643 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54646         yesterday's patch by changing test -n to test -z.
54647
54648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54651         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54652         the former is now obsolescent.
54653
54654         * modules/chdir-long (Depends-on): Add fcntl.
54655
54656 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54657
54658         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54659         obsolescent, and programs should use gnulib instead.
54660         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54661         but with prefixes changed.
54662
54663 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54666         or stdbool.h, because they might not exist while configuring.
54667
54668         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54669         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54670         does that for us.
54671         (O_DIRECTORY): Remove.
54672
54673 2006-08-31  Eric Blake  <ebb9@byu.net>
54674
54675         * gnulib-tool: Don't let emacs change spaces to TAB.
54676
54677 2006-08-31  Bruno Haible  <bruno@clisp.org>
54678
54679         * gnulib-tool: When calling func_import more than once, do it in a
54680         subshell.
54681         Reported by Eric Blake <ebb9@byu.net>.
54682
54683 2006-08-31  Bruno Haible  <bruno@clisp.org>
54684
54685         * gnulib-tool (nl): Remove variable.
54686         (sed_transform_lib_file): Use more robust test for config-h module.
54687         (func_import): Fix typo in 2006-08-25 patch.
54688
54689 2006-08-31  Bruno Haible  <bruno@clisp.org>
54690
54691         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54692         specified, augment Makefile.am variables instead of assigning them.
54693
54694 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         Work around a bug in both the Linux and SunOS 64-bit kernels:
54697         nanosleep mishandles sleeps for longer than 2**31 seconds.
54698         Problem reported by Frank v Waveren in
54699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54701         Check for nanosleep bug.
54702         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54703
54704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         Work around a bug in both the Linux and SunOS 64-bit kernels:
54707         nanosleep mishandles sleeps for longer than 2**31 seconds.
54708         Problem reported by Frank v Waveren in
54709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54710         * lib/nanosleep.c (BILLION): New constant.
54711         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54712         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54713         implementation.
54714
54715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * modules/nanosleep (Depends-on): Add gettime.
54718
54719 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54720         and Simon Josefsson  <jas@extundo.com>
54721         and Oskar Liljeblad  <oskar@osk.mine.nu>
54722
54723         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54724         * gnulib-tool (func_import): New license type 'unmodifiable license
54725         text'.
54726         * modules/fdl: Use it.  Longer description.
54727         * module/gpl, module/lgpl: New files.
54728
54729 2006-08-30  Jim Meyering  <jim@meyering.net>
54730
54731         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54732         shadowing the parameter.
54733
54734 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54735
54736         Sync from Libtool:
54737
54738         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54739
54740         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54741         sharing with gnulib.  Report by Eric Blake.
54742
54743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         * modules/isapipe: New file.
54746         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54747
54748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54749
54750         * modules/configmake (Makefile.am): Add a comment, and omit
54751         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54752         by Bruno Haible.
54753
54754 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54755
54756         * m4/isapipe.m4: New file.
54757
54758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54759
54760         * lib/isapipe.c, lib/isapipe.h: New files.
54761
54762 2006-08-29  Jim Meyering  <jim@meyering.net>
54763
54764         * modules/configmake (Makefile.am): Make configmake.h depend on
54765         Makefile.  Otherwise, a stale configmake.h could hang around.
54766
54767 2006-08-29  Eric Blake  <ebb9@byu.net>
54768
54769         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54770         resolution of upstream bug 3044.
54771
54772 2006-08-29  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/localcharset (Depends-on): Add configmake.
54775         (Makefile.am): Remove setting of LIBDIR through DEFS.
54776
54777 2006-08-29  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54780         defined.
54781
54782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * modules/fcntl: New file.
54785         * modules/chdir-safer (Depends-on): Add fcntl.
54786         * modules/fts: Likewise.
54787         * modules/mkdir-p: Likewise.
54788
54789         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54790         This undoes the most recent change, since we're now addressing the
54791         problem in a different way.
54792
54793         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54794         into output, since the output might be called Makefile.am even
54795         if $makefile_name is something different.
54796         (func_import): Use $makefile_am rather than
54797         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54798         empty.
54799
54800         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54801
54802 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54803
54804         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54805         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54806         recent change to stdint.m4, since we're now addressing the problem in a
54807         different way.
54808
54809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54810
54811         * m4/fcntl_h.m4: New file.
54812
54813 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * lib/fcntl_.h: New file.
54816         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54817         the fcntl module.
54818         * lib/dirchownmod.c: Likewise.
54819         * lib/fts.c: Likewise.
54820
54821         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54822         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54823         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54824         just before including <inttypes.h>, to avoid circular inclusion.
54825
54826 2006-08-28  Jim Meyering  <jim@meyering.net>
54827
54828         * doc/visibility.texi: Actually read and correct the grammar of the
54829         sentence affected by yesterday's change.
54830
54831 2006-08-28  Eric Blake  <ebb9@byu.net>
54832
54833         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54834         needs wrapper.
54835
54836 2006-08-28  Eric Blake  <ebb9@byu.net>
54837
54838         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54839
54840 2006-08-28  Eric Blake  <ebb9@byu.net>
54841
54842         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54843
54844 2006-08-28  Bruno Haible  <bruno@clisp.org>
54845
54846         * modules/c-strstr: New file, from GNU gettext.
54847         * MODULES.html.sh (String handling): Add c-strstr.
54848
54849 2006-08-28  Bruno Haible  <bruno@clisp.org>
54850
54851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54852         macros.
54853         Reported by Eric Blake.
54854
54855 2006-08-28  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54858         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54859         * lib/vasprintf.c: Include errno.h, limits.h.
54860         (EOVERFLOW): New fallback definition.
54861         (vasprintf): Test here whether the string length is > INT_MAX.
54862         * lib/vsnprintf.c: Include errno.h, limits.h.
54863         (EOVERFLOW): New fallback definition.
54864         (vsnprintf): Fix bug when generated string was too long for the buffer.
54865         Test here whether the string length is > INT_MAX.
54866
54867 2006-08-28  Bruno Haible  <bruno@clisp.org>
54868
54869         * lib/inttypes_.h (SCNX*): Remove definitions.
54870         Reported by Eric Blake.
54871
54872 2006-08-28  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/c-strstr.h: New file, from GNU gettext.
54875         * lib/c-strstr.c: New file, from GNU gettext.
54876
54877 2006-08-28  Bruno Haible  <bruno@clisp.org>
54878
54879         * gnulib-tool: Reorder some statements.
54880
54881 2006-08-28  Bruno Haible  <bruno@clisp.org>
54882
54883         * gnulib-tool: New option --makefile-name.
54884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54885         $makefile_name.
54886         (func_import): Write $makefile_name to the cache file, and read it from
54887         there unless explicitly specified. Use $makefile_name as file name
54888         instead of Makefile.am. Adjust the recommendations accordingly.
54889
54890 2006-08-28  Bruno Haible  <bruno@clisp.org>
54891
54892         * gnulib-tool (func_verify_module): Check against misapplying patch.
54893
54894 2006-08-28  Bruno Haible  <bruno@clisp.org>
54895
54896         * gnulib-tool (func_relativize, func_relconcat): New functions.
54897         Give an error if --local-dir is given with --update.
54898         Remove trailing slashes from $local_gnulib_dir.
54899         (func_import): Store the relativized $local_gnulib_dir in
54900         gnulib-cache.m4, and read it from there if not specified explicitly.
54901
54902 2006-08-28  Bruno Haible  <bruno@clisp.org>
54903
54904         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54905         is the current directory. Respect also $local_gnulib_dir.
54906
54907 2006-08-28  Bruno Haible  <bruno@clisp.org>
54908             Simon Josefsson  <jas@extundo.com>
54909
54910         BeOS portability.
54911         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54912
54913 2006-08-27  Jim Meyering  <jim@meyering.net>
54914
54915         * doc/visibility.texi: Remove duplicate word: "pointer".
54916
54917 2006-08-26  Bruno Haible  <bruno@clisp.org>
54918
54919         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54920         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54921         (Makefile.am): Create inttypes.h from inttypes_.h.
54922         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54923
54924         * modules/imaxabs: New file.
54925
54926         * modules/imaxdiv: New file.
54927
54928 2006-08-26  Bruno Haible  <bruno@clisp.org>
54929
54930         * m4/inttypes.m4: New file.
54931         * m4/_inttypes_h.m4: Remove file.
54932         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
54933         PRI_MACROS_BROKEN.
54934         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
54935
54936         * m4/imaxabs.m4: New file.
54937
54938         * m4/imaxdiv.m4: New file.
54939
54940 2006-08-26  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/inttypes_.h: New file.
54943         * lib/inttypes.h: Remove file.
54944         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
54945
54946         * lib/imaxabs.c: New file.
54947
54948         * lib/imaxdiv.c: New file.
54949
54950 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54951
54952         New config-h module, so that "make" output needn't be cluttered
54953         by -DHAVE_CONFIG_H.
54954         * MODULES.html.sh (Support for building libraries and executables):
54955         Add config-h.
54956         * modules/config-h: New file.
54957         * gnulib-tool (nl, sed_transform_lib_file): New vars.
54958         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
54959         the config-h module is used.
54960
54961         New configmake module, so that "make" output needn't be cluttered
54962         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
54963         * MODULES.html.sh (Support for building libraries and executables):
54964         Add configmake.
54965         * modules/configmake: New file.
54966
54967 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * m4/config-h.m4: New file.
54970
54971 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         * config/srclist.txt: Add elisp-comp.
54974
54975 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * MODULES.html.sh (Support for building libraries and executables):
54978         Add elisp-comp.
54979         * build-aux/elisp-comp: New file.
54980         * modules/elisp-comp: New file.
54981
54982 2006-08-24  Bruno Haible  <bruno@clisp.org>
54983
54984         * gnulib-tool (func_create_testdir): Use non-default values of
54985         sourcebase and m4base.
54986
54987 2006-08-24  Bruno Haible  <bruno@clisp.org>
54988
54989         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54990         HTML structure.
54991
54992 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54993
54994         * modules/openat (Depends-on): Add lchown.
54995
54996 2006-08-23  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54999         of gl_LOCK_EARLY instead of gl_LOCK.
55000
55001 2006-08-23  Bruno Haible  <bruno@clisp.org>
55002
55003         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
55004         on OSF/1 to no.
55005         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
55006
55007 2006-08-23  Bruno Haible  <bruno@clisp.org>
55008
55009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
55010         as unusable.
55011
55012         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
55013         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
55014         (gl_LOCK): New macro.
55015
55016 2006-08-22  Simon Josefsson  <jas@extundo.com>
55017
55018         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
55019         to md5 module.
55020
55021 2006-08-22  Simon Josefsson  <jas@extundo.com>
55022
55023         * MODULES.html.sh: Add "Support for maintaining and release
55024         projects".
55025
55026         * build-aux/gnupload: New file, from coreutils.
55027
55028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         Avoid the need for AC_LIBSOURCES in m4 macros.
55031         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
55032         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
55033         * modules/check-version (EXTRA_DIST): Add check-version.h.
55034         * modules/crc (EXTRA_DIST): Add crc.h.
55035         * modules/des (EXTRA_DIST): Add des.h.
55036         * modules/gc (EXTRA_DIST): Add gc.h.
55037         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
55038         * modules/getline (EXTRA_DIST): Add getline.h.
55039         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
55040         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
55041         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
55042         * modules/md2 (EXTRA_DIST): Add md2.h.
55043         * modules/md4 (EXTRA_DIST): Add md4.h.
55044         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
55045         * modules/read-file (EXTRA_DIST): Add read-file.h.
55046         * modules/readline (EXTRA_DIST): Add readline.h.
55047         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
55048         rijndael-api-fst.h.
55049
55050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * m4/rijndael.m4 (gl_ARCFOUR):
55053         * m4/arctwo.m4 (gl_ARCTWO):
55054         * m4/check-version.m4 (gl_CHECK_VERSION):
55055         * m4/crc.m4 (gl_CRC):
55056         * m4/des.m4 (gl_DES):
55057         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
55058         * m4/gc.m4 (gl_GC):
55059         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
55060         * m4/getline.m4 (gl_FUNC_GETLINE):
55061         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
55062         * m4/hmac-md5.m4 (gl_HMAC_MD5):
55063         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
55064         * m4/md2.m4 (gl_MD2):
55065         * m4/md4.m4 (gl_MD4):
55066         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
55067         * m4/read-file.m4 (gl_FUNC_READ_FILE):
55068         * m4/readline.m4 (gl_FUNC_READLINE):
55069         * m4/rijndael.m4 (gl_RIJNDAEL):
55070         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55071         to get the necessary .h files and whatnot.
55072
55073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
55076         gnulib rather than the other way around.
55077         * config/srclistvars.sh (COREUTILS): Remove.
55078
55079 2006-08-22  Jim Meyering  <jim@meyering.net>
55080
55081         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
55082
55083         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
55084
55085 2006-08-22  Eric Blake  <ebb9@byu.net>
55086
55087         * modules/regexprops-generic: New file.
55088         * MODULES.html.sh (Support for building documentation): List it.
55089
55090 2006-08-22  Eric Blake  <ebb9@byu.net>
55091
55092         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
55093         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55094         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
55095         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55096
55097 2006-08-22  Bruno Haible  <bruno@clisp.org>
55098
55099         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
55100         and lib_LTLIBRARIES like the other lib_* variables.
55101
55102 2006-08-22  Bruno Haible  <bruno@clisp.org>
55103
55104         * build-aux/x-to-1.in: New file, from GNU gettext.
55105
55106 2006-08-22  Bruno Haible  <bruno@clisp.org>
55107
55108         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55109         <utmpx.h> exists.
55110
55111 2006-08-22  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55114         <utmpx.h> exists.
55115
55116 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55117
55118         BeOS portability.
55119         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55120         exist.
55121         Problem reported by Bruno Haible.
55122
55123 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         Avoid the need for AC_LIBSOURCES in m4 macros.
55126         * modules/acl (EXTRA_DIST): Add acl.h.
55127         * modules/argmatch (Files): Add m4/argmatch.m4.
55128         (configure.ac): Add gl_ARGMATCH.
55129         (EXTRA_DIST): Renamed from lib_SOURCES, for
55130         consistency with the other modules.  Remove argmatch.c.
55131         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55132         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55133         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55134         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55135         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55136         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55137         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55138         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55139         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55140         * modules/closeout (EXTRA_DIST): Add closeout.h.
55141         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55142         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55143         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55144         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55145         dirname.h; remove basename.c and stripslash.c.
55146         * modules/exclude (EXTRA_DIST): Add exclude.h.
55147         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55148         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55149         * modules/file-type (EXTRA_DIST): Add file-type.h.
55150         * modules/filemode (EXTRA_DIST): Add filemode.h.
55151         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55152         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55153         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55154         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55155         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55156         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55157         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55158         * modules/getdate (EXTRA_DIST): Add getdate.c.
55159         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55160         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55161         * modules/getpass (EXTRA_DIST): Add getpass.h.
55162         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55163         * modules/group-member (EXTRA_DIST): Add group-member.h.
55164         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55165         * modules/hash (EXTRA_DIST): Add hash.h.
55166         * modules/human (EXTRA_DIST): Add human.h.
55167         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55168         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55169         * modules/lchown (EXTRA_DIST): Add lchown.h.
55170         * modules/long-options (EXTRA_DIST): Add long-options.h.
55171         * modules/lstat (EXTRA_DIST): Add lstat.h.
55172         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55173         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55174         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55175         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55176         * modules/memxor (EXTRA_DIST): Add memxor.h.
55177         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
55178         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
55179         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
55180         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
55181         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
55182         * modules/physmem (EXTRA_DIST): Add physmem.h.
55183         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
55184         * modules/posixver (EXTRA_DIST): Add posixver.h.
55185         * modules/quote (EXTRA_DIST): Add quote.h.
55186         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
55187         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
55188         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
55189         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
55190         regex_internal.h regexec.c.
55191         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
55192         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
55193         * modules/same (EXTRA_DIST): Add same.h.
55194         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
55195         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
55196         * modules/savedir (EXTRA_DIST): Add savedir.h.
55197         * modules/sha1 (EXTRA_DIST): Add sha1.h.
55198         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
55199         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
55200         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
55201         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
55202         * modules/strdup (EXTRA_DIST): Add strdup.h.
55203         * modules/strftime (EXTRA_DIST): Add strftime.h.
55204         * modules/strndup (EXTRA_DIST): Add strndup.h.
55205         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
55206         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
55207         * modules/time_r (EXTRA_DIST): Add time_r.h.
55208         * modules/timespec (EXTRA_DIST): Add timespec.h.
55209         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55210         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
55211         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
55212         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
55213         * modules/userspec (EXTRA_DIST): Add userspec.h.
55214         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
55215         * modules/utimens (EXTRA_DIST): Add utimens.h.
55216         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
55217         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
55218         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
55219         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
55220         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
55221         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
55222         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
55223         * modules/yesno (EXTRA_DIST): Add yesno.h.
55224
55225 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
55228
55229         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
55230         * m4/dev-ino.m4, same-inode.m4: Remove.
55231
55232         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
55233         * m4/acl.m4 (AC_FUNC_ACL):
55234         * m4/backupfile.m4 (gl_BACKUPFILE):
55235         * m4/c-strtod.m4 (gl_C99_STRTOLD):
55236         * m4/canon-host.m4 (gl_CANON_HOST):
55237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
55239         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
55240         * m4/cloexec.m4 (gl_CLOEXEC):
55241         * m4/close-stream.m4 (gl_CLOSE_STREAM):
55242         * m4/closeout.m4 (gl_CLOSEOUT):
55243         * m4/dirfd.m4 (gl_FUNC_DIRFD):
55244         * m4/dirname.m4 (gl_DIRNAME):
55245         * m4/exclude.m4 (gl_EXCLUDE):
55246         * m4/exitfail.m4 (gl_EXITFAIL):
55247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
55248         * m4/file-type.m4 (gl_FILE_TYPE):
55249         * m4/filemode.m4 (gl_FILEMODE):
55250         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
55251         * m4/fpending.m4 (gl_FUNC_FPENDING):
55252         * m4/fprintftime.m4 (gl_FPRINTFTIME):
55253         * m4/fts.m4 (gl_FUNC_FTS):
55254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
55255         * m4/getdate.m4 (gl_GETDATE):
55256         * m4/gethrxtime.m4 (gl_GETHRXTIME):
55257         * m4/getpagesize.m4 (gl_GETPAGESIZE):
55258         * m4/getpass.m4 (gl_FUNC_GETPASS):
55259         * m4/gettime.m4 (gl_GETTIME):
55260         * m4/getugroups.m4 (gl_GETUGROUPS):
55261         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
55262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
55263         * m4/hard-locale.m4 (gl_HARD_LOCALE):
55264         * m4/hash.m4 (gl_HASH):
55265         * m4/idcache.m4 (gl_IDCACHE):
55266         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
55267         * m4/lchown.m4 (gl_FUNC_LCHOWN):
55268         * m4/long-options.m4 (gl_LONG_OPTIONS):
55269         * m4/lstat.m4 (gl_FUNC_LSTAT):
55270         * m4/md5.m4 (gl_MD5):
55271         * m4/memcasecmp.m4 (gl_MEMCASECMP):
55272         * m4/memcoll.m4 (gl_MEMCOLL):
55273         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
55274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
55275         * m4/memxor.m4 (gl_MEMXOR):
55276         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
55277         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
55278         * m4/modechange.m4 (gl_MODECHANGE):
55279         * m4/mountlist.m4 (gl_MOUNTLIST):
55280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55281         * m4/openat.m4 (gl_FUNC_OPENAT):
55282         * m4/pathmax.m4 (gl_PATHMAX):
55283         * m4/physmem.m4 (gl_PHYSMEM):
55284         * m4/posixtm.m4 (gl_POSIXTM):
55285         * m4/posixver.m4 (gl_POSIXVER):
55286         * m4/quote.m4 (gl_QUOTE):
55287         * m4/quotearg.m4 (gl_QUOTEARG):
55288         * m4/readtokens.m4 (gl_READTOKENS):
55289         * m4/readutmp.m4 (gl_READUTMP):
55290         * m4/regex.m4 (gl_REGEX):
55291         * m4/safe-read.m4 (gl_SAFE_READ):
55292         * m4/safe-write.m4 (gl_SAFE_WRITE):
55293         * m4/same.m4 (gl_SAME):
55294         * m4/save-cwd.m4 (gl_SAVE_CWD):
55295         * m4/savedir.m4 (gl_SAVEDIR):
55296         * m4/settime.m4 (gl_SETTIME):
55297         * m4/sha1.m4 (gl_SHA1):
55298         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
55299         * m4/stat-macros.m4 (gl_STAT_MACROS):
55300         * m4/stat-time.m4 (gl_STAT_TIME):
55301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
55302         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
55303         * m4/strdup.m4 (gl_FUNC_STRDUP):
55304         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
55305         * m4/strndup.m4 (gl_FUNC_STRNDUP):
55306         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
55307         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
55308         * m4/time_r.m4 (gl_TIME_R):
55309         * m4/timespec.m4 (gl_TIMESPEC):
55310         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
55311         * m4/unlinkdir.m4 (gl_UNLINKDIR):
55312         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
55313         * m4/userspec.m4 (gl_USERSPEC):
55314         * m4/utimecmp.m4 (gl_UTIMECMP):
55315         * m4/utimens.m4 (gl_UTIMENS):
55316         * m4/xalloc.m4 (gl_XALLOC):
55317         * m4/xgetcwd.m4 (gl_XGETCWD):
55318         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
55319         * m4/xreadlink.m4 (gl_XREADLINK):
55320         * m4/xstrtod.m4 (gl_XSTRTOD):
55321         * m4/yesno.m4 (gl_YESNO):
55322         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55323         to get the necessary .h files and whatnot.
55324
55325 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
55326             Bruno Haible  <bruno@clisp.org>
55327
55328         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
55329         /bin/sh understanding of '!' conditional negation.
55330
55331 2006-08-21  Jim Meyering  <jim@meyering.net>
55332
55333         * modules/openat (Depends-on): Really alphabetize.
55334
55335         * modules/acl (Depends-on): Add error and quote.
55336
55337         * check-module (find_included_lib_files): Add at-func.c to the
55338         ok-to-include-more-than-once white list.
55339
55340         * modules/openat (Depends-on): Add lstat.  Alphabetize.
55341
55342 2006-08-21  Bruno Haible  <bruno@clisp.org>
55343
55344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55345         Emit a pkgdata_DATA variable only if some snippets add contents to it.
55346         Reported by Martin Lambers <marlam@marlam.de>.
55347
55348 2006-08-21  Bruno Haible  <bruno@clisp.org>
55349
55350         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
55351         specify an installation location, don't emit a noinst_LIBRARIES or
55352         noinst_LTLIBRARIES assignment.
55353
55354 2006-08-21  Bruno Haible  <bruno@clisp.org>
55355
55356         BeOS portability.
55357         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
55358         BeOS has mbrtowc() but no <wctype.h>.
55359
55360 2006-08-21  Bruno Haible  <bruno@clisp.org>
55361
55362         BeOS portability.
55363         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
55364         exist.
55365
55366 2006-08-21  Bruno Haible  <bruno@clisp.org>
55367
55368         BeOS portability.
55369         * lib/mbchar.h: Include <wctype.h> only if it exists.
55370
55371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         Remove files that are no longer needed by their respective modules.
55374         * m4/obstack.m4: Remove.
55375         * m4/strerror_r.m4: Remove.
55376         * m4/uint32_t.m4: Remove.
55377         * m4/uintptr_t.m4: Remove.
55378         * m4/ullong_max.m4: Remove.
55379         * m4/xstrtoimax.m4: Remove.
55380         * m4/xstrtoumax.m4: Remove.
55381
55382         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
55383         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
55384         dependencies now capture this.
55385
55386         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
55387         Do not use AC_LIBSOURCES, since gnulib modules now do this.
55388         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
55389         * m4/human.m4 (gl_HUMAN): Likewise.
55390         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
55391         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
55392
55393         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
55394
55395         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
55396         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
55397         stdint.
55398         * m4/human.m4 (gl_HUMAN): Likewise.
55399         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
55400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
55401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55403         * m4/xstrtol (gl_XSTRTOL): Likewise.
55404
55405         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
55406         AC_TYPE_LONG_LONG_INT.
55407         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55408         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
55409         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
55410         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55411
55412         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
55413         on stdbool.
55414
55415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
55416         (gl_PREREQ_XSTRTOUL): Remove.
55417
55418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
55419
55420         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
55421         mode.
55422
55423 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55424
55425         Add and change modules to make it easier for coreutils to use
55426         gnulib-tool.
55427         * modules/backupfile (Files): Remove m4/d-ino.m4.
55428         (Depends-on): Add d-ino.
55429         * modules/cycle-check (Depends-on): Add stdint.
55430         (lib_SOURCES): Add cycle-check.h.
55431         * modules/d-ino: New module.
55432         * modules/d-type: New module.
55433         * modules/error (Files): Remove m4/strerror_r.m4.
55434         * modules/filemode (Files): Add m4/st_dm_mode.m4.
55435         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55436         m4/inttypes_h.m4, m4/uintmax_t.m4.
55437         (Depends-on): Add stdint.
55438         (lib_SOURCES): Add fsusage.h.
55439         * modules/getcwd (Files): Remove d-ino.m4.
55440         (Depends-on): Add d-ino.
55441         * modules/getndelim2 (Depends-on): Add stdint.
55442         * modules/glob (Files): Remove m4/d-type.m4.
55443         (Depends-on): Add d-type.
55444         * modules/host-os: New module.
55445         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
55446         m4/inttypes_h.m4, m4/uintmax_t.m4.
55447         * Depends-on: Add stdint.
55448         (lib_SOURCES): Add human.h.
55449         * modules/inttostr (Files): Remove m4/intmax_t.m4,
55450         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
55451         m4/uintmax_t.m4, m4/ulonglong.m4.
55452         (Depends-on): Add stdint.
55453         (EXTRA_DIST): Add inttostr.h.
55454         * modules/lchmod: New module.
55455         * modules/link-follow: New module.
55456         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
55457         (Depends-on): Add lchmod.
55458         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
55459         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
55460         (Depends-on): Add stdint.
55461         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
55462         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
55463         (Depends-on): Add stdint.
55464         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
55465         * modules/perl: New module.
55466         * modules/regex (Depends-on): Add stdint.
55467         * modules/rmdir-errno: New module.
55468         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55469         m4/intmax_t.m4.
55470         (Depends-on): Add stdint.
55471         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55472         m4/uintmax_t.m4.
55473         (Depends-on): Add stdint.
55474         * modules/unlink-busy: New module.
55475         * modules/utimecmp (Depends-on): Add stdint.
55476         * modules/uptime: New module.
55477         * modules/winsz-ioctl: New module.
55478         * modules/winsz-termios: New module.
55479         * modules/xnanosleep (Depends-on): Add nanosleep.
55480         * modules/ullong_max: Remove.
55481         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
55482         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
55483         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
55484         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
55485         (Depends-on): Add inttypes.
55486         (lib_SOURCES): Add xstrtol.h.
55487         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
55488         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
55489         * MODULES.html.sh: Move 'assert' into the assert section.
55490         Move 'dummy' into the linking section.
55491         Remove ullong_max.
55492         Add section for compatibility checks for POSIX:2001 functions,
55493         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
55494         winsz-ioctl, and winsz-termios into it.
55495         Add lchmod.
55496         Add top-level Misc section and put host-os, perl, and uptime
55497         into it.
55498
55499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55502         now assume the stdint module.  Do not include inttypes.h.
55503         * lib/fsusage.h: Likewise.
55504         * lib/getndelim2.c: Likewise.
55505         * lib/human.h: Likewise.
55506         * lib/inttostr.h: Likewise.
55507         * lib/obstack.c: Likewise.
55508         * lib/regex_internal.h: Likewise.
55509         * lib/tempname.c: Likewise.
55510         * lib/utimecmp.c: Likewise.
55511         * lib/xstrtol.h: Likewise.
55512
55513         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55514
55515         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55516         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55517         * lib/xtime.h: Likewise.
55518
55519 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55520
55521         * modules/openat (Files): Add lib/fchmodat.c.
55522         Fixes problem reported by Jay Youngman.
55523
55524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55525
55526         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55527         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55528
55529 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55530             Bruno Haible  <bruno@clisp.org>
55531
55532         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55533         and is a script that invokes bison. Tighten the code. Add comments.
55534
55535 2006-08-18  Jim Meyering  <jim@meyering.net>
55536
55537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55538         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55539         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55540         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55541
55542 2006-08-18  Bruno Haible  <bruno@clisp.org>
55543
55544         * modules/bison-i18n: New file.
55545         * MODULES.html.sh (Internationalization functions): Add it.
55546
55547 2006-08-18  Bruno Haible  <bruno@clisp.org>
55548
55549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55550         sys/statvfs.h. When getmntinfo was found, check its declaration and
55551         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55552
55553 2006-08-18  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/bison-i18n.m4: New file, from bison.
55556
55557 2006-08-18  Bruno Haible  <bruno@clisp.org>
55558
55559         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55560         (ME_DUMMY): Treat "kernfs" as a dummy.
55561         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55562
55563 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         Update from coreutils.
55566
55567         2006-08-15  Jim Meyering  <jim@meyering.net>
55568
55569         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55570
55571         2006-01-17  Jim Meyering  <jim@meyering.net>
55572
55573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55574
55575         2006-01-11  Jim Meyering  <jim@meyering.net>
55576
55577         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55578         Check for the lchmod function.
55579
55580 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55581
55582         Update from coreutils.
55583
55584         * lib/__fpending.h: Add copyright notice.
55585         * lib/fprintftime.h: Likewise.
55586         * lib/savedir.c: Use (C) in copyright notice.
55587         * lib/savedir.h: Likewise.
55588
55589         2006-08-15  Jim Meyering  <jim@meyering.net>
55590
55591         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55592         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55593         in support of the EXPECTED_ERRNO macro.
55594         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55595         definitions.  Instead, define the appropriate symbols and include
55596         "at-func.c".
55597         * lib/mkdirat.c (mkdirat): Likewise.
55598         * lib/fchmodat.c (fchmodat): Likewise.
55599         (ENOSYS): Remove definition.
55600         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55601         it.  Don't include "unistd--.h" -- it wasn't ever used.
55602
55603         2006-01-17  Jim Meyering  <jim@meyering.net>
55604
55605         Rewrite fts.c not to change the current working directory,
55606         by using openat, fstatat, fdopendir, etc..
55607
55608         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55609         (HAVE_OPENAT_SUPPORT): Define.
55610         [_LIBC] (fchdir): Don't undef or define; no longer used.
55611         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55612         Now, this `function' always succeeds, and consumes its file descriptor
55613         parameter -- so callers must not close such FDs.  Update callers.
55614         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55615         (diropen): Add parameter, SP.  Adjust all callers.
55616         Implement using diropen_fd, rather than open.
55617         (fts_open): Initialize new member, fts_cwd_fd.
55618         Remove fts_rft-setting code.
55619         (fts_close): Close fts_cwd_fd, if necessary.
55620         (__opendir2): Define in terms of opendir or opendirat,
55621         depending on whether the FST_NOCHDIR flag is set.
55622         (fts_build): Since fts_safe_changedir consumes its FD, and since
55623         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55624         and close the dup'd file descriptor upon failure.
55625         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55626         (fts_safe_changedir): Tweak semantics to reflect that this function
55627         now calls cwd_advance_fd and hence consumes its FD argument.
55628         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55629         [struct FTS] (fts_rft): Remove now-unused member.
55630         [struct FTS] (fts_cycle.state): Improve comment.
55631
55632         * lib/openat.c (openat_needs_fchdir): New function.
55633         * lib/openat.h (openat_needs_fchdir): Declare it.
55634
55635 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55636
55637         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55638         Problem and fix reported by Pádraig Brady in
55639         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55640
55641 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55644
55645 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * lib/memcoll.c (memcoll): Optimize for the common case where the
55648         arguments are bytewise equal.
55649
55650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         * doc/regexprops-generic.texi: Add a copyright notice.
55653
55654 2006-08-15  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/tmpdir (License): Change to LGPL.
55657
55658 2006-08-15  Bruno Haible  <bruno@clisp.org>
55659
55660         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55661         module.
55662
55663 2006-08-14  Simon Josefsson  <jas@extundo.com>
55664
55665         * config/srclist.txt: Add gnupload.
55666
55667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         Change copyright notice from LGPL 2 to GPL 2, since that's the
55670         standard form used in the gnulib repository.
55671         * tests/test-lock.c: Likewise.
55672         * tests/test-stdint.c: Likewise.
55673         * tests/test-tls.c: Likewise.
55674
55675         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55676         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55677         Add copyright notice.
55678
55679         * check-module: Add copyright notice.  Output a copyright
55680         notice if "--version" is specified.
55681         * modules/COPYING: New file.
55682         * tests/test-getaddrinfo.c: Add copyright notice.
55683         * tests/test-verify.c: Likewise.
55684
55685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         Change copyright notice from LGPL 2 to GPL 2, since that's the
55688         standard form used in the gnulib repository.
55689         * lib/lock.c: LGPL -> GPL.
55690         * lib/lock.h: Likewise.
55691         * lib/strnlen1.c: Likewise.
55692         * lib/strnlen1.h: Likewise.
55693         * lib/tls.c: Likewise.
55694         * lib/tls.h: Likewise.
55695         * lib/tmpdir.c: Likewise.
55696
55697         * lib/TODO: Remove; this belongs only in coreutils.
55698
55699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         Add copyright notices to long-enough files that lack them, since
55702         otherwise the files aren't clearly free.  Use the same notice that
55703         getdate.texi already uses.
55704         * doc/alloca-opt.texi: Add copyright notice.
55705         * doc/alloca.texi: Likewise.
55706         * doc/ctime.texi: Likewise.
55707         * doc/functions.texi: Likewise.
55708         * doc/gcd.texi: Likewise.
55709         * doc/gnulib-tool.texi: Likewise.
55710         * doc/inet_ntoa.texi: Likewise.
55711         * doc/visibility.texi: Likewise.
55712
55713         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55714         * doc/quote.texi: Add copyright notice.
55715
55716         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55717         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55718         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55719         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55720         is now obsolete, and give a pointer to the Sun list.
55721         Add copyright notice.
55722
55723 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * config/srclistvars.sh: Add copyright notice.
55726
55727 2006-08-14  Eric Blake  <ebb9@byu.net>
55728
55729         Import the following change from libc:
55730
55731         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55732
55733         Upstream bug 2997.
55734         * lib/misc/error.c: Add space between program name and message if file
55735         name is missing.
55736
55737 2006-08-12  Karl Berry  <karl@gnu.org>
55738
55739         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55740         remove, these originate in gnulib now.
55741
55742 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55743
55744         * doc/Makefile (standards.info standards.html standards.dvi):
55745         Also depend on make-stds.texi.
55746
55747 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55750         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55751
55752         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55753         in wchar_t.  Problem reported by Eric Blake.
55754
55755         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55756         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55757         Also, help the compiler to keep LEN in a register.
55758
55759 2006-08-11  Eric Blake  <ebb9@byu.net>
55760
55761         * users.txt: Sort.  Add tar.
55762
55763 2006-08-11  Bruno Haible  <bruno@clisp.org>
55764
55765         * users.txt: New file.
55766
55767 2006-08-11  Bruno Haible  <bruno@clisp.org>
55768
55769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55770         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55771
55772 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * modules/snprintf (Depends-on): Remove minmax.
55775         (Maintainer): Add self and Bruno.
55776
55777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55778
55779         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55780         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55781         (EOVERFLOW): Define if the system does not.
55782         Do not include "minmax.h"; it wasn't used.
55783         (snprintf): Don't assume size_t promotes to an unsigned type.
55784         Fix bug when generated string was too long for the buffer: the
55785         buffer's contents are supposed to be the initial prefix of the
55786         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55787         exceeds INT_MAX; do the check ourselves.
55788
55789         Import the following changes from libc:
55790
55791         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55792
55793         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55794         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55795         set wc to the byte which couldn't be converted.
55796         (re_string_reconstruct): Don't clear valid_raw_len before calling
55797         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55798         tip_context using re_string_context_at.
55799
55800         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55801
55802         * lib/posix/regex.h: g++ still cannot handled [restrict].
55803
55804         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55805
55806         * lib/posix/regex.h: Remove special handling for VMS.
55807
55808 2006-08-10  Jim Meyering  <jim@meyering.net>
55809
55810         * modules/same-inode: New module.
55811         * modules/dev-ino: New module.
55812         * modules/cycle-check: Depend on these modules, rather than simply
55813         including their .h files.
55814         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55815         required via m4/cycle-check.m4.
55816         * modules/same: Depend on new same-inode module, rather than
55817         including same-inode.h.
55818         * modules/chdir-safer: New file.
55819
55820         * modules/chown (Depends-on): Add stat-macros.
55821
55822 2006-08-10  Jim Meyering  <jim@meyering.net>
55823
55824         * m4/cycle-check.m4: New file.
55825         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55826         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55827
55828 2006-08-10  Eric Blake  <ebb9@byu.net>
55829
55830         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55831         in from original proposal.
55832
55833 2006-08-10  Eric Blake  <ebb9@byu.net>
55834         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55835
55836         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55837         namespace.
55838
55839 2006-08-10  Bruno Haible  <bruno@clisp.org>
55840
55841         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55842         as well.
55843
55844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         Sync from coreutils.
55847
55848         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55849
55850         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55851         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55852
55853 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * modules/restrict: Remove; no longer needed now that we assume
55856         Autoconf 2.59 or later.
55857         * MODULES.html.sh: Remove 'restrict'.
55858         * modules/argp (Depends-on): Remove 'restrict'.
55859         * modules/base64 (Depends-on): Likewise.
55860         * modules/gc (Depends-on): Likewise.
55861         * modules/getaddrinfo (Depends-on): Likewise.
55862         * modules/glob (Depends-on): Likewise.
55863         * modules/inet_ntop (Depends-on): Likewise.
55864         * modules/inet_pton (Depends-on): Likewise.
55865         * modules/memxor (Depends-on): Likewise.
55866         * modules/regex (Depends-on): Likewise.
55867         * modules/strtok_r (Depends-on): Likewise.
55868         * modules/time_r (Depends-on): Likewise.
55869
55870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55871
55872         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55873         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55875         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55876         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55877         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55878         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55879         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55880
55881         Merge from coreutils.
55882         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55883         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55885         * m4/time_r.m4 (gl_TIME_R): Likewise.
55886
55887 2006-08-09  Karl Berry  <karl@gnu.org>
55888
55889         * config/srclist.txt: no more gettext-tools, per Bruno.
55890
55891 2006-08-08  Eric Blake  <ebb9@byu.net>
55892
55893         * modules/verror: New module.
55894         * MODULES.html.sh: Document it.
55895
55896 2006-08-08  Eric Blake  <ebb9@byu.net>
55897
55898         * lib/verror.h, lib/verror.c: New files.
55899
55900 2006-08-08  Eric Blake  <ebb9@byu.net>
55901
55902         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55903         verror_at_line output complies with GNU Coding Standards even when
55904         file is NULL.
55905
55906 2006-08-07  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55909         versions of AIX.
55910         Reported by Ralf Wildenhues.
55911
55912 2006-08-07  Bruno Haible  <bruno@clisp.org>
55913
55914         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55915         in an AC_DEFUN. Needed so that the autoconf snippets can use
55916         AC_REQUIRE.
55917
55918 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55919
55920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55921         Initialize pkgdata_DATA.
55922         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55923         overriding it.
55924
55925 2006-08-06  Eric Blake  <ebb9@byu.net>
55926
55927         * lib/error.h: Fold in some upstream changes from glibc.
55928         * lib/error.c: Likewise.
55929
55930 2006-08-04  Bruno Haible  <bruno@clisp.org>
55931
55932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55933         Make the mostlyclean-local rule depend on mostlyclean-generic.
55934         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
55935
55936 2006-07-31  Bruno Haible  <bruno@clisp.org>
55937
55938         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
55939         <stdlib.h>, <string.h>.
55940
55941 2006-07-30  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/readlink (License): Change to LGPL.
55944
55945 2006-07-30  Bruno Haible  <bruno@clisp.org>
55946
55947         * modules/javaversion (Makefile.am): Distribute javaversion.java and
55948         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
55949         set PKGDATADIR to point to it.
55950
55951 2006-07-30  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/csharpexec (configure.ac): Comment out macro invocation.
55954         * modules/javaexec (configure.ac): Likewise.
55955         * modules/javacomp-script (configure.ac): Likewise.
55956
55957         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
55958
55959 2006-07-30  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
55962         linked-list.
55963
55964 2006-07-30  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
55967
55968 2006-07-30  Bruno Haible  <bruno@clisp.org>
55969
55970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55971         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
55972         get removed.
55973
55974 2006-07-29  Bruno Haible  <bruno@clisp.org>
55975
55976         Make it possible for gnulib-tool to work with locally modified or
55977         augmented gnulib repositories.
55978         * gnulib-tool (func_usage): Document --local-dir option.
55979         (local_gnulib_dir): New variable.
55980         Handle --local-dir option.
55981         (func_lookup_file): New function.
55982         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55983         (func_get_description, func_get_filelist, func_get_description,
55984         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55985         func_get_automake_snippet, func_get_include_directive,
55986         func_get_license, func_get_maintainer): Use func_lookup_file.
55987         (func_import, func_create_testdir): Use func_lookup_file.
55988
55989 2006-07-29  Bruno Haible  <bruno@clisp.org>
55990
55991         * modules/setenv (Depends-on): Add unistd.
55992
55993 2006-07-29  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55996
55997 2006-07-29  Bruno Haible  <bruno@clisp.org>
55998
55999         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
56000
56001 2006-07-29  Bruno Haible  <bruno@clisp.org>
56002
56003         * gnulib-tool (import, update): If there is no Makefile.am, look at
56004         aclocal.m4, instead of bailing out.
56005
56006 2006-07-29  Bruno Haible  <bruno@clisp.org>
56007
56008         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
56009         Categorize the options by when they are useful.
56010
56011 2006-07-29  Bruno Haible  <bruno@clisp.org>
56012
56013         * gnulib-tool (func_usage): Document option --no-libtool.
56014         Handle option --no-libtool.
56015         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
56016         for changed semantics of $libtool variable.
56017         (func_import): Likewise. If libtool is not used, show this through
56018         an option --no-libtool.
56019         (func_create_testdir): Update.
56020
56021 2006-07-29  Bruno Haible  <bruno@clisp.org>
56022
56023         * gnulib-tool (func_import): Extend error message about missing
56024         --doc-base.
56025
56026 2006-07-29  Bruno Haible  <bruno@clisp.org>
56027
56028         * gnulib-tool (func_import): Don't create the $docbase directory if
56029         there is no file to store there.
56030
56031 2006-07-29  Bruno Haible  <bruno@clisp.org>
56032
56033         * gnulib-tool (autoconf_minversion): If a --dir option is given and
56034         relevant, look for configure.ac there, not in the current directory.
56035         Also use a simple search for AC_PREREQ, not "autoconf --trace".
56036
56037 2006-07-29  Bruno Haible  <bruno@clisp.org>
56038
56039         * gnulib-tool (SORT): New variable.
56040         (func_usage): Undocument --assume-autoconf option.
56041         Remove --assume-autoconf option handling.
56042         (autoconf_minversion): Determine from the contents of configure.ac.
56043         (func_import): Remove autoconf_minversion handling.
56044         Suggested by Eric Blake.
56045
56046 2006-07-29  Bruno Haible  <bruno@clisp.org>
56047
56048         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
56049
56050 2006-07-29  Bruno Haible  <bruno@clisp.org>
56051
56052         * config/srclist.txt (*setenv.[ch]): Remove rules.
56053
56054 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56055
56056         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
56057
56058 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56059
56060         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
56061         arpa/inet.h.
56062
56063 2006-07-28  Simon Josefsson  <jas@extundo.com>
56064
56065         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
56066         * modules/inet_pton (Depends-on): Likewise.
56067
56068 2006-07-28  Simon Josefsson  <jas@extundo.com>
56069
56070         * m4/netinet_in_h.m4: New file.
56071
56072 2006-07-28  Simon Josefsson  <jas@extundo.com>
56073
56074         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
56075         #include's.
56076
56077 2006-07-28  Simon Josefsson  <jas@extundo.com>
56078
56079         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
56080         #include's.
56081
56082 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
56083
56084         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
56085         setgid on directories only if they set these bits.
56086         * lib/modechange.h: Remove obsolete comment about masks.
56087
56088 2006-07-28  Eric Blake  <ebb9@byu.net>
56089
56090         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
56091         macro expansion.
56092
56093 2006-07-28  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
56096
56097 2006-07-28  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
56100
56101 2006-07-28  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56105         Define fallbacks.
56106         Avoids link error on FreeBSD 4.x.
56107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56108
56109         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56110         encoding.
56111         * lib/mbswidth.c (iswcntrl): Likewise.
56112
56113 2006-07-27  Bruno Haible  <bruno@clisp.org>
56114
56115         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56116         test.
56117
56118 2006-07-27  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56121         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56122         defined.
56123
56124 2006-07-26  Eric Blake  <ebb9@byu.net>
56125
56126         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56127
56128 2006-07-26  Eric Blake  <ebb9@byu.net>
56129
56130         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56131         like mingw that lack mkstemp.
56132         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56133         avoid compilation warning on mingw.
56134
56135 2006-07-26  Bruno Haible  <bruno@clisp.org>
56136
56137         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56138         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56139         INT_FAST*_MIN, INTPTR_MIN.
56140
56141 2006-07-25  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/version-etc (Depends-on): Add stdarg.
56144
56145 2006-07-25  Bruno Haible  <bruno@clisp.org>
56146
56147         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56148         complex commands.
56149
56150 2006-07-25  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56153         defined in <stdarg.h> or config.h.
56154
56155 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56156
56157         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56158         (gl_STDIO_SAFER): Remove.
56159
56160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56161
56162         * MODULES.html.sh (File stream based Input/Output):
56163         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56164         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56165         * modules/fopen-safer, modules/tmpfile-safer: New files.
56166         * modules/stdio-safer: Remove.
56167
56168 2006-07-24  Bruno Haible  <bruno@clisp.org>
56169
56170         * modules/tmpdir: New file.
56171         * MODULES.html.sh (File system functions): Add it.
56172
56173 2006-07-24  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56176         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
56177
56178 2006-07-24  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/clean-temp: New file.
56181
56182 2006-07-24  Bruno Haible  <bruno@clisp.org>
56183
56184         * m4/tmpdir.m4: New file, from GNU gettext.
56185
56186 2006-07-24  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/tmpdir.h: New file, from GNU gettext.
56189         * lib/tmpdir.c: New file, from GNU gettext.
56190
56191 2006-07-24  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/clean-temp.h: New file, from GNU gettext.
56194         * lib/clean-temp.c: New file, from GNU gettext.
56195
56196 2006-07-23  Eric Blake  <ebb9@byu.net>
56197
56198         * modules/stdio-safer (Files): Add tmpfile-safer.c.
56199         (Depends-on): Add binary-io.
56200
56201 2006-07-23  Eric Blake  <ebb9@byu.net>
56202
56203         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
56204
56205 2006-07-23  Eric Blake  <ebb9@byu.net>
56206
56207         * lib/tmpfile-safer.c: New file.
56208         * lib/stdio-safer.h (fopen_safer): Add prototype.
56209         * lib/stdio--.h (tmpfile): Make safer.
56210
56211 2006-07-23  Bruno Haible  <bruno@clisp.org>
56212
56213         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
56214         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
56215         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
56216         gl_linked_remove_at): Use it.
56217
56218 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56219         and Simon Josefsson <jas@extundo.com>
56220
56221         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
56222
56223         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
56224
56225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * modules/close-stream: New file.
56228         * modules/closeout (Description): Make it clear that it exits
56229         with a diagnostic on error.
56230         (Depends-on): Add close-stream.  Remove fpending, stdbool.
56231         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
56232
56233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56234
56235         * m4/close-stream.m4: New file.
56236
56237 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * lib/close-stream.c, lib/close-stream.h: New files.
56240
56241 2006-07-22  Bruno Haible  <bruno@clisp.org>
56242
56243         Merge from GNU gettext 0.15.
56244
56245         2006-05-01  Bruno Haible  <bruno@clisp.org>
56246
56247                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
56248
56249         2006-07-22  Bruno Haible  <bruno@clisp.org>
56250
56251                 * modules/javaversion: New file.
56252                 * MODULES.html.sh (Java): Add javaversion.
56253
56254         2006-03-12  Bruno Haible  <bruno@clisp.org>
56255
56256                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
56257
56258         2005-12-04  Bruno Haible  <bruno@clisp.org>
56259
56260                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
56261                 (untested).
56262
56263         2006-06-21  Bruno Haible  <bruno@clisp.org>
56264
56265                 Avoid warnings from recent versions of mcs.
56266                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
56267                 -o, -L, -r any more. Use options documented since mcs-1.0
56268                 instead. Similarly for -g.
56269
56270         2005-12-04  Bruno Haible  <bruno@clisp.org>
56271
56272                 * build-aux/csharpcomp.sh.in: Suffix for resources is
56273                 .resources, not .resource.
56274
56275         2005-07-09  Bruno Haible  <bruno@clisp.org>
56276
56277                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
56278                 add a .dll suffix.
56279                 Reported by Mark Junker <mjscod@gmx.de>.
56280
56281         2006-07-22  Bruno Haible  <bruno@clisp.org>
56282
56283                 * modules/gettext: Upgrade to gettext-0.15.
56284                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
56285                 m4/visibility.m4.
56286                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
56287
56288 2006-07-22  Bruno Haible  <bruno@clisp.org>
56289
56290         Merge from GNU gettext 0.15.
56291
56292         2006-03-25  Bruno Haible  <bruno@clisp.org>
56293
56294                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
56295
56296         2006-07-21  Bruno Haible  <bruno@clisp.org>
56297
56298                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
56299                 "1.1".
56300
56301         2006-05-09  Bruno Haible  <bruno@clisp.org>
56302
56303                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
56304                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
56305                 for the conftestver execution.
56306
56307         2006-05-01  Bruno Haible  <bruno@clisp.org>
56308
56309                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
56310                 optional target-version argument. Verify that the compiler
56311                 groks source of the specified source-version, or add -source
56312                 option as necessary. Verify that the compiler produces
56313                 bytecode in the specified target-version, or add -target and
56314                 -source options as necessary. Make the result of the test
56315                 available as variable CONF_JAVAC. Also log error output in
56316                 config.log.
56317
56318         2006-03-11  Bruno Haible  <bruno@clisp.org>
56319
56320                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
56321
56322         2006-05-09  Bruno Haible  <bruno@clisp.org>
56323
56324                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
56325                 CLASSPATH_SEPARATOR to a semicolon.
56326
56327         2006-03-12  Bruno Haible  <bruno@clisp.org>
56328
56329                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
56330                 available as variable CONF_JAVA, for subsequent autoconf
56331                 tests. Also log error output in config.log.
56332
56333         2006-07-19  Bruno Haible  <bruno@clisp.org>
56334
56335                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
56336                 that getline works on glibc2 systems. Needed to avoid trouble
56337                 in relocatable.c.
56338                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
56339
56340         2005-12-04  Bruno Haible  <bruno@clisp.org>
56341
56342                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
56343                 launcher (untested).
56344
56345         2005-12-04  Bruno Haible  <bruno@clisp.org>
56346
56347                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
56348
56349         2006-07-22  Bruno Haible  <bruno@clisp.org>
56350
56351                 * gettext.m4: Update from GNU gettext-0.15.
56352                 * nls.m4: Likewise.
56353                 * po.m4: Likewise.
56354                 * inttypes-pri.m4: Likewise.
56355                 * inttypes-h.m4: Renamed from inttypes.m4.
56356                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
56357
56358 2006-07-22  Bruno Haible  <bruno@clisp.org>
56359
56360         Merge from GNU gettext 0.15.
56361
56362         2005-07-05  Bruno Haible  <bruno@clisp.org>
56363
56364                 * printf-args.c (printf_fetchargs): Work around broken
56365                 definition of wint_t on mingw.
56366
56367         2005-02-12  Bruno Haible  <bruno@clisp.org>
56368
56369                 * xallocsa.h: Add extern "C" for C++.
56370
56371         2006-05-17  Bruno Haible  <bruno@clisp.org>
56372
56373                 Cygwin portability.
56374                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
56375
56376         2006-04-30  Bruno Haible  <bruno@clisp.org>
56377
56378                 * progreloc.c: Include <mach-o/dyld.h> if available.
56379                 (find_executable): Use _NSGetExecutablePath when possible.
56380
56381         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56382
56383                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
56384                 function.
56385
56386         2005-12-29  Bruno Haible  <bruno@clisp.org>
56387
56388                 * progreloc.c (set_program_name_and_installdir): Fix
56389                 compilation error.
56390
56391         2005-12-04  Bruno Haible  <bruno@clisp.org>
56392
56393                 Cygwin portability.
56394                 * progreloc.c: Include <windows.h> also on Cygwin.
56395                 (find_executable): Add support for Cygwin.
56396                 (set_program_name_and_installdir): Handle also platforms with
56397                 nonempty EXEEXT.
56398
56399         2006-07-11  Bruno Haible  <bruno@clisp.org>
56400
56401                 * javacomp.c: Fix a comment.
56402                 Reported by Jim Meyering.
56403
56404         2006-04-30  Bruno Haible  <bruno@clisp.org>
56405
56406                 * javacomp.h (compile_java_class): Add source_version,
56407                 target_version arguments.
56408                 * javacomp.c: Rewritten to choose only a compiler that
56409                 respects the specified source_version and target_version.
56410
56411         2006-06-27  Bruno Haible  <bruno@clisp.org>
56412
56413                 Assume correct S_ISDIR macro.
56414                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
56415
56416         2006-07-22  Bruno Haible  <bruno@clisp.org>
56417
56418                 * javaversion.h: New file, from GNU gettext.
56419                 * javaversion.c: New file, from GNU gettext.
56420                 * javaversion.java: New file, from GNU gettext.
56421                 * javaversion.class: New file, from GNU gettext.
56422
56423         2006-05-17  Bruno Haible  <bruno@clisp.org>
56424
56425                 Cygwin portability.
56426                 * javaexec.c (execute_java_class): Test for jview program
56427                 also on Cygwin.
56428
56429         2006-04-09  Bruno Haible  <bruno@clisp.org>
56430
56431                 * fatal-signal.c: Don't include string.h.
56432                 (at_fatal_signal): Use a copying loop instead of memcpy.
56433
56434         2005-12-04  Bruno Haible  <bruno@clisp.org>
56435
56436                 * csharpexec.c: Add support for 'clix' launcher (untested).
56437                 (execute_csharp_using_sscli): New function.
56438                 (execute_csharp_program): Call it.
56439
56440         2006-06-21  Bruno Haible  <bruno@clisp.org>
56441
56442                 Avoid warnings from recent versions of mcs.
56443                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
56444                 -o, -L, -r any more. Use options documented since mcs-1.0
56445                 instead. Similarly for -g.
56446
56447         2005-07-09  Bruno Haible  <bruno@clisp.org>
56448
56449                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
56450                 add a .dll suffix.
56451                 Reported by Mark Junker <mjscod@gmx.de>.
56452
56453         2006-06-17  Bruno Haible  <bruno@clisp.org>
56454
56455                 * config.charset: Update for NetBSD 3.0.
56456
56457         2006-05-17  Bruno Haible  <bruno@clisp.org>
56458
56459                 Cygwin portability.
56460                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
56461
56462         2006-05-16  Bruno Haible  <bruno@clisp.org>
56463
56464                 * localcharset.c [CYGWIN]: Include <windows.h>.
56465                 (get_charset_aliases): For Cygwin, return the same CPxxx
56466                 aliases list as under WIN32.
56467                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
56468                 the environment variables. Fall back to GetACP().
56469
56470         2006-04-05  Bruno Haible  <bruno@clisp.org>
56471
56472                 * config.charset: Update Juan Manuel Guerrero's address.
56473
56474         2005-02-12  Bruno Haible  <bruno@clisp.org>
56475
56476                 * allocsa.h: Add extern "C" for C++.
56477
56478         2005-02-10  Bruno Haible  <bruno@clisp.org>
56479
56480                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
56481                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
56482
56483         2006-07-22  Bruno Haible  <bruno@clisp.org>
56484
56485                 * gettext.h: Update to GNU gettext-0.15.
56486
56487 2006-07-22  Bruno Haible  <bruno@clisp.org>
56488
56489         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
56490         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
56491         lib-prefix.m4, longdouble.m4, ssize_t.m4.
56492
56493 2006-07-21  Eric Blake  <ebb9@byu.net>
56494
56495         * modules/stdlib-safer: New file.
56496         * MODULES.html.sh (File stream based Input/Output): Add
56497         stdlib-safer.
56498
56499 2006-07-21  Eric Blake  <ebb9@byu.net>
56500
56501         * lib/stdlib-safer.h: New file from coreutils, required by
56502         stdlib--.h.
56503
56504 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56505
56506         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56507
56508 2006-07-20  Bruno Haible  <bruno@clisp.org>
56509
56510         * gnulib-tool: Recognize new option --assume-autoconf.
56511         (autoconf_minversion): New variable.
56512         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56513
56514 2006-07-20  Bruno Haible  <bruno@clisp.org>
56515
56516         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56517
56518 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56519
56520         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56521         Reindent and repaginate.
56522
56523 2006-07-19  Derek Price  <derek@ximbiot.com>
56524
56525         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56526         Correct grammar.
56527
56528 2006-07-17  Bruno Haible  <bruno@clisp.org>
56529
56530         * modules/list: New file.
56531         * modules/array-list: New file.
56532         * modules/carray-list, modules/carray-list-tests: New files.
56533         * modules/linked-list, modules/linked-list-tests: New files.
56534         * modules/avltree-list, modules/avltree-list-tests: New files.
56535         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56536         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56537         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56538         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56539         * modules/oset: New file.
56540         * modules/array-oset: New file.
56541         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56542         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56543         * tests/test-carray_list.c: New file.
56544         * tests/test-linked_list.c: New file.
56545         * tests/test-avltree_list.c: New file.
56546         * tests/test-rbtree_list.c: New file.
56547         * tests/test-linkedhash_list.c: New file.
56548         * tests/test-avltreehash_list.c: New file.
56549         * tests/test-rbtreehash_list.c: New file.
56550         * tests/test-avltree_oset.c: New file.
56551         * tests/test-rbtree_oset.c: New file.
56552         * MODULES.html.sh (Container data structures): New section.
56553
56554 2006-07-17  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/gl_list.m4: New file.
56557
56558 2006-07-17  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/gl_list.h: New file.
56561         * lib/gl_list.c: New file.
56562         * lib/gl_array_list.h: New file.
56563         * lib/gl_array_list.c: New file.
56564         * lib/gl_carray_list.h: New file.
56565         * lib/gl_carray_list.c: New file.
56566         * lib/gl_linked_list.h: New file.
56567         * lib/gl_linked_list.c: New file.
56568         * lib/gl_anylinked_list1.h: New file.
56569         * lib/gl_anylinked_list2.h: New file.
56570         * lib/gl_avltree_list.h: New file.
56571         * lib/gl_avltree_list.c: New file.
56572         * lib/gl_anyavltree_list1.h: New file.
56573         * lib/gl_anyavltree_list2.h: New file.
56574         * lib/gl_rbtree_list.h: New file.
56575         * lib/gl_rbtree_list.c: New file.
56576         * lib/gl_anyrbtree_list1.h: New file.
56577         * lib/gl_anyrbtree_list2.h: New file.
56578         * lib/gl_anytree_list1.h: New file.
56579         * lib/gl_anytree_list2.h: New file.
56580         * lib/gl_linkedhash_list.h: New file.
56581         * lib/gl_linkedhash_list.c: New file.
56582         * lib/gl_anyhash_list1.h: New file.
56583         * lib/gl_anyhash_list2.h: New file.
56584         * lib/gl_avltreehash_list.h: New file.
56585         * lib/gl_avltreehash_list.c: New file.
56586         * lib/gl_rbtreehash_list.h: New file.
56587         * lib/gl_rbtreehash_list.c: New file.
56588         * lib/gl_anytreehash_list1.h: New file.
56589         * lib/gl_anytreehash_list2.h: New file.
56590
56591         * lib/gl_oset.h: New file.
56592         * lib/gl_oset.c: New file.
56593         * lib/gl_array_oset.h: New file.
56594         * lib/gl_array_oset.c: New file.
56595         * lib/gl_avltree_oset.h: New file.
56596         * lib/gl_avltree_oset.c: New file.
56597         * lib/gl_rbtree_oset.h: New file.
56598         * lib/gl_rbtree_oset.c: New file.
56599         * lib/gl_anytree_oset.h: New file.
56600
56601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         * m4/mkancesdirs.m4: New file.
56604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56605         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56606         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56607         it.
56608
56609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56610
56611         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56612         * lib/mkancesdirs.h: New files.
56613         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56614         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56615         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56616         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56617         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56618         callers changed.  Revamp internals significantly, by not
56619         attempting to create directories that are temporarily more
56620         permissive than the final results.  Do not attempt to use
56621         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56622         This removes some race conditions, fixes some bugs, and simplifies
56623         things.  Use new dirchownmod function to do owner and mode changes.
56624         * lib/mkdir-p.h: Likewise.
56625         * lib/modechange.c (octal_to_mode): New function.
56626         (struct mode_change): New member mentioned.
56627         (make_node_op_equals): New arg mentioned.  All callers changed.
56628         (mode_compile): Keep track of which mode bits the user has explicitly
56629         mentioned.
56630         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56631         New arg PMODE_BITS, to keep track of which mode bits the user
56632         mentioned; it treats S_ISUID and S_ISGID speciall.
56633         All callers changed.
56634         * lib/modechange.h: Likewise.
56635
56636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         * MODULES.html.sh: Add mkancestors.
56639         * modules/mkancesdirs: New module.
56640         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56641         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56642         The chdir-safer and afs files are now orphans; I'll remove them
56643         unless someone speaks up.
56644         Add lib/dirchownmod.c, lib/dirchownmod.h.
56645         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56646         Add lchown, mkancesdirs.
56647         (Maintainer): Add self.
56648
56649 2006-07-15  Karl Berry  <karl@gnu.org>
56650
56651         * gnulib-tool: help message wording/arrangement.
56652
56653 2006-07-14  Simon Josefsson  <jas@extundo.com>
56654
56655         * doc/gnulib.texi (Libtool and Windows): New section.
56656
56657 2006-07-12  Simon Josefsson  <jas@extundo.com>
56658
56659         * modules/gendocs (License): Fix license, approved by Karl.
56660
56661 2006-07-12  Eric Blake  <ebb9@byu.net>
56662
56663         * MODULES.html.sh: Add gendocs.
56664
56665 2006-07-11  Eric Blake  <ebb9@byu.net>
56666
56667         * modules/fdl: New module, to install doc/fdl.texi.
56668         * MODULES.html.sh: Add new section for documentation modules.
56669         * gnulib-tool: Avoid space-tab.
56670         (--doc-base): New option, to manage files from doc.
56671
56672 2006-07-11  Eric Blake  <ebb9@byu.net>
56673
56674         * m4/absolute-header.m4: Fix comments to match recent change.
56675
56676 2006-07-11  Eric Blake  <ebb9@byu.net>
56677
56678         * gnulib-tool: List --doc-base before --tests-base.
56679
56680 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56681
56682         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56683
56684 2006-07-11  Bruno Haible  <bruno@clisp.org>
56685
56686         * README: Mention where to put documentation.
56687
56688 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56689
56690         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56691
56692 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56693
56694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56695         to stdint.m4.
56696
56697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56700         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56701         "no/such/file/stdint.h" when there is no such file, so that
56702         the resulting C code can be parsed by dodgy compilers.
56703         Problems reported by Bob Proulx.
56704
56705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56706
56707         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56708         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56709         macros into the GNU _D_EXACT_NAMLEN.
56710         * lib/savedir.c:  Likewise.
56711         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56712
56713 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56714         and Paul Eggert  <eggert@cs.ucla.edu>
56715
56716         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56717         * m4/savedir.m4:
56718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56719         macros into the GNU _D_EXACT_NAMLEN.
56720
56721 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56722
56723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56724         around the absolute name, to work around a problem with the HP-UX
56725         11.23 native C compiler, reported by Bob Proulx.
56726
56727 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56728
56729         * doc/maintain.texi, make-stds.texi: Sync from
56730         <http://savannah.gnu.org/projects/gnustandards>.
56731
56732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56735
56736 2006-07-09  Jim Meyering  <jim@meyering.net>
56737
56738         * m4/glob.m4: Remove a doubled word in a comment.
56739
56740 2006-07-09  Jim Meyering  <jim@meyering.net>
56741
56742         * lib/argp-pv.c: Remove a doubled word in a comment.
56743         * lib/check-version.c (check_version): Likewise.
56744         * lib/javacomp.c (compile_java_class): Likewise.
56745
56746 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56747
56748         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56749         for the benefit of people using Autoconf 2.60.  If you want to
56750         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56751         (or m4/onceonly.m4, if pre-2.57) manually.
56752
56753 2006-07-08  Jim Meyering  <jim@meyering.net>
56754
56755         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56756         comment.
56757         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56758         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56759         comment.
56760
56761 2006-07-08  Jim Meyering  <jim@meyering.net>
56762
56763         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56764
56765 2006-07-07  Simon Josefsson  <jas@extundo.com>
56766
56767         * tests/test-crc.c: Change expected crc value, the test vector
56768         were probably computed using the old broken crc.c?
56769
56770 2006-07-06  Simon Josefsson  <jas@extundo.com>
56771
56772         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56773         now the canonical place for the M4 file).
56774
56775         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56776         from the sys_socket dependency now.
56777
56778         * modules/inet_pton (Files): Ditto.
56779
56780         * modules/inet_ntop (Files): Ditto.
56781
56782 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56783
56784         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56785         not gl_PREREQ_GETUSERSHELL.
56786
56787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56788
56789         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56790         with only one argument, for Autoconf 2.60.
56791         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56792         expand to nothing, so add a shell command to avoid syntax error.
56793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56794
56795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56796
56797         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56798
56799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56800
56801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56802         no longer needed.  Check for isblank decl.
56803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56804         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56805         of existence.
56806
56807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * lib/getloadavg.c: Use __VMS, not VMS.
56810         * lib/getopt.c: Likewise.
56811         * lib/getpagesize.h: Likewise.
56812         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56813         and probably does not work.
56814
56815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         * lib/.cppi-disable: Add wcwidth.
56818         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56819         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56820         (ISGRAPH): Remove.  All uses changed to isgraph.
56821         (FOLD) [!defined _LIBC]: Remove special case.
56822         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56823         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56824         HAVE_ISBLANK.
56825         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56826         case.
56827
56828 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56829
56830         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56831         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56832         brackets.  Other minor changes to suppress some compiler
56833         warnings.
56834
56835 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56836         and Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56839         of invoking obsolescent AC_HEADER_DIRENT macro.
56840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56841         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56844         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56845         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56846         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56847         * m4/readdir.m4: Remove; no longer needed.
56848
56849 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56850         and Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56853         Don't worry about this obsolete case any more.
56854         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56855         directories.
56856         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56857         worry about this obsolete case any more.
56858         * lib/fts.c: Likewise.
56859         * lib/getcwd.c: Likewise.
56860         * lib/glob.h: Likewise.
56861         * lib/savedir.c: Likewise.
56862
56863 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56866         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56868         needed.
56869         All uses removed.
56870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56872         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56873         needed.
56874         * m4/getdate.m4 (gl_GETDATE): Likewise.
56875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56876         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56879         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56881         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56882         needed.
56883
56884 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56885
56886         * lib/memcasecmp.c: Include <limits.h>.
56887         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56888         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56889         Don't assume isdigit succeeds only on '0' through '9'.
56890
56891 2006-07-05  Eric Blake  <ebb9@byu.net>
56892
56893         * modules/getaddrinfo (Depends-on): Add snprintf.
56894
56895 2006-07-05  Eric Blake  <ebb9@byu.net>
56896
56897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56898         to avoid 'header present but could not be compiled' on cygwin.
56899
56900 2006-07-05  Eric Blake  <ebb9@byu.net>
56901
56902         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56903         missing from netdb.h.
56904         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56905
56906 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56907
56908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56909         no longer needed.
56910         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56911         * m4/getdate.m4 (gl_GETDATE): Likewise.
56912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56913         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56914         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56915         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56917
56918 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56919
56920         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56921         All uses of is_space replaced by isspace.
56922         * lib/exit.h: Don't talk about STDC_HEADERS.
56923         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56924         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56925         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56926         replaced by isprint etc.
56927         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56928         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56929         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
56930         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
56931         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
56932         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56933
56934 2006-07-05  Bruno Haible  <bruno@clisp.org>
56935
56936         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
56937         the function exists, before testing against AIX.
56938         Reported by Martin Lambers <marlam@marlam.de>.
56939
56940 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56941
56942         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
56943         From Mark D. Baushke.
56944
56945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56946
56947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
56948         to the absolute name, not just one, to bypass Sun C 5.8's
56949         "warning: #include of /usr/include/... may be non-portable".
56950
56951 2006-07-04  Eric Blake  <ebb9@byu.net>
56952
56953         * modules/dirname-tests: New test module.
56954         * tests/test-dirname.c: New file, replacing dirname.c
56955         TEST_DIRNAME section that was recently deleted.
56956
56957 2006-07-04  Bruno Haible  <bruno@clisp.org>
56958
56959         Assume ANSI C header files and <ctype.h> functions.
56960         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
56961         (mbsnwidth): Use isprint, iscntrl instead.
56962
56963 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56964
56965         Merge from coreutils.
56966         * MODULES.html.sh: Add xstrtold.
56967         * modules/xstrtold: New file.
56968         * modules/cycle-check (Files): Add lib/same-inode.h.
56969         * modules/dirname (Files): Add m4/double-slash-root.m4.
56970         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
56971         * modules/mkdir-p (Files): Add lib/same-inode.h.
56972         * modules/same (Files): Add lib/same-inode.h.
56973
56974 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56975
56976         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56977         This is to keep the terminology clean; POSIX talks about
56978         "absolute pathnames", not "full pathnames", but the GNU
56979         Coding Standards say to use "path" for something else;
56980         so use "absolute" to keep both sides happy.
56981         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56982         Set gl_absolute_header, not gl_full_header_path.
56983         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56984         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56985         All uses changed.
56986
56987         Merge from coreutils.
56988
56989         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56992         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56993         want to require the building of c-strtod.o.
56994         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56995         needs -lm directly.
56996         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56997
56998         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
57001         --as-needed option if available.  Problem reported by Albert Chin in
57002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
57003         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
57004         cc merely issues a bunch of annoying warnings for --as-needed
57005         (this problem was reported by Bob Proulx).  Also, try linking with
57006         -lm to detect a bug in binutils 2.16 (this problem was reported
57007         by Ralf Wildenhues).
57008
57009         2006-06-18  Jim Meyering  <jim@meyering.net>
57010
57011         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
57012         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
57013         macro.
57014         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
57015         also check for glibc-2.4's abort-inducing bug.
57016
57017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
57018         Low-probability clean-up should be to use rmdir to get rid of
57019         the just-created directory, not unlink.
57020
57021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
57022         configure fail, and request a bug report to inform us about it.
57023         Add a comment that, barring reports to the contrary, in 2007 we'll
57024         assume ftruncate is universally available.
57025
57026         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
57029
57030         2006-03-12  Jim Meyering  <jim@meyering.net>
57031
57032         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
57033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
57034         * m4/same.m4 (gl_SAME): Likewise.
57035         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
57036
57037         2006-03-11  Eric Blake  <ebb9@byu.net>
57038
57039         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
57040         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
57041         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
57042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
57043
57044 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57045
57046         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
57047         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
57048         reported by Mark D. Baushke, one in
57049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
57050
57051         Merge from coreutils.
57052
57053         * lib/.cppi-disable: Add stdint_.h.
57054         * lib/.cvsignore: Add stdint.h.
57055
57056         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57057
57058         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
57059         both double and long double versions.
57060         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
57061         * lib/xstrtold.c: New file.
57062         * lib/xstrtod.h (xstrtold): New decl.
57063
57064         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * lib/filemode.c (setst): Remove.
57067         (strmode): Rewrite to avoid setst.  This makes the code shorter,
57068         (arguably) clearer, and the generated code is a bit smaller on my
57069         Debian GNU/Linux stable x86 host.
57070
57071         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         * lib/filemode.c: Include "filemode.h" first, to test the interface.
57074         Assume that filemode.h includes sys/types.h and sys/stat.h.
57075         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
57076         (ftypelet): Reorder to put common cases first, for efficiency.
57077         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
57078         to do 'M'.
57079         (strmode): Renamed from mode_string, and now stores 12 bytes instead
57080         of 10, for compatibility with FreeBSD.  All callers changed.
57081         (filemodestring): Now stores 12 bytes instead of 10, and sets file
57082         types that can't be deduced solely from st_mode.  First arg is now a
57083         const pointer.
57084         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
57085         (strmode): Renamed from mode_string.
57086         (filemodestring): New decl.
57087         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
57088         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
57089         needed.
57090         (S_ISPORT, S_ISWHT): New macros, if not already defined.
57091
57092         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57093
57094         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
57095         fsusage.h now does that.  Include fsusage.h first, to test interface.
57096         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
57097         at most one method (the old code could have generated decls that
57098         didn't conform to C89, not that this was ever exercised).
57099         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
57100
57101         2006-03-19  Jim Meyering  <jim@meyering.net>
57102
57103         Work even in a chroot where d_ino values for entries in "/"
57104         don't match the stat.st_ino values for the same names.
57105         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57106         number, iterate through all entries again, using lstat instead.
57107         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57108         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57109
57110         * lib/getcwd.c (__getcwd): Clarify a comment.
57111         Use memcpy in place of a call to strcpy.
57112
57113         2006-03-12  Jim Meyering  <jim@meyering.net>
57114
57115         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57116         matches that of the current directory (which we're about to chdir ".."
57117         out of), then save the dev-ino of the parent, instead.
57118
57119         * lib/same-inode.h (SAME_INODE): New file/macro.
57120         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57121         Include "same-inode.h", instead.
57122         * lib/same.c: Likewise.
57123         * lib/cycle-check.h: Include "same-inode.h".
57124         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57125         * lib/cycle-check.c (SAME_INODE): Remove definition.
57126         * lib/root-dev-ino.h: Include "same-inode.h".
57127
57128         2006-03-11  Eric Blake  <ebb9@byu.net>
57129
57130         * lib/same.c (same_name): s/base_name/last_component/
57131         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57132         * lib/filenamecat.c (file_name_concat): Likewise.
57133
57134         2006-03-11  Eric Blake  <ebb9@byu.net>,
57135                     Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57138         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57139         drive prefix.
57140         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57141         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57142         (last_component): New method.
57143         * lib/dirname.c (dir_len): Determine when drive letters need a
57144         subsequent slash.  Preserve // when it is special.
57145         (dir_name): Don't append dot when drive letter is absolute.
57146         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57147         * lib/basename.c (base_name): New semantics - malloc the result.
57148         Preserve // when it is special.  Preserve relative files that look
57149         like drive letters.
57150         (base_len): Preserve // when it is special.
57151         (last_component): New method, similar to old base_name semantics.
57152         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57153         base_name.  Strip redundant slashes from ///.
57154
57155 2006-07-03  Jim Meyering  <jim@meyering.net>
57156
57157         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57158         macro is used before the first cycle_check call.
57159
57160 2006-07-03  Eric Blake  <ebb9@byu.net>
57161
57162         * modules/dirname (Depends-on): Add xstrndup.
57163
57164 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57165
57166         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57167         test cases, so that config.log is a bit easier to follow.
57168
57169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57172         both are 64 bits, since this seems to be the tradition, and this
57173         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57174         we ever run into a host that prefers long long to long in this
57175         case, we'll need another configure-time test.  Problem reported by
57176         Jim Meyering.
57177
57178 2006-07-02  Eric Blake  <ebb9@byu.net>
57179
57180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
57181
57182 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57183
57184         * modules/inttypes (Depends-on): No longer depends on stdint.
57185         * modules/stdint (Description): Say more about assumptions.
57186         Say that the fast types might differ.  Say macros are used.
57187         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
57188         (Makefile.am): Revise list of substituted symbols to match
57189         new stdint.m4.
57190         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
57191         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
57192         * tests/test-stdint.c (verify_same_types)
57193         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
57194         the code conforms to C99/C89.
57195         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
57196         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
57197
57198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
57201         but fix a bug, by requiring at least 64 bits.
57202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57203         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
57204         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
57205         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
57206
57207         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
57208         changes.  Make 2.59 a prerequisite.  Check and substitute for
57209         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
57210         inttypes.h.  Do not use special include files; just use the
57211         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
57212         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
57213         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
57214         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
57215         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
57216         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
57217         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
57218         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
57219         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
57220         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
57221         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
57222         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
57223         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
57224         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
57225         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
57226         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
57227         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
57228         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
57229         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
57230         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
57231         WINT_MAX.  Check for C99 conformance more strictly, by detecting
57232         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
57233         not check for things that C99 does not require, e.g., int8_t.  If
57234         a test isn't needed unless <stdint.h> isn't working, and is
57235         unlikely to be needed for any other reason, then don't do it
57236         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
57237         size_t, since we assume C89 freestanding at least.  Do not check
57238         for sig_atomic_t, wchar_t, or wint_t, since the code now does
57239         the right thing even if the types are not defined.  Instead use:
57240         (gl_STDINT_TYPE_PROPERTIES): New macro.
57241         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
57242         testing whether <sys/types.h> clashes, as Autoconf does this for
57243         us now.  All uses removed.
57244         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
57245         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
57246         (gl_CHECK_TYPE_SAME):
57247         Remove; no longer needed.
57248         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
57249         exists, since we'll return 0 anyway in that case.
57250         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
57251
57252 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57253
57254         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
57255         possible collision with system files.
57256         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
57257         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
57258         WCHAR_MIN and WCHAR_MAX in this case.
57259         (<stddef.h>): Do not include; no longer needed.
57260         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
57261         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
57262         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
57263         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
57264         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
57265         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
57266         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
57267         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
57268         !defined(__c99))]: Include in this case too, since it's harmless
57269         now.
57270         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
57271         dangerous to do so.
57272         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
57273         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
57274         (_STDINT_MIN, _STDINT_MAX): New macros.
57275         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
57276         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
57277         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
57278         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
57279         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
57280         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
57281         macros, not typedefs; this simplifies things quite a bit.
57282         Use long int for all types narrower than int64_t.
57283         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
57284         Define in terms of long long int or int64_t or long int,
57285         not int64_t or int32_t.  This saves some compile-time testing.
57286         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
57287         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
57288         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
57289         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
57290         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
57291         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
57292         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
57293         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
57294         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
57295         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
57296         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57297         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57298         undef any previous version and define our own version, for
57299         simplicity and consistency with the new macros for types.
57300         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57301         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57302         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
57303         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
57304         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
57305         @WINT_T_SUFFIX@ to keep things simple here.
57306         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
57307         Simplify by assuming typical 8/16/32/64 host, since we're
57308         already doing that elsewhere anyway.
57309         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
57310         and assume long long int is 64 bits if available.  This
57311         speeds up 'configure'.
57312
57313 2006-07-01  Eric Blake  <ebb9@byu.net>
57314
57315         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
57316         Reported by Andreas Buening.
57317
57318 2006-07-01  Eric Blake  <ebb9@byu.net>
57319
57320         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
57321
57322 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57323
57324         * lib/getaddrinfo.c: fixed typo
57325
57326 2006-06-29  Jim Meyering  <jim@meyering.net>
57327
57328         * modules/strftime (Maintainer): Add my name, since with the
57329         FPRINTFTIME changes strftime.c has forked from glibc.
57330
57331 2006-06-29  Eric Blake  <ebb9@byu.net>
57332
57333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
57334
57335 2006-06-29  Eric Blake  <ebb9@byu.net>
57336
57337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
57338
57339 2006-06-29  Eric Blake  <ebb9@byu.net>
57340
57341         * lib/stat_.h: New file.
57342
57343 2006-06-29  Eric Blake  <ebb9@byu.net>
57344
57345         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
57346         unused static function.
57347
57348 2006-06-29  Eric Blake  <ebb9@byu.net>
57349
57350         * doc/functions.texi (Function Portability): Document missing lstat
57351         on mingw.
57352
57353 2006-06-29  Eric Blake  <ebb9@byu.net>
57354
57355         * MODULES.html.sh: Add sys_stat.
57356         * modules/sys_stat: New module.
57357         * modules/mkstemp (Depends-on): Add sys_stat.
57358
57359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57360
57361         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
57362
57363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57364
57365         * m4/c-bs-a.m4: Removed.
57366
57367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57368
57369         * lib/strftime.c: Assume strftime() exists.
57370
57371 2006-06-29  Derek Price  <derek@ximbiot.com>
57372
57373         * modules/c-bs-a: Removed - \a is C89.
57374         * MODULES.html.sh: Remove c-bs-a.
57375
57376 2006-06-29  Bruno Haible  <bruno@clisp.org>
57377
57378         * modules/wcwidth (License): Change to LGPL.
57379
57380 2006-06-28  Simon Josefsson  <jas@extundo.com>
57381
57382         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
57383         on _WIN32.
57384
57385         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
57386         getnameinfo.
57387
57388 2006-06-28  Simon Josefsson  <jas@extundo.com>
57389
57390         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
57391
57392 2006-06-28  Simon Josefsson  <jas@extundo.com>
57393
57394         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
57395         functions there.  It will succeed on Windows XP, but on Windows
57396         2000 and (presumably) earlier, it will fail, and use the internal
57397         re-implementation.
57398         (use_win32_p): New function.
57399         (getaddrinfo): Use strtoul on servname, to support numeric ports.
57400         Support AI_NUMERICSERV to disable getservbyname.
57401         (getnameinfo): New function, only supports
57402         NI_NUMERICHOST|NI_NUMERICSERV for now.
57403
57404         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
57405         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
57406         getnameinfo.
57407
57408 2006-06-28  Eric Blake  <ebb9@byu.net>
57409
57410         * modules/wcwidth: New file.
57411         * modules/mbchar (Depends-on): Add wcwidth.
57412         * modules/mbswidth (Depends-on): Add wcwidth.
57413         * MODULES.html.sh: Add wcwidth.
57414
57415 2006-06-28  Eric Blake  <ebb9@byu.net>
57416
57417         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
57418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
57419
57420 2006-06-28  Eric Blake  <ebb9@byu.net>
57421
57422         * lib/xvasprintf.h: Fix comments.
57423
57424 2006-06-28  Eric Blake  <ebb9@byu.net>
57425
57426         * lib/mbchar.h (wcwidth): Include wcwidth.h.
57427         * lib/mbswidth.c (wcwidth): Move from here...
57428         * lib/wcwidth.h: ...to this new file.
57429
57430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57431
57432         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
57433
57434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
57435         it's obsolete.
57436         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
57437
57438 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57439
57440         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
57441         Autoconf 2.60 says this stuff was obsolete.
57442
57443 2006-06-28  Bruno Haible  <bruno@clisp.org>
57444
57445         * modules/wcwidth (Files): Add m4/wchar_t.m4.
57446
57447 2006-06-28  Bruno Haible  <bruno@clisp.org>
57448
57449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
57450         gt_TYPE_WCHAR_T.
57451
57452 2006-06-28  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
57455         declaration for wcwidth.
57456         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
57457
57458 2006-06-28  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/mkdtemp.c [MINGW]: Include <io.h>.
57461         (mkdir): Define using _mkdir.
57462
57463 2006-06-28  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/getaddrinfo.h: Fix POSIX URL.
57466         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
57467         _WIN32.
57468         (use_win32_p): Make static.
57469         (getaddrinfo): Reject service name if it is empty or does not consist
57470         solely of decimal digits, or if its value is > 65535.
57471         (getnameinfo): Remove useless casts.
57472
57473 2006-06-27  Simon Josefsson  <jas@extundo.com>
57474
57475         * modules/sys_select: New file, suggested by Bruno Haible, Paul
57476         Eggert and Martin Lambers.
57477
57478 2006-06-27  Simon Josefsson  <jas@extundo.com>
57479
57480         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
57481         Eggert and Martin Lambers.
57482
57483 2006-06-27  Bruno Haible  <bruno@clisp.org>
57484
57485         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
57486         result to 0, not to empty.
57487         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
57488
57489 2006-06-27  Bruno Haible  <bruno@clisp.org>
57490
57491         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
57492
57493 2006-06-26  Simon Josefsson  <jas@extundo.com>
57494
57495         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
57496         present.
57497
57498 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57501         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57503
57504 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57505
57506         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57507
57508 2006-06-26  Bruno Haible  <bruno@clisp.org>
57509
57510         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57511
57512 2006-06-26  Bruno Haible  <bruno@clisp.org>
57513
57514         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57515
57516 2006-06-26  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57519         SGI C compiler in pre-C99 mode.
57520         Suggested by Mark D. Baushke and Larry Jones.
57521
57522 2006-06-26  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57525         WCHAR_MAX.
57526         Reported by Mark D. Baushke and Larry Jones.
57527
57528 2006-06-26  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57531         in pre-C99 mode.
57532         Suggested by Mark D. Baushke and Larry Jones.
57533
57534 2006-06-23  Simon Josefsson  <jas@extundo.com>
57535             Bruno Haible  <bruno@clisp.org>
57536
57537         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57538         Emit mostlyclean-local rule.
57539         (func_emit_tests_Makefile_am): Likewise.
57540         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57541
57542 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57543
57544         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57545
57546 2006-06-23  Bruno Haible  <bruno@clisp.org>
57547
57548         * tests/test-stdint.c: Update to match ISO C 99 Technical
57549         Corrigendum 1.
57550
57551 2006-06-23  Bruno Haible  <bruno@clisp.org>
57552
57553         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57554
57555 2006-06-23  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/stdint_.h: Treat IRIX like OpenBSD.
57558
57559 2006-06-23  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57562         ISO C 99 Technical Corrigendum 1.
57563
57564 2006-06-22  Simon Josefsson  <jas@extundo.com>
57565
57566         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57567         MinGW.
57568
57569 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57572         needed.  Some compiler complained about some of them.  Problem reported
57573         by Larry Jones in
57574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57575
57576 2006-06-21  Simon Josefsson  <jas@extundo.com>
57577
57578         * tests/test-getaddrinfo.c: New file.
57579
57580         * modules/getaddrinfo-tests: New file.
57581
57582         * MODULES.html.sh: Add inet_pton.
57583
57584         * modules/inet_pton: New file.
57585
57586 2006-06-21  Simon Josefsson  <jas@extundo.com>
57587
57588         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57589         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57590         of using the (limited) gnulib implementation on Windows XP.
57591
57592         * m4/inet_pton.m4: New file.
57593
57594 2006-06-21  Simon Josefsson  <jas@extundo.com>
57595
57596         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57597         variable.
57598
57599         * lib/socket_.h: Don't define WINVER.
57600
57601         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57602         slightly modified to work in gnulib.
57603
57604 2006-06-21  Simon Josefsson  <jas@extundo.com>
57605
57606         * doc/gnulib.texi (Windows sockets): Add.
57607
57608 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57609
57610         * lib/read-file.c (fread_file): Start with buffer allocation of
57611         0 bytes rather than 1 byte; this simplifies the code.
57612         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57613         code to free buffer and save/restore errno.
57614         (internal_read_file): Remove unused local.
57615
57616 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57617
57618         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57619         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57620         Problem reported by Denis Excoffier in
57621         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57622
57623 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57624
57625         * modules/sys_socket, modules/socklen: Include sys/types since
57626         FreeBSD 4.x's sys/socket.h needs it.
57627
57628 2006-06-19  Simon Josefsson  <jas@extundo.com>
57629
57630         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57631
57632 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57633
57634         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57635
57636 2006-06-19  Bruno Haible  <bruno@clisp.org>
57637
57638         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57639         and FULL_PATH_INTTYPES_H in angle brackets.
57640         Reported by Mark D. Baushke <mdb@gnu.org>.
57641
57642 2006-06-17  Eric Blake  <ebb9@byu.net>
57643
57644         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57645         errno.
57646
57647 2006-06-17  Bruno Haible  <bruno@clisp.org>
57648
57649         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57650         <sys/inttypes.h>.
57651
57652 2006-06-17  Bruno Haible  <bruno@clisp.org>
57653
57654         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57655         whether errno is declared. Assume <errno.h> declares errno.
57656
57657 2006-06-17  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57660
57661 2006-06-17  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57664         problem on Solaris 2.5.1.
57665
57666 2006-06-16  Eric Blake  <ebb9@byu.net>
57667
57668         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57669         * lib/unicodeio.c [!defined errno]: Likewise.
57670         * lib/strtol.c [!defined errno]: Likewise.
57671         * lib/strtod.c [!defined errno]: Likewise.
57672
57673 2006-06-15  Eric Blake  <ebb9@byu.net>
57674
57675         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57676
57677 2006-06-15  Eric Blake  <ebb9@byu.net>
57678
57679         * config/srclist.txt (ssize_t.m4): Lose sync.
57680
57681 2006-06-15  Bruno Haible  <bruno@clisp.org>
57682
57683         * modules/stdint (Files): Include m4/full-header-path.m4,
57684         m4/size_max.m4, m4/wchar_t.m4.
57685         (Makefile.am): Many more substitutions.
57686         * modules/stdint-tests: New file.
57687         * tests/test-stdint.c: New file.
57688
57689 2006-06-15  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57692         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57693         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57694         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57695         gl_CHECK_TYPE_SAME): New macros.
57696
57697 2006-06-15  Bruno Haible  <bruno@clisp.org>
57698
57699         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57700
57701 2006-06-15  Bruno Haible  <bruno@clisp.org>
57702
57703         * lib/stdint_.h: Rewritten to be fully auto-configured.
57704         Fixes bug on HP-UX/IA64.
57705
57706 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57707
57708         * lib/getdate.y (__attribute__): Don't define if already defined.
57709         Problem reported by Larry Jones.
57710         * lib/utimens.c (__attribute__): Likewise.
57711
57712 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57713
57714         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57715         reported by Andreas Schwab.
57716
57717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57718             Bruno Haible  <bruno@clisp.org>
57719
57720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57721         check for the declaration of strnlen and a run test that exposes the
57722         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57723         rpl_strndup.
57724
57725 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57726             Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57729
57730 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57731
57732         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57733         compile test, for Tru64 4.0D.
57734
57735 2006-05-28  Karl Berry  <karl@gnu.org>
57736
57737         * config/srclist.txt (printf-args.c): lose sync.
57738
57739 2006-05-26  Martin Lambers  <marlam@marlam.de>
57740
57741         * lib/getpass.c: Updates the test for the native W32 API, and adds
57742         missing includes, thus fixing compilation warnings.
57743
57744 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57745
57746         * lib/exclude.c (exclude_fnmatch): New function.
57747         (excluded_file_name): Call exclude_fnmatch.
57748         * lib/exclude.h (excluded_file_name): New prototype
57749
57750 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * lib/tempname.c (small_open, large_open): New macros.
57753         (__open, __open64) [!_LIBC]: Remove.
57754         (__gen_tempname): Use small_open and large_open instead of __open
57755         and __open64.  This fixes a portability bug on HP-UX 11.11i
57756         reported by Simon Wing-Tang in
57757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57758
57759 2006-05-24  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57762         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57763         Reported by Thorsten Maerz <torte@netztorte.de> via
57764         Aaron Stone <aaron@serendipity.cx>.
57765
57766 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57769         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57770         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57771         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57772         not really conditional on the cache.
57773         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57774
57775 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57776
57777         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57778         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57779         (my_usleep): Don't mishandle maximum value.
57780
57781 2006-05-19  Jim Meyering  <jim@meyering.net>
57782
57783         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57784
57785 2006-05-17  Bruno Haible  <bruno@clisp.org>
57786
57787         Cygwin portability.
57788         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57789
57790 2006-05-17  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/stdint_.h: Fix recognition of Cygwin.
57793
57794 2006-05-15  Bruno Haible  <bruno@clisp.org>
57795
57796         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57797         on libtool patch by Ralf Wildenhues.
57798
57799 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57802         test for C99 conformance; (bool) 0.5 is an integer constant
57803         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57804         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57805
57806 2006-05-11  Simon Josefsson  <jas@extundo.com>
57807
57808         * m4/xvasprintf.m4: Fix obvious typo.
57809
57810 2006-05-11  Jim Meyering  <jim@meyering.net>
57811
57812         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57813         James Lemley.
57814
57815 2006-05-10  Simon Josefsson  <jas@extundo.com>
57816
57817         * lib/md4.c: Typo fix, update copyright years.
57818         (K1, K2): Don't use L because it turn computations into 64-bit on
57819         64-bit platforms.
57820
57821 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57822
57823         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57824         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57825         unwanted sign propagation, e.g., on hosts with 64-bit int.
57826         There still are some problems with reeelly weird theoretical hosts
57827         (e.g., 33-bit int) but it's not worth worrying about now.
57828         * lib/sha1.c (rol): Likewise.
57829         (K1, K2, K3, K4): Remove unnecessary L suffix.
57830
57831 2006-05-10  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/des.c: Cast to avoid warnings.
57834
57835 2006-05-09  Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57838         (Depends-on): Depend also on xsize, stdarg.
57839         (configure.ac): Add gl_XVASPRINTF.
57840
57841 2006-05-09  Bruno Haible  <bruno@clisp.org>
57842
57843         * m4/xvasprintf.m4: New file.
57844
57845 2006-05-09  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57848         (EOVERFLOW): Define fallback value.
57849         (xstrcat): New function.
57850         (xvasprintf): Recognize the special case of a string concatenation.
57851
57852 2006-05-08  Eric Blake  <ebb9@byu.net>
57853
57854         * gnulib-tool (func_version): Base copyright year on CVS date.
57855         (func_emit_copyright_notice): New function.
57856         (func_emit_lib_Makefile_am): Use it.
57857         (func_emit_tests_Makefile_am): Likewise.
57858         (func_import): Likewise.
57859
57860 2006-05-08  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/stdarg: New file.
57863         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57864
57865 2006-05-08  Bruno Haible  <bruno@clisp.org>
57866
57867         * m4/stdarg.m4: New file, from GNU gettext.
57868
57869 2006-05-08  Bruno Haible  <bruno@clisp.org>
57870
57871         * config/srclist.txt (build-aux/config.rpath): different from latest
57872         release.
57873
57874 2006-05-08  Bruno Haible  <bruno@clisp.org>
57875
57876         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57877
57878 2006-05-05  Jim Meyering  <jim@meyering.net>
57879
57880         * m4/warning.m4: New file, derived from bison's file by the same name.
57881
57882 2006-05-03  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/stdint_.h: Shorter URL.
57885         * lib/inttypes.h: Likewise.
57886
57887 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57890
57891 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57892
57893         * lib/verify.h: Document the internals better.  Most of this change
57894         was written by Bruno Haible.
57895
57896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * doc/verify.texi: New file, partly based on a proposal by
57899         Bruno Haible.
57900
57901 2006-05-02  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57904         test from here...
57905         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57906
57907 2006-04-29  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57910         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57911
57912 2006-04-29  Bruno Haible  <bruno@clisp.org>
57913
57914         * gnulib-tool: Make --update option actually work.
57915
57916 2006-04-29  Bruno Haible  <bruno@clisp.org>
57917
57918         * doc/gcd.texi: New file.
57919         * doc/gnulib.texi: Include it.
57920
57921 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57922
57923         * lib/getdate.y (get_date): When adding relative date, start with the
57924         initial time, not with the result of the first mktime call.
57925
57926 2006-04-25  Bruno Haible  <bruno@clisp.org>
57927
57928         * gnulib-tool (func_import): Output the include directives in three
57929         blocks, sorted separately.
57930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57931
57932 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57933
57934         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
57935         to define main with arguments, for C++.  Reported by Eric Blake.
57936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
57937         Prefer 'int main ()' to 'int main (void)', for C++.
57938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
57940         for 'main', for C99 and C++.
57941
57942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
57945         Don't assume that exit status -1 is valid.
57946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57949         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
57950         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
57951         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
57952         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
57953         functions can be used without declaring them, or that you can
57954         exit with status -1.
57955         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57956
57957 2006-04-24  Karl Berry  <karl@gnu.org>
57958
57959         * config/srclist.txt (longdouble.m4): sync lost.
57960
57961 2006-04-24  Eric Blake  <ebb9@byu.net>
57962
57963         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
57964
57965 2006-04-24  Bruno Haible  <bruno@clisp.org>
57966
57967         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
57968         poll() implementation in AIX.
57969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57970
57971 2006-04-24  Bruno Haible  <bruno@clisp.org>
57972
57973         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57974         assigned exactly once.
57975
57976 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57977             Bruno Haible  <bruno@clisp.org>
57978
57979         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57980         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57981         for AM_CPPFLAGS.
57982
57983 2006-04-23  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/copy-file: Depend on unistd.
57986         * modules/execute: Likewise.
57987         * modules/fatal-signal: Likewise.
57988         * modules/findprog: Likewise.
57989         * modules/mkdtemp : Likewise.
57990         * modules/pipe: Likewise.
57991         * modules/wait-process: Likewise.
57992
57993 2006-04-23  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57996         condition was already detected.
57997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57998
57999 2006-04-23  Bruno Haible  <bruno@clisp.org>
58000
58001         * lib/copy-file.c: Include <unistd.h> unconditionally.
58002         * lib/execute.c: Likewise.
58003         * lib/fatal-signal.c: Likewise.
58004         * lib/findprog.c: Likewise.
58005         * lib/mkdtemp.c: Likewise.
58006         * lib/pipe.h: Likewise.
58007         * lib/pipe.c: Likewise.
58008         * lib/wait-process.h: Likewise.
58009
58010 2006-04-23  Bruno Haible  <bruno@clisp.org>
58011
58012         * gnulib-tool (func_usage): Fix --import description. Document
58013         --update.
58014         (func_import): Create temporary file in a temporary directory, if
58015         --dry-run is specified. Silence errors from 'grep' when there are no
58016         m4 files in $m4dir.
58017         (func_create_testdir): Silence errors from 'grep' when there are no
58018         m4 files in $m4dir.
58019         Reported by Karl Berry <karl@freefriends.org>.
58020
58021 2006-04-20  Bruno Haible  <bruno@clisp.org>
58022
58023         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
58024         one argument, so that the code will be portable to Autoconf 2.60.
58025         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
58026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58027         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
58028
58029 2006-04-19  Derek Price  <derek@ximbiot.com>
58030             Eric Blake  <ebb9@byu.net>
58031
58032         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
58033         rather than "/full/path.h".  Update comment to match.  Shorten &
58034         generalize m4_translit call via AS_TR_CPP.
58035
58036 2006-04-19  Derek Price  <derek@ximbiot.com>
58037             Eric Blake  <ebb9@byu.net>
58038
58039         * lib/inttypes.h: Correct grammar in comment.
58040
58041 2006-04-18  Derek Price  <derek@ximbiot.com>
58042             Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * modules/inttypes: New file.
58045         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
58046
58047 2006-04-18  Derek Price  <derek@ximbiot.com>
58048             Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
58051         New files.
58052
58053 2006-04-18  Derek Price  <derek@ximbiot.com>
58054             Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * lib/inttypes.h: New file.
58057         * lib/strtoimax.c: Assume <inttypes.h>.
58058
58059 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
58062         isn't mounted.  Problem reported by Kir Kolyshkin.
58063
58064 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
58067         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
58068         Derek R. Price.
58069         * lib/regex.h (RE_DUP_MAX): Update comment to match current
58070         implementation.
58071
58072 2006-04-12  Eric Blake  <ebb9@byu.net>
58073
58074         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
58075         is now done automatically by the corresponding Autoconf macro.
58076
58077 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
58080         time_r.h.
58081
58082 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58083
58084         Merge regex changes from libc, removing some of our
58085         POSIX-conformance changes that were rejected and redoing them in a
58086         less-intrusive way.
58087
58088         * lib/regcomp.c (re_compile_internal, init_dfa):
58089         Length arg is now size_t, not Idx.  All uses changed.
58090         (peek_token): Forward decl now says internal_function.
58091         (__re_error_msgid, __re_error_msgid_idx):
58092         Now static rather than extern with attribute_hidden.
58093         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
58094         For some reason libc prefers K&R style defns for external functions.
58095         (regerror) [!defined _LIBC]: Likewise.
58096         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
58097         (seek_collating_symbol_entry, lookup_collation_sequence_value):
58098         (build_range_exp, build_collating_symbol):
58099         Use K&R-style defn.
58100         (re_compile_fastmap): Use '\0' to memset, not 0.
58101         (utf8_sb_map): Make the calculations more obvious.
58102         (init_dfa, parse_bracket_exp, build_charclass_op):
58103         Call calloc and cast result, as glibc does.
58104         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58105         (build_range_exp, build_collating_symbol):
58106         Now internal functions.
58107
58108         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58109
58110         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58111         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58112         Don't depend on VMS; depend on __VMS instead, for POSIX
58113         namespace cleanness.
58114         (regoff_t): Define to ssize_t, not long int.
58115
58116         Remove the REG_ macros named below.  Instead, make the old names
58117         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58118         __USE_GNU_REGEX.
58119         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58120         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58121         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58122         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58123         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58124         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58125         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58126         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58127         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58128         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58129         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58130         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58131         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58132         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58133         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58134         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58135         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58136         (REG_NREGS):
58137         Remove.  All uses replaced by the old RE_* names.
58138         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58139         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58140         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58141         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58142         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58143         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58144         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58145         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58146         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58147         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58148         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58149         Don't bother having these macros be independent of each others'
58150         values, since they no longer exist in the POSIX name space.
58151
58152         Rename the following member names back to their old names,
58153         unless !__USE_GNU_REGEX.  All uses changed back.
58154         (buffer): Renamed from re_buffer.
58155         (allocated): Renamed from re_allocated.
58156         (used): Renamed from re_used.
58157         (syntax): Renamed from re_syntax.
58158         (fastmap): Renamed from re_fastmap.
58159         (translate): Renamed from re_translate.
58160         (can_be_null): Renamed from re_can_be_null.
58161         (regs_allocated): Renamed from re_regs_allocated.
58162         (fastmap_accurate): Renamed from re_fastmap_accurate.
58163         (no_sub): Renamed from re_no_sub.
58164         (not_bol): Renamed from re_not_bol.
58165         (not_eol): Renamed from re_not_eol.
58166         (newline_anchor): Renamed from re_newline_anchor.
58167         (num_regs): Renamed from rm_num_regs.
58168         (start): Renamed from rm_start.
58169         (end): Renamed from rm_end.
58170
58171         (free_state): Move up a bit.
58172
58173         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58174         #define to be empty.
58175         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58176         when that is what is intended.
58177         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
58178         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
58179         (MAX): New macro.
58180         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
58181         All uses changed back to re_malloc, etc.  It's now the caller's
58182         responsibility to check for overflow; all callers changed.
58183         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
58184         (re_x2nrealloc): Remove.
58185         (free_state): Remove decl.
58186
58187         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
58188         (re_set_registers, re_exec):
58189         Use K&R-style defn.
58190
58191         2006-01-31  Roland McGrath  <roland@redhat.com>
58192
58193         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
58194         Reported by Mike Frysinger <vapier@gentoo.org>.
58195
58196         2006-01-15  Andreas Jaeger  <aj@suse.de>
58197
58198         [BZ #1950]
58199         * lib/regex_internal.c (re_string_reconstruct): Adjust for
58200         build_wcs_upper_buffer change.
58201         (build_wcs_upper_buffer): Change return type.
58202
58203         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
58204
58205         * lib/regex_internal.h: Include <stdint.h> if available.
58206
58207         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
58208
58209         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
58210
58211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58212
58213         * lib/regcomp.c: Adjust for changed secondary hash function.
58214
58215         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
58216
58217         * lib/regex.h: Pretty printing.
58218         Clean up namespace a bit.
58219
58220         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
58221
58222         * lib/regexec.c (update_cur_sifted_state, check_arrival,
58223         check_arrival_add_next_nodes): Avoid using uninitialized variable.
58224
58225         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58226                     Ulrich Drepper  <drepper@redhat.com>
58227
58228         [BZ #1302]
58229         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
58230         changed.
58231         (bitset_word_t): Renamed from bitset_word.  All uses changed.
58232
58233         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
58234
58235         [BZ #281]
58236         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
58237         * lib/regcomp.c: Remove unnecessary uses of
58238         unsigned RE_TRANSLATE_TYPE.
58239         * lib/regex_internal.h: Likewise.
58240         * lib/regex_internal.c: Likewise.
58241         * lib/regexec.c: Likewise.
58242         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
58243
58244         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
58245
58246         * lib/regexec.c (find_recover_state): Remove unnecessary
58247         initialization.
58248         (transit_state_bkref): Make DFA a const pointer.
58249         (get_subexp): Likewise.
58250         (check_arrival): Likewise.
58251         (update_cur_sifted_state): Likewise.
58252         (re_search_internal): Likewise.
58253         (prune_impossible_nodes): Likewise.
58254         (acquire_init_state_context): Likewise.
58255         (proceed_next_node): Likewise.
58256         (set_regs): Likewise.
58257         (free_fail_stack_return): Likewise.
58258         (check_arrival_expand_ecl): Mark DFA parameter as const.
58259         (check_arrival_expand_ecl_sub): Likewise.
58260         (check_subexp_limits): Likewise.
58261         (sub_epsilon_src_nodes):  Likewise.
58262         (add_epsilon_src_nodes):  Likewise.
58263         (merge_state_array): Likewise.
58264         (update_regs): Likewise.
58265         (build_trtable): Likewise.
58266         (sift_states_backward): Mark MCTX parameter as const.
58267         (build_sifted_states): Likewise.
58268         (update_cur_sifted_state): Likewise.
58269         (sift_states_mkref): Likewise.
58270         (check_arrival_expand_ecl): Mark eclosure as const.
58271         (check_dst_limits_calc_pos_1): Likewise.
58272         * lib/regex_internal.h (re_match_context_t): Make dfa a const
58273         pointer.
58274
58275         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
58276
58277         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
58278         (transit_state_sb): Likewise.
58279         (transit_state_mb): Likewise.
58280         (sift_states_iter_mb): Likewise.
58281         (check_arrival_add_next_nodes): Likewise.
58282         (check_node_accept_bytes): Change first parameter to pointer-to-const.
58283         [_LIBC] (re_search_2_stub): Use mempcpy.
58284
58285         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
58286         mbrtowc for very simple UTF-8 case.
58287
58288         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
58289         a pointer-to-const.
58290         (re_acquire_state_context): Likewise.
58291         * lib/regex_internal.h: Adjust prototypes.
58292
58293         * lib/regex.c: Prevent using C++ compilers.
58294
58295         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
58296         (re_acquire_state_context): Likewise.
58297
58298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58299
58300         * modules/regex (Depends-on): Add ssize_t.
58301
58302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
58305         translation table.
58306
58307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58308
58309         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
58310
58311 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
58312             Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
58315         <sys/types.h> and <inttypes.h>.
58316
58317 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58318
58319         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
58320         `__error_t_defined', so argp.h will not typedef the former.
58321
58322 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
58323
58324         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
58325         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
58326         glibc names.  Even if glibc is changed to conform to POSIX, the
58327         traditional names will be available anyway, since regex depends on
58328         the extensions module.  Also, fix a longstanding typo in the
58329         implementation of Spencer ERE test #75 from grep 2.3.  Problems
58330         reported by Emanuele Giaquinta.  Also, change sense of cached
58331         variable, so that the message makes sense.
58332
58333 2006-03-24  Simon Josefsson  <jas@extundo.com>
58334
58335         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
58336         including some doc fixes.
58337         (base64_encode_alloc): Fix +1 bug on allocation failures.
58338
58339 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58340
58341         * lib/base64.c (base64_encode): Do not read past end of array with
58342         unsanitized input on systems with CHAR_BIT > 8.
58343
58344 2006-03-24  Eric Blake  <ebb9@byu.net>
58345
58346         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
58347
58348 2006-03-22  Karl Berry  <karl@gnu.org>
58349
58350         * config/srclist.txt (*setenv.[ch]): get from coreutils.
58351         * config/srclistvars.sh (COREUTILS): new var.
58352
58353 2006-03-17  Jim Meyering  <jim@meyering.net>
58354
58355         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
58356         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
58357
58358 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58359
58360         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
58361         no longer needs it.  Instead, check that regoff_t is as least
58362         as wide as ptrdiff_t.
58363
58364         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
58365         so that our regex.h stays compatible with the installed regex.
58366         This is helpful for installers who configure --without-included-regex.
58367         Problem reported by Emanuele Giaquinta.
58368
58369 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
58372         Typedef to long int, not to off_, as POSIX will likely change
58373         in that direction.
58374
58375 2006-03-15  Eric Blake  <ebb9@byu.net>
58376
58377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
58378
58379 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58380
58381         * lib/argp-help.c (validate_uparams): Fix typo
58382         * lib/argp-parse.c (argp_default_options): Consistently begin help
58383         messages with a lowercase letter.
58384
58385 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
58388         overrun buffers and shouldn't be used (much as gets shouldn't be
58389         used).
58390         * lib/time_r.c (asctime_r, ctime_r): Likewise.
58391
58392 2006-03-08  Simon Josefsson  <jas@extundo.com>
58393
58394         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
58395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58396
58397 2006-03-08  Simon Josefsson  <jas@extundo.com>
58398
58399         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
58400         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58401
58402 2006-03-08  Simon Josefsson  <jas@extundo.com>
58403
58404         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
58405         signal that configure disabled the device.
58406
58407 2006-03-08  Simon Josefsson  <jas@extundo.com>
58408
58409         * build-aux/maint.mk: Fix refresh-po, to handle no translated
58410         languages.
58411
58412 2006-03-07  Simon Josefsson  <jas@extundo.com>
58413
58414         * modules/getopt (Depends-on): Add unistd.
58415
58416         * modules/unistd: New file.
58417
58418 2006-03-07  Simon Josefsson  <jas@extundo.com>
58419
58420         * modules/gc-random: New file.
58421
58422 2006-03-07  Simon Josefsson  <jas@extundo.com>
58423
58424         * m4/unistd_h.m4: New file.
58425
58426 2006-03-07  Simon Josefsson  <jas@extundo.com>
58427
58428         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
58429         test to be side-effect free by storing the result in the cache
58430         variable gl_cv_lib_readline, and moving the assignment of
58431         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
58432         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58433
58434 2006-03-07  Simon Josefsson  <jas@extundo.com>
58435
58436         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
58437         error on missing devices (the functions will return an error).
58438
58439         * m4/gc.m4: Move random stuff to gc-random.m4
58440
58441 2006-03-07  Simon Josefsson  <jas@extundo.com>
58442
58443         * lib/unistd_.h: New file.
58444
58445 2006-03-07  Simon Josefsson  <jas@extundo.com>
58446
58447         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
58448
58449 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
58452         Problem reported by Juan Manuel Guerrero.
58453
58454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
58457         the unistd module.
58458         * lib/getlogin_r.c: Likewise.
58459         * lib/getlogin_r.h: Likewise.
58460         * lib/glob.c: Likewise.
58461         * lib/pagealign_alloc.c: Likewise.
58462         * lib/unistd_.h: Remove; no longer needed.
58463
58464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58465
58466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
58467         Add unistd.
58468         * modules/c-stack (Depends-on): Add unistd.
58469         * modules/getlogin_r: Likewise.
58470         * modules/glob: Likewise.
58471         * modules/pagealign_alloc: Likewise.
58472         * modules/unistd (Files): Remove lib/unistd_.h.
58473         (EXTRA_DIST): Remove.
58474         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
58475         need unistd_.h.
58476         (MOSTLYCLEANFILES): Remove unistd.h-t.
58477
58478 2006-03-03  Simon Josefsson  <jas@extundo.com>
58479
58480         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
58481
58482 2006-03-03  Simon Josefsson  <jas@extundo.com>
58483
58484         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
58485         libidn and bison.
58486
58487 2006-03-03  Simon Josefsson  <jas@extundo.com>
58488
58489         * build-aux/maint.mk: Add indent target.
58490
58491 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
58492
58493         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
58494         our replacement poll.h in any case, to avoid a differing
58495         declaration from a system header.  Seen on AIX.
58496
58497 2006-03-01  Simon Josefsson  <jas@extundo.com>
58498
58499         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58500         <kasal@ucw.cz>.
58501
58502 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58503
58504         * modules/gettime (Depends-on): Add extensions module.
58505         * modules/nanosleep (Depends-on): Likewise.
58506         * modules/settime (Depends-on): Likewise.
58507
58508 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58511         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58512         pedantically.
58513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58514         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58515
58516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58517         not "==".  Reported by Ralf Wildenhues.
58518
58519 2006-03-01  Karl Berry  <karl@gnu.org>
58520
58521         * doc/Copyright/request-*: new files, synced from gnuorg.
58522
58523 2006-03-01  Karl Berry  <karl@gnu.org>
58524
58525         * config/srclist.txt (Copyright/*): new entries.
58526
58527 2006-02-28  Simon Josefsson  <jas@extundo.com>
58528
58529         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58530
58531 2006-02-27  Simon Josefsson  <jas@extundo.com>
58532
58533         * lib/base64.h: Indent #define's.  From Jim Meyering
58534         <jim@meyering.net>.
58535
58536 2006-02-27  Jim Meyering  <jim@meyering.net>
58537
58538         Revert the change of 2006-02-24, so these files can continue
58539         to be sync'd from gettext.
58540         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58541         of `config.h'.
58542
58543 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * modules/intprops: New file.
58546         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58547         Add intprops.
58548         * modules/getloadavg (Files): Remove lib/intprops.h.
58549         (Depends-on): Add intprops.
58550         * modules/human: Likewise.
58551         * modules/inttostr: Likewise.
58552         * modules/openat: Likewise.
58553         * modules/sig2str: Likewise.
58554         * modules/userspec: Likewise.
58555         * modules/utimecmp: Likewise.
58556         * modules/xnanosleep: Likewise.
58557         * modules/xstrtol: Likewise.
58558
58559 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58560
58561         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58562         * modules/lock-tests (TESTS): Use $(EXEEXT).
58563         * modules/tls-tests: Likewise.
58564         * modules/argp-tests: Likewise.
58565         (check_PROGRAMS): New var, replacing...
58566         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58567
58568 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58569
58570         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58571         `config.h'.
58572
58573 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58576
58577 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58578
58579         Sync from coreutils.
58580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58581         gl_CHDIR_SAFER.
58582
58583 2006-02-22  Jim Meyering  <jim@meyering.net>
58584
58585         Sync from coreutils.
58586         * m4/chdir-safer.m4: New file.
58587
58588 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58591         AT_FDCWD exceeds INT_MAX.
58592         * lib/openat.h (AT_FDCWD): Likewise.
58593
58594 2006-02-17  Eric Blake  <address@hidden>
58595
58596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58597
58598 2006-02-16  Simon Josefsson  <jas@extundo.com>
58599
58600         * modules/getaddrinfo (Depends-on): Add sys_socket.
58601
58602 2006-02-15  Simon Josefsson  <jas@extundo.com>
58603
58604         * build-aux/maint.mk: Add dsyntax-check rule.
58605
58606 2006-02-15  Eric Blake  <ebb9@byu.net>
58607
58608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58609         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58610         'present but cannot compile' warnings on cygwin.
58611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58612         use ws2tcpip.h if sys/socket.h works.
58613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58614         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58615
58616 2006-02-14  Simon Josefsson  <jas@extundo.com>
58617
58618         * modules/maintainer-makefile (Files): Rename.
58619
58620         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58621         and (the local) Makefile.cfg to maint-cfg.mk.
58622
58623         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58624         to the latter.
58625
58626         * modules/maintainer-makefile: New module.
58627
58628         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58629         severaly stripped to make it possible to build it up from scratch
58630         with reliable tests.
58631
58632         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58633         fixes to permit overriding the default actions when configure and
58634         makefile are not available.
58635
58636 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         Sync from coreutils.
58639         * modules/lstat (Depends-on): Don't depend on xalloc.
58640         (License): Change from GPL to LGPL, since this is now simply a
58641         replacement for a libc function.
58642
58643 2006-02-14  Jim Meyering  <jim@meyering.net>
58644
58645         Sync from coreutils.
58646
58647         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58648         failure on deficient systems, and simplify gnulib lgpl dependencies.
58649         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58650         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58651
58652         * lib/xalloc-die.c: Remove unused definition of N_.
58653
58654 2006-02-14  Jim Meyering  <jim@meyering.net>
58655
58656         Sync from coreutils.
58657         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58658         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58659         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58660         double-quote uses of that variable, to accommodate the rare case in
58661         which getmntent is available in none of the libraries checked.  This
58662         happens at least on FreeBSD 5.0.
58663
58664 2006-02-13  Simon Josefsson  <jas@extundo.com>
58665
58666         * gnulib-tool (Usage): Fix --import, from
58667         karl@freefriends.org (Karl Berry).
58668
58669 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58670
58671         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58672
58673 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58674
58675         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58676         "autoupdate" on 2005-12-12.
58677
58678 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * modules/closeout (Depends-on): Remove atexit.
58681
58682 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58683
58684         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58685         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58686
58687 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58690         __EXTENSIONS__ if this causes compilation to fail.  Problem
58691         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58692         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58693
58694 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58695
58696         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58697         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58699         All uses changed.
58700
58701 2006-01-26  Simon Josefsson  <jas@extundo.com>
58702
58703         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58704         prototype is visible on mingw32.
58705
58706         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58707         for mingw32.
58708
58709         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58710         mingw32).
58711
58712 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58715         attempt to open for write; this always fails, at least on POSIX
58716         hosts.  This reinstates the 2006-01-09 change, which was
58717         inadvertently removed.
58718
58719 2006-01-26  Bruno Haible  <bruno@clisp.org>
58720
58721         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58722         Reported by Paul Eggert.
58723
58724 2006-01-26  Bruno Haible  <bruno@clisp.org>
58725             Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * lib/stdbool_.h (_Bool)
58728         [(! (defined __cplusplus || defined __BEOS__)
58729           && !defined __GNUC__
58730           && !(defined __HP_cc || defined __xlc__
58731                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58732                || defined __sgi))]:
58733         #define to signed char in these cases too; this simplifies
58734         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58735         etc., separately) and makes it more conservative.
58736
58737 2006-01-25  Simon Josefsson  <jas@extundo.com>
58738
58739         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58740         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58741         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58742
58743 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58744
58745         * lib/argp-namefrob.h: Bugfix. Remove stray #
58746
58747 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58750         so that we test the test.
58751         Check for yet another HP-UX cc bug involving *bool |= bool.
58752
58753 2006-01-25  Karl Berry  <karl@gnu.org>
58754
58755         * config/srclist.txt (vasnprintf.c): sync lost.
58756
58757 2006-01-25  Jim Meyering  <jim@meyering.net>
58758
58759         Sync from the stable (b5) branch of coreutils:
58760
58761         * lib/fts.c (fts_children): Don't let close() clobber errno from
58762         failed fchdir().
58763
58764         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58765         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58766         a dangling symlink.  That can also happen at least for ELOOP.
58767         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58768         FYI, this bug predates the inclusion of fts.c in coreutils.
58769
58770         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58771         in their own block, so pre-c99 compilers don't object.
58772
58773         Avoid the double-free (first in fts_read, second in fts_close) that
58774         would occur when an `active' directory is made inaccessible (e.g.,
58775         via chmod a-x) during a traversal.
58776         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58777         before returning.  Reproduce this failure by
58778         mkdir -p a/b; cd a; chmod a-x . b
58779         Reported by Stavros Passas.
58780
58781 2006-01-25  Jim Meyering  <jim@meyering.net>
58782
58783         * lib/fileblocks.c: Remove more useless parentheses.
58784         * lib/readutmp.h: Likewise.
58785
58786 2006-01-25  Bruno Haible  <bruno@clisp.org>
58787
58788         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58789         warnings.
58790         Reported by Paul Eggert.
58791
58792 2006-01-25  Bruno Haible  <bruno@clisp.org>
58793
58794         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58795         rid of a trap command. For Solaris sh.
58796         Reported by Mark D. Baushke <mdb@gnu.org>.
58797
58798 2006-01-24  Simon Josefsson  <jas@extundo.com>
58799
58800         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58801         Bruno.
58802
58803 2006-01-24  Karl Berry  <karl@gnu.org>
58804
58805         * config/srclist.txt (argp-namefrob.h): sync lost.
58806
58807 2006-01-24  Jim Meyering  <jim@meyering.net>
58808
58809         * modules/openat (Files): Add lib/intprops.h.
58810         From Mark D. Baushke.
58811
58812 2006-01-24  Jim Meyering  <jim@meyering.net>
58813
58814         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58815         Reported by Mark D. Baushke.
58816
58817 2006-01-24  Jim Meyering  <jim@meyering.net>
58818
58819         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58820
58821 2006-01-24  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/strnlen (Maintainer): Change from glibc to all.
58824
58825 2006-01-24  Bruno Haible  <bruno@clisp.org>
58826
58827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58828         Patch by Paul Eggert.
58829
58830 2006-01-24  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58833         already has it.
58834         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58835         2005-11-26.
58836
58837         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58838         'signed char' to avoid problems with the built-in _Bool type.
58839         Reported by Paul Eggert on 2005-11-26.
58840
58841 2006-01-24  Bruno Haible  <bruno@clisp.org>
58842
58843         * gnulib-tool (func_import): Avoid constructing complicated sed
58844         expressions inside backquote.
58845         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58846
58847 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58848
58849         These changes imported from libc.
58850         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58851         test and two separate function calls.
58852         * lib/strndup.c (__strndup): Add libc_hidden_def.
58853
58854 2006-01-23  Simon Josefsson  <jas@extundo.com>
58855
58856         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58857         Remove the test_*_SOURCES variable: automake infers it by default.
58858         * modules/tls-tests: Likewise.
58859
58860 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         Work around porting bugs reported by Dieter in
58863         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58864         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58865         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58866         Include "getopt.h" first, to check interface.
58867         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58868         !HAVE_DECL_GETENV.
58869         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58870         (__strndup): Revert to K&R-style function dfns, the glibc style.
58871         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58872         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58873         Include strnlen.h first, to get prototype properly.
58874         (strnlen): Renamed from __strnlen.
58875         Remove weak alias.
58876
58877 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58880
58881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58882
58883         * config/srclist.txt: Adjust to reflect glibc reorganization.
58884         This affects only comments.
58885
58886 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58887
58888          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58889          Reported by Bruce Korb <bkorb@gnu.org>.
58890
58891 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58894         to pacify gcc -Wswitch-default.
58895
58896 2006-01-22  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58899         temporary buffer for sprintf, take into account the precision also
58900         for 'd', 'i', 'u', 'o', 'x', 'X'.
58901
58902 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58903
58904         * modules/argp-tests: New module
58905         * tests/test-argp.c: New file
58906         * tests/test-argp-2.sh: New file
58907
58908 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58909
58910         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58911         (__argp_base_name): Removed
58912         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58913         typo.
58914         (__argp_base_name): Provide macro definition or extern declaration
58915         depending on the configuration
58916
58917 2006-01-20  Simon Josefsson  <jas@extundo.com>
58918
58919         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58920
58921 2006-01-20  Simon Josefsson  <jas@extundo.com>
58922
58923         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58924
58925 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58928         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
58929         Suggested by Bruno Haible.
58930
58931 2006-01-20  Karl Berry  <karl@gnu.org>
58932
58933         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
58934         until changes propagate, I guess.
58935
58936 2006-01-19  Simon Josefsson  <jas@extundo.com>
58937
58938         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
58939
58940 2006-01-19  Simon Josefsson  <jas@extundo.com>
58941
58942         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
58943
58944 2006-01-19  Simon Josefsson  <jas@extundo.com>
58945
58946         * gnulib-tool: Set check_PROGRAMS.
58947
58948         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58949         modules/des-tests, modules/gc-arcfour-tests,
58950         modules/gc-arctwo-tests, modules/gc-des-tests,
58951         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58952         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58953         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58954         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58955         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58956         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
58957         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
58958         test_*_SOURCES.
58959
58960 2006-01-18  Simon Josefsson  <jas@extundo.com>
58961
58962         * modules/socklen (Depends-on): Depend on sys_socket.
58963
58964 2006-01-18  Simon Josefsson  <jas@extundo.com>
58965
58966         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58967         modules/des-tests, modules/gc-arcfour-tests,
58968         modules/gc-arctwo-tests, modules/gc-des-tests,
58969         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58970         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58971         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58972         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58973         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58974         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58975         $(EXEEXT) to automake TESTS variable, for mingw32.
58976
58977 2006-01-17  Simon Josefsson  <jas@extundo.com>
58978
58979         * modules/socklen (Include): Need sys/socket.h.
58980
58981 2006-01-17  Bruno Haible  <bruno@clisp.org>
58982
58983         * modules/ssize_t (Include): Add <sys/types.h>.
58984
58985 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58986
58987         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58988         it's not portable and it doesn't work with cross-compiles.
58989         Problem reported by Bruno Haible.  Fix missing-$ typo in
58990         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58991         -zignore from being used with Sun's C compiler.
58992
58993 2006-01-12  Simon Josefsson  <jas@extundo.com>
58994
58995         * lib/base64.c: Fix warning, reported by Bruno Haible
58996         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58997
58998 2006-01-12  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/ldd: New file.
59001         * build-aux/ldd.sh.in: New file.
59002         * MODULES.html.sh (Support for building libraries and executables): Add
59003         ldd.
59004
59005 2006-01-12  Bruno Haible  <bruno@clisp.org>
59006
59007         * m4/ldd.m4: New file.
59008
59009 2006-01-12  Bruno Haible  <bruno@clisp.org>
59010
59011         * gnulib-tool (func_import, func_create_testdir): Don't go into an
59012         endless loop while replacing $auxdir with build-aux.
59013
59014 2006-01-11  Simon Josefsson  <jas@extundo.com>
59015
59016         * lib/stdint_.h (SIZE_MAX): Add missing (.
59017
59018 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         Sync from coreutils.
59021         * lib/md5.c: Fix commentary typos.
59022         (alignof, UNALIGNED_P): No need for a GCC-specific version.
59023         * lib/md5.h (__attribute__): Remove; unused.
59024         * lib/sha1.c: Fix commentary to match md5 better.
59025         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
59026         so that we don't need to worry about alignment.  All uses changed.
59027         This merges the 2005-10-28 md5 change into sha1.
59028
59029 2006-01-11  Jim Meyering  <jim@meyering.net>
59030
59031         Sync from coreutils.
59032         * lib/md5.c (OP): Fix spacing.
59033
59034 2006-01-11  Bruno Haible  <bruno@clisp.org>
59035
59036         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59037         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
59038         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
59039
59040 2006-01-11  Bruno Haible  <bruno@clisp.org>
59041
59042         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59043         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
59044         the "early" section as well.
59045
59046 2006-01-11  Bruno Haible  <bruno@clisp.org>
59047
59048         Avoid "ar: no archive members specified" error on MacOS X.
59049         * gnulib-tool (func_modules_add_dummy): New function.
59050         (func_import, func_create_testdir): Invoke it.
59051
59052 2006-01-11  Bruno Haible  <bruno@clisp.org>
59053
59054         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
59055         with $auxdir in AC_CONFIG_FILES statements.
59056
59057 2006-01-11  Bruno Haible  <bruno@clisp.org>
59058
59059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59060         Initialize also noinst_HEADERS to empty.
59061
59062 2006-01-11  Bruno Haible  <bruno@clisp.org>
59063
59064         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
59065         variables.
59066         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
59067         autoreconf.
59068
59069 2006-01-11  Bruno Haible  <bruno@clisp.org>
59070
59071         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
59072         overridable by the user.
59073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59074
59075 2006-01-10  Simon Josefsson  <jas@extundo.com>
59076
59077         * modules/sys_socket: New file.
59078
59079 2006-01-10  Simon Josefsson  <jas@extundo.com>
59080
59081         * m4/sys_socket_h.m4: New file.
59082
59083 2006-01-10  Simon Josefsson  <jas@extundo.com>
59084
59085         * lib/socket_.h: New file.
59086
59087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * modules/readutmp (Maintainer): Add myself.
59090
59091 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59092
59093         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
59094         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
59095         People who are still concerned with buggy memcmp implementations
59096         can invoke gl_FUNC_MEMCMP themselves.
59097
59098 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * lib/regex_internal.h (BITSET_WORD_BITS):
59101         Work around a bug in 64-bit PGC (before version 6.1-2), where the
59102         preprocessor mishandles large unsigned values as if they were signed.
59103         Problem reported by Claudio Fontana in
59104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59105
59106 2006-01-10  Jim Meyering  <jim@meyering.net>
59107
59108         Avoid the double-free (first in fts_read, second in fts_close) that
59109         would occur when an `active' directory is made inaccessible (e.g.,
59110         via chmod a-x) during a traversal.
59111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59112         before returning.  Reproduce this failure by
59113         mkdir -p a/b; cd a; chmod a-x . b
59114         Reported by Stavros Passas.
59115
59116         Sync from coreutils.
59117         * lib/sha1.c: Tweak grammar in a comment.
59118
59119 2006-01-10  Jim Meyering  <jim@meyering.net>
59120
59121         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59122         Patch by Joerg Sonnenberger.
59123
59124 2006-01-10  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/readutmp: Depend on module free.
59127         * modules/strtok_r: Depend on module restrict.
59128
59129 2006-01-10  Bruno Haible  <bruno@clisp.org>
59130
59131         * modules/gettext (configure.ac): Add an invocation of
59132         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59133
59134 2006-01-10  Bruno Haible  <bruno@clisp.org>
59135
59136         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59137         Reported by Werner Lemberg <wl@gnu.org>.
59138
59139 2006-01-10  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/localcharset.c: Update from GNU gettext.
59142
59143 2006-01-10  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/argp.h (__const): Remove macro. Use const instead.
59146         * lib/argp-fmtstream.h (__const): Likewise.
59147         * lib/glob_.h (__const): Remove macro.
59148         * lib/glob-libc.h: Use const instead of __const.
59149
59150 2006-01-10  Bruno Haible  <bruno@clisp.org>
59151
59152         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59153         variable.
59154         Needed to avoid an automake error regarding the 'gettext' module.
59155
59156 2006-01-09  Simon Josefsson  <jas@extundo.com>
59157
59158         * modules/inet_ntop (Depends-on): Add restrict.
59159
59160 2006-01-09  Simon Josefsson  <jas@extundo.com>
59161
59162         * modules/gc-rijndael-tests (License): Put under LGPL.
59163
59164         * modules/gc-des-tests (License): Likewise.
59165
59166         * modules/gc-arcfour-tests (License): Likewise.
59167
59168         * modules/gc-arctwo-tests (License): Likewise.
59169
59170         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59171
59172         * modules/gc-hmac-sha1-tests (Files): Likewise.
59173
59174         * modules/gc-hmac-md5-tests (License): Likewise.
59175
59176         * modules/gc-sha1-tests (License): Likewise.
59177
59178         * modules/gc-md5-tests (License): Likewise.
59179
59180         * modules/gc-md4-tests (License): Likewise.
59181
59182         * modules/gc-md2-tests (License): Likewise.
59183
59184         * modules/gc-tests (License): Likewise.
59185
59186         * modules/des-tests (License): Likewise.
59187
59188         * modules/md4-tests (License): Likewise.
59189
59190         * modules/md2-tests (License): Likewise.
59191
59192 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         Sync from coreutils:
59195
59196         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
59197         * modules/lib-ignore: New file.
59198         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
59199         chdir-safer.m4, lchmod.m4.
59200         * modules/openat: Add mkdirat.c, openat-priv.h.
59201
59202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59203
59204         Sync from coreutils.
59205         * m4/lib-ignore.m4: New file.
59206         * m4/lchmod.m4: New file.
59207
59208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         Sync from coreutils.
59211         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
59212         for write access: POSIX says that must fail.
59213         * lib/fts.c (diropen): Likewise.
59214         * lib/save-cwd.c (save_cwd): Likewise.
59215         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
59216         well, for minor improvements on hosts that lack O_DIRECTORY.
59217         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
59218         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
59219         Fall back on chown if open failed with EACCES.
59220
59221         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
59222         Report an error at compile-time if only a 1-second nominal clock
59223         resolution is found.
59224
59225         * lib/lchmod.h: New file.
59226         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
59227         (make_dir_parents): Use lchown rather than chown, and
59228         lchmod rather than chmod.
59229
59230         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
59231         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
59232         "proc" reported by n0dalus.
59233
59234         * lib/mountlist.c: Include <limits.h>.
59235         (dev_from_mount_options)
59236         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
59237         New function.  It no longer assumes "dev=" has the System V meaning
59238         on Linux (since it doesn't).  It also parses "dev=" more carefully.
59239         (read_file_system_list)
59240         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
59241         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
59242         dev= in that case.
59243
59244         * lib/posixtm.h (PDS_PRE_2000): New macro.
59245         * lib/posixtm.c (year): Arg is now syntax_bits rather than
59246         allow_century.  All usages changed.  Reject dates outside the range
59247         1969-1999 if PDS_PRE_2000 is used.
59248
59249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59250
59251         Sync from coreutils.
59252         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
59253         (Time of day items): Mention the possibility of leap seconds.
59254         Problem reported by Dr. David Alan Gilbert.
59255
59256 2006-01-09  Jim Meyering  <jim@meyering.net>
59257
59258         Sync from coreutils.
59259
59260         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
59261
59262         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
59263
59264         * lib/modechange.c (mode_compile): Reject an invalid mode string
59265         that starts with an octal digit.  From Andreas Gruenbacher.
59266
59267         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
59268         and dup to open_safer and dup_safer, respectively.
59269         (openat_permissive): Fix typo in comment.
59270
59271         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
59272         "gettext.h"; either no longer needed or are guaranteed by openat.h.
59273         (_): Remove; no longer needed.
59274         (openat): Renamed from rpl_openat; no need for rpl_openat
59275         since openat.h renames openat for us.
59276         Replace most of the body with a call to openat_permissive,
59277         to avoid duplicate code.
59278         Port to (probably hypothetical) environments were mode_t is
59279         wider than int.
59280         (openat_permissive): Require mode arg, so that we can check
59281         types better.  Put it just after flags.  Change cwd failure
59282         indicator from pointer-to-bool to pointer-to-errno-value.
59283         All callers changed.
59284         Invoke openat_save_fail and/or openat_restore_fail if
59285         cwd_errno is null, so that openat can call us.
59286         (openat_permissive, fdopendir, fstatat, unlinkat):
59287         Simplify errno handling to avoid some duplicate code,
59288         as it's OK to set errno on success.
59289         * lib/openat.h: Revamp code so that function macros depend on
59290         __OPENAT_PREFIX only, not also on AT_FDCWD.
59291         (openat_ro): Remove.  Caller changed to use openat_permissive.
59292         (openat_permissive): Now a macro, if not a function.
59293         (openat_restore_fail, openat_save_fail): Now always functions,
59294         since mkdirat needs them even if __OPENAT_PREFIX is defined.
59295
59296         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
59297         and openat.c.
59298         * lib/mkdirat.c: Include openat-priv.h.
59299         Remove definitions of macros defined therein.
59300         * lib/openat.c: Likewise.
59301
59302         * lib/mkdirat.c (mkdirat): New file and function.
59303         * lib/openat.h (mkdirat): Declare.
59304
59305         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
59306
59307         * lib/openat.h (openat_permissive): Declare.
59308         (openat_ro): Define.
59309
59310         * lib/openat.c (EXPECTED_ERRNO): New macro.
59311         (openat_permissive): New function -- used in remove.c rewrite.
59312         (all functions): Set errno just before returning, only if there
59313         was an actual failure.
59314         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
59315
59316         Emulate openat-family functions using Linux's procfs, if possible.
59317         Idea and some code based on Ulrich Drepper's glibc changes.
59318
59319         * lib/openat.c: (BUILD_PROC_NAME): New macro.
59320         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
59321         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
59322         before falling back on save_cwd and restore_cwd.
59323         (fdopendir, fstatat, unlinkat): Likewise.
59324
59325         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
59326         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
59327
59328         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
59329         as second argument to va_arg.  Otherwise, some versions of gcc
59330         warn that `if this code is reached, the program will abort'.
59331
59332 2006-01-09  Jim Meyering  <jim@meyering.net>
59333
59334         Sync from coreutils.
59335         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
59336         Require openat-priv.h.
59337
59338 2006-01-09  Bruno Haible  <bruno@clisp.org>
59339
59340         * modules/strnlen (Include): Use strnlen.h.
59341
59342 2006-01-09  Bruno Haible  <bruno@clisp.org>
59343
59344         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
59345
59346 2006-01-09  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/sysexit_.h (EX_OK): New macro.
59349         Suggested by Martin Lambers <marlam@marlam.de>.
59350
59351 2006-01-09  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
59354         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
59355
59356 2006-01-09  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
59359         numbers.
59360
59361 2006-01-09  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
59364         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
59365         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
59366         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
59367
59368 2006-01-09  Bruno Haible  <bruno@clisp.org>
59369
59370         * build-aux/javacomp.sh.in: New file, moved from lib/.
59371         * modules/javacomp-script (Files): Update.
59372         (configure.ac): Add AC_CONFIG_FILES invocation.
59373         (EXTRA_DIST): Remove variable.
59374
59375         * build-aux/javaexec.sh.in: New file, moved from lib/.
59376         * modules/javaexec (Files): Update.
59377         (configure.ac): Add AC_CONFIG_FILES invocation.
59378         (EXTRA_DIST): Remove javaexec.sh.in.
59379
59380         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
59381         * modules/csharpcomp-script (Files): Update.
59382         (configure.ac): Add AC_CONFIG_FILES invocation.
59383         (EXTRA_DIST): Remove variable.
59384
59385         * build-aux/csharpexec.sh.in: New file, moved from lib/.
59386         * modules/csharpexec (Files): Update.
59387         (configure.ac): Add AC_CONFIG_FILES invocation.
59388         (EXTRA_DIST): Remove csharpexec.sh.in.
59389
59390 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59391
59392         Sync from coreutils.
59393
59394         Add POSIX ACL support
59395         * lib/acl.h (copy_acl, set_acl): Add declarations.
59396         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
59397         systems other than Linux.
59398         (chmod_or_fchmod): New function: use fchmod when possible,
59399         and chmod otherwise.
59400         (file_has_acl): Add a POSIX ACL implementation, with a
59401         Linux-specific subcase.
59402         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
59403         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
59404         acls are unsupported.
59405         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
59406         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
59407         are unsupported.
59408
59409 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59410
59411         Sync from coreutils.
59412         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
59413
59414 2006-01-07  Bruno Haible  <bruno@clisp.org>
59415
59416         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
59417         gl_EARLY.
59418
59419 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * lib/strftime.c (tzname): Don't declare if it is already #defined.
59422         Problem reported for Mingw by Mark Junker.
59423
59424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         * README: Gnulib normally doesn't generate a tarball.
59427
59428 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
59431         long int, not int, for nanosecond counts, so that people who are
59432         used to POSIX struct timespec won't be surprised.  Reported by Jim
59433         Meyering.
59434
59435 2005-12-28  Bruno Haible  <bruno@clisp.org>
59436
59437         * build-aux/config.rpath: Update from GNU gettext.
59438
59439 2005-12-16  Jim Meyering  <jim@meyering.net>
59440
59441         * modules/fprintftime: New module.
59442         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
59443
59444 2005-12-16  Jim Meyering  <jim@meyering.net>
59445
59446         * m4/fprintftime.m4: New file.
59447
59448 2005-12-16  Jim Meyering  <jim@meyering.net>
59449
59450         * lib/fprintftime.c, lib/fprintftime.h: New files.
59451
59452 2005-12-15  Simon Josefsson  <jas@extundo.com>
59453
59454         * modules/socklen (configure.ac): Fix M4 macro name, to align with
59455         new m4/socklen.m4.
59456
59457 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59458
59459         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
59460         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
59461
59462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59463
59464         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
59465         * lib/argp-help.c (fill_in_uparams): Check if the constructed
59466         struct uparams is valid. Fall back to the default values if it is
59467         not.
59468
59469 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59470
59471         * modules/argp (Files): Add argp-pin.c
59472         (Depends-on): dirname
59473         (lib_SOURCES): Add argp-pin.c
59474
59475 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59476
59477         * m4/argp.m4:  Check if program_invocation_name and
59478         program_invocation_short_name are declared and define appropriate
59479         macros if they are not.
59480
59481 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59482
59483         * lib/argp-help.c (__argp_base_name): New function
59484         (__argp_short_program_name): Rewrite using __argp_base_name
59485         * lib/argp-namefrob.h: Define program_invocation_name and
59486         program_invocation_short_name if requested
59487         (__argp_base_name): Add prototype
59488         * lib/argp-parse.c (argp_def): Use gettext wrappers
59489         (argp_default_parser): Use __argp_base_name
59490         * lib/argp-pin.c: New file. Defines program_invocation_name and
59491         program_invocation_short_name on systems that lack them.
59492
59493 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
59496         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59497         porting problem reported by Georg Schwarz in
59498         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59499
59500 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59503         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59504         porting problem reported by Georg Schwarz in
59505         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59506
59507 2005-12-05  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59510         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59511         Reported by Mark Junker <mjscod@gmx.de>.
59512
59513 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59516         Use implementation from Albert Chin, with some
59517         comments/corrections by Stepan Kasal and myself.
59518
59519 2005-12-02  Bruno Haible  <bruno@clisp.org>
59520
59521         * gnulib-tool (func_import): Accept GPLed build tool modules when
59522         --lgpl is given.
59523         * modules/csharpcomp-script: New file.
59524         * modules/csharpcomp: Depend on it.
59525         * modules/javacomp-script: New file.
59526         * modules/javacomp: Depend on it.
59527         Suggested by Simon Josefsson.
59528
59529 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59532         statement, to work around an HP-UX 10.20 compiler bug reported by
59533         Peter O'Gorman.
59534
59535 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * modules/savedir (Depends-on): Add openat.
59538
59539 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59542         (uintmax_t) [defined uintmax_t]: Do not declare.
59543         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59544         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59545         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59546         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59547         sake of portability to weird hosts that C allows (though we don't
59548         know of any practical examples).
59549
59550         * lib/savedir.h (fdsavedir): New decl.
59551         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59552         contains most of the former guts of savedir.
59553         (savedir): Use savedirstream.
59554         Include "openat.h".
59555
59556 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59557
59558         * modules/obstack (Files): Add m4/ulonglong.m4.
59559         Problem reported by Davide Angelocola.
59560
59561 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59564         coreutils no longer futzes with rounding modes.
59565
59566 2005-11-14  Jim Meyering  <jim@meyering.net>
59567
59568         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59569         replacement of mkstemp.
59570
59571 2005-11-10  Simon Josefsson  <jas@extundo.com>
59572
59573         * lib/readline.c: Remove EOL.
59574
59575 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59576
59577         * modules/gethrxtime (Depends-on): Add gettime.
59578
59579 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59582         or gettimeofday; no longer needed.
59583
59584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59587         time business.
59588         (gethrxtime) [! (HAVE_NANOUPTIME
59589         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59590         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59591         our own approximation.
59592
59593 2005-11-08  Eric Blake  <ebb9@byu.net>
59594
59595         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59596
59597 2005-11-08  Eric Blake  <ebb9@byu.net>
59598
59599         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59600
59601 2005-11-04  Bruno Haible  <bruno@clisp.org>
59602
59603         * gnulib-tool: Implement --update mode.
59604
59605 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         Fix porting problem reported by Theodoros V. Kalamatianos.
59608         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59609         Don't assume that futimes failing means we must fail.
59610
59611 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59614         variables to suggest the intended function of the PATH_MAX check.
59615
59616 2005-10-30  Kean Johnston  <jkj@sco.com>
59617
59618         Trivial changes to support SCO systems.
59619         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59620         as PATH_MAX.
59621         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59622         where __ptr is null when no I/O is pending.
59623
59624 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59627         leave errno alone.  Problem reported by Dmitry V. Levin.
59628
59629 2005-10-28  Simon Josefsson  <jas@extundo.com>
59630
59631         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59632         Test more.
59633
59634         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59635
59636         * modules/md2, modules/md2-tests: New files.
59637
59638 2005-10-28  Simon Josefsson  <jas@extundo.com>
59639
59640         * m4/inet_ntop.m4: More tests.
59641
59642         * m4/gc-md2.m4, md2.m4: New file.
59643
59644 2005-10-28  Simon Josefsson  <jas@extundo.com>
59645
59646         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59647         "restrict" keywords, as per POSIX.  Protect the function
59648         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59649         Don't use K&R prototypes.  Check the sprintf return values.
59650         Re-define EAFNOSUPPORT if not present.  Indent.
59651
59652         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59653         suggested by Bruno Haible <bruno@clisp.org>.
59654
59655         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59656
59657         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59658
59659         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59660         libgcrypt).
59661
59662         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59663
59664         * lib/md2.h, lib/md2.c: New files.
59665
59666 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59669         errno alone.  Problem reported by Frederic Jolliton.
59670
59671 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         * modules/verify (License): Change from GPL to LGPL.  This is a
59674         tiny module and there are apparently near-equivalents that are
59675         under the BSD license.
59676
59677 2005-10-24  Simon Josefsson  <jas@extundo.com>
59678
59679         * modules/sha1: Relicense to LGPL.
59680
59681 2005-10-24  Simon Josefsson  <jas@extundo.com>
59682
59683         * lib/md4.h: Shrink buffer size, now that we changed the type.
59684
59685 2005-10-23  Simon Josefsson  <jas@extundo.com>
59686
59687         * gnulib-tool (func_import): Fix --tests-base.
59688
59689 2005-10-22  Simon Josefsson  <jas@extundo.com>
59690
59691         * modules/arcfour (Depends-on): Need stdint.
59692
59693 2005-10-22  Simon Josefsson  <jas@extundo.com>
59694
59695         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59696         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59697
59698 2005-10-22  Simon Josefsson  <jas@extundo.com>
59699
59700         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59701         suggested by Bruno Haible <bruno@clisp.org>.
59702
59703 2005-10-22  Simon Josefsson  <jas@extundo.com>
59704
59705         * lib/crc.h: Include stddef.h, for size_t.
59706
59707 2005-10-22  Simon Josefsson  <jas@extundo.com>
59708
59709         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59710         arcfour_context struct (simplify test vector testing in GNU
59711         Shishi).
59712
59713 2005-10-21  Simon Josefsson  <jas@extundo.com>
59714
59715         * modules/des, modules/des-tests: New files.
59716
59717         * modules/gc-des, modules/gc-des-tests: New files.
59718
59719         * tests/test-des.c, tests/test-gc-des.c: New file.
59720
59721 2005-10-21  Simon Josefsson  <jas@extundo.com>
59722
59723         * modules/arctwo, modules/arctwo-tests: New files.
59724
59725         * tests/test-arctwo.c: New file.
59726
59727         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59728
59729         * tests/test-gc-arctwo.c: New file.
59730
59731 2005-10-21  Simon Josefsson  <jas@extundo.com>
59732
59733         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59734         Bruno Haible <bruno@clisp.org>.
59735
59736         * m4/gc-des.m4: New file.
59737
59738 2005-10-21  Simon Josefsson  <jas@extundo.com>
59739
59740         * m4/arctwo.m4: New file.
59741
59742         * m4/gc-arctwo.m4: New file.
59743
59744 2005-10-21  Simon Josefsson  <jas@extundo.com>
59745
59746         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59747         block.
59748
59749 2005-10-21  Simon Josefsson  <jas@extundo.com>
59750
59751         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59752         <bruno@clisp.org>.
59753
59754         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59755
59756         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59757         Bruno Haible <bruno@clisp.org>.
59758
59759         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59760         <bruno@clisp.org>.
59761
59762 2005-10-21  Simon Josefsson  <jas@extundo.com>
59763
59764         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59765
59766 2005-10-21  Simon Josefsson  <jas@extundo.com>
59767
59768         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59769
59770 2005-10-21  Simon Josefsson  <jas@extundo.com>
59771
59772         * lib/des.h, lib/des.c: New files.
59773
59774         * lib/gc-gnulib.c: Support DES.c
59775
59776 2005-10-21  Simon Josefsson  <jas@extundo.com>
59777
59778         * lib/arctwo.h, lib/arctwo.c: New files.
59779
59780         * lib/gc-gnulib.c: Support ARCTWO.
59781
59782 2005-10-21  Simon Josefsson  <jas@extundo.com>
59783
59784         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59785         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59786
59787 2005-10-21  Simon Josefsson  <jas@extundo.com>
59788
59789         * gnulib-tool (func_import, func_create_testdir): Define automake
59790         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59791         Makefile.am snippet),
59792         suggested by Bruno Haible <bruno@clisp.org>.
59793
59794         * modules/gc (Makefile.am): Use it.
59795
59796 2005-10-21  Bruno Haible  <bruno@clisp.org>
59797
59798         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59799         patch.
59800
59801 2005-10-19  Simon Josefsson  <jas@extundo.com>
59802
59803         * tests/test-gc-rijndael.c: New file.
59804
59805         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59806
59807 2005-10-19  Simon Josefsson  <jas@extundo.com>
59808
59809         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59810         interface too.
59811
59812 2005-10-19  Simon Josefsson  <jas@extundo.com>
59813
59814         * tests/test-gc-arcfour.c: New file.
59815
59816         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59817
59818 2005-10-19  Simon Josefsson  <jas@extundo.com>
59819
59820         * modules/gc-md4, modules/gc-md4-tests: New file.
59821
59822         * tests/test-gc-md4.c: New file.
59823
59824 2005-10-19  Simon Josefsson  <jas@extundo.com>
59825
59826         * m4/gc-md4.m4: New file.
59827
59828 2005-10-19  Simon Josefsson  <jas@extundo.com>
59829
59830         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59831         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59832         <kasal@ucw.cz>.
59833
59834 2005-10-19  Simon Josefsson  <jas@extundo.com>
59835
59836         * m4/gc-arcfour.m4: New file.
59837
59838         * m4/gc-rijndael.m4: New file.
59839
59840 2005-10-19  Simon Josefsson  <jas@extundo.com>
59841
59842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59843
59844 2005-10-19  Simon Josefsson  <jas@extundo.com>
59845
59846         * lib/gc-gnulib.c: Support ARCFOUR.
59847
59848 2005-10-19  Simon Josefsson  <jas@extundo.com>
59849
59850         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59851         support.
59852
59853         * lib/gc.h: Add ECB enum type.
59854
59855         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59856
59857 2005-10-18  Simon Josefsson  <jas@extundo.com>
59858
59859         * tests/test-md5.c: New file.
59860
59861         * modules/md5-tests: New file.
59862
59863 2005-10-18  Simon Josefsson  <jas@extundo.com>
59864
59865         * tests/test-md4.c: New file.
59866
59867         * modules/md4, modules/md4-tests: New files.
59868
59869 2005-10-18  Simon Josefsson  <jas@extundo.com>
59870
59871         * m4/md4.m4: New file.
59872
59873 2005-10-18  Simon Josefsson  <jas@extundo.com>
59874
59875         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59876
59877 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59878
59879         * gnulib-tool (func_create_testdir): Omit the second check whether
59880         BUILT_SOURCES in nonempty.
59881
59882 2005-10-17  Simon Josefsson  <jas@extundo.com>
59883
59884         * tests/test-rijndael.c: New file.
59885
59886 2005-10-17  Simon Josefsson  <jas@extundo.com>
59887
59888         * modules/sha1: Depend on stdint instead of md5.
59889
59890         * modules/md5: Depend on stdint, remove uint32_t.
59891
59892 2005-10-17  Simon Josefsson  <jas@extundo.com>
59893
59894         * modules/gc-sha1-tests: New file.
59895
59896         * tests/test-gc-sha1.c: New file.
59897
59898 2005-10-17  Simon Josefsson  <jas@extundo.com>
59899
59900         * m4/md5.m4: Remove call to uint32_t.m4.
59901
59902 2005-10-17  Simon Josefsson  <jas@extundo.com>
59903
59904         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59905
59906         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59907         md5.h.
59908
59909         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59910
59911         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59912
59913 2005-10-17  Simon Josefsson  <jas@extundo.com>
59914
59915         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59916
59917 2005-10-17  Simon Josefsson  <jas@extundo.com>
59918
59919         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59920
59921 2005-10-17  Simon Josefsson  <jas@extundo.com>
59922
59923         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59924
59925         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59926
59927 2005-10-17  Bruno Haible  <bruno@clisp.org>
59928
59929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
59930         that it can also be used in a test.
59931
59932 2005-10-16  Bruno Haible  <bruno@clisp.org>
59933
59934         * gnulib-tool (func_emit_tests_Makefile_am): Also define
59935         TESTS_ENVIRONMENT, so that individual tests can augment it.
59936
59937         * gnulib-tool (func_create_testdir): Use an intermediate target for
59938         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
59939         macros, like $(ALLOCA_H), which cannot be passed through the command
59940         line.
59941
59942 2005-10-15  Simon Josefsson  <jas@extundo.com>
59943
59944         * modules/rijndael-tests: New file.
59945
59946         * modules/rijndael: New file.
59947
59948 2005-10-15  Simon Josefsson  <jas@extundo.com>
59949
59950         * m4/rijndael.m4: New file.
59951
59952 2005-10-15  Simon Josefsson  <jas@extundo.com>
59953
59954         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
59955
59956         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
59957
59958 2005-10-14  Simon Josefsson  <jas@extundo.com>
59959
59960         * tests/test-arcfour.c: New file.
59961
59962         * modules/arcfour, modules/arcfour-tests: New files.
59963
59964 2005-10-14  Simon Josefsson  <jas@extundo.com>
59965
59966         * m4/arcfour.m4: New file.
59967
59968 2005-10-14  Simon Josefsson  <jas@extundo.com>
59969
59970         * lib/arcfour.h, lib/arcfour.c: New files.
59971
59972 2005-10-14  Roland McGrath  <roland@redhat.com>
59973
59974         Import from libc.  [BZ #1331]
59975         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59976         macro argument.
59977         Reported by Matej Vela <vela@debian.org>.
59978
59979 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59982         include <wchar.h>; no longer needed.
59983
59984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59987
59988 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59989         and  Ulrich Drepper  <drepper@redhat.com>
59990
59991         Import from libc.
59992         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59993         instead of inline stream orientation test and two separate
59994         function calls.  Pay no attention to USE_IN_LIBIO.
59995
59996 2005-10-13  Simon Josefsson  <jas@extundo.com>
59997
59998         * modules/gc-hmac-md5-tests: New file.
59999
60000         * tests/test-gc-hmac-sha1.c: New file.
60001
60002         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
60003
60004         * modules/gc-hmac-md5-tests: New file.
60005
60006         * tests/test-gc-md5.c: New file.
60007
60008         * modules/gc-md5-tests: New file.
60009
60010 2005-10-13  Simon Josefsson  <jas@extundo.com>
60011
60012         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
60013         Move memory allocation outside of loop.
60014
60015 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
60018         intermediate directory is in a read-only file system.  Problem
60019         reported by Eric Blake.
60020
60021 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
60022
60023         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
60024
60025 2005-10-12  Simon Josefsson  <jas@extundo.com>
60026
60027         * tests/test-hmac-sha1.c: New file.
60028
60029         * modules/hmac-sha1-tests: New file.
60030
60031         * modules/hmac-sha1: New file.
60032
60033 2005-10-12  Simon Josefsson  <jas@extundo.com>
60034
60035         * modules/gc-sha1: New file.
60036
60037 2005-10-12  Simon Josefsson  <jas@extundo.com>
60038
60039         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
60040
60041         * tests/test-gc-pbkdf2-sha1.c: New file.
60042
60043 2005-10-12  Simon Josefsson  <jas@extundo.com>
60044
60045         * modules/gc-md5, modules/gc-hmac-md5: New files.
60046
60047         * modules/gc (Files): Remove md5, memxor and hmac files.
60048
60049 2005-10-12  Simon Josefsson  <jas@extundo.com>
60050
60051         * m4/gc-pbkdf2-sha1.m4: New file.
60052
60053         * m4/gc-hmac-sha1.m4: New file.
60054
60055         * m4/gc-sha1: New file.
60056
60057         * m4/hmac-sha1.m4: New file.
60058
60059 2005-10-12  Simon Josefsson  <jas@extundo.com>
60060
60061         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
60062
60063         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
60064
60065 2005-10-12  Simon Josefsson  <jas@extundo.com>
60066
60067         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
60068         suggested by Bruno Haible <bruno@clisp.org>.
60069
60070 2005-10-12  Simon Josefsson  <jas@extundo.com>
60071
60072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
60073
60074 2005-10-12  Simon Josefsson  <jas@extundo.com>
60075
60076         * lib/gc-pbkdf2-sha1.c: New file.
60077
60078         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
60079
60080 2005-10-12  Simon Josefsson  <jas@extundo.com>
60081
60082         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
60083
60084         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
60085
60086 2005-10-12  Simon Josefsson  <jas@extundo.com>
60087
60088         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
60089         GC_USE_HMAC_MD5, respectively.
60090
60091         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
60092         (gc_md5): Fix typo.
60093
60094         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
60095
60096         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
60097
60098         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
60099
60100 2005-10-12  Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60103         Reported by Stepan Kasal <kasal@ucw.cz>.
60104
60105 2005-10-11  Simon Josefsson  <jas@extundo.com>
60106
60107         * tests/test-crc.c: New file.
60108
60109         * modules/crc, modules/crc-tests: New files.
60110
60111 2005-10-11  Simon Josefsson  <jas@extundo.com>
60112
60113         * m4/crc.m4: New file.
60114
60115 2005-10-11  Simon Josefsson  <jas@extundo.com>
60116
60117         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60118
60119         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60120
60121         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60122
60123 2005-10-11  Simon Josefsson  <jas@extundo.com>
60124
60125         * lib/crc.h, lib/crc.c: New files.
60126
60127         * lib/gc.h (gc_hash_buffer): Add doc.
60128
60129 2005-10-11  Bruno Haible  <bruno@clisp.org>
60130
60131         * modules/c-strcasestr: New file.
60132         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60133
60134 2005-10-11  Bruno Haible  <bruno@clisp.org>
60135
60136         * modules/c-strcase: New file.
60137         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60138
60139 2005-10-11  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/strcasecmp.c: Include limits.h.
60142         (strcasecmp): Avoid integer overflow on exotic platforms.
60143         * lib/strncasecmp.c: Include limits.h.
60144         (strncasecmp): Avoid integer overflow on exotic platforms.
60145         Reported by Paul Eggert.
60146
60147 2005-10-11  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/c-strcasestr.h: New file, from GNU gettext.
60150         * lib/c-strcasestr.c: New file, from GNU gettext.
60151
60152 2005-10-11  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/c-strcase.h: New file, from GNU gettext.
60155         * lib/c-strcasecmp.c: New file, from GNU gettext.
60156         * lib/c-strncasecmp.c: New file, from GNU gettext.
60157
60158 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60159
60160         * modules/mempcpy (License): GPL -> LGPL.
60161         * modules/strchrnul (License): Likewise.
60162         * modules/sysexits (License): Likewise.
60163
60164 2005-10-08  Simon Josefsson  <jas@extundo.com>
60165
60166         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60167
60168 2005-10-07  Simon Josefsson  <jas@extundo.com>
60169
60170         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60171
60172 2005-10-06  Simon Josefsson  <jas@extundo.com>
60173
60174         * tests/test-hmac-md5.c: New file.
60175
60176         * modules/hmac-md5-tests: New file.
60177
60178         * modules/hmac-md5: New file.
60179
60180 2005-10-06  Simon Josefsson  <jas@extundo.com>
60181
60182         * m4/hmac-md5.m4: New file.
60183
60184         * m4/memxor.m4: Require gl_C_RESTRICT.
60185
60186 2005-10-06  Simon Josefsson  <jas@extundo.com>
60187
60188         * lib/memxor.c (memxor): Avoid casts and warnings.
60189
60190 2005-10-06  Simon Josefsson  <jas@extundo.com>
60191
60192         * lib/hmac-md5.c: New file.
60193
60194         * lib/hmac.h: New file.
60195
60196 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60197
60198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
60199         promotes to int, not unsigned int, to catch the AIX 5.3
60200         compiler bug.
60201
60202 2005-10-05  Simon Josefsson  <jas@extundo.com>
60203
60204         * modules/memxor: New file.
60205
60206         * modules/iconv (Files): Move config.rpath to havelib, it is used
60207         there.
60208
60209         * modules/havelib (Files): Add config.rpath.
60210
60211 2005-10-05  Simon Josefsson  <jas@extundo.com>
60212
60213         * m4/memxor.m4: New file.
60214
60215 2005-10-05  Simon Josefsson  <jas@extundo.com>
60216
60217         * lib/memxor.c (memxor): Fix compiler error.
60218
60219         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
60220         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
60221
60222         * lib/memxor.h, lib/memxor.c: New files.
60223
60224         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
60225         we assume all systems have it, suggested by Jim Meyering
60226         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
60227         any systems lack sys/socket.h; mingw32 is known to lack it, but we
60228         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
60229         same reasons.
60230
60231 2005-10-05  Simon Josefsson  <jas@extundo.com>
60232
60233         * config/srclist.txt: Add glibc bug 1423 for md5.h.
60234
60235 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
60238         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
60239         needed, since the source code now assumes these .h files.
60240
60241 2005-10-05  Derek Price  <derek@ximbiot.com>
60242
60243         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
60244
60245 2005-10-05  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/stdint (License): Change to LGPL.
60248
60249 2005-10-04  Simon Josefsson  <jas@extundo.com>
60250
60251         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
60252         D. Baushke" <mdb@gnu.org>.
60253
60254 2005-10-04  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/verify.h (verify_true): Provide alternative definition for C++.
60257
60258 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
60261         (SSIZE_MAX): New macro, if not already defined.
60262         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
60263         than 2 GiB.
60264
60265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         Sync from coreutils.
60268         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
60269         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
60270         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
60271         ULLONG_MAX doesn't work with 2.7.2.1.
60272
60273 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
60276         From Ben Pfaff.
60277
60278         * modules/exclude (Depends-on): Depend on verify.
60279         * modules/strtoimax (Depends-on): Likewise.
60280         * modules/utimecmp (Depends-on): Likewise.
60281
60282 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * lib/exclude.c: Include verify.h.
60285         (verify): Remove.  All callers changed to use verify.h's version.
60286         * lib/strtoimax.c: Likewise.
60287         * lib/utimecmp.c: Likewis.e
60288
60289         Sync from coreutils.
60290         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
60291         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
60292         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
60293         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
60294         bother returning ENOSYS if settimeofday or stime fails; just let
60295         them return whatever errno they want to return.
60296         * lib/utimens.c: Include unistd.h, for dup2.
60297         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
60298         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
60299
60300 2005-10-02  Jim Meyering  <jim@meyering.net>
60301
60302         Sync from coreutils.
60303         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
60304         from glibc-2.2.5 that fails for read-only files.
60305
60306 2005-10-02  Jim Meyering  <jim@meyering.net>
60307
60308         Sync from coreutils.
60309         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
60310         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
60311         `#if HAVE_CONFIG_H'.
60312         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
60313         Remove AT_FDCWD test.
60314         Do not consume the fd unless successful.
60315         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
60316         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
60317         block, so that we don't even try to compile it if settimeofday is
60318         available.  This works around a compilation failure on OSF1 V5.1,
60319         due to stime requiring a `long int*' while tv_sec is `int'.
60320
60321 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
60322
60323         Sync from coreutils.
60324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
60325         against `yes', rather than just testing for nonempty.
60326
60327 2005-10-01  Simon Josefsson  <jas@extundo.com>
60328
60329         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
60330         and Darwin.
60331
60332         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
60333         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
60334         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
60335         freeaddrinfo and gai_strerror are declared by the POSIX headers.
60336         Check if struct addrinfo is declared.
60337
60338 2005-10-01  Simon Josefsson  <jas@extundo.com>
60339
60340         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
60341         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
60342         AI_* and EAI_* definitions.  Protect function declarations.
60343
60344 2005-10-01  Jim Meyering  <jim@meyering.net>
60345
60346         Sync from coreutils.
60347
60348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
60349         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
60350         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
60351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60352         in the inet and nsl libraries.  Required on Solaris 5.7.
60353
60354 2005-10-01  Jim Meyering  <jim@meyering.net>
60355
60356         Sync from coreutils.
60357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60358         in the inet and nsl libraries.  Required on Solaris 5.7.
60359
60360 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
60361
60362         * lib/getdelim.c (getdelim): Remove unused variables.
60363
60364 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
60367         so that the code works even with ancient cpp.  Portability problem
60368         with GCC 2.7.2.1 reported by Thomas M.Ott.
60369
60370 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * modules/regex (Depends-on): Add strcase.
60373
60374         * modules/gethostname (Licence): Change from GPL to LGPL, since
60375         gethostname.c is a trivial implementation of a standard library
60376         function.
60377         * modules/poll (License): Change from GPL to LGPL, since it's
60378         derived from LGPL code.
60379
60380 2005-09-27  Jim Meyering  <jim@meyering.net>
60381
60382         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
60383         HAVE_CONFIG_H.
60384
60385         * lib/intprops.h (signed_type_or_expr__): Define.
60386         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
60387         for unsigned types.
60388
60389 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * lib/verify.h (verify_expr): Remove, replacing with:
60392         (verify_true): New macro that returns true instead of void.
60393         (verify_type__): Remove.
60394         (verify): Use verify_true rather than verify_type__.
60395
60396 2005-09-26  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
60399         is necessary.
60400         (lib_SOURCES): Remove mbchar.c.
60401         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
60402         (Files): Add m4/mbrtowc.m4.
60403         * modules/mbiter: Likewise.
60404         * modules/mbuiter: Likewise.
60405
60406 2005-09-26  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
60409         compile mbchar.c if they are not both present.
60410         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
60411         * m4/mbiter.m4 (gl_MBITER): Likewise.
60412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
60413         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
60414         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
60415
60416 2005-09-25  Jim Meyering  <jim@meyering.net>
60417
60418         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
60419         also uses socklen_t.
60420
60421 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * lib/utimens.c (ENOSYS): Define if not already defined.
60424         (futimens): Support having a null PATH if the file descriptor
60425         is nonnegative.
60426
60427         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
60428         Remove.
60429         (__attribute): Define to empty unless GCC 3.1 or later.
60430         This works around a core dump on OpenBSD 3.4, which has GCC
60431         2.95.3, which dumps core when given __attribute__(()).  It also
60432         simplifies other tests, since we really don't want to bother with
60433         worrying about which ancient version of GCC supported what.
60434         Original problem reported by Yoann Vandoorselaere, with part of
60435         the fix suggested by Derek Price.
60436
60437 2005-09-24  Jim Meyering  <jim@meyering.net>
60438
60439         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
60440         so we can once again use a positive bitfield width of 1 -- now we
60441         don't have to explain why we were using a bitfield width of 2.
60442
60443 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60444
60445         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
60446         and similarly for the other external symbols.  Problem reported
60447         by James Gallager.
60448
60449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
60450         bug reported by Jim Meyering.
60451
60452         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
60453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
60454         not needed, since socklen is a prerequisite module.
60455
60456 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
60459         Problem reported by Eric Blake.
60460         (getaddrinfo): Initialize se so that it's not garbage.
60461         Redo internal storage allocation so that it doesn't make unportable
60462         assumptions about alignment.
60463         Fix a memory leak.
60464
60465         * lib/utimens.c (futimens): Use futimesat if available.
60466         Prefer it to futimes since it doesn't have the futimes bug.
60467
60468         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
60469         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
60470         Instead, declare a function that returns a pointer to an array,
60471         and use verify_type__ to declare the size of the array.
60472         Problem and germ of a solution reported by Bruno Haible.
60473         (verify_type__): Use 2, not 1, for bitfield size, to avoid
60474         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
60475
60476 2005-09-23  Jim Meyering  <jim@meyering.net>
60477
60478         Sync from coreutils.
60479         Correct build failure (socklen_t not defined) on at least
60480         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
60481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
60482
60483 2005-09-23  Jim Meyering  <jim@meyering.net>
60484
60485         * modules/getaddrinfo (Depends-on): Add socklen.
60486
60487 2005-09-23  Bruno Haible  <bruno@clisp.org>
60488
60489         * tests/test-verify.c: New file.
60490
60491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60492
60493         Sync from coreutils.
60494
60495         * modules/argmatch (Depends-on): Add verify.
60496         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60497         unistd-safer.
60498         * modules/save-cwd (Depends-on): Likewise.
60499
60500         * modules/openat (Files): Add lib/openat-die.c.
60501         (Depends-on): Remove error, exitfail.
60502         Add dirname.
60503
60504         * modules/verify: New file.
60505         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60506         with "verify" module.
60507
60508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         Sync from coreutils.
60511
60512         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60513         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60514         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60515         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60516         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60517         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60518         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60519         Don't bother checking for string.h, stdlib.h, unistd.h.
60520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60522         module's job.
60523         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60524         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60525
60526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60527         (gl_GETDATE): Use it.
60528
60529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60530
60531 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         Sync from coreutils.
60534
60535         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60536         stat-time.h.
60537         * lib/argmatch.h: Include verify.h
60538         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60539         (ARGMATCH_ASSERT): Remove; unused.
60540         * lib/canonicalize.c: Assume STDC_HEADERS.
60541         * lib/exclude.c: Include "strcase.h".
60542         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60543         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60544         and stdio-safer.h.
60545         (getusershell): Call fopen, not fopen_safer.
60546         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60547         Do not include unistd-safer.h.
60548         (save_cwd): Don't call fd_safer; no longer needed
60549         now that we include fcntl--.h.
60550
60551         * lib/getdate.y (relative_time): New type.
60552         (RELATIVE_TIME_0): New constant.
60553         (parser_control): Use relative_time instead of doing it ourselves.
60554         (%union): Add new relative_time rel member.
60555         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60556         Now typeless.
60557         (relunit, relunit_snumber): Now of type rel.
60558         (zone, rel, relunit, get_date): Adjust to above changes.
60559
60560         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60561         Do not include unistd-safer.h.
60562         (getloadavg): Don't call fd_safer; no longer needed
60563         now that we include fcntl--.h.
60564
60565         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60566         (make_dir_parents): Treat ENOSYS like EEXIST.
60567
60568         Improve quality of diagnostics on restore_cwd failure.
60569         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60570         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60571         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60572         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60573         each time through the loop.  Do not diagnose restore_cwd failure;
60574         that is the caller's job (and perhaps the caller does not care).
60575
60576         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60577         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60578         If the file already exists but is not a directory, don't bother
60579         to try to make its parents.
60580         Close potential file descriptor leak if we can't chdir("/") (!).
60581         Don't always return true if chdir($PWD) fails; return true only
60582         if the requested action was done successfully (except for the
60583         chdir($PWD)).
60584         Don't log final directory unless we actually made it.
60585         Refactor to avoid duplicate code to fix up permissions.
60586         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60587
60588         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60589         to make it a bit faster and (I hope) clearer.
60590         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60591         Fix bug in formats like %2N.
60592
60593         * lib/verify.h: New file.
60594
60595 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         Sync from coreutils.
60598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60599
60600 2005-09-22  Jim Meyering  <jim@meyering.net>
60601
60602         Sync from coreutils.
60603
60604         * m4/lstat.m4 (gl_FUNC_LSTAT):
60605         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60606         Remove obsolete comment.
60607         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60608         * m4/xstrtod.m4: Likewise.
60609
60610         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60611
60612 2005-09-22  Jim Meyering  <jim@meyering.net>
60613
60614         Sync from coreutils.
60615
60616         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60617
60618         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60619         the .tm_year member, since otherwise gcc-4.0 would now warn about
60620         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60621
60622         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60623         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60624
60625         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60626         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60627         when run in a time zone for which daylight savings time is in effect
60628         for the starting date.
60629
60630         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60631         stop us from restricting permissions of just-created absolute-named
60632         directories.
60633         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60634         to restore initial working directory.
60635         * lib/mkdir-p.c (make_dir_parents): New parameter:
60636         different_working_dir, to tell caller if/when we change the working
60637         directory and are unable to return to the initial one.
60638         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60639         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60640         `return false'.  This fixes a bug introduced on 2004-07-30.
60641
60642         * lib/openat.c (fdopendir): Be sure to close the supplied
60643         file descriptor before returning.  This makes our replacement
60644         implementation a little closer to Solaris's, where fdopendir
60645         ties the file descriptor to the returned DIR* pointer.
60646         * lib/openat.c (unlinkat): New function.
60647         * lib/openat.h (unlinkat): Add prototype.
60648         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60649         (openat_restore_fail): Rename from openat_restore_die.
60650         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60651
60652         Provide an alternative to exiting immediately upon save_cwd or
60653         restore_cwd failure.  Now, an application can arrange e.g.,
60654         to perform a longjump in that case.
60655         * lib/openat.c: Include dirname.h.
60656         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60657         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60658         and openat_restore_die rather than calling error directly.
60659         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60660
60661         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60662         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60663         define.
60664
60665         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60666         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60667                             int utc, int nanoseconds);
60668         Background:
60669         date should not have to allocate a megabyte of virtual memory to
60670         handle a format argument like +%1048575T.  When implemented with
60671         strftime, it must allocate such a buffer, use strftime to fill it
60672         in, print it, then free it.
60673         With fprintftime, it simply prints everything and exits.
60674         With no need for memory allocation, that's one fewer way to fail.
60675         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60676         optional field width, not before, so we accept %9:z, not %:9z.
60677         (my_strftime): Be sure to use L_('x') for literals.
60678
60679         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60680         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60681         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60682         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60683         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60684         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60685         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60686         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60687         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60688         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60689         * lib/xgethostname.c, lib/xreadlink.c:
60690         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60691
60692         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60693         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60694         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60695         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60696         and don't include <sys/file.h>).
60697
60698 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60699
60700         Sync from coreutils.
60701
60702         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60703         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60704         [!LDAV_DONE]: Avoid unused variable warning.
60705
60706 2005-09-21  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/unicodeio.h (unicode_to_mb): New declaration.
60709
60710 2005-09-20  Derek Price  <derek@ximbiot.com>
60711
60712         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60713         getaddrinfo.h.
60714
60715 2005-09-20  Bruno Haible  <bruno@clisp.org>
60716
60717         * gnulib-tool: Remove trailing slashes from the values specified for
60718         --source-base, --m4-base, --tests-base, --aux-dir.
60719         Suggested by Simon Josefsson <jas@extundo.com>.
60720
60721 2005-09-20  Bruno Haible  <bruno@clisp.org>
60722
60723         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60724         func_modules_to_filelist, func_import, func_create_testdir): Make all
60725         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60726         change when gnulib-tool is invoked in a different locale.
60727
60728 2005-09-19  Simon Josefsson  <jas@extundo.com>
60729
60730         * m4/socklen.m4: Fix typo.
60731
60732 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60733
60734         Use a consistent style for including <config.h>.
60735         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60736         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60737         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60738         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60739         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60740         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60741         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60742         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60743         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60744         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60745         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60746         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60747         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60748         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60749         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60750         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60751         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60752         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60753         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60754         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60755         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60756         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60757         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60758         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60759         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60760         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60761         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60762         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60763         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60764         lib/xstrtoumax.c, lib/yesno.c:
60765         Standardize inclusion of config.h.
60766         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60767         lib/inttostr.h:  Removed inclusion of config.h from header files.
60768         * lib/inttostr.c:  Adjusted in-tree users.
60769         * lib/timespec.h: Remove superfluous warning to include config.h.
60770         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60771         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60772         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60773         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60774         config.h with HAVE_CONFIG_H.
60775
60776 2005-09-19  Jim Meyering  <jim@meyering.net>
60777
60778         * modules/pathmax (License): Change to LGPL.
60779
60780 2005-09-19  Derek Price  <derek@ximbiot.com>
60781
60782         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60783
60784 2005-09-19  Bruno Haible  <bruno@clisp.org>
60785
60786         * gnulib-tool (import): Provide default for --tests-base.
60787
60788 2005-09-19  Bruno Haible  <bruno@clisp.org>
60789
60790         * doc/quote.texi: New file, extracted from gnulib.texi.
60791         * doc/ctime.texi: New file, extracted from gnulib.texi.
60792         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60793         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60794         * doc/gnulib.texi: Include them.
60795
60796 2005-09-18  Bruno Haible  <bruno@clisp.org>
60797
60798         Portability fix.
60799         * gnulib-tool (func_readlink): New function.
60800         (func_ln_if_changed): Use it.
60801
60802 2005-09-18  Bruno Haible  <bruno@clisp.org>
60803
60804         * gnulib-tool: Support --with-tests also with --import.
60805         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60806         (func_import): Use variables $testsbase and $inctests. Emit a
60807         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60808         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60809         SUBDIRS += $testsdir.
60810         (func_create_testdir): Update.
60811
60812 2005-09-18  Bruno Haible  <bruno@clisp.org>
60813
60814         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60815         instead of $dry_run.
60816         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60817         (func_ln_if_changed): Don't handle dry-run here.
60818         (func_import): In dry-run mode, detect more precisely which actions
60819         would be performed, and don't use "...ing" verbs.
60820
60821 2005-09-18  Bruno Haible  <bruno@clisp.org>
60822
60823         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60824         (func_import): Use join on two temporary files instead of three nested
60825         loops, in order to determine which files are new or old.
60826
60827 2005-09-18  Bruno Haible  <bruno@clisp.org>
60828
60829         * gnulib-tool (func_import): Comment out code that spits out the
60830         new files with --dry-run.
60831
60832 2005-09-18  Bruno Haible  <bruno@clisp.org>
60833
60834         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60835
60836 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * lib/stat-time.h: New file.
60839         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60840         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60841         in a different way.
60842         (timespec_cmp): New function.
60843         * lib/utimecmp.c: Include stat-time.h.
60844         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60845         members exist, not on the obsolescent ST_MTIM_NSEC.
60846         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60847
60848 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60851
60852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * MODULES.html.sh (File system functions): Add stat-time.
60855         * modules/stat-time: New file.
60856         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60857         is now done in a different way, by the stat-time module.
60858         * modules/utimecmp (Depends-on): Add stat-time.
60859
60860 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60861
60862         * m4/st_mtim.m4: Remove.  Superseded by...
60863         * m4/stat-time.m4: New file.
60864         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60865         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60866
60867 2005-09-15  Derek Price  <derek@ximbiot.com>
60868
60869         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60870
60871 2005-09-15  Derek Price  <derek@ximbiot.com>
60872
60873         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60874         * lib/regex_internal.c: Ditto, using this...
60875         (__GNUC_PREREQ): ...new macro.
60876         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60877         using...
60878         (__GNUC_PREREQ): ...this new macro.
60879
60880         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60881
60882 2005-09-15  Derek Price  <derek@ximbiot.com>
60883             Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60886         changes, consolidating in...
60887         * lib/regex_internal.h: ...this file.
60888
60889 2005-09-13  Jim Meyering  <jim@meyering.net>
60890
60891         * lib/canon-host.c: Filter through gnu indent and reword comments
60892         slightly.
60893         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60894
60895 2005-09-13  Derek Price  <derek@ximbiot.com>
60896
60897         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60898         failure.
60899         Reported by Jim Meyering  <jim@meyering.net>.
60900
60901 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60902
60903         * lib/base64.c: Typo.
60904         (base64_encode): Put b64str in initialized data section.
60905
60906 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         Merge glibc and coreutils changes into gnulib, plus a few
60909         extra fixes.
60910         * lib/md5.c: Use #error rather than a string.
60911         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60912         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60913         (__attribute__): Define to empty for non recent-GCC.
60914         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60915         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60916         Renamed from their non-__ counterparts, with new macros replacing
60917         them if not _LIBC.  Add __THROW attribute.
60918         (rol): Remove.
60919         (struct md5_ctx): Align buffer if using GCC.
60920         * lib/sha1.h (struct sha1_ctx): Likewise.
60921         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60922         The old name was backwards.
60923         (NOTSWAP): Remove; not used.
60924         (rol): New macro, moved here from md5.h.
60925         (sha1_process_block): Remove a FIXME that doesn't make sense.
60926
60927 2005-09-12  Derek Price  <derek@ximbiot.com>
60928
60929         Return usable errors from canon-host.
60930         * lib/canon-host.h: New file.
60931         * lib/canon-host.c (canon_host): Wrap...
60932         (canon_host_r): ...this new function, which now relies exclusively on
60933         getaddrinfo.
60934         (ch_strerror): New function.
60935         (last_cherror): New global.
60936         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
60937         interface.
60938         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
60939         void *.
60940         (freeaddrinfo): Free ai->ai_canonname when set.
60941
60942 2005-09-12  Derek Price  <derek@ximbiot.com>
60943
60944         Make canon-host require getaddrinfo.
60945         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
60946         AC_LIBSOURCE canon-host.h.  Call...
60947         (gl_PREREQ_CANON_HOST): ...this new function, which requires
60948         gl_GETADDRINFO.
60949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
60950
60951 2005-09-12  Derek Price  <derek@ximbiot.com>
60952
60953         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
60954         LGPL.
60955         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
60956
60957 2005-09-12  Derek Price  <derek@ximbiot.com>
60958
60959         * lib/gai_strerror.c: Include config.h when available.  Include
60960         getaddrinfo.h before other headers to test interface.
60961         Reported by Larry Jones <lawrence.jones@ugs.com>.
60962
60963 2005-09-12  Derek Price  <derek@ximbiot.com>
60964             Paul Eggert  <eggert@cs.ucla.edu>
60965
60966         * modules/glob (Files): Add glob-libc.h.
60967
60968 2005-09-12  Derek Price  <derek@ximbiot.com>
60969             Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
60972         glob_.h, glob-libc.h.
60973         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60974
60975 2005-09-12  Derek Price  <derek@ximbiot.com>
60976             Paul Eggert  <eggert@cs.ucla.edu>
60977
60978         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60979         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60980         protecting things that should be done only in gnulib contexts.
60981         * lib/glob_.h: New file, containing only the glob things needed for
60982         gnulib.
60983         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60984         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60985         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60986         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60987         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60988         and to respect the namespace rules better.
60989
60990 2005-09-08  Simon Josefsson  <jas@extundo.com>
60991
60992         * modules/socklen: New file.
60993
60994 2005-09-08  Simon Josefsson  <jas@extundo.com>
60995
60996         * m4/socklen.m4: New file.
60997
60998 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60999
61000         * modules/utimens (Files): Add m4/utimbuf.m4, since
61001         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
61002         Reported by Sergey Poznyakoff.
61003
61004 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
61007         definitions, since that's the preferred style in glibc.
61008         Fix a minor spacing issue, and update copyright notice to match
61009         glibc's.
61010
61011 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61012
61013         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
61014
61015 2005-09-06  Simon Josefsson  <jas@extundo.com>
61016
61017         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
61018         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
61019
61020 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
61023         warning.
61024
61025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * config/srclist.txt: Add glibc bug 1302.
61028
61029 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         Change bitset word type from unsigned int to unsigned long int,
61032         as this has better performance on typical 64-bit hosts.
61033         Port bitset code to hosts with unusual word sizes.
61034         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
61035         (build_collating_symbol):
61036         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
61037         argument is a bitset.  This is merely a style issue, but it makes
61038         it clearer that an entire array is expected.
61039         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
61040         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
61041         Port to the case where bitset_word is not the same as unsigned int.
61042         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61043         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
61044         Likewise.
61045         * lib/regexec.c (check_dst_limits_calc_pos_1,
61046         check_subexp_matching_top):
61047         (build_trtable, group_nodes_into_DFAstates):
61048         Likewise.
61049         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
61050         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
61051         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
61052         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
61053         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
61054         * lib/regcomp.c (optimize_subexps, lower_subexp):
61055         Work even if bitset_word has holes in its bitwise representation.
61056         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
61057         * lib/regexec.c (check_dst_limits_calc_pos_1,
61058         check_subexp_matching_top):
61059         Likewise.
61060         * lib/regex_internal.c (re_string_reconstruct):
61061         Don't assume UCHAR_MAX == 255.
61062         * lib/regex_internal.h (bitset_set_all): Likewise.
61063         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
61064         All uses changed.
61065         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
61066         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
61067         All uses changed.
61068         (BITSET_WORD_MAX): New macro.
61069         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
61070         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
61071         (bitset_empty, bitset_copy):
61072         Prefer sizeof (bitset) to multiplying it out ourselves.
61073         (bitset_not_merge): Remove; unused.
61074         (bitset_contain): Return bool, not unsigned int with one bit on.
61075         All callers changed.
61076         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
61077         alignment than re_node_set; do this by defining a new internal
61078         type struct dests_alloc and using it to allocate memory.
61079
61080 2005-09-05  Bruno Haible  <bruno@clisp.org>
61081
61082         * gnulib-tool (func_import): Fix comparison in handling of symbolic
61083         links.
61084
61085 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
61086
61087         * modules/size_max (Makefile.am): Add size_max.h
61088
61089 2005-09-04  Derek Price  <derek@ximbiot.com>
61090
61091         * gnulib-tool (func_import): Fix reversed $symbolic logic.
61092
61093 2005-09-03  Simon Josefsson  <jas@extundo.com>
61094
61095         * gnulib-tool: Fix typo.
61096
61097 2005-09-03  Simon Josefsson  <jas@extundo.com>
61098
61099         * config/srclist.txt: Add glibc bug 1293.
61100
61101 2005-09-03  Derek Price  <derek@ximbiot.com>
61102
61103         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61104         From Larry Jones <lawrence.jones@ugs.com>.
61105
61106 2005-09-02  Simon Josefsson  <jas@extundo.com>
61107
61108         * modules/socklen: New file.
61109
61110 2005-09-02  Simon Josefsson  <jas@extundo.com>
61111
61112         * modules/havelib: New module.
61113
61114         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61115         Use havelib.
61116
61117 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61118
61119         Check for arithmetic overflow when calculating sizes, to prevent
61120         some buffer-overflow issues.  These patches are conservative, in the
61121         sense that when I couldn't determine whether an overflow was possible,
61122         I inserted a run-time check.
61123         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61124         macros.
61125         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61126         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61127         (re_xnrealloc, re_x2nrealloc): New inline functions.
61128         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61129         parse_bracket_exp):
61130         (build_equiv_class, build_charclass): Check for arithmetic overflow
61131         in size expression calculations.
61132         * lib/regex_internal.c (re_string_realloc_buffers):
61133         (build_wcs_upper_buffer, re_node_set_add_intersect):
61134         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61135         (re_dfa_add_node, register_state): Likewise.
61136         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61137         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61138         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61139         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61140
61141 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61144         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61145
61146 2005-09-02  Bruno Haible  <bruno@clisp.org>
61147
61148         Support for lib vs. lib64 distinction on biarch platforms.
61149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61150         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61152
61153 2005-09-02  Bruno Haible  <bruno@clisp.org>
61154
61155         * gnulib-tool (import): In the other first-use case, provide defaults
61156         as well.
61157
61158 2005-09-02  Bruno Haible  <bruno@clisp.org>
61159
61160         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61161         patches not yet found in the latest gettext release.
61162
61163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61164
61165         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61166         to avoid a collision with bits/local_lim.h in glibc.
61167         All uses changed.  Problem reported by Dmitry V. Levin in
61168         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61169
61170         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61171         bugs in int versus size_t comparisons.
61172         (re_string_context_at): Fix bug where the code assumed that
61173         Idx is signed.
61174
61175         Use bool where appropriate.
61176         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
61177         All callers changed.
61178         (calc_eclosure_iter): Likewise, for ROOT arg.
61179         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
61180         (build_charclass_op): Likewise, for NON_MATCH arg.
61181         * lib/regex_internal.c (re_string_allocate, re_string_construct):
61182         (re_string_construct_common): Likewise, for ICASE arg.
61183         * lib/regexec.c (re_search_2_stub, re_search_stub):
61184         Likewise, for RET_LEN arg.
61185         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
61186         (set_regs): Likewise, for FL_BACKTRACK arg.
61187         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
61188         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
61189         (calc_eclosure_iter, parse_bracket_exp):
61190         Use bool for internal variables that are booleans.
61191         * lib/regexec.c (re_search_internal, check_matching,
61192         proceed_next_node):
61193         (set_regs, build_sifted_states, sift_states_bkref):
61194         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
61195         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61196         (find_collation_sequence_value):
61197         Likewise.
61198         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
61199         (re_node_set_compare):
61200         Return bool, not int. All callers changed.
61201         * lib/regexec.c (check_halt_node_context, check_dst_limits):
61202         (build_trtable, check_node_accept): Likewise.
61203         * lib/regex_internal.h: Include stdbool.h.
61204
61205         Fix bugs uncovered when converting to bool.
61206         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
61207         failure instead of charging ahead blindly.
61208         * lib/regex_internal.c (register_state): Likewise.
61209         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
61210         for freeing internal storage.
61211         (group_nodes_into_DFA_states): Use unsigned int, not int, for
61212         bitset pieces used as boolean, to avoid undefined behavior
61213         on hosts that do int overflow checking.
61214
61215 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         * config/srclist.txt: Add glibc bugs 1285-1287.
61218
61219 2005-09-01  Jim Meyering  <jim@meyering.net>
61220
61221         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
61222         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
61223         Require gl_STAT_MACROS, too.
61224
61225 2005-09-01  Bruno Haible  <bruno@clisp.org>
61226
61227         * gnulib-tool (import): In the first-use case, provide defaults.
61228
61229 2005-09-01  Bruno Haible  <bruno@clisp.org>
61230
61231         * gnulib-tool (func_import): Remove the .tmp files.
61232
61233 2005-09-01  Bruno Haible  <bruno@clisp.org>
61234
61235         * gnulib-tool (func_import): Fix handling of symbolic links.
61236
61237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
61240         old glibc regex code mishandles strings longer than 2**31 bytes.
61241         This patch fixes this when the regex code is used in gnulib
61242         (i.e., outside glibc).
61243
61244         This patch should not affect the use of the regex code inside
61245         glibc.  No doubt this problem also needs to be handled for glibc
61246         as well, but the result will be an incompatible change to the
61247         glibc ABI, and the old ABI will have to be supported too.  That
61248         can be the the subject for another patch.
61249
61250         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
61251         governing whether the rest of this patch is active.  By default,
61252         the macro is disabled and the patch has no effect.
61253         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
61254         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
61255         (struct re_pattern_buffer, re_search, re_search_2, re_match):
61256         (re_match_2, re_set_registers): Use the new types.
61257         * lib/regex_internal.h (Idx, re_hashval_t): New types.
61258         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
61259         New macros.
61260         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
61261         (re_string_context_at, bin_tree_t, re_dfastate_t):
61262         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
61263         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
61264         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
61265         (re_string_char_size_at, re_string_wchar_at):
61266         (re_string_elem_size_at):
61267         Use the new types and macros to port to 64-bit hosts.
61268         Use unsigned types for internal values, so that the code
61269         mostly works even for arrays larger than SSIZE_MAX.
61270         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
61271         (search_duplicated_node, calc_eclosure_iter, fetch_number):
61272         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
61273         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
61274         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
61275         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
61276         (calc_inveclosure, parse_dup_op, build_range_exp):
61277         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
61278         (fetch_number, create_token_tree, mark_opt_subexp):
61279         Likewise.
61280         * lib/regex_internal.c (re_string_construct_common,
61281         create_ci_newstate):
61282         (create_cd_newstate, re_string_allocate, re_string_construct):
61283         (re_string_realloc_buffers, build_wcs_upper_buffer):
61284         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61285         (re_string_reconstruct, re_string_peek_byte_case):
61286         (re_string_fetch_byte_case, re_string_context_at):
61287         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61288         (re_node_set_init_copy, re_node_set_add_intersect):
61289         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61290         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61291         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61292         (re_acquire_state, re_acquire_state_context, register_state):
61293         Likewise.
61294         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
61295         search_cur_bkref_entry):
61296         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
61297         (re_search_internal, re_search_2_stub, re_search_stub)
61298         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
61299         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
61300         (update_cur_sifted_state, check_dst_limits):
61301         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61302         (check_subexp_limits, sift_states_bkref, merge_state_array):
61303         (check_subexp_matching_top, get_subexp, get_subexp_sub):
61304         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
61305         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61306         (expand_bkref_cache, check_node_accept_bytes):
61307         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
61308         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
61309         (acquire_init_state_context, check_halt_node_context):
61310         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
61311         (sift_states_backward, clean_state_log_if_needed):
61312         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
61313         (find_recover_state, transit_state_sb, transit_state_mb):
61314         (transit_state_bkref, build_trtable, match_ctx_clean):
61315         Likewise.
61316         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
61317         to work around an assumption that REG_MISSING is negative.
61318
61319         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
61320         (seek_collating_symbol_entry) [defined _LIBC]:
61321         (lookup_collation_sequence_value) [defined _LIBC]:
61322         (build_range_exp, build_collating_symbol) [defined _LIBC]:
61323         Use prototypes rather than old-style function definitions.
61324         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
61325         (transit_state_sb) [0]:
61326         (find_collation_sequence_value) [defined _LIBC]: Likewise.
61327
61328         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
61329         rm_eo.
61330
61331         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
61332         (optimize_subexps, lower_subexp):
61333         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
61334         since the signed shift might overflow.  Use 1u<<31 instead.
61335         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61336         Likewise.
61337         * lib/regexec.c (check_dst_limits_calc_pos_1,
61338         check_subexp_matching_top): Likewise.
61339
61340         * lib/regcomp.c (optimize_subexps, lower_subexp):
61341         Use CHAR_BIT rather than 8, for clarity.
61342         * lib/regexec.c (check_dst_limits_calc_pos_1):
61343         (check_subexp_matching_top): Likewise.
61344         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
61345         have to worry about portability issues when shifting it left.
61346         Remove no-longer-needed test for table_size > 0.
61347         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
61348         in a word, as the resulting behavior is undefined.
61349         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
61350         in one case, a <= should have been an <, and in another case the
61351         whole test was missing.
61352         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
61353         the standard name CHAR_BIT.
61354         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
61355         this is not true on one's complement and signed-magnitude hosts.
61356
61357         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
61358         next_last_offset.
61359         (struct re_dfa_t): Remove unused member states_alloc.
61360         * lib/regcomp.c (init_dfa): Don't initialize unused members.
61361
61362 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
61365         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
61366         and large-file glibc and in 32-bit large-file Solaris.
61367
61368 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
61371         lengths fit in regoff_t; this isn't true if regoff_t is the same
61372         width as size_t.
61373         * lib/regex.c (re_search_internal): 5th arg is LAST_START
61374         (= START + RANGE) instead of RANGE.  This avoids overflow
61375         problems when regoff_t is the same width as size_t.
61376         All callers changed.
61377         (re_search_2_stub): Check for overflow when adding the
61378         sizes of the two strings.
61379         (re_search_stub): Check for overflow when adding START
61380         to RANGE; if it occurs, substitute the extreme value.
61381
61382 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
61385
61386 2005-08-31  Jim Meyering  <jim@meyering.net>
61387
61388         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
61389         a pointer-to-const.
61390         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
61391         (register_state): Likewise.
61392         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
61393         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61394         (group_nodes_into_DFAstates): Likewise.
61395
61396 2005-08-31  Jim Meyering  <jim@meyering.net>
61397
61398         * check-module: Add a FIXME comment.
61399
61400 2005-08-31  Eric Blake  <ebb9@byu.net>
61401
61402         * modules/unistd-safer (Files): Add unistd--.h.
61403         * modules/stdio-safer (Files): Add stdio--.h.
61404
61405 2005-08-31  Derek Price  <derek@ximbiot.com>
61406
61407         * lib/getdelim.c (getdelim): Return EOF on EOF.
61408         Reported by Larry Jones <lawrence.jones@ugs.com>.
61409
61410 2005-08-31  Bruno Haible  <bruno@clisp.org>
61411
61412         Avoid unnecessary diffs in the generated lib/Makefile.am.
61413         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
61414         the generated files.
61415         (func_import): Don't set cmd.
61416
61417 2005-08-31  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/strstr.c: Include <stddef.h>, for NULL.
61420         * lib/strcasestr.c: Likewise.
61421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61422
61423 2005-08-31  Bruno Haible  <bruno@clisp.org>
61424
61425         * gnulib-tool: New option --macro-prefix.
61426         (func_import): Use macro_prefix.
61427         (import): Handle option --macro-prefix.
61428
61429 2005-08-31  Bruno Haible  <bruno@clisp.org>
61430
61431         * gnulib-tool (import): Rename most ac_* variables to cached_*.
61432         Also use new variables cached_lgpl, cached_libtool.
61433
61434 2005-08-31  Bruno Haible  <bruno@clisp.org>
61435
61436         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
61437         always instantiating them.
61438
61439 2005-08-31  Bruno Haible  <bruno@clisp.org>
61440
61441         * gnulib-tool (func_import): Read the previous cached settings
61442         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
61443         earlier added by gnulib but are now dropped. Warn when a gnulib file
61444         overwrites a non-gnulib file.
61445
61446 2005-08-31  Bruno Haible  <bruno@clisp.org>
61447
61448         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
61449         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
61450         projects that don't keep autogenerated files in CVS. Put into
61451         actioncmd only the specified modules, not the transitive closure.
61452
61453 2005-08-31  Bruno Haible  <bruno@clisp.org>
61454
61455         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
61456         Create directories that shall be filled.
61457         (import): Don't look for gl_* macros in configure.ac. Recurse across
61458         all directories containing a gnulib-cache.m4 files, if meaningful.
61459
61460 2005-08-31  Bruno Haible  <bruno@clisp.org>
61461
61462         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
61463         (import): Set seen_libtool when we see gl_LIBTOOL.
61464
61465 2005-08-31  Bruno Haible  <bruno@clisp.org>
61466
61467         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
61468         declaration macro definitions from generated gnulib.m4.
61469
61470 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
61471
61472         * lib/iconvme.h: Add prototype for iconv_alloc.
61473
61474 2005-08-29  Simon Josefsson  <jas@extundo.com>
61475
61476         * lib/iconvme.c: Fix errno.
61477
61478 2005-08-29  Bruno Haible  <bruno@clisp.org>
61479
61480         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
61481         that it works when the directory contains spaces.
61482
61483 2005-08-29  Bruno Haible  <bruno@clisp.org>
61484
61485         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
61486
61487 2005-08-29  Bruno Haible  <bruno@clisp.org>
61488
61489         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
61490         Emit more advice.
61491
61492 2005-08-29  Bruno Haible  <bruno@clisp.org>
61493         and Stepan Kasal  <kasal@ucw.cz>
61494
61495         * check-module: If more parameters are given, check each of them
61496         separately; add more exceptions, as noted by Jim Meyering.
61497         (check_module): New procedure.
61498         (%exempt_header): Now contains all exceptions.
61499
61500 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61501
61502         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61503
61504 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61505
61506         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61507
61508 2005-08-28  Bruno Haible  <bruno@clisp.org>
61509
61510         * m4/gnulib-tool.m4: New file.
61511
61512 2005-08-27  Jim Meyering  <jim@meyering.net>
61513
61514         * modules/unistd-safer (Files): Add pipe-safer.c.
61515         * modules/fcntl-safer (Files): Add creat-safer.c.
61516
61517 2005-08-27  Jim Meyering  <jim@meyering.net>
61518
61519         * m4/stdlib-safer.m4: New file.  From coreutils.
61520         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61521         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61522         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61523         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61524         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61525
61526 2005-08-27  Jim Meyering  <jim@meyering.net>
61527
61528         * lib/fopen-safer.c: Merge minor changes from coreutils.
61529         * lib/dup-safer.c: Likewise.
61530         * lib/fd-safer.c: Likewise.
61531
61532         Merge from coreutils.
61533         * lib/stdio--.h: New file.
61534         * lib/stdlib--.h: New file.
61535         * lib/mkstemp-safer.c: New file.
61536
61537         GNU tar needs these.
61538         * lib/pipe-safer.c: New file.
61539         * lib/creat-safer.c: New file.
61540         * lib/fcntl--.h (creat): Define to creat_safer.
61541         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61542         * lib/unistd--.h (pipe): Define to pipe_safer.
61543         * lib/unistd-safer.h: Declare pipe_safer.
61544
61545 2005-08-26  Simon Josefsson  <jas@extundo.com>
61546
61547         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61548         Haible <bruno@clisp.org>.
61549
61550 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         * lib/regex_internal.h: Remove all references to
61553         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61554         or better.
61555         (bitset_not, bitset_merge, bitset_not_merge):
61556         (bitset_mask, re_string_allocate, re_string_construct):
61557         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61558         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61559         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61560         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61561         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61562         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61563         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61564         (re_acquire_state_context):
61565         Remove unnecessary forward decls.
61566         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61567         Put __attribute at function definition,
61568         now that the function decl has been removed.
61569         * lib/regex_internal.c (re_string_peek_byte_case):
61570         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61571         Likewise.
61572
61573 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61574
61575         * m4/regex.m4: Add AC_PREREQ(2.50).
61576         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61577
61578 2005-08-25  Simon Josefsson  <jas@extundo.com>
61579
61580         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61581         __fsetlocking.
61582
61583 2005-08-25  Simon Josefsson  <jas@extundo.com>
61584
61585         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61586         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61587         GLIBC specific code.
61588
61589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61590
61591         Make regex safe for g++.  This fixes one real bug (an "err"
61592         that should have been "*err").  g++ problem reported by
61593         Sam Steingold.
61594         * lib/regex_internal.h (re_calloc): New macro, consistent with
61595         re_malloc etc.  All callers of calloc changed to use re_calloc.
61596         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61597         not int.  All callers changed.
61598         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61599         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61600         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61601         (find_recover_state): Change "err" to "*err"; this fixes what
61602         appears to be a real bug.
61603         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61604         versus int.
61605
61606 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * modules/regex (Depends-on): Add malloc, since the code
61609         assumes that !malloc(0) means failure.
61610
61611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61614
61615         alloca modernization/simplification for regex.
61616         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61617         needs to be at the start of the file, and can be moved into
61618         regex_internal.h and simplified.
61619         * lib/regex_internal.h: Include <alloca.h>.
61620         (__libc_use_alloca) [!defined _LIBC]: New macro.
61621         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61622         now works outside glibc.
61623
61624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * config/srclist.txt: Add glibc bugs 1241, 1245.
61627
61628 2005-08-25  Jim Meyering  <jim@meyering.net>
61629
61630         * lib/open-safer.c: Include <config.h>.
61631         Otherwise, we'd lose LARGEFILE support in any file using
61632         e.g. "fcntl--.h"
61633
61634 2005-08-25  Bruno Haible  <bruno@clisp.org>
61635
61636         * m4/minmax.m4: Require autoconf 2.52.
61637         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61638         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61639         alternatives of translit over the alphabet.
61640         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61641
61642 2005-08-24  Simon Josefsson  <jas@extundo.com>
61643
61644         * tests/test-getpass.c: New file.
61645
61646 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61649         for GNU regex features.
61650
61651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61654         * lib/regex.h (regerror): Likewise.
61655
61656         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61657         requires this.  (The code never needed it.)
61658
61659         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61660         All uses of recently-renamed identifiers changed to use the new,
61661         POSIX-compliant names.  The code will build and run just fine
61662         without these changes, but it's better to eat our own dog food
61663         and use the standard-conforming names.
61664
61665         * lib/regex.h: Fix a multitude of POSIX name space violations.
61666         These changes have an effect only for programs that define
61667         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61668         do not change anything for programs compiled in the normal way.
61669         Also, there is no effect on the ABI.
61670
61671         (_REGEX_SOURCE): New macro.
61672         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61673         defined and _GNU_SOURCE is not; this fixes a name space violation.
61674
61675         Rename the following macros to obey POSIX requirements.
61676         The old names are still visible as macros if _REGEX_SOURCE is defined.
61677         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61678         RE_BACKSLASH_ESCAPE_IN_LISTS.
61679         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61680         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61681         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61682         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61683         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61684         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61685         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61686         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61687         (REG_INTERVALS): renamed from RE_INTERVALS.
61688         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61689         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61690         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61691         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61692         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61693         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61694         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61695         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61696         RE_UNMATCHED_RIGHT_PAREN_ORD.
61697         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61698         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61699         (REG_DEBUG): renamed from RE_DEBUG.
61700         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61701         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61702         unusual, since we can't clash with the POSIX REG_ICASE.
61703         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61704         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61705         (REG_NO_SUB): renamed from RE_NO_SUB.
61706         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61707         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61708         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61709         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61710         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61711         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61712         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61713         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61714         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61715         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61716         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61717         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61718         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61719         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61720         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61721         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61722         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61723         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61724         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61725         (REG_FIXED): Renamed from REGS_FIXED.
61726         (REG_NREGS): Renamed from RE_NREGS.
61727
61728         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61729         of other REG_* macros, since POSIX says the user is allowed to
61730         #undef these macros selectively.
61731
61732         (reg_errcode_t): Update comment stating what other tables need
61733         to be consistent.
61734
61735         Rename the following enum values to obey POSIX requirements.
61736         The old names are still visible as macros.
61737         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61738         is not defined, since GNU is supposed to be a superset of POSIX as
61739         much as possible, and since we want reg_errcode_t to be a signed
61740         type for implementation consistency.
61741         (_REG_NOERROR): Renamed from REG_NOERROR.
61742         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61743         (_REG_BADPAT): Renamed from REG_BADPAT.
61744         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61745         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61746         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61747         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61748         (_REG_EBRACK): Renamed from REG_EBRACK.
61749         (_REG_EPAREN): Renamed from REG_EPAREN.
61750         (_REG_EBRACE): Renamed from REG_EBRACE.
61751         (_REG_BADBR): Renamed from REG_BADBR.
61752         (_REG_ERANGE): Renamed from REG_ERANGE.
61753         (_REG_ESPACE): Renamed from REG_ESPACE.
61754         (_REG_BADRPT): Renamed from REG_BADRPT.
61755         (_REG_EEND): Renamed from REG_EEND.
61756         (_REG_ESIZE): Renamed from REG_ESIZE.
61757         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61758         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61759         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61760         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61761         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61762
61763         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61764         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61765         changed.  But support the old name if the new one is not defined
61766         and if _REGEX_SOURCE.
61767
61768         Change the following member names in struct re_pattern_buffer.
61769         The old names are still supported if !_REGEX_SOURCE.
61770         The new names are always supported, regardless of _REGEX_SOURCE.
61771         (re_buffer): Renamed from buffer.
61772         (re_allocated): Renamed from allocated.
61773         (re_used): Renamed from used.
61774         (re_syntax): Renamed from syntax.
61775         (re_fastmap): Renamed from fastmap.
61776         (re_translate): Renamed from translate.
61777         (re_can_be_null): Renamed from can_be_null.
61778         (re_regs_allocated): Renamed from regs_allocated.
61779         (re_fastmap_accurate): Renamed from fastmap_accurate.
61780         (re_no_sub): Renamed from no_sub.
61781         (re_not_bol): Renamed from not_bol.
61782         (re_not_eol): Renamed from not_eol.
61783         (re_newline_anchor): Renamed from newline_anchor.
61784
61785         Change the following member names in struct re_registers.
61786         The old names are still supported if !_REGEX_SOURCE.
61787         The new names are always supported, regardless of _REGEX_SOURCE.
61788         (rm_num_regs): Renamed from num_regs.
61789         (rm_start): Renamed from start.
61790         (rm_end): Renamed from end.
61791
61792         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61793         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61794         Prepend __ to parameter names.
61795
61796         Undo yesterday's changes.
61797
61798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61799
61800         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61801         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61802         lib/regex.c.
61803
61804 2005-08-24  Jim Meyering  <jim@meyering.net>
61805
61806         Sync from coreutils.
61807         * m4/fcntl-safer.m4: New file.
61808
61809         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61810         and object files for this module.
61811
61812 2005-08-24  Jim Meyering  <jim@meyering.net>
61813
61814         Sync from coreutils.
61815         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61816
61817 2005-08-24  Jim Meyering  <jim@meyering.net>
61818
61819         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61820         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61821
61822 2005-08-24  Jim Meyering  <jim@meyering.net>
61823
61824         * modules/fcntl-safer: New module.
61825         * modules/fts (Depends-on): Add fcntl-safer.
61826         * MODULES.html.sh (File descriptor based Input/Output):
61827         Add fcntl-safer.
61828
61829 2005-08-24  Bruno Haible  <bruno@clisp.org>
61830
61831         Support for unit test modules.
61832         * modules/README: Mention tests modules.
61833         * modules/TEMPLATE-TESTS: New file.
61834         * gnulib-tool: New options --extract-tests-module, --with-tests and
61835         --tests-base (unused for the moment).
61836         (testsbase, inctests): New variables.
61837         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61838         (func_verify_module): Exclude TEMPLATE-TESTS.
61839         (func_verify_nontests_module, func_verify_tests_module): New functions.
61840         (func_get_dependencies): Add implicit dependency for tests modules.
61841         (func_get_tests_module): New function.
61842         (func_modules_transitive_closure): When --with-tests was specified,
61843         include the unit tests as well, unless explicitly avoided.
61844         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61845         (func_emit_tests_Makefile_am): New function.
61846         (func_create_testdir): When --with-tests was specified, emit a
61847         tests/ directory.
61848         * MODULES.html.sh (Future developments): Update.
61849
61850 2005-08-24  Bruno Haible  <bruno@clisp.org>
61851
61852         * modules/tls-tests: New file.
61853         * tests/test-tls.c: New file, from GNU gettext.
61854
61855 2005-08-24  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/lock-tests: New file.
61858         * tests/test-lock.c: New file, from GNU gettext.
61859
61860 2005-08-24  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/lock.h: Add multiple inclusion guard.
61863         * lib/tls.h: Add multiple inclusion guard.
61864
61865 2005-08-24  Bruno Haible  <bruno@clisp.org>
61866
61867         * gnulib-tool: Add support for the --aux-dir option to
61868         --create-testdir, --create-megatestdir, --test, --megatest.
61869         (func_create_testdir, func_create_megatestdir): Optionally emit a
61870         AC_CONFIG_AUX_DIR directive.
61871         (create-testdir, create-megatestdir, test, megatest): Provide a
61872         default value for $auxdir.
61873
61874 2005-08-24  Bruno Haible  <bruno@clisp.org>
61875
61876         * gnulib-tool (import): Use compound statement instead of subshell
61877         where possible.
61878
61879 2005-08-24  Bruno Haible  <bruno@clisp.org>
61880
61881         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61882
61883 2005-08-24  Bruno Haible  <bruno@clisp.org>
61884
61885         * gnulib-tool (func_version): Update.
61886
61887 2005-08-24  Bruno Haible  <bruno@clisp.org>
61888
61889         * gnulib-tool (func_import, func_create_testdir,
61890         func_create_megatestdir): Quote all autoconf macro arguments.
61891
61892 2005-08-24  Bruno Haible  <bruno@clisp.org>
61893
61894         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61895         option --force, because --force causes the aclocal.m4 of each
61896         subdirectory to be newer than the corresponding config.h.in.
61897
61898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61899
61900         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61901         All contents moved to gl_REGEX.
61902         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61903         assume that it does.
61904
61905 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * lib/regex.h (REG_NOSYS)
61908         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61909         Define, since POSIX requires it as of 2001.
61910         (_REG_ENOSYS)
61911         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61912         New private symbol, used to keep the enum signed in all cases.
61913         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61914         Youngman in
61915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61916
61917         * lib/regex_internal.c (re_string_skip_chars, register_state):
61918         (calc_state_hash):
61919         Remove forward decls; no longer needed now that we use prototypes.
61920         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61921         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61922         (clean_state_log_if_needed): Likewise.
61923
61924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61925
61926         * config/srclist.txt: Add glibc bugs 1231-1233.
61927
61928 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         Fix problems reported by Sam Steingold in
61931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
61932         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
61933         assumed that reg_errcode_t is a signed type, which is not
61934         necessarily true if _XOPEN_SOURCE is not defined.
61935         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
61936         since some compilers warn about it otherwise.
61937
61938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
61941         (init_word_char, create_initial_state, duplicate_node_closure):
61942         (fetch_token, peek_token_bracket, build_range_exp):
61943         (build_collating_symbol): Remove forward decls; no longer needed
61944         now that we use prototypes.
61945
61946         * lib/regcomp.c:
61947         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
61948         (re_compile_fastmap_iter, regcomp, regerror, regfree):
61949         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
61950         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
61951         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
61952         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
61953         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
61954         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
61955         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
61956         (build_range_exp, build_collating_symbol, parse_bracket_exp):
61957         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
61958         (build_charclass, build_charclass_op, fetch_number, create_tree):
61959         (create_token_tree, mark_opt_subexp, duplicate_tree):
61960         Use prototypes rather than old-style definitions.
61961
61962         * lib/regex_internal.c:
61963         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
61964         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
61965         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61966         (re_string_reconstruct, re_string_peek_byte_case):
61967         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
61968         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61969         (re_node_set_init_copy, re_node_set_add_intersect):
61970         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61971         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61972         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61973         (re_acquire_state, re_acquire_state_context, register_state):
61974         (create_ci_newstate, create_cd_newstate, free_state):
61975         Likewise.
61976         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61977         re_search_2):
61978         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61979         (re_search_internal, prune_impossible_nodes):
61980         (acquire_init_state_context, check_matching, static):
61981         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61982         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61983         (update_regs, sift_states_backward, build_sifted_states):
61984         (clean_state_log_if_needed, merge_state_array):
61985         (update_cur_sifted_state, add_epsilon_src_nodes):
61986         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61987         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61988         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61989         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61990         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61991         (check_arrival, check_arrival_add_next_nodes):
61992         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61993         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61994         (check_node_accept_bytes, check_node_accept, extend_buffers):
61995         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61996         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61997         (sift_ctx_init):
61998         Likewise.
61999
62000         * lib/regex_internal.h:
62001         (re_string_allocate, re_string_construct, re_string_reconstruct):
62002         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
62003         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
62004         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
62005         (re_string_context_at, re_string_peek_byte_case):
62006         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
62007         is defined, since we now use prototypes always.
62008
62009         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
62010         C89 or better.  All uses removed.
62011
62012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62013
62014         * config/srclist.txt: Add glibc bugs 1220-1227.
62015
62016 2005-08-20  Jim Meyering  <jim@meyering.net>
62017
62018         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
62019         of unused local, dfa.
62020
62021 2005-08-20  Bruno Haible  <bruno@clisp.org>
62022
62023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
62024
62025 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
62028         (re_node_set_insert_last, re_dfa_add_node):
62029         Rename local variables to avoid GCC shadowing warnings.
62030
62031 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62032
62033         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
62034         [defined lint]: Suppress bogus uninitialized-variable warnings.
62035
62036         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
62037         and let the caller return REG_ESPACE if out of space.  This
62038         removes an uninitialied-variable warning with GCC 4.0.1, and also
62039         avoids taking the address of a local variable.  All callers
62040         changed.
62041
62042 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
62045         $LIBCSRC/posix/regexec.c.
62046         Add glibc bug 1217 for regcomp.c.
62047
62048 2005-08-19  Jim Meyering  <jim@meyering.net>
62049
62050         * lib/regexec.c (proceed_next_node): Redo local variables to
62051         avoid GCC shadowing warnings.
62052
62053 2005-08-18  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/strstr.c (strstr): Fix return value in multibyte case.
62056         * lib/strcasestr.c (strcasestr): Likewise.
62057
62058 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
62061
62062 2005-08-17  Jim Meyering  <jim@meyering.net>
62063
62064         Make the %s format (seconds since the epoch) work for a negative
62065         number and when used with a zero-padded field width, e.g. %015s.
62066
62067         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
62068         label so that it precedes the code to set `digits'.  Otherwise,
62069         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
62070         print `00-22'.  Now, it prints `-0022', as it should.
62071
62072 2005-08-17  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/strstr (Files): Add m4/mbrtowc.m4.
62075         (Depends-on): Add mbuiter.
62076
62077 2005-08-17  Bruno Haible  <bruno@clisp.org>
62078
62079         * modules/strcasestr: New file.
62080         * MODULES.html.sh (String handling, based on ANSI C 89): Add
62081         strcasestr.
62082
62083 2005-08-17  Bruno Haible  <bruno@clisp.org>
62084
62085         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
62086
62087 2005-08-17  Bruno Haible  <bruno@clisp.org>
62088
62089         * modules/mbuiter: New file.
62090         * MODULES.html.sh (Extended multibyte and wide character utilities):
62091         Add mbuiter.
62092
62093 2005-08-17  Bruno Haible  <bruno@clisp.org>
62094
62095         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
62096         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
62097
62098 2005-08-17  Bruno Haible  <bruno@clisp.org>
62099
62100         * m4/strcasestr.m4: New file.
62101
62102 2005-08-17  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62105         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62106
62107 2005-08-17  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/strcasestr.h: New file.
62110         * lib/strcasestr.c: New file.
62111
62112 2005-08-17  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/strcasecmp.c: Use mbuiter.h.
62115
62116 2005-08-17  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/mbuiter.h: New file.
62119
62120 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62123         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62124         and gl_GETOPT are both invoked via different paths (as happens
62125         with GNU tar CVS because it uses both argp and getopt), the former
62126         wins.
62127
62128 2005-08-16  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/tls: New file.
62131         * MODULES.html.sh (Multithreading): Add tls.
62132
62133 2005-08-16  Bruno Haible  <bruno@clisp.org>
62134
62135         * modules/strnlen1: New file.
62136         * MODULES.html.sh (String handling): Add strnlen1.
62137
62138 2005-08-16  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/strcase (Files): Add m4/mbrtowc.m4.
62141         (Depends-on): Add strnlen1, mbchar.
62142
62143 2005-08-16  Bruno Haible  <bruno@clisp.org>
62144
62145         * modules/mbiter: New file.
62146         * MODULES.html.sh (Extended multibyte and wide character utilities):
62147         Add mbiter.
62148
62149 2005-08-16  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/mbfile: New file.
62152         * MODULES.html.sh (Extended multibyte and wide character utilities):
62153         Add mbfile.
62154
62155 2005-08-16  Bruno Haible  <bruno@clisp.org>
62156
62157         * modules/mbchar: New file.
62158         * MODULES.html.sh (Extended multibyte and wide character utilities):
62159         New section.
62160
62161 2005-08-16  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/tls.m4: New file, from GNU gettext.
62164
62165 2005-08-16  Bruno Haible  <bruno@clisp.org>
62166
62167         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62168         always.
62169         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62170
62171 2005-08-16  Bruno Haible  <bruno@clisp.org>
62172
62173         * m4/mbiter.m4: New file.
62174
62175 2005-08-16  Bruno Haible  <bruno@clisp.org>
62176
62177         * m4/mbfile.m4: New file.
62178
62179 2005-08-16  Bruno Haible  <bruno@clisp.org>
62180
62181         * m4/mbchar.m4: New file.
62182
62183 2005-08-16  Bruno Haible  <bruno@clisp.org>
62184
62185         * lib/tls.h: New file, from GNU gettext.
62186         * lib/tls.c: New file, from GNU gettext.
62187
62188 2005-08-16  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/strnlen1.h: New file.
62191         * lib/strnlen1.c: New file.
62192
62193 2005-08-16  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
62196         (mbi_init): Update.
62197         (mbi_avail, mbi_advance): Let the iteration end before the terminating
62198         NUL byte, not after it.
62199
62200 2005-08-16  Bruno Haible  <bruno@clisp.org>
62201
62202         * lib/strcase.h (strcasecmp): Add note in comments.
62203         * lib/strncasecmp.c: Use code from strcasecmp.c.
62204         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
62205         (strcasecmp): Work correctly in multibyte locales.
62206
62207 2005-08-16  Bruno Haible  <bruno@clisp.org>
62208
62209         * lib/mbiter.h: New file.
62210
62211 2005-08-16  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/mbfile.h: New file.
62214
62215 2005-08-16  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/mbchar.h: New file.
62218         * lib/mbchar.c: New file.
62219
62220 2005-08-16  Bruno Haible  <bruno@clisp.org>
62221
62222         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
62223         the valid ones. Makes the comparison operations transitive:
62224         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
62225         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
62226
62227 2005-08-15  Simon Josefsson  <jas@extundo.com>
62228
62229         * modules/ssize_t (License): Change to 'unlimited'.
62230
62231         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
62232
62233 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62234
62235         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
62236         Add comments for each pending glibc patch.
62237
62238 2005-08-15  Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/regex.h (__restrict_arr): Don't define to __restrict if
62241         __cplusplus is defined.
62242
62243 2005-08-14  Jim Meyering  <jim@meyering.net>
62244
62245         Sync from coreutils.
62246
62247         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
62248         Use the hash-table-based cycle-detection code not just when
62249         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
62250         Reported by James Youngman in
62251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
62252         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
62253         FTS_TIGHT_CYCLE_CHECK.
62254         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
62255         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
62256         once again.
62257         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
62258         * lib/fts.c (fd_safer): Remove decl.
62259         Include fcntl--.h rather than unistd-safer.h
62260         (fts_safe_changedir): Don't call fd_safer; no longer needed
62261         now that we include fcntl--.h.
62262
62263 2005-08-12  Simon Josefsson  <jas@extundo.com>
62264
62265         * modules/getndelim2: Use ssize_t module.
62266         * modules/getnline: Likewise.
62267         * modules/safe-read: Likewise.
62268         * modules/xreadlink: Likewise.
62269
62270         * modules/ssize_t: New file.
62271
62272 2005-08-12  Simon Josefsson  <jas@extundo.com>
62273
62274         * m4/readline.m4: Look for termcap, curses or ncurses if required.
62275
62276 2005-08-12  Simon Josefsson  <jas@extundo.com>
62277
62278         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62279         ssize_t.
62280
62281 2005-08-12  Simon Josefsson  <jas@extundo.com>
62282
62283         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
62284         readline, getdelim and check_version.
62285         (Support for systems lacking ISO C 99: Sizes of integer types):
62286         Add size_max.
62287
62288 2005-08-12  Bruno Haible  <bruno@clisp.org>
62289
62290         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
62291
62292 2005-08-11  Simon Josefsson  <jas@extundo.com>
62293
62294         * modules/readline: New file.
62295
62296         * modules/strnlen (Files): Add strnlen.h.
62297
62298 2005-08-11  Simon Josefsson  <jas@extundo.com>
62299
62300         * m4/readline.m4: New file.
62301
62302 2005-08-11  Simon Josefsson  <jas@extundo.com>
62303
62304         * lib/readline.h, readline.c: New file.
62305
62306 2005-08-11  Simon Josefsson  <jas@extundo.com>
62307
62308         * doc/gnulib.texi (Initial import, Finishing touches): Mention
62309         gl_AVOID.
62310
62311 2005-08-11  Bruno Haible  <bruno@clisp.org>
62312
62313         * lib/strnlen.h (strnlen): Change parameter name to match comment.
62314
62315 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
62316
62317         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
62318
62319 2005-08-10  Simon Josefsson  <jas@extundo.com>
62320
62321         * tests/test-iconvme.c: New file.
62322
62323 2005-08-10  Simon Josefsson  <jas@extundo.com>
62324
62325         * m4/strnlen.m4: New file.
62326
62327         * m4/strndup.m4: Don't check for strnlen declaration, done in
62328         strnlen.m4.
62329
62330 2005-08-10  Simon Josefsson  <jas@extundo.com>
62331
62332         * lib/strndup.c: Use strnlen.h.
62333
62334         * lib/strnlen.h: New file.
62335
62336 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62337
62338         * README: Typos.
62339
62340 2005-08-02  Simon Josefsson  <jas@extundo.com>
62341
62342         * modules/readline: New file.
62343
62344 2005-08-02  Simon Josefsson  <jas@extundo.com>
62345
62346         * modules/getdelim: New file.
62347
62348         * modules/getline: Rewrite, don't use getndelim2.
62349
62350 2005-08-02  Simon Josefsson  <jas@extundo.com>
62351
62352         * m4/getline.m4: Separate out getdelim stuff into separate module.
62353
62354         * m4/getdelim.m4: New file.
62355
62356 2005-08-02  Simon Josefsson  <jas@extundo.com>
62357
62358         * lib/getline.h, getline.c: Rewrite.
62359
62360         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
62361
62362 2005-07-31  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/lock.h (gl_lock_initializer): New macro.
62365         (gl_lock_define_initialized): Use it.
62366         (gl_rwlock_initializer): New macro.
62367         (gl_rwlock_define_initialized): Use it.
62368         (gl_recursive_lock_initializer): New macro.
62369         (gl_recursive_lock_define_initialized): Use it.
62370
62371 2005-07-30  Karl Berry  <karl@gnu.org>
62372
62373         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
62374         Report from Ben Pfaff, regarding getopt.
62375
62376 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
62377
62378         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
62379         normal way.
62380         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
62381         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
62382         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
62383         (gl_GETOPT): Use the new macros.  Most of the implementation
62384         is moved to the new macros.  This is for programs like Emacs
62385         that don't want all the functionality of gl_GETOPT.
62386
62387 2005-07-26  Bruno Haible  <bruno@clisp.org>
62388
62389         * m4/lock.m4: Update from GNU gettext.
62390
62391 2005-07-26  Bruno Haible  <bruno@clisp.org>
62392
62393         * lib/lock.h: Update from GNU gettext.
62394         * lib/lock.c: Update from GNU gettext.
62395
62396 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
62397
62398         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
62399         obsolescent AC_TRY_RUN.  Include the default includes files, for
62400         'exit'.
62401
62402 2005-07-24  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/visibility: New file.
62405         * MODULES.html.sh (Misc): Add visibility.
62406
62407 2005-07-24  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/visibility.m4: New file.
62410
62411 2005-07-24  Bruno Haible  <bruno@clisp.org>
62412
62413         * doc/visibility.texi: New file.
62414
62415 2005-07-22  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
62418         $(ALLOCA_H), redundant through BUILT_SOURCES.
62419         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
62420         redundant through BUILT_SOURCES.
62421         * modules/byteswap (Makefile.am): Remove explicit dependency on
62422         $(BYTESWAP_H), redundant through BUILT_SOURCES.
62423         * modules/fnmatch (Makefile.am): Remove explicit dependency on
62424         $(FNMATCH_H), redundant through BUILT_SOURCES.
62425         * modules/getopt (Makefile.am): Remove explicit dependency on
62426         $(GETOPT_H), redundant through BUILT_SOURCES.
62427         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
62428         redundant through BUILT_SOURCES.
62429         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
62430         redundant through BUILT_SOURCES.
62431         * modules/stdbool (Makefile.am): Remove explicit dependency on
62432         $(STDBOOL_H), redundant through BUILT_SOURCES.
62433         * modules/stdint (Makefile.am): Remove explicit dependency on
62434         $(STDINT_H), redundant through BUILT_SOURCES.
62435         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
62436         Remove explicit dependency on $(SYSEXITS_H).
62437         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
62438
62439 2005-07-18  Simon Josefsson  <jas@extundo.com>
62440
62441         * lib/check-version.c (check_version): Accept identical versions too.
62442
62443 2005-07-18  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/lock: New file.
62446         * MODULES.html.sh (Multithreading): New section.
62447
62448 2005-07-18  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/lock.m4: New file, from GNU gettext.
62451
62452 2005-07-18  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/lock.h: New file, from GNU gettext.
62455         * lib/lock.c: New file, from GNU gettext.
62456
62457 2005-07-18  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/lock.h (gl_once_t): New type.
62460         (gl_once_define, gl_once): New macros.
62461         * lib/lock.c (fresh_once): New variable.
62462         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
62463         functions.
62464
62465 2005-07-16  Simon Josefsson  <jas@extundo.com>
62466
62467         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
62468         workaround, suggested by Bruno.
62469
62470 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * modules/xalloc (Depends-on): Add xalloc-die.
62473         * modules/xvasprintf (Depends-on): Add xalloc-die.
62474
62475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
62478         with a minor change.
62479
62480 2005-07-15  Bruno Haible  <bruno@clisp.org>
62481
62482         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
62483         When using lib/poll.c, define poll as rpl_poll.
62484
62485 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * modules/argp (Depends-on): Remove unlocked-io.
62488
62489 2005-07-14  Derek Price  <derek@ximbiot.com>
62490
62491         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
62492         for glob symlink bug.
62493
62494 2005-07-14  Bruno Haible  <bruno@clisp.org>
62495
62496         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62497         Instead, test for *_unlocked function declarations directly.
62498
62499 2005-07-11  Simon Josefsson  <jas@extundo.com>
62500
62501         * modules/size_max: New file.
62502
62503         * modules/xsize: Depend on size_max module for size_max.m4.
62504
62505 2005-07-11  Simon Josefsson  <jas@extundo.com>
62506
62507         * lib/size_max.h: New file.
62508
62509 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62510
62511         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62512         copyright symbol and the year.
62513         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62514         (version_etc_va): Use parameterized copyright notice.
62515         Reword to conform to the current GNU coding standards.
62516
62517 2005-07-11  Karl Berry  <karl@gnu.org>
62518
62519         * doc/gnulib.texi (Quoting): new node.
62520         (Initial import): more info, from Patrice.
62521
62522 2005-07-11  Bruno Haible  <bruno@clisp.org>
62523
62524         * gnulib-tool (func_usage): Document option --avoid.
62525         (Command line options): Handle --avoid.
62526         (func_acceptable): New function.
62527         (func_modules_transitive_closure): Use it.
62528
62529 2005-07-11  Bruno Haible  <bruno@clisp.org>
62530
62531         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62532         Reported by Jim Meyering.
62533
62534 2005-07-10  Bruno Haible  <bruno@clisp.org>
62535
62536         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62537         Needed when size_t is smaller than 'unsigned int'.
62538         Reported by Paul Eggert.
62539
62540 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62541
62542         * modules/argp (Depends-on): Add unlocked-io
62543
62544 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62545
62546         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62547         block of defines.
62548
62549 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62552         fix now.
62553
62554 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62555         and Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62558         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62559
62560 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62561
62562         * modules/regex (Files): Add lib/regex_internal.c,
62563         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62564         (Depends-on): Add extensions.
62565         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62566
62567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62570         pathconf.
62571         * m4/same.m4 (gl_SAME): Likewise.
62572         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62573
62574         * m4/regex.m4: Adjust to new libc regex implementation.
62575         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62576         all the .c and .h parts of (the new) regex.
62577         Quote the m4 stuff better.
62578         Check for RE_ICASE bug of old gnulib.
62579         Check for REG_STARTEND of recent libc.
62580         Rename local variables from jm_* to gl_*.
62581         Quote operand of "test -f".
62582         Say "recent enough" version of libc, not "version 2".
62583         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62584         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62585         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62586         Remove check for btowc, isascii.
62587         Require AM_LANGINFO_CODESET.
62588
62589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * lib/regex.c, regex.h: Sync from libc.
62592         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62593         * lib/regexec.c:
62594         New files, synced from libc, except that regex_internal.h
62595         currently has a small porting fix.
62596
62597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62600         regex_internal.c, regexec.c.
62601         Add regex_internal.h too, but as a comment, since the libc version
62602         is currently broken in gnulib mode.
62603
62604 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         Support programs like Emacs that use gnulib but not gettext.
62607         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62608         * modules/gettext-h: New file.
62609         * modules/gettext (Files): Remove lib/gettext.h.
62610         (Depends-on): Add gettext-h.
62611         (Makefile.am): Remove lib_SOURCES.
62612         * modules/argmatch, modules/c-stack, modules/closeout:
62613         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62614         * modules/execute, modules/file-type, modules/getaddrinfo:
62615         * modules/getopt, modules/human, modules/javacomp:
62616         * modules/javaexec, modules/mkdir-p, modules/obstack:
62617         * modules/openat, modules/pagealign_alloc, modules/pipe:
62618         * modules/quotearg, modules/regex, modules/rpmatch:
62619         * modules/unicodeio, modules/userspec, modules/version-etc:
62620         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62621         * modules/xsetenv:
62622         Depend on gettext-h, not gettext.
62623
62624 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * gnulib-tool (func_import): Add support for 'public domain' license.
62627         * modules/alloca, modules/atexit, modules/memmove:
62628         Now public domain, not GPL.
62629         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62630         * modules/realloc, modules/strerror, modules/strtod:
62631         Now LGPL, not GPL.
62632
62633 2005-07-05  Bruno Haible  <bruno@clisp.org>
62634
62635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62636         autoconf CVS. Needed for mingw.
62637
62638 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62639
62640         Remove the dependency of the strftime module on the tzset module.
62641         * modules/strftime (Depends-on): Remove dependency on tzset.
62642
62643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         Remove the dependency of the strftime module on the tzset module.
62646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62647         gl_FUNC_TZSET_CLOBBER.
62648
62649 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         Remove the dependency of the strftime module on the tzset module.
62652         * lib/strftime.c (my_strftime)
62653         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62654         Copy the input structure, to work around some of the bug with
62655         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62656         Solaris releases, you should also use the tzset module, but we won't
62657         require it as a dependency any more since we don't want LGPLed code
62658         to depend on GPLed code.
62659
62660 2005-07-02  Jim Meyering  <jim@meyering.net>
62661
62662         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62663         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62664         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62665         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62666
62667 2005-07-02  Jim Meyering  <jim@meyering.net>
62668
62669         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62670
62671 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62674         declares only 'struct timespec;' (!).
62675
62676 2005-07-01  Jim Meyering  <jim@meyering.net>
62677
62678         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62679         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62680         * lib/save-cwd.c, tempname.c:
62681         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62682         and don't include <sys/file.h>).
62683
62684 2005-06-29  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62687         type name.  Use the variable name instead.
62688         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62689         Likewise.
62690
62691 2005-06-28  Simon Josefsson  <jas@extundo.com>
62692
62693         * modules/check-version (Files): Add check-version.m4.
62694
62695 2005-06-28  Simon Josefsson  <jas@extundo.com>
62696
62697         * m4/check-version.m4: New file, suggested by Jim Meyering
62698         <jim@meyering.net>.
62699
62700 2005-06-28  Simon Josefsson  <jas@extundo.com>
62701
62702         * lib/check-version.h, lib/check-version.c: New files.
62703
62704 2005-06-28  Simon Josefsson  <jas@extundo.com>
62705
62706         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62707         collision with global variable.  Better indentation.  Don't
62708         increment buffer pointer beyond buffer end.  Based on comments
62709         from Paul Eggert <eggert@cs.ucla.edu>.
62710
62711         * lib/base64.h: Indent.
62712
62713 2005-06-28  Simon Josefsson  <jas@extundo.com>
62714
62715         * doc/gnulib.texi (Library version handling): New section.
62716
62717 2005-06-28  Jim Meyering  <jim@meyering.net>
62718
62719         * check-module (find_included_lib_files): Hard-code another
62720         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62721         but modules/fts-lgpl (correctly) does not list those files.
62722
62723         * modules/canonicalize (Files): Add lib/pathmax.h.
62724
62725 2005-06-25  Simon Josefsson  <jas@extundo.com>
62726
62727         * modules/check-version: New file.
62728
62729 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62732         initializer of struct addrinfo, as an indication that we don't
62733         care how many members the structure has.
62734
62735 2005-06-24  Derek Price  <derek@ximbiot.com>
62736         and Bruno Haible  <bruno@clisp.org>
62737
62738         Remove stat module & update lstat.
62739         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62741         * m4/stat.m4: Remove this file.
62742
62743 2005-06-24  Derek Price  <derek@ximbiot.com>
62744         and Bruno Haible  <bruno@clisp.org>
62745
62746         Remove stat module & update lstat.
62747         * lib/stat.c: Remove this file...
62748         (slash_aware_lstat): ...moving this content and its support...
62749         * lib/lstat.c (rpl_lstat): ...into here.
62750         * lib/lstat.h: New file.
62751
62752 2005-06-24  Derek Price  <derek@ximbiot.com>
62753         and Bruno Haible  <bruno@clisp.org>
62754
62755         Remove stat module & update lstat.
62756         * config/srclist.txt (libc sources): Remove stat.
62757
62758 2005-06-24  Derek Price  <derek@ximbiot.com>
62759         and Bruno Haible  <bruno@clisp.org>
62760
62761         Remove stat module & update lstat.
62762         * MODULES.html.sh (stat): Remove.
62763         * MODULES.html: Regenerated.
62764         * modules/lstat (Description): Correct function name.
62765         (Files): Add "lstat.h".
62766         (Depends-on): Remove stat, add xalloc, stat-macros.
62767         * modules/stat: Remove this file.
62768         (Include): Add "lstat.h", remove <sys/stat.h>.
62769
62770 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62773         (ranged_convert): Don't save conversion in a temporary struct.
62774         This causes a warning with GCC 4.0.0, and anyway in the typical
62775         case it's not worth the extra 100 bytes or so of code.
62776         (ranged_convert, __mktime_internal): When calling a function via a
62777         pointer P, use P () rather than (*P) (), as we now assume C89 or
62778         better.
62779
62780 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62783         "who -r" failed to give output.  Problem reported by Tim Waugh.
62784
62785         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62786         (xcalloc): Use it to avoid needless tests.
62787         Problem reported by Jim Meyering.
62788
62789 2005-06-20  Derek Price  <derek@ximbiot.com>
62790
62791         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62792         unnecessary for Autoconfs > 2.59c.
62793
62794 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62795
62796         * lib/argp.h (__option_is_short): Check upper limit of
62797         __key. Isprint() requires its argument to have the value
62798         of an unsigned char or EOF.
62799
62800 2005-06-16  Jim Meyering  <jim@meyering.net>
62801
62802         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62803         when either N or S is zero.
62804
62805 2005-06-16  Derek Price  <derek@ximbiot.com>
62806
62807         * m4/bison.m4: Declare YACC & YFLAGS precious.
62808
62809 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62812         multibyte string or pattern, fall back on unibyte matching.
62813         Problem reported by James Youngman.
62814
62815 2005-06-08  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/csharpcomp: New file.
62818         * MODULES.html.sh (C#): Add csharpcomp.
62819
62820 2005-06-08  Bruno Haible  <bruno@clisp.org>
62821
62822         * m4/csharpcomp.m4: New file, from GNU gettext.
62823
62824 2005-06-08  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/csharpcomp.h: New file, from GNU gettext.
62827         * lib/csharpcomp.c: New file, from GNU gettext.
62828         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62829
62830 2005-06-08  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62833         warning on mingw.
62834
62835 2005-06-07  Derek Price  <derek@ximbiot.com>
62836
62837         Sync from CVS.
62838         * lib/glob_.h: Indent nested #ifdef.
62839
62840 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         Sync from coreutils.
62843         Use "file name" when talking about file names, instead of "filename"
62844         or "path", as per the GNU coding standards.
62845         * lib/mkdir-p.c: Renamed from makepath.c.
62846         (make_dir_parents): Renamed from make_path.  All callers changed.
62847         * lib/mkdir-p.h: Likewise.  All includers changed.
62848         * lib/filenamecat.c: Renamed from path-concat.c.
62849         (file_name_concat): Renamed from path_concat.  All callers changed.
62850         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62851         * lib/filenamecat.h: Likewise.  All includers changed.
62852         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62853         in comments or local variable names.
62854         * lib/basename.c: Likewise.
62855         * lib/canonicalize.c, canonicalize.h: Likewise.
62856         * lib/dirname.c, dirname.h: Likewise.
62857         * lib/euidaccess.c: Likewise.
62858         * lib/exclude.c: Likewise
62859         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62860         * lib/fsusage.c, fsuage.h: Likewise.
62861         * lib/fts.c, fts_.h: Likewise.
62862         * lib/getcwd.c: Likewise.
62863         * lib/getloadavg.c: Likewise.
62864         * lib/mkstemp.c: Likewise.
62865         * lib/mountlist.c, mountlist.h: Likewise.
62866         * lib/openat.c, openat.h: Likewise.
62867         * lib/readlink-stub.c: Likewise.
62868         * lib/readutmp.c, readutmp.h: Likewise.
62869         * lib/rename.c: Likewise.
62870         * lib/rmdir.c: Likewise.
62871         * lib/same.c: Likewise.
62872         * lib/savedir.c: Likewise.
62873         * lib/stripslash.c: Likewise.
62874         * lib/tempname.c: Likewise.
62875         * lib/xreadlink.c: Likewise.
62876         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62877         All uses changed.
62878         * lib/exclude.h: Likewise.
62879
62880         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62881         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62882         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62883         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62884         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62885         files have been getting away with it for years (MORE/BSD 4.3
62886         is extinct now).
62887         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62889
62890         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62891         Define to 256, not 255, as per modern POSIX.
62892
62893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         Sync from coreutils.
62896         Use "file name" when talking about file names, instead of "filename"
62897         or "path", as per the GNU coding standards.
62898         * MODULES.html.sh: mkdir-p renamed from makepath.
62899         filenamecat renamed from path-concat.
62900         * modules/filenamecat: Renamed from modules/path-concat.
62901         (Files): filenamecat.h and filenamecat.c renamed from
62902         path-concat.h and path-concat.c.
62903         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62904         (Include): filenamecat.h, not path-concat.h.
62905         * modules/mkdir-p: Renamed from modules/makepath.
62906         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62907         makepath.c.
62908         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62909         (Include): mkdir-p.h, not makepath.h.
62910
62911 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         Sync from coreutils.
62914         * m4/mkdir-p.m4: Renamed from makepath.m4.
62915         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62916         Rename files from makepath.c to mkdir-p.c, and from
62917         makepath.h to mkdir-p.h.
62918         * m4/filenamecat.m4: Renamed from path-concat.m4.
62919         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62920         Rename files from path-concat.c to filenamecat.c,
62921         and from path-concat.h to filenamecat.h.
62922         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62923         "file name" in local variables or comments.
62924         * m4/rename.m4: Likewise.
62925
62926 2005-06-01  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/csharpexec: New file.
62929         * MODULES.html.sh (C#): New section.
62930
62931 2005-06-01  Bruno Haible  <bruno@clisp.org>
62932
62933         * m4/csharp.m4: New file, from GNU gettext.
62934         * m4/csharpexec.m4: New file, from GNU gettext.
62935
62936 2005-06-01  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/csharpexec.h: New file, from GNU gettext.
62939         * lib/csharpexec.c: New file, from GNU gettext.
62940         * lib/csharpexec.sh.in: New file, from GNU gettext.
62941
62942 2005-05-31  Derek Price  <derek@ximbiot.com>
62943             Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         Sync from cvs.
62946         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62947
62948 2005-05-31  Derek Price  <derek@ximbiot.com>
62949             Paul Eggert  <eggert@cs.ucla.edu>
62950
62951         Sync from cvs.
62952         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62953
62954 2005-05-29  Derek Price  <derek@ximbiot.com>
62955
62956         * config/srclist.txt (glob_.h, glob.c): Add these files.
62957
62958 2005-05-29  Derek Price  <derek@ximbiot.com>
62959
62960         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
62961         * modules/glob: New file.
62962         * modules/getlogin_r: Add link to POSIX spec in description.
62963
62964 2005-05-29  Derek Price  <derek@ximbiot.com>
62965             Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * m4/glob.m4: New file.
62968
62969 2005-05-29  Derek Price  <derek@ximbiot.com>
62970             Paul Eggert  <eggert@cs.ucla.edu>
62971
62972         * lib/glob_.h, lib/glob.c: New files.
62973
62974 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62977         * modules/fts-lgpl (Depends-on): Remove gettext.
62978
62979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62980
62981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62982         and don't require gt_INTTYPES_PRI.
62983
62984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62987
62988         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62989         the configuration hassle isn't worth it.
62990         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62991         (LONGEST_MODIFIER, PRIuMAX): Remove.
62992
62993 2005-05-27  Bruno Haible  <bruno@clisp.org>
62994
62995         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62996
62997 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62998
62999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
63000         _POSIX_PTHREAD_SEMANTICS for Solaris.
63001
63002 2005-05-25  Derek Price  <derek@ximbiot.com>
63003
63004         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
63005
63006 2005-05-25  Derek Price  <derek@ximbiot.com>
63007             Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * modules/getlogin_r, m4/getlogin_r.m4: New files.
63010         * lib/getlogin_r.c, getlogin_r.h: New files.
63011
63012 2005-05-25  Bruno Haible  <bruno@clisp.org>
63013             Derek Price  <derek@ximbiot.com>
63014
63015         * lib/getlogin_r.h: Simplify API documentation.
63016
63017 2005-05-23  Derek Price  <derek@ximbiot.com>
63018
63019         * modules/minmax (Files): Add m4/minmax.m4.
63020         (configure.ac): Add gl_MINMAX.
63021
63022 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
63025         so that unistd-safer.h (GPL'ed code) need not be included.
63026
63027 2005-05-22  Bruno Haible  <bruno@clisp.org>
63028
63029         * m4/minmax.m4: New file.
63030         Based on a patch by Derek Price <derek@ximbiot.com>.
63031
63032 2005-05-22  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
63035         (INT64_MIN): Fix definition.
63036         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
63037
63038         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
63039         NEED_SIGNED_INT_TYPES.
63040
63041         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
63042         HAVE_SYSTEM_INTTYPES.
63043
63044 2005-05-22  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
63047         Also include <sys/param.h> if it defines MIN, MAX.
63048         Based on a patch by Derek Price <derek@ximbiot.com>.
63049
63050 2005-05-21  Jim Meyering  <jim@meyering.net>
63051
63052         * modules/fts (Files): Add m4/inttypes-pri.m4.
63053         (Depends-on): Add lstat and remove gettext.  Alphabetize.
63054
63055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         New fts module.
63058         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
63059         (setup_dir, free_dir): New functions.
63060         (enter_dir, leave_dir): Define trivial
63061         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
63062         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
63063         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
63064         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
63065         Move to fts-cycle.c.
63066         (fts_open): Use setup_dir.
63067         (fts_close): Use free_dir.
63068         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
63069         This adds a label and some gotos, but the alternatives were messier.
63070         Check for memory allocation failure when entering a dir.
63071         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
63072         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
63073         (FTS): New member fts_cycle, that is a union that contains the
63074         old active_dir_ht and cycle_state.  All uses changed to mention
63075         fts_cycle.ht and fts_cycle.state.
63076         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
63077         fts.c, with the following changes:
63078         (setup_dir, free_dir): New functions.
63079         (enter_dir): Now returns bool.  Return true if successful, false
63080         if memory exhausted.  All callers changed.
63081         Do not bother partly cleaning up on
63082         memory allocation failure; that is free_dir's job.
63083         However, free ad if hash_insert fails, to avoid memory leak.
63084         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
63085         fts->fts_options to see which union member to use.
63086
63087 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
63090         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
63091
63092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
63095
63096 2005-05-20  Jim Meyering  <jim@meyering.net>
63097
63098         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
63099         Now a macro, to pacify GCC.
63100
63101 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63102
63103         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63104         of -1.
63105
63106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63107
63108         * lib/chown.c (rpl_chown): Return -1 on failure.
63109
63110 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63113         Don't check for stddef.h.
63114         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63115         don't use its results.
63116         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63117         since we include them unconditionally.  Don't require
63118         AM_STDBOOL_H, since stdbool is a prerequisite.
63119         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63120         since we assume C89 or better.
63121         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63122         as we don't use their results.
63123         Don't check for fchdir, memmove, memset, strrchr, as we use
63124         them unconditionally.
63125         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63126         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63127
63128 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63131         Include <stddef.h> unconditionally, since we assume C89 now.
63132         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63133         * lib/fts.c: Include fts_.h first, to check interface.
63134         Do not include intprops.h; no longer needed.
63135         Include cycle-check.h and hash.h, since fts_.h no longer does.
63136         Remove unnecessary casts of closedir to void.
63137         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63138         decide whether to decrement nlinks.
63139         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63140         (FTS): Use struct hash_table * instead of Hash_table, so that
63141         we no longer need to include hash.h here.
63142
63143 2005-05-18  Jim Meyering  <jim@meyering.net>
63144
63145         * modules/dirfd (License): Change to LGPL.  Most of the code
63146         is already in the public domain.
63147
63148 2005-05-18  Jim Meyering  <jim@meyering.net>
63149
63150         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63151         Reported by Yoann Vandoorselaere.
63152
63153 2005-05-17  Jim Meyering  <jim@meyering.net>
63154
63155         * m4/fts.m4: New file, from coreutils.
63156
63157 2005-05-17  Jim Meyering  <jim@meyering.net>
63158
63159         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63160
63161 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         Sync from coreutils.
63164         * m4/unlinkdir.m4: New file.
63165
63166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         Sync from coreutils.
63169         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63170         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63171         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63172         White space changes only.
63173         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63174         special.
63175         * lib/yesno.c: Include getline.h, not ctype.h.
63176         (yesno): Don't remove leading white space; POSIX doesn't allow it.
63177         Use getline to remove arbitrary restriction on response length.
63178
63179 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * config/srclist-update: Spell out "Street" in FSF postal
63182         mail address; this is the style the FSF seems to prefer.
63183
63184         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
63185         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
63186         this updates FSF postal mail address.
63187
63188         Sync from coreutils.
63189         * modules/unlinkdir: New file.
63190         * modules/yesno (Depends-on): Add getline.
63191         * MODULES.html.sh (File system functions): Add unlinkdir.
63192
63193 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
63196         lib/strsep.h:
63197         Change the initial comment to refer to GPL, not LGPL.
63198         gnulib-tool will change it to LGPL as needed.
63199
63200         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
63201         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
63202         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
63203         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
63204         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
63205         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
63206         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
63207         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
63208         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
63209         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
63210         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
63211         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
63212         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
63213         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
63214         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
63215         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
63216         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
63217         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
63218         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
63219         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
63220         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
63221         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
63222         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
63223         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
63224         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
63225         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
63226         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
63227         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
63228         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
63229         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
63230         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
63231         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
63232         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
63233         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
63234         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
63235         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
63236         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
63237         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
63238         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
63239         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
63240         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
63241         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
63242         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
63243         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
63244         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
63245         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
63246         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
63247         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
63248         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
63249         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
63250         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63251         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
63252         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
63253         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
63254         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
63255         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
63256         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
63257         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
63258         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
63259         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
63260         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
63261         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
63262         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
63263         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
63264         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
63265         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
63266         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
63267         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
63268         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
63269         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
63270         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
63271         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
63272         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
63273         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
63274         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
63275         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
63276         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
63277         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
63278         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
63279         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
63280         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
63281         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
63282         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
63283         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
63284         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
63285         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
63286         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
63287         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
63288         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
63289         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
63290         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
63291         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
63292         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
63293         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
63294         lib/yesno.c, lib/yesno.h:
63295         Update FSF postal mail address.
63296
63297 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
63300         tests/test-memmem.c, tests/test-stpncpy.c:
63301         Update FSF postal mail address.
63302
63303 2005-05-13  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
63306         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
63307         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
63308         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
63309         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
63310         Add support for 64-bit integers in the MSVC compiler.
63311
63312 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63313
63314         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
63315
63316 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
63317
63318         * gnulib-tool (func_import): Sort and uniquify recommended includes.
63319
63320 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * doc/getdate.texi (General date syntax): Don't say that date
63323         date --iso-8601=ns generates acceptable dates; it doesn't yet.
63324         Problem reported by Nic Ferrier.
63325
63326 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63327
63328         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
63329         specified in ai_socktype. Fix invalid ai_protocol
63330         check. ai_protocol is usually set to 0 or depending on
63331         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
63332         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
63333         ai_socktype / ai_protocol in the returned addrinfo structure.
63334
63335 2005-05-10  Simon Josefsson  <jas@extundo.com>
63336
63337         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
63338         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63339
63340 2005-05-10  Karl Berry  <karl@gnu.org>
63341
63342         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
63343         (from http://www.gnu.org/licenses).
63344         * doc/COPYING.LIB: also rename to COPYING.LESSER.
63345         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
63346         fdl.texi suffices.
63347
63348 2005-05-10  Karl Berry  <karl@gnu.org>
63349
63350         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
63351         (COPYING.DOC): remove.
63352
63353         * config/srclist-update: new FSF address.
63354
63355 2005-05-10  Derek Price  <derek@ximbiot.com>
63356
63357         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
63358         possible.
63359
63360 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63361             Bruno Haible  <bruno@clisp.org>
63362
63363         * modules/inet_ntop: New file.
63364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63365         inet_ntop.
63366
63367 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63368             Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/inet_ntop.m4: New file.
63371
63372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63373             Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/inet_ntop.h: New file.
63376         * lib/inet_ntop.c: New file, from glibc with modifications.
63377
63378 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * modules/time_r (License): Change to LGPL.
63381         * modules/extensions (License): Change to LGPL.  Actually,
63382         the license is more permissive than that, but currently gnulib-tool
63383         doesn't know how to handle more-permissive licenses.
63384
63385         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
63386         Problem reported by Dave Love.
63387
63388 2005-05-08  Jim Meyering  <jim@meyering.net>
63389
63390         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
63391         blank.
63392
63393 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * modules/argmatch (Depends-on): Add stdbool.
63396         * modules/backupfile (Depends-on): Likewise.
63397         * modules/chdir-long (Depends-on): Likewise.
63398         * modules/closeout (Depends-on): Likewise.
63399         * modules/cycle-check (Depends-on): Likewise.
63400         * modules/dirname (Depends-on): Likewise.
63401         * modules/fnmatch (Depends-on): Likewise.
63402         * modules/fsusage (Depends-on): Likewise.
63403         * modules/fwriteerror (Depends-on): Likewise.
63404         * modules/getcwd (Depends-on): Likewise.
63405         * modules/getloadavg (Depends-on): Likewise.
63406         * modules/hard-locale (Depends-on): Likewise.
63407         * modules/makepath (Depends-on): Likewise.
63408         * modules/mountlist (Depends-on): Likewise.
63409         * modules/nanosleep (Depends-on): Likewise.
63410         * modules/posixtm (Depends-on): Likewise.
63411         * modules/quotearg (Depends-on): Likewise.
63412         * modules/readtokens (Depends-on): Likewise.
63413         * modules/readtokens0 (Depends-on): Likewise.
63414         * modules/readutmp (Depends-on): Likewise.
63415         * modules/save-cwd (Depends-on): Likewise.
63416         * modules/strftime (Depends-on): Likewise.
63417         * modules/userspec (Depends-on): Likewise.
63418         * modules/utimecmp (Depends-on): Likewise.
63419         * modules/xgetcwd (Depends-on): Likewise.
63420         * modules/xnanosleep (Depends-on): Likewise.
63421         * modules/xstrtod (Depends-on): Likewise.
63422         * modules/yesno (Depends-on): Likewise.
63423
63424 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
63427         needless checks.
63428
63429 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         Merge from coreutils.  Among other things,
63432         add bulletproofing for cases where stdin, stdout, or stderr are closed.
63433         * lib/fd-safer.c: New file.
63434         * lib/fcntl-safer.h, open-safer.c: Remove.
63435         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
63436         * lib/dup-safer.c: Include unistd-safer.h first.
63437         Don't include errno.h.
63438         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
63439         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
63440         * lib/file-type.c: Rely on file-type.h change.
63441         * lib/getloadavg.c: Include unistd-safer.h.
63442         (getloadavg): Use safer open.
63443         * lib/getusershell.c: Include "stdio-safer.h".
63444         (getusershell): Use safer fopen.
63445         * lib/long-options.c (long_options): Use NULL rather than 0.
63446         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
63447         'free'.
63448         * lib/modechange.c: Likewise.
63449         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
63450         (MODE_DONE): New constant.
63451         (struct mode_change): Remove 'next' member.
63452         (make_node_op_equals): New function; like the old one of the
63453         same name, except it allocates an array.
63454         (mode_compile, mode_create_from_ref): Use it.
63455         (mode_compile): Allocate result as an array, not a linked list.
63456         Parse octal string ourself, so that we catch mistakes like "+0".
63457         (mode_adjust): Arg is an array, not a linked list.
63458         * lib/modechange.c: Include stat-macros.h, xalloc.h.
63459         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
63460         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
63461         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
63462         Remove.  This is now stat-macros.h's job.
63463         (talloc): Remove.  All callers replaced by xalloc, so that
63464         our invokers don't have to worry about reporting memory failures.
63465         (make_node_op_equals): Remove.
63466         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63467         New constants.
63468         (struct mode_change): Moved here from modechange.h.
63469         (mode_append_entry): Remove.
63470         (mode_compile): Remove MASKED_OPS arg, since it encouraged
63471         apps to have incorrect behavior.  Use simpler algorithm for head
63472         and tail.  Don't futz with umask; that's now the job of mode_adjust.
63473         Detect more invalid usages rather than having somewhat-random behavior.
63474         Don't insert an "a=" action, as that leads to incorrect behavior.
63475         (mode_compile, mode_create_from_ref): Return NULL on error instead
63476         of an enum, since now there's only one way to have an error.  All
63477         callers changed.
63478         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
63479         at the correct time.  Simplify calculation of "+u" and its ilk.
63480         Don't mishandle "+X".
63481         (mode_free): Remove "register" and localize decls.
63482         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63483         (struct mode_change): Move to modechange.c; callers don't
63484         need to see this stuff.
63485         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
63486         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
63487         (mode_change, mode_adjust): Reflect the new signatures noted above.
63488         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
63489         that might redefine system include files.
63490         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
63491         (my_usleep): Use NULL rather than (void *) 0.
63492         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
63493         Use siginterrupt to specify that system calls should be interrupted.
63494         (rpl_nanosleep): Move initialization of suspended closer to call of
63495         my_usleep.
63496         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63497         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63498         (desirable_utmp_entry): New function.
63499         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63500         using x2nrealloc, to simplify logic.
63501         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63502         size calculation.  Do not assume utmp file is a regular file.
63503         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63504         (READ_UTMP_CHECK_PIDS): New constant.
63505         * lib/save-cwd.c: Include unistd-safer.h.
63506         (save_cwd): Use fd_safer.
63507         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63508         [!_LIBC] Include "stat-macros.h" instead.
63509         * lib/unistd-safer.h (fd_safer): New decl.
63510
63511 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63512
63513         * modules/getloadavg (Depends-on): Add unistd-safer.
63514         * modules/getusershell (Depends-on): Add stdio-safer.
63515         * modules/lstat (Depends-on): Remove xalloc.
63516         * modules/mkstemp (Depends-on): Add stat-macros.
63517         * modules/modechange (Depends-on): Remove xstrtol.
63518         Add stat-macros, xalloc.
63519         * modules/save-cwd (Depends-on): Add unistd-safer.
63520         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63521         * modules/unistd-safer (Files): Add lib/fd-safer.c
63522         (Makefile.am): Remove lib_SOURCES.
63523
63524         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63525         Remove fcntl-safer; unistd-safer supersedes it.
63526
63527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63530         AC_HEADER_STAT.
63531         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63532         (gl_PREREQ_CHOWN): Remove.
63533         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63534         it.  Don't require AC_HEADER_STAT.
63535         (gl_PREREQ_LSTAT): Remove.
63536         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63537         Don't require AC_HEADER_STAT.
63538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63539         (gl_PREREQ_RMDIR): Remove.
63540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63541         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63542         the stat-macros module a prerequisite.
63543         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63544         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63545         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63546         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63547         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63548         variable names.
63549         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63550         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63551         variable prefixes.
63552         * m4/fcntl-safer.m4: Remove.
63553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63554         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63555         Invoke gl_PREREQ_FD_SAFER.
63556         (gl_PREREQ_FD_SAFER): New macro.
63557         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63558         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63559         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63560         Remove duplicate call to AC_LIBOBJ(readutmp).
63561         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63562
63563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63564         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63565
63566 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         * MODULES.html.sh (Misc): Add byteswap.
63569
63570 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63571
63572         * modules/getcwd (Depends-on): Add extensions.
63573         * modules/openat (Depends-on): Likewise.
63574
63575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63576
63577         * modules/byteswap: New file.
63578
63579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63580
63581         * m4/byteswap.m4: New file.
63582
63583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63584
63585         * lib/byteswap_.h: New file.
63586
63587 2005-04-25  Karl Berry  <karl@gnu.org>
63588
63589         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63590
63591 2005-04-25  Albert Chin  <china@thewrittenword.com>
63592
63593         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63594         Toolkit C bug.
63595
63596 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63597
63598         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63599         (func_ln_if_changed) Remove forcibly for no error message
63600         in case file does not exist.
63601
63602 2005-04-19  Simon Josefsson  <jas@extundo.com>
63603
63604         * gnulib-tool (Options): Make --symlink mean --symbolic.
63605
63606 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63607
63608         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63609
63610 2005-04-16  Simon Josefsson  <jas@extundo.com>
63611
63612         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63613
63614 2005-04-15  Simon Josefsson  <jas@extundo.com>
63615
63616         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63617
63618 2005-04-15  Simon Josefsson  <jas@extundo.com>
63619
63620         * gnulib-tool: Rename --symlink to --symbolic.
63621
63622 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63623
63624         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63625         symbolic links to files instead of copying/moving.  Add --aux-dir,
63626         specifying directory relative --dir where auxiliary build tools
63627         are placed.
63628
63629 2005-04-14  Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/allocsa (License): Change to LGPL.
63632         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63633
63634 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63637         that "UTC +1 second" continues to work.  Problem reported
63638         by Dmitry V. Levin.
63639         (relunit_snumber): New rule.
63640         (relunit): Use it.
63641
63642 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * lib/getdate.y (universal_time_zone_table): New constant.
63645         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63646         universal_time_zone_table.
63647         (lookup_zone): Prefer universal_time_zone_table to
63648         local_time_zone_table, so that "GMT" time stamps are allowed in
63649         London during the summer.  Problem reported by Ian Abbott.
63650
63651 2005-04-12  Jim Meyering  <jim@meyering.net>
63652
63653         * lib/human.c (humblock): Set *options even when returning due to
63654         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63655         warning from gcc-4.
63656
63657 2005-04-09  Jim Meyering  <jim@meyering.net>
63658
63659         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63660         -Wuninitialized: initialize tm0.tm_year.
63661
63662 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63665         count, since there's no maximum.  All uses changed.
63666         Add member dsts_seen.
63667         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63668         not being INT_MAX.
63669         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63670         Use pc_rels_seen to decide whther a date is absolute.
63671
63672         * lib/getdate.y (number): Don't overwrite year.
63673         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63674         check.
63675
63676 2005-04-02  Simon Josefsson  <jas@extundo.com>
63677
63678         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63679         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63680
63681 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63682
63683         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63684         where no absolute path name can be longer than PATH_MAX.
63685
63686 2005-03-27  Jim Meyering  <jim@meyering.net>
63687
63688         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63689
63690 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63693         "one's complement" -> "ones' complement" in comment, as per Knuth.
63694         "value of type" -> "type or expression" in comment.
63695         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63696
63697 2005-03-26  Jim Meyering  <jim@meyering.net>
63698
63699         Comment nits.
63700         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63701         Correct typos: s/or/of/.
63702
63703 2005-03-26  Jim Meyering  <jim@meyering.net>
63704
63705         * modules/check-include-files: Move to ../ and rename to...
63706         * check-module: ...this.
63707
63708 2005-03-25  Jim Meyering  <jim@meyering.net>
63709
63710         * modules/xvasprintf (Files): Add xalloc.h.
63711
63712 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63713
63714         * modules/gettext (Files): config/config.rpath ->
63715         build-aux/config.rpath
63716         * modules/iconv (Files): Likewise.
63717         Problem reported by Oskar Liljeblad.
63718
63719 2005-03-23  Jim Meyering  <jim@meyering.net>
63720
63721         * modules/check-include-files: New script to check for
63722         missing dependencies, multiple includes, etc.
63723
63724         * modules/c-strtold (Depends-on): Add xalloc.
63725         * modules/c-strtod (Depends-on): Add xalloc.
63726         * modules/hash (Depends-on): Add xalloc.
63727         (Files): Remove lib/xalloc.h.
63728
63729         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63730         * modules/userspec (Files): Add lib/inttostr.h.
63731
63732 2005-03-23  Jim Meyering  <jim@meyering.net>
63733
63734         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63735
63736 2005-03-22  Jim Meyering  <jim@meyering.net>
63737
63738         * modules/stat-macros: New module.
63739         * modules/canonicalize, modules/euidaccess, modules/file-type,
63740         * modules/filemode, modules/lchown, modules/makepath,
63741         * modules/rmdir, modules/stat: Depend on new stat-macros module
63742         rather than listing lib/stat-macros.h manually.
63743         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63744
63745 2005-03-22  Jim Meyering  <jim@meyering.net>
63746
63747         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63748
63749 2005-03-22  Bruno Haible  <bruno@clisp.org>
63750
63751         * config/srclist.txt: Replace target directory 'config' with
63752         'build-aux'.
63753         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63754         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63755         ../build-aux/.
63756
63757 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * modules/chdir-long (Depends-on): Add mempcpy.
63760
63761         * modules/acl, modules/backupfile, modules/c-strtod,
63762         modules/c-strtold, modules/canon-host, modules/canonicalize,
63763         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63764         modules/exclude, modules/exitfail, modules/file-type,
63765         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63766         modules/getdate, modules/getline, modules/getpagesize,
63767         modules/getpass, modules/getugroups, modules/group-member,
63768         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63769         modules/inttostr, modules/long-options, modules/makepath,
63770         modules/md5, modules/memcasecmp, modules/memcoll,
63771         modules/modechange, modules/mountlist, modules/path-concat,
63772         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63773         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63774         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63775         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63776         modules/strftime, modules/strndup, modules/strverscmp,
63777         modules/timespec, modules/unlocked-io, modules/userspec,
63778         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63779         modules/yesno:
63780         Remove lib_SOURCES line from Makefile.am section, as this is now
63781         done automatically by the corresponding Autoconf macro.
63782
63783 2005-03-21  Jim Meyering  <jim@meyering.net>
63784
63785         Changes imported from coreutils.
63786
63787         * lib/cycle-check.c: Don't include xalloc.h.
63788
63789         * lib/path-concat.c: Don't include assert.h.
63790         (path_concat): Remove assertion that would have triggered
63791         for ABASE starting with more than one slash.
63792         Reported by Andreas Schwab.
63793
63794         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63795         properly when ABASE is an absolute file name.
63796         Correct the description of this function.
63797         Include <assert.h>.
63798         Add an assertion and a test driver.
63799         This fixes a bug introduced on 2004-07-02.
63800         Andreas Schwab reported the resulting failure of cp --parents:
63801         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63802
63803 2005-03-21  Jim Meyering  <jim@meyering.net>
63804
63805         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63807
63808 2005-03-21  Jim Meyering  <jim@meyering.net>
63809         and  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63812         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63813         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63814         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63815         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63816         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63817         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63818         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63819         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63820         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63821         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63822         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63823         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63824         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63825         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63826         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63827         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63828         for these modules.
63829
63830 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63833         (which shouldn't happen), generate nothing instead of returning 0
63834         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63835
63836 2005-03-16  Bruno Haible  <bruno@clisp.org>
63837
63838         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63839         HAVE_LONGLONG_64BIT.
63840
63841 2005-03-16  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63844         HAVE_LONGLONG_64BIT.
63845
63846 2005-03-16  Bruno Haible  <bruno@clisp.org>
63847
63848         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63849         HAVE_LONGLONG_64BIT.
63850
63851 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63852
63853         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63854         reliably distinguish strftime failure from empty output on POSIX
63855         hosts.
63856
63857 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63860         (iconv_string): Don't guess a size-zero buffer, as that might cause
63861         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63862         result would be 'too large', where 'too large' is (heuristically)
63863         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63864         overflow concerns.  This will prevent some unwanted malloc failures
63865         when the inputs are very large.
63866
63867 2005-03-15  Karl Berry  <karl@gnu.org>
63868
63869         * config/srclist.txt (config.rpath): from gettext.
63870         * config/config.rpath: update.
63871
63872 2005-03-15  Bruno Haible  <bruno@clisp.org>
63873
63874         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63875         to 'negate'.
63876
63877         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63878         variable.
63879
63880         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63881         results.
63882
63883 2005-03-14  Simon Josefsson  <jas@extundo.com>
63884
63885         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63886         <fx@gnu.org>.
63887
63888 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63891         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63892         intprops.h.
63893         * lib/strtol.c: Likewise.
63894
63895 2005-03-14  Jim Meyering  <jim@meyering.net>
63896
63897         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63898         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63899         to be nonzero so that we (and caller) can detect the difference
63900         between a valid zero-length expansion and an error return, even
63901         when the underlying strftime fails before writing anything into
63902         that location.
63903
63904 2005-03-14  Bruno Haible  <bruno@clisp.org>
63905
63906         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63907         Update from GNU gettext 0.14.3.
63908
63909 2005-03-10  Jim Meyering  <jim@meyering.net>
63910
63911         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63912
63913 2005-03-10  Jim Meyering  <jim@meyering.net>
63914
63915         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63916         so that this module works on systems without fchdir.
63917
63918 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         Factor int-properties macros into a single file, except for
63921         glibc-related files.
63922         * lib/intprops.h: New file.
63923         * lib/getloadavg.c: Include it instead of limits.h.
63924         (INT_STRLEN_BOUND): Remove.
63925         * lib/human.c: Include intprops.h.
63926         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63927         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63928         302/1000.
63929         * lib/inttostr.h: Include intprops.h instead of limits.h.
63930         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
63931         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
63932         for consistency with intprops.h.
63933         (time_t_is_integer, twos_complement_arithmetic): Use them.
63934         * lib/sig2str.h: Include <signal.h>, intprops.h.
63935         (INT_STRLEN_BOUND): Remove.
63936         * lib/strftime.c (TYPE_SIGNED): Remove.
63937         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
63938         * lib/strtol.c: Adjust comments to match intprops.h.
63939         * lib/userspec.c: Include intprops.h.
63940         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
63941         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
63942         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
63943         instead of rolling our own expressions.
63944         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
63945
63946         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
63947         instead of int.
63948         (my_strftime): Do not mishandle years close to INT_MAX, by doing
63949         the right thing even if adding 1900 would overflow.  Similarly
63950         for tm_mon + 1 and tm_yday + 1.
63951         Make %Y always equivalent to %C%y, and similarly for %G and %g.
63952         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
63953         (DO_SIGNED_NUMBER): New macro.
63954         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
63955
63956 2005-03-07  Bruno Haible  <bruno@clisp.org>
63957
63958         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
63959
63960 2005-03-07  Bruno Haible  <bruno@clisp.org>
63961
63962         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
63963
63964 2005-03-04  Derek R. Price  <derek@ximbiot.com>
63965
63966         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
63967         (func_import): Only replace files via --import when they have actually
63968         changed.
63969
63970 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63971
63972         * m4/mmap-anon.m4: New file.
63973         * m4/pagealign_alloc.m4: New file.
63974
63975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63976             Bruno Haible  <bruno@clisp.org>
63977
63978         * modules/pagealign_alloc: New file.
63979         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63980
63981 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63982             Bruno Haible  <bruno@clisp.org>
63983
63984         * lib/pagealign_alloc.h: New file.
63985         * lib/pagealign_alloc.c: New file.
63986
63987 2005-03-03  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63990         Use an all-permissive copyright notice, recommended by RMS.
63991
63992 2005-03-02  Bruno Haible  <bruno@clisp.org>
63993
63994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63995         of AIX, the replacement has to be done only after <string.h> is
63996         included, therefore not in config.h. stpncpy.h does the replacement,
63997         and stpncpy.c uses it.
63998
63999 2005-03-02  Bruno Haible  <bruno@clisp.org>
64000
64001         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
64002         stpncpy.c uses it.
64003
64004 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
64007         The workaround isn't strictly needed for POSIX conformance, and
64008         it's too much of a pain to configure and maintain.  We'll ask
64009         people to fix their kernels instead.
64010         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
64011         (NANOSLEEP_BUG_WORKAROUND): Remove.
64012         (xnanosleep): Remove the workaround.
64013
64014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
64017         Reported by Derek Price.
64018         (Include): Add "timespec.h".
64019
64020         * modules/xnanosleep (Depends-on): Remove gethrxtime.
64021
64022 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
64025         to detect nanosleep bug.
64026
64027 2005-03-01  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
64030
64031 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * modules/gethrxtime: New file.
64034         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
64035         (Depends-on): Add gethrxtime.
64036         (configure.ac): Add gl_XNANOSLEEP.
64037         (Makefile.am): Remove lib_SOURCES line.
64038
64039 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64040
64041         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
64042         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
64043
64044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
64047         * lib/timespec.h (gettime): Return void, since it always
64048         succeeds now.  All uses changed.
64049         * lib/gettime.c (gettime) Likewise.
64050         [HAVE_NANOTIME]: Prefer nanotime.
64051         Assume gettimeofday succeeds, as POSIX requires.
64052         Assime time () succeeds, since other code already does.
64053         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
64054         (timespec_subtract): Remove.
64055         (NANOSLEEP_BUG_WORKAROUND): New constant.
64056         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
64057         things considerably.  Use it only on GNU/Linux hosts, since the
64058         workaround shouldn't be needed elsewhere.
64059
64060 2005-02-24  Bruno Haible  <bruno@clisp.org>
64061
64062         * modules/gettext (Files): Add m4/glibc2.m4.
64063
64064 2005-02-24  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
64067         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
64068         * m4/progtest.m4:
64069         Update from GNU gettext 0.14.2.
64070         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
64071
64072 2005-02-24  Bruno Haible  <bruno@clisp.org>
64073
64074         * lib/localcharset.c: Update from GNU gettext 0.14.2.
64075         * lib/config.charset: Update from GNU gettext 0.14.2.
64076
64077 2005-02-24  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/gettext.h: Update from GNU gettext 0.14.2.
64080
64081 2005-02-23  Simon Josefsson  <jas@extundo.com>
64082
64083         * m4/iconvme.m4: New file.
64084
64085 2005-02-23  Jim Meyering  <jim@meyering.net>
64086
64087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
64088         change.
64089         Thanks to Bruno Haible for catching it.
64090
64091 2005-02-22  Simon Josefsson  <jas@extundo.com>
64092
64093         * modules/iconvme: New file.
64094
64095         * MODULES.html.sh: Add iconvme.
64096
64097 2005-02-22  Simon Josefsson  <jas@extundo.com>
64098
64099         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
64100
64101 2005-02-22  Simon Josefsson  <jas@extundo.com>
64102
64103         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64104
64105 2005-02-22  Jim Meyering  <jim@meyering.net>
64106
64107         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64108         s/ifndef/ifdef/.
64109
64110 2005-02-20  Neil Conway  <neilc@samurai.com>
64111
64112         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64113         returned by OSX/Darwin if the specified buffer is not large
64114         enough for the hostname.
64115
64116 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64117
64118         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64119         pass it to _help, otherwise the latter coredumps trying to
64120         dereference state.root_argp.
64121
64122 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * modules/chdir-long (Depends-on): Add memrchr.
64125         * modules/memrchr (Files): Add lib/memrchr.h.
64126         (Include): "memrchr.h".
64127
64128 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64131
64132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64133
64134         * lib/memrchr.h: New file.
64135         * lib/chdir-long.c: Include it.
64136         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64137         Don't bother including stddef.h.
64138
64139 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64142         inclusion.
64143         Include <sys/types.h>, for dev_t.
64144         (ME_DUMMY, ME_REMOTE): Move from here....
64145         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64146         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64147         Dmitry V. Levin.
64148         Include mountlist.h first, to test the interface.
64149
64150 2005-01-29  Bruno Haible  <bruno@clisp.org>
64151
64152         * lib/progname.c (program_name): Initialize.
64153         Needed when linking statically on MacOS X.
64154
64155 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         Sync from coreutils.
64158         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64159         (Depends-on): Add c-strtod.
64160         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64161
64162 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64163
64164         Sync from coreutils.
64165         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64166
64167         Remove files that are specific to coreutils.
64168         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64169
64170 2005-01-28  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/javacomp: New file.
64173         * MODULES.html.sh (Java): Add javacomp.
64174
64175 2005-01-28  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/javacomp.m4: New file, from GNU gettext.
64178
64179 2005-01-28  Bruno Haible  <bruno@clisp.org>
64180
64181         * lib/javacomp.sh.in: New file, from GNU gettext.
64182         * lib/javacomp.h: New file, from GNU gettext.
64183         * lib/javacomp.c: New file, from GNU gettext.
64184
64185 2005-01-26  Simon Josefsson  <jas@extundo.com>
64186
64187         * lib/gai_strerror.c: Use GPL in header.
64188
64189 2005-01-26  Bruno Haible  <bruno@clisp.org>
64190
64191         * modules/javaexec: New file.
64192         * MODULES.html.sh (Java): Add javaexec.
64193
64194 2005-01-26  Bruno Haible  <bruno@clisp.org>
64195
64196         * m4/javaexec.m4: New file, from GNU gettext.
64197
64198 2005-01-26  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/javaexec.sh.in: New file, from GNU gettext.
64201         * lib/javaexec.h: New file, from GNU gettext.
64202         * lib/javaexec.c: New file, from GNU gettext.
64203
64204 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64205
64206         * modules/lchown (Depends-on): Remove lchown.h
64207
64208 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64209
64210         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
64211         must be defined if the header file was not found, in order
64212         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
64213
64214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64215
64216         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
64217         initializers for struct pentry_state.
64218         (__argp_error): Check return value of __asprintf
64219         (__argp_failure): Translate error message
64220
64221         * lib/argp-parse.c: Removed braces around the expansion of N_()
64222
64223 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
64226         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
64227         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
64228         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
64229         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
64230         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
64231         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
64232         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
64233         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
64234         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
64235         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
64236         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
64237         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
64238         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
64239         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
64240         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
64241         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
64242         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
64243         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
64244         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
64245         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
64246         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
64247         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
64248         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
64249         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
64250         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
64251         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
64252         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
64253         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
64254         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
64255         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
64256         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
64257         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
64258         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
64259         xstrtol.m4, xstrtoumax.m4, yesno.m4:
64260         Use an all-permissive copyright notice, recommended by RMS.
64261
64262 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         * modules/chdir-long (Depends-on): Remove mempcpy.
64265
64266 2005-01-21  Jim Meyering  <jim@meyering.net>
64267
64268         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
64269         same value as for Solaris 9.
64270
64271         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
64272         component length.  This included changing the parameter to be
64273         of type `char *' rather than `char const *'.
64274         * lib/chdir-long.h (chdir_long): Update prototype.
64275
64276         * lib/openat.c (fdopendir, fstatat): New functions.
64277         * lib/openat.h: Include headers required for use of DIR and struct
64278         stat.
64279         [AT_SYMLINK_NOFOLLOW]: Define.
64280         (fdopendir, fstatat): Add prototypes.
64281
64282 2005-01-21  Bruno Haible  <bruno@clisp.org>
64283
64284         * modules/classpath: New file.
64285         * MODULES.html.sh (Java): Add classpath.
64286
64287 2005-01-21  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/classpath.h: New file, from GNU gettext.
64290         * lib/classpath.c: New file, from GNU gettext.
64291
64292 2005-01-20  Simon Josefsson  <jas@extundo.com>
64293
64294         * modules/version-etc-fsf: New file.
64295
64296 2005-01-20  Simon Josefsson  <jas@extundo.com>
64297
64298         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
64299         * lib/version-etc.c: Remove version_etc_copyright.
64300         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
64301         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
64302
64303 2005-01-20  Simon Josefsson  <jas@extundo.com>
64304
64305         * lib/base64.h (isbase64): Add.
64306
64307         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
64308         using a unsigned prototype, don't inline.
64309         (base64_decode): Use it.
64310
64311 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
64314         it.
64315
64316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * lib/save-cwd.c (save_cwd): Remove code to support the case
64319         where fchdir is missing or flaky.
64320
64321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
64324
64325 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
64328         AC_LIBSOURCES now does this.
64329         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
64330         with new ullong_max module.
64331
64332 2005-01-19  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/sh-quote: New file.
64335         * MODULES.html.sh (Executing programs): Add sh-quote.
64336
64337 2005-01-19  Bruno Haible  <bruno@clisp.org>
64338
64339         * lib/sh-quote.h: New file, from GNU gettext.
64340         * lib/sh-quote.c: New file, from GNU gettext.
64341
64342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         Merge from coreutils.
64345         * m4/ullong_max.m4: New file.
64346         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
64347         (gl_MACROS): Assume localeconv exists.
64348
64349 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         Merge changes from coreutils, as described below in several
64352         changelogs dated today.
64353
64354         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
64355         (O_DIRECTORY): Remove; not needed here, since "." must be
64356         a directory.  All uses removed.
64357         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
64358         universal on Suns, and we also need to test for IRIX.
64359         Revamp code to use 'if' rather than '#if'.
64360         Avoid unnecessary comparison of cwd->desc to 0.
64361
64362         * lib/utimens.c (futimens): Robustify the previous patch, by checking
64363         for known valid error numbers rather than observed invalid ones.
64364
64365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64366
64367         * modules/ullong_max: New file.
64368
64369         * modules/chdir-long, modules/openat: New files.
64370         * modules/save-cwd (Depends-on): Depend on chdir-long.
64371         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
64372
64373 2005-01-18  Jim Meyering  <jim@meyering.net>
64374
64375         Merge from coreutils.
64376         * m4/chdir-long.m4, m4/openat.m4: New files.
64377         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
64378         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
64379         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
64380         is sane and DOES follow symlinks.  Besides, testing 20 different
64381         systems found no broken chown implementations.
64382         Prompted by a change in rsync's copy of this macro.
64383         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
64384
64385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
64386
64387         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
64388         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
64389         NULL-means-set-to-current-time semantics.
64390         Remove temporary file immediately, rather than waiting
64391         for configure's at-exit trap code to do it.
64392
64393 2005-01-18  Jim Meyering  <jim@meyering.net>
64394
64395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64396
64397         * lib/utimens.c (futimens): Account for the fact that futimes
64398         can also fail with errno == ENOSYS or errno == ENOENT.
64399         Patch from Dmitry V. Levin.
64400
64401         Change the name of the robust chdir function from chdir to chdir_long.
64402         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
64403         (restore_cwd): Use chdir_long, not chdir.
64404         * lib/chdir-long.c: Renamed from chdir.c.
64405         * lib/chdir-long.h: Renamed from chdir.h.
64406         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
64407         Hurd.
64408
64409 2005-01-18  Bruno Haible  <bruno@clisp.org>
64410
64411         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
64412         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
64413         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
64414         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
64415         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
64416         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
64417         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
64418         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
64419         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
64420         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
64421         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
64422         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
64423         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
64424         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
64425         Use an all-permissive copyright notice, recommended by RMS.
64426
64427 2005-01-18  Bob Proulx  <bob@proulx.com>
64428
64429         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
64430         simplify offsetof() macro construct to avoid compile failure with
64431         native HP-UX 11.0 ANSI C compiler.
64432
64433 2005-01-17  Bruno Haible  <bruno@clisp.org>
64434
64435         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
64436         redundant because stpncpy.m4 takes care of it.
64437
64438 2005-01-17  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
64441
64442 2005-01-17  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
64445         used.
64446
64447 2005-01-17  Bruno Haible  <bruno@clisp.org>
64448
64449         * lib/fwriteerror.h (fwriteerror): Change specification to include
64450         fclose.
64451         * lib/fwriteerror.c: Include <stdbool.h>.
64452         (fwriteerror): At the end, close the file stream. Record whether
64453         stdout was already closed.
64454
64455 2005-01-17  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/execute.c (environ): Declare if needed.
64458         * lib/pipe.c (environ): Likewise.
64459         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
64460
64461 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64462
64463         * modules/argp: Depend on vsnprintf
64464
64465 2005-01-10  Jim Meyering  <jim@meyering.net>
64466
64467         * modules/closeout (Depends-on): Add atexit.
64468
64469 2005-01-06  Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
64472
64473 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
64476         definitions to be after all include files, to avoid collisions.
64477         Problem reported by Bob Proulx.
64478
64479 2005-01-04  Jim Meyering  <jim@meyering.net>
64480
64481         Changes imported from coreutils.
64482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
64483         as the mkstemp template, use a temporary directory and an
64484         8.3-friendly template to avoid trouble on systems like DJGPP.
64485         Reported by Juan M. Guerrero via Stepan Kasal.
64486         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
64487         close. Remove the temporary directory right away, rather than waiting
64488         for configure's at-exit trap code to do it.
64489         Suggestion from Stepan Kasal.
64490
64491 2005-01-01  Simon Josefsson  <jas@extundo.com>
64492
64493         * gnulib-tool: Print #include directives when --import'ing.
64494
64495 2004-12-28  Simon Josefsson  <jas@extundo.com>
64496
64497         * tests/test-base64.c: Include required header files.  Remove
64498         unused variables.
64499
64500 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         * modules/error (Depends-on): Remove gettext.
64503
64504 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64505
64506         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64507         not needed.  This removes a dependency on the gettext module.
64508         [defined _LIBC]: Do not include <libintl.h>; not needed.
64509
64510 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64513         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64514
64515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64518         HAVE_DECL_STRTOLD.
64519
64520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * modules/getdate (Depends-on): Remove alloca-opt.
64523
64524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64525
64526         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64527
64528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * lib/argp-parse.c: Include <stddef.h>.
64531         (alignof, alignto): New macros.
64532         (parser_init): Don't assume that void * is aligned sufficiently
64533         for struct option.
64534
64535         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64536         need to extend the stack.
64537         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64538         large.
64539
64540 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64541
64542         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64543
64544 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64547         (2004-10-24) change.  Apparently this was a false alarm.
64548
64549         * modules/getdate: Depend on alloca-opt, not alloca.
64550
64551 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64552
64553         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64554         Remove now-obsolete comment about AIX.
64555         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64556         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64557         (YYMAXDEPTH): New macro.
64558
64559 2004-12-18  Simon Josefsson  <jas@extundo.com>
64560
64561         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64562
64563 2004-12-18  Bruno Haible  <bruno@clisp.org>
64564
64565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64566
64567 2004-12-18  Bruno Haible  <bruno@clisp.org>
64568
64569         * lib/fatal-signal.c (fatal_signals): Make non-const.
64570         (init_fatal_signals): New function.
64571         (uninstall_handlers, install_handlers): Ignore signals that were set to
64572         SIG_IGN.
64573         (at_fatal_signal): Call init_fatal_signals.
64574         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64575         SIG_IGN.
64576         Reported by Paul Eggert.
64577
64578 2004-12-18  Bruno Haible  <bruno@clisp.org>
64579
64580         * doc/alloca.texi: New file.
64581         * doc/alloca-opt.texi: New file.
64582
64583 2004-12-17  Jim Meyering  <jim@meyering.net>
64584
64585         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64586         Otherwise, install-sh could exit with improper exit status when
64587         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64588
64589 2004-12-16  Simon Josefsson  <jas@extundo.com>
64590
64591         * tests/test-base64.c: Add license.
64592
64593 2004-12-15  Stepan Kasal  <address@hidden>
64594
64595         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64596
64597 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64598
64599         * modules/getcwd (Files): Add m4/d-ino.m4.
64600         Suggested by Mark D. Baushke.
64601
64602 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * lib/getdate.y (textint): New member "negative".
64605         (time_zone_hhmm): New function.
64606         Expect 14 shift-reduce conflicts, not 13.
64607         (o_colon_minutes): New rule.
64608         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64609         (yylex): Set the "negative" member of signed numbers.
64610
64611 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * doc/getdate.texi (Time of day items, Time zone items):
64614         Describe new formats +00:00, UTC+00:00.
64615
64616 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64619         spurious "-l"s.  Problem reported by Stepan Kasal.
64620
64621 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64624         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64625
64626 2004-12-04  Simon Josefsson  <jas@extundo.com>
64627
64628         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64629         Vandoorselaere <yoann@prelude-ids.org>.
64630
64631 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         Changes imported from coreutils.
64634         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64635         exist.
64636         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64637
64638 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         Changes imported from coreutils.
64641         * lib/hard-locale.c: Assume <locale.h> exists.
64642         Include "strdup.h".
64643         (GLIBC_VERSION): New macro.
64644         (hard_locale): Assume setlocale exists.
64645         Rewrite to avoid #ifdef.
64646         Use strdup rather than malloc + strcpy.
64647         * lib/human.c: Assume <locale.h> exists.
64648         (human_readable): Assume localeconv exists.
64649
64650 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * modules/hard-locale (Depends-on): Add strdup.
64653
64654 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64655
64656         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64657         convert T2, not T.  (Imported from libc.)
64658
64659 2004-11-30  Simon Josefsson  <jas@extundo.com>
64660
64661         * modules/restrict (License): Change to LGPL.
64662
64663 2004-11-30  Simon Josefsson  <jas@extundo.com>
64664
64665         * m4/restrict.m4: Add copyright and copying conditions.
64666
64667 2004-11-30  Simon Josefsson  <jas@extundo.com>
64668
64669         * m4/base64.m4: New file.
64670
64671 2004-11-30  Simon Josefsson  <jas@extundo.com>
64672
64673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64674         base64.
64675
64676         * tests/test-base64.c: New file.
64677
64678         * modules/base64: New file.
64679
64680 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64683         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64684
64685         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64686
64687 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64690         (__getcwd.c): Don't restore errno; glibc doesn't.
64691         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64692         first, falling back to our code only if its results look suspicious.
64693         Ensure that the resulting buffer is only as large as necessary.
64694
64695         * lib/readutmp.c: Include readutmp.h first.
64696         Include <errno.h>, since readutmp.h no longer does that.
64697         * lib/readutmp.h: Don't include <errno.h>,
64698         <sys/param.h>, <time.h>; not needed to establish interface.
64699         (errno): Remove decl.
64700         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64701         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64702         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64703
64704 2004-11-28  Simon Josefsson  <jas@extundo.com>
64705
64706         * lib/base64.h, base64.c: New file.
64707
64708 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64711
64712 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64715         (Depends-on): Remove pathmax, same.  Add mempcpy.
64716         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64717         (Makefile.am): Append getcwd.h to lib_SOURCES.
64718         (Include): Add getcwd.h.
64719         (Maintainer): Change from Jim Meyering to "all, glibc",
64720         since getdate now uses intended-for-glibc code.
64721         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64722         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64723
64724 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64727         HP's ANSI C compiler.
64728         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64729         Declaring int functions causes warnings on some modern systems and
64730         shouldn't be needed to compile on ancient ones.
64731         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64732         defined.
64733
64734         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64735         with the following changes.
64736         (__set_errno): Parenthesize properly.
64737         Include <stdbool.h>.
64738         (MIN, MAX, MATCHING_INO): New macros.
64739         (__getcwd): Define with prototype, not K&R form.
64740         Use heuristics to allocate default buffer on stack if possible.
64741         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64742         behavior, and to avoid the PATH_MAX limit when computing
64743         ../../../../...
64744         Use MATCHING_INO to compare inode number to file.
64745         Check for arithmetic overflow in size calculations.
64746         Fix bug in reallocation of dot array that caused getcwd to fail
64747         on directories nested deeper than 75.
64748         Be more careful about saving errno on error.
64749         Do not use realloc; use only free+malloc, as this is a bit
64750         more flexible and avoids a needless copy operation.
64751         Do not inspect st_dev and st_ino for symbolic links; POSIX
64752         doesn't specify the latter.
64753         Check for closedir errors.
64754         Avoid needless casts.
64755         Use "#ifdef weak_alias" around weak_alias, to be like other
64756         glibc code.
64757         The following changes to getcwd.c have effect only when used in
64758         gnulib; they have no effect inside glibc proper.
64759         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64760         as alloca isn't used.
64761         (alloca, __alloca): Likewise.
64762         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64763         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64764         unconditionally, as gnulib assumes C89 or better.
64765         Do not include <sys/param.h>.
64766         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64767         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64768         better.
64769         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64770         Include <dirent.h> in a way that is compatible with modern Autoconf.
64771         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64772         New macros, if not already defined.
64773         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64774         Use "_LIBC", not "defined _LIBC", for consistency.
64775         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64776         a mempcpy module.
64777         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64778         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64779         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64780         credit only to Jim Meyering and adjust the copyright dates.
64781         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64782         <stdlib.h>, <unistd.h>, "pathmax.h".
64783         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64784         (INITIAL_BUFFER_SIZE): Remove.
64785         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64786
64787 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64790         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64791         Use the _ONCE methods, for efficiency.
64792         Check for fcntl.h.  In test program, include <errno.h>
64793         and <fcntl.h> if available.  Remove old K&R cruft from
64794         test program.  Check for common errors in GNU/Linux,
64795         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64796         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64798         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64799         name accordingly.
64800         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64801         accommodate new getcwd.c.
64802         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64803         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64804         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64805         that's all we need now.
64806
64807 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64808
64809         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64810         argp-parse.c depends on getopt internals, that means we should
64811         always use our getopt, to be on the safe side.
64812         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64813         order not to spoil the result of an eventual previous invocation
64814         of gl_GETOPT_SUBSTITUTE.
64815
64816 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64817
64818         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64819         redefinition warnings. To avoid them, include the defines
64820         in `#if !defined __need_getopt ... #endif'. The only place
64821         where __getopt_argv_const is used is in definitions
64822         of getopt_long and getopt_long_only below, which are as well
64823         protected by `#ifndef __need_getopt'.
64824         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64825         __need_getopt after including <stdio.h> and <unistd.h> These
64826         headers might have defined it.
64827
64828 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64831
64832 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64833
64834         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64835         (futimens): New function, which uses futimes if available.
64836         (futimens, utimens): Support timespec==NULL, with same semantics
64837         as utime and utimens.
64838         * lib/utimens.h (futimens): New decl.
64839
64840 2004-11-23  Jim Meyering  <jim@meyering.net>
64841
64842         * lib/getopt_.h: Remove trailing blanks.
64843
64844 2004-11-23  Jim Meyering  <jim@meyering.net>
64845
64846         * lib/__fpending.c: Add comment.
64847
64848 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * modules/canonicalize (Depends-on): Add xreadlink.
64851         Problem reported by James Youngman.
64852
64853 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64856         New macros.
64857         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64858         optopt): Use them instead of invoking ## directly; otherwise, the
64859         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64860
64861 2004-11-19  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/strtok_r.c: Move comments from here...
64864         * lib/strtok_r.h: ... to here.
64865
64866 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64869         implementations that mishandle size_t overflow.
64870
64871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64874         might fail.  Problem reported by Yoann Vandoorselaere.
64875         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64876         implementations that mishandle size_t overflow.
64877
64878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * modules/canon-host (Depends-on): Add strdup.
64881
64882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64883
64884         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64885
64886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * lib/canon-host.c: Include "strdup.h".
64889         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64890         Use strdup instead of malloc/strcpy to duplicate strings.
64891
64892         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64893         (human_space_before_unit): New constant.
64894         * lib/human.c (human_readable): Support it.
64895
64896         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64897         (xgetcwd): Set errno correctly when failing.
64898         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64899         the failure is actually due to a PATH_MAX problem.
64900
64901         Further getopt changes to make it more likely that glibc will
64902         buy the changes back.
64903         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64904         (getopt): Use it, so to preserve glibc semantic
64905         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64906         when compiling for libc.
64907         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64908         (getopt_long, getopt_long_only): Use it.
64909
64910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64911         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64912         (getopt): Argv is now char * const *, as per standard.
64913         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64914         not char *__getopt_argv_const *.
64915         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64916         _getopt_long_only_r): Likewise.
64917         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64918         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64919         _getopt_long_r, _getopt_long_only_r): Likewise.
64920         * lib/getopt_.h (__getopt_argv_const): Remove.
64921         (getopt): Argv is now char * const *, as per standard.
64922
64923         * lib/getdate.y (tORDINAL): New token.
64924         (day, relunit): Allow it for relative times.
64925         (relative_time_table): Use tORDINAL for ordinals.
64926
64927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
64930         Document that "second" isn't allowed as an ordinal number.
64931
64932 2004-11-16  Jim Meyering  <jim@meyering.net>
64933
64934         * modules/closeout (Depends-on): Add fpending.
64935
64936 2004-11-15  Jim Meyering  <jim@meyering.net>
64937
64938         * lib/closeout.c: Include "__fpending.h" once again.
64939         Include <stdbool.h>.
64940         (close_stdout): Don't fail just because stdout was closed initially,
64941         since some programs don't write to stdout in the normal course of
64942         operation (other than --version and --help), and we don't want this
64943         function to make e.g. `touch file >&-' fail.
64944         But do fail if it was closed and someone has tried to write to it.
64945         E.g., `printf foo >&-' must fail.
64946
64947 2004-11-13  Jim Meyering  <jim@meyering.net>
64948
64949         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
64950
64951 2004-11-12  Simon Josefsson  <jas@extundo.com>
64952
64953         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
64954         small doc fix is still pending.
64955
64956 2004-11-11  Simon Josefsson  <jas@extundo.com>
64957
64958         * modules/strtok_r: New file.
64959
64960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64961         strtok_r.
64962
64963 2004-11-11  Simon Josefsson  <jas@extundo.com>
64964
64965         * m4/strtok_r.m4: New file.
64966
64967         * m4/getopt.m4: Replace opterr.
64968
64969 2004-11-11  Simon Josefsson  <jas@extundo.com>
64970
64971         * lib/strtok_r.h, strtok_r.c: New file.
64972
64973 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64976         of replacing opterr, getopt, etc.  This should handle the
64977         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64978
64979 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64982         we can stop lying to compilers about the constness of argv when we
64983         are compiled outside glibc.
64984         (getopt, getopt_long, getopt_long_only): Use it.
64985         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64986         _getopt_internal, getopt): Likewise.
64987         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64988         _getopt_long_only_r): Likewise.
64989         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64990         _getopt_long_r, _getopt_long_only_r): Likewise.
64991
64992         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64993         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64994         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64995         the other external symbols.
64996         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64997         declaration, since the above renaming now works around collisions.
64998
64999 2004-11-11  Jim Meyering  <jim@meyering.net>
65000
65001         * lib/linebreak.c: Remove trailing blanks.
65002         * lib/alloca_.h: Likewise.
65003         * lib/acosl.c: Likewise.
65004         * lib/euidaccess.c: Likewise.
65005         * lib/allocsa.h: Likewise.
65006
65007 2004-11-10  Simon Josefsson  <jas@extundo.com>
65008
65009         * m4/getaddrinfo.m4: New file.
65010
65011 2004-11-10  Simon Josefsson  <jas@extundo.com>
65012
65013         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
65014
65015 2004-11-10  Simon Josefsson  <jas@extundo.com>
65016
65017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65018         getaddrinfo.
65019
65020         * modules/getaddrinfo: New file.
65021
65022 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
65025
65026 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/mktime.c (SHR): New macro, which is a portable
65029         substitute for >> that should work even on Crays.
65030         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
65031         Problem reported by Mark D. Baushke in
65032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
65033         * lib/getdate.y (SHR): Likewise.
65034         (tm_diff): Use it.
65035         * lib/strftime.c (SHR): Likewise.
65036         (tm_diff): Use it.
65037         * lib/quotearg.c (struct quoting_options): Use unsigned int for
65038         quote_these_too, so that right shifts are well defined.  All uses
65039         changed.
65040
65041 2004-11-10  Jim Meyering  <jim@meyering.net>
65042
65043         Ensure that no close failure goes unreported.
65044         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
65045         return early when it seems there's nothing to flush.
65046         Don't include __fpending.h.
65047
65048 2004-11-10  Jim Meyering  <jim@meyering.net>
65049
65050         * modules/closeout (Depends-on): Remove fpending.
65051
65052 2004-11-10  Jim Meyering  <jim@meyering.net>
65053
65054         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
65055
65056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
65059         gl_FUNC_STRFTIME.
65060         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
65061         and AC_REQUIRE when possible, to avoid duplicate checks.
65062         Check for <wchar.h>.
65063
65064 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
65067
65068 2004-11-09  Bruno Haible  <bruno@clisp.org>
65069
65070         * m4/sockpfaf.m4: New file.
65071
65072 2004-11-05  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
65075         Reported by Mark D. Baushke <mdb@cvshome.org>.
65076
65077 2004-11-04  Bruno Haible  <bruno@clisp.org>
65078
65079         2004-09-11  Bruno Haible  <bruno@clisp.org>
65080                 * allocsa.valgrind: New file.
65081         2004-02-06  Bruno Haible  <bruno@clisp.org>
65082                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
65083                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
65084                 Reported by Christopher Seip <chris.seip@hp.com>.
65085
65086 2004-11-04  Bruno Haible  <bruno@clisp.org>
65087
65088         * modules/allocsa (Files): Add lib/allocsa.valgrind.
65089         (Makefile.am): Distribute it.
65090
65091 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65092
65093         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
65094         with errno == ERANGE if the buffer is too small.
65095         Problem reported by Mark D. Baushke.
65096
65097 2004-11-03  Albert Chin  <china@thewrittenword.com>
65098             Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
65101         equivalent, substitute $ac_type for equivalent type rather than
65102         blindly using uint32_t *always* which won't work if uint32_t is not
65103         available.  Define _UINT32_T to work around typedef of uint32_t if
65104         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65105         2.5.1.
65106
65107 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * m4/jm-macros.m4: Sync from coreutils.
65110         (gl_MACROS): Check for mbrlen, for pathchk.
65111         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65112
65113 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * lib/xreadlink.c (MAXSIZE): New macro.
65116         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65117         size does not exceed MAXSIZE.  Avoid cast.
65118         As suggested by Mark D. Baushke in
65119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65120         if readlink fails with buffer size just under MAXSIZE, try again
65121         with MAXSIZE.
65122
65123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65126
65127 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65128         and  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65131         (get_date): Overparenthesize to avoid GCC warning.
65132
65133 2004-11-02  Bruno Haible  <bruno@clisp.org>
65134
65135         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65136         returns void.
65137
65138 2004-11-02  Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65141         function returns void.
65142
65143 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65146         fflush_unlocked, flockfile, funlockfile, funlockfile,
65147         fputs_unlocked, putc_unlocked.
65148
65149 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65152         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65153         already declared.
65154
65155 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * modules/getdate (Files): Add doc/getdate.texi.
65158         (Depends-on): Add setenv, xalloc.
65159
65160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * lib/getdate.y: Add support for TZ="foo" within a date string.
65163         Fix some bugs near time_t boundaries.  Reject dates with
65164         out-of-range components, e.g., "Sept 31".
65165         Include <stdlib.h>, "setenv.h", "xalloc.h".
65166         (ISDIGIT_LOCALE): Remove; unused.
65167         Note that the TZ and time functions used here are not reentrant.
65168         (mktime_ok, get_tz): New functions.
65169         (TZBUFSIZE): New constant.
65170         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65171         This requires that we sometimes generate our own TZ="XXX..." setting.
65172
65173 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         * doc/getdate.texi: New file, from coreutils with modifications for
65176         the new TZ parsing.
65177
65178 2004-10-27  Derek R. Price  <derek@ximbiot.com>
65179
65180         * lib/mktime.c (not_equal_tm): Remove redundant check.
65181
65182 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * modules/regex (lib_SOURCES): Add regex.c.
65185         Reported by James Youngman in
65186         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
65187
65188 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/getdate.y: Use Bison 1.875 features, and some minor
65191         code cleanups.  This change does not affect semantics.
65192         Don't include <stdlib.h>; no longer needed.
65193         Don't include unlocked-io.h; only the "#if TEST" code uses
65194         stdio, and performance isn't crucial there.
65195         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
65196         Bison 1.875 features as described below.
65197         All uses of "PC." replaced by "pc->".
65198         (YYSTYPE): Add a forward declaration.
65199         (yylex, yyerror): Use full prototypes in forward decls.
65200         Use "%pure-parser" rather than obsolescent "%pure_parser".
65201         Use %parse-param and %lex-param instead of obsolescent
65202         YYPARSE_PARAM and YYLEX_PARAM.
65203         (meridian_table, month_and_day_table, time_units_table,
65204         relative_time_table, time_zone_table, military_table,
65205         lookup_zone, lookup_word, get_date):
65206         Use NULL instead of 0 where appropriate.
65207         (to_hour): Avoid abort (), to avoid a dependency on
65208         stdlib.h.
65209         (yyerror, yylex): Now accepts parser_control * arg.
65210         (main) [TEST]: Use '\0' rather than 0 for char.
65211
65212 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
65215
65216 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
65219         It's now the caller's responsibility to handle the case where
65220         !HAVE_GETPAGESIZE && !defined getpagesize.
65221
65222         * lib/mktime.c (leapyear): Arg is long int, not int.
65223
65224 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
65227
65228 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65229
65230         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
65231         missing.  Problem reported by James Youngman.
65232
65233 2004-10-16  Simon Josefsson  <jas@extundo.com>
65234
65235         * gnulib-tool: Fix comments.  Fix parse problem.
65236         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
65237
65238 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65239
65240         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
65241         implementation of getopt_long.  Problem reported by Alexander Taler in:
65242         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
65243
65244 2004-10-15  Bruno Haible  <bruno@clisp.org>
65245
65246         * gnulib-tool: Untabify. Initialize supplied_libname.
65247         (func_usage): More homogenous output.
65248         (func_modules_transitive_closure, func_modules_to_filelist,
65249         func_emit_lib_Makefile_am): New functions.
65250         (func_import): New function, extracted from big case statement. Use
65251         func_get_license, func_modules_transitive_closure,
65252         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
65253         opt_lgpl. Don't use test -a, as it's not portable.
65254         (func_create_testdir): Use func_modules_transitive_closure,
65255         func_modules_to_filelist, func_emit_lib_Makefile_am.
65256
65257 2004-10-15  Bruno Haible  <bruno@clisp.org>
65258
65259         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
65260
65261 2004-10-15  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
65264         the portions belonging to each module.
65265         Suggested by Derek Robert Price <derek@ximbiot.com>.
65266
65267 2004-10-12  Simon Josefsson  <jas@extundo.com>
65268
65269         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65270         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
65271         to real functions.
65272
65273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65274
65275         * modules/vsnprintf: New file.
65276
65277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65278
65279         * m4/vsnprintf.m4: New file.
65280
65281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65282
65283         * lib/vsnprintf.h: New file.
65284         * lib/vsnprintf.c: New file.
65285
65286 2004-10-11  Bruno Haible  <bruno@clisp.org>
65287
65288         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
65289         vsnprintf.
65290
65291 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
65294
65295 2004-10-07  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
65298         fits into the provided buffer.
65299
65300 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65301
65302         * lib/diacrit.c, diacrit.h: Add GPL notice.
65303
65304         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
65305         notice.
65306         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
65307         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
65308         This avoids a potential constant-folding bug.
65309
65310 2004-10-05  Bruno Haible  <bruno@clisp.org>
65311
65312         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
65313         for the declaration of strsep.
65314
65315 2004-10-05  Bruno Haible  <bruno@clisp.org>
65316
65317         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
65318
65319 2004-10-04  Simon Josefsson  <jas@extundo.com>
65320
65321         * modules/memmem: New file.
65322         * tests/test-memmem.c: New file.
65323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
65324
65325 2004-10-04  Simon Josefsson  <jas@extundo.com>
65326
65327         * m4/memmem.m4: New file.
65328
65329 2004-10-04  Simon Josefsson  <jas@extundo.com>
65330
65331         * lib/memmem.h: New file.
65332         * lib/memmem.c: New file, taken from glibc.
65333
65334 2004-10-04  Simon Josefsson  <jas@extundo.com>
65335
65336         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
65337         '#ifdef USE_UNLOCKED_IO'.
65338
65339 2004-10-04  Simon Josefsson  <jas@extundo.com>
65340
65341         * config/srclist.txt: Add memmem from glibc.
65342
65343 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
65346
65347         * modules/argmatch, modules/argp, modules/closeout, modules/error,
65348         modules/exclude, modules/getdate, modules/getline,
65349         modules/getndelim2, modules/getpass, modules/getpass-gnu,
65350         modules/getusershell, modules/linebuffer, modules/md5,
65351         modules/mountlist, modules/posixtm, modules/readtokens,
65352         modules/readutmp, modules/regex, modules/sha1,
65353         modules/version-etc, modules/yesno:
65354         Remove dependency on unlocked-io.
65355
65356 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
65359
65360         * m4/unlocked-io.m4: Add copyright notice.
65361         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
65362
65363 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
65366         * lib/xmalloc.c (xmemdup): Likewise.
65367         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
65368         XFREE): Remove these long-obsolescent macros.
65369         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
65370         * lib/xstrdup.c: Remove.
65371
65372         * lib/regex.c (re_comp): Cast gettext return value to char *,
65373         Problem reported by Martin Neitzel via Mark D. Baushke.
65374
65375 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
65378         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
65379         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
65380         regex.c, sha1.c, version-etc.c, yesno.c:
65381         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
65382         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
65383         the includer's responsibility.
65384
65385         Sync from coreutils.
65386
65387         * lib/modechange.c (mode_compile): Don't decrement a pointer that
65388         points to the start of a string, as the C Standard says the
65389         resulting behavior is undefined.
65390
65391         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
65392         simple -> simple_backups, numbered_existing ->
65393         numbered_existing_backups, numbered -> numbered_backups
65394         to avoid shadowing problems.  All uses changed.
65395         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
65396         * lib/backupfile.c (check_extension, numbered_backup):
65397         Rename locals to avoid shadowing 'basename'.
65398         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
65399         once.
65400
65401         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
65402         * lib/.cvsignore: Add getopt.h.
65403
65404 2004-10-04  Bruno Haible  <bruno@clisp.org>
65405
65406         * modules/README: New file.
65407         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
65408         not a module.
65409
65410 2004-10-02  Jim Meyering  <jim@meyering.net>
65411
65412         * lib/dirfd.h, getpagesize.h: Add copyright notice.
65413
65414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65415
65416         * modules/strsep: New file.
65417
65418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65419
65420         * m4/strsep.m4: New file.
65421
65422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65423
65424         * lib/strsep.h: New file.
65425         * lib/strsep.c: New file.
65426
65427 2004-10-01  Simon Josefsson  <jas@extundo.com>
65428
65429         * lib/snprintf.c (snprintf): Handle size==0.
65430
65431 2004-10-01  Simon Josefsson  <jas@extundo.com>
65432             Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
65435         (snprintf): Declare 'args'.
65436
65437 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * lib/snprintf.c: Remove comments as to why each header is needed.
65440
65441 2004-10-01  Bruno Haible  <bruno@clisp.org>
65442
65443         * MODULES.html.sh: Add strsep.
65444
65445 2004-09-30  Simon Josefsson  <jas@extundo.com>
65446
65447         * modules/snprintf: New file.
65448
65449 2004-09-30  Simon Josefsson  <jas@extundo.com>
65450
65451         * m4/snprintf.m4: New file.
65452
65453 2004-09-30  Simon Josefsson  <jas@extundo.com>
65454
65455         * lib/snprintf.h, lib/snprintf.c: New files.
65456
65457 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65458
65459         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
65460         (hol_entry_help): Never translate an empty string.
65461         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
65462         * lib/argp.h (OPTION_NO_TRANS): New option.
65463
65464 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * modules/argp (Maintainer): Replace Simon Josefsson
65467         by Sergey Poznyakoff.
65468
65469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
65472         changes merged back into glibc.
65473
65474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
65477
65478 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65479
65480         * lib/xvasprintf.c: Include xalloc.h.
65481         (xvasprintf): Use xalloc_die, not xmalloc_die.
65482
65483 2004-09-29  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/alloca-opt: New file, derived from modules/alloca.
65486         * modules/allocsa: Depend on alloca-opt instead of alloca.
65487         * modules/setenv: Likewise.
65488         * modules/vasnprintf: Likewise.
65489         * MODULES.html.sh: Add alloca-opt.
65490
65491 2004-09-28  Simon Josefsson  <jas@extundo.com>
65492
65493         * gnulib-tool: New parameter --lgpl, to asseert that modules are
65494         LGPL, and to replace license template from GPL to LGPL.
65495
65496 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * modules/dummy: Change license to LGPL.
65499
65500 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65503
65504 2004-09-24  Simon Josefsson  <jas@extundo.com>
65505
65506         * modules/minmax (License): Change from GPL to LGPL.
65507
65508 2004-09-23  Simon Josefsson  <jas@extundo.com>
65509
65510         * gnulib-tool (--import): Typo.
65511
65512 2004-09-23  Simon Josefsson  <jas@extundo.com>
65513
65514         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65515
65516 2004-09-22  Bruno Haible  <bruno@clisp.org>
65517
65518         * modules/*: Add 'License' field.
65519         * gnulib-tool: Accept --extract-license option.
65520         (func_get_license): New function.
65521
65522 2004-09-21  Bruno Haible  <bruno@clisp.org>
65523
65524         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65525         Reported by Simon Josefsson.
65526
65527 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65530         gl_AC_TYPE_LONG_LONG.
65531
65532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65535
65536 2004-09-18  Simon Josefsson  <jas@extundo.com>
65537         and  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65540         calls with autoreconf.  Define GL_LIB.
65541
65542 2004-09-14  Karl Berry  <karl@gnu.org>
65543
65544         * config/srclist.txt: unsync setenv.c, sigh.
65545
65546 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65549         Problem reported by Bruno Haible in:
65550         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65551
65552 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * config/srclist.txt: Comment out argp-pvh.c.
65555
65556 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65559         in case some system header has #define'd it.  Problem reported by
65560         Soeren D. Schulze in
65561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65562
65563 2004-09-09  Karl Berry  <karl@gnu.org>
65564
65565         * regex.[ch]: delete from the root.  These were supposed to be
65566                 synced with emacs cvs, but this has not happened for about
65567                 a year, and anyway nothing else uses emacs regex.[ch].
65568                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65569                 lib/regex[.ch] is untouched.
65570
65571 2004-09-09  Bruno Haible  <bruno@clisp.org>
65572
65573         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65574
65575 2004-09-09  Bruno Haible  <bruno@clisp.org>
65576
65577         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65578         modifications.
65579         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65580
65581 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65582
65583         * modules/xvasprintf: New file.
65584         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65585
65586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65587
65588         * lib/xvasprintf.h: New file.
65589         * lib/xvasprintf.c: New file.
65590         * lib/xasprintf.c: New file.
65591
65592 2004-09-08  Bruno Haible  <bruno@clisp.org>
65593
65594         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65595
65596 2004-09-08  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65599         length is > INT_MAX.
65600         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65601         more.
65602
65603 2004-09-08  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/stdint_.h: New file, taken from GNU clisp.
65606
65607 2004-09-08  Bruno Haible  <bruno@clisp.org>
65608             Oskar Liljeblad  <oskar@osk.mine.nu>
65609
65610         * modules/stdint: New file.
65611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65612
65613 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         Import from coreutils.
65616         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65617         strings on unbounded length.  alloca's performance benefits aren't
65618         that important here.
65619         (V_STRDUP): Remove.
65620         (parse_with_separator): New function, with most of the internals
65621         of the old parse_user_spec.  Allow user to omit both user and group,
65622         for compatibility with FreeBSD.
65623         Clone only the user name, not the entire spec.
65624         Do not set *uid, *gid unless entirely successful.
65625         Avoid memory leak in some failing cases.
65626         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65627         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65628         (parse_user_spec): Rewrite to use parse_with_separator.
65629
65630 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         * modules/userspec: Don't depend on alloca.
65633
65634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65635
65636         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65637
65638 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65639
65640         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65641         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65642         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65643
65644 2004-08-16  Simon Josefsson  <jas@extundo.com>
65645
65646         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65647         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65648         Add --dry-run for --import.
65649         Let user provided command line parameters override configure.ac
65650         settings.
65651
65652 2004-08-12  Simon Josefsson  <jas@extundo.com>
65653
65654         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65655         as discussed with Paul Eggert in threads rooted at
65656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65657         and
65658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65659         Before, the test was empty, and relied on ELIDE_CODE in source
65660         code.)
65661         (gl_PREREQ_GETOPT): New macro.
65662         (gl_GETOPT): Use them.
65663
65664 2004-08-12  Simon Josefsson  <jas@extundo.com>
65665
65666         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65667         * lib/getopt_.h: Renamed from getopt.h.
65668
65669 2004-08-12  Simon Josefsson  <jas@extundo.com>
65670
65671         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65672         Change default library name from libfoo to libgnu.
65673         Now, if you have a configure.ac that says:
65674                 gl_SOURCE_BASE(gl)
65675                 gl_M4_BASE(gl/m4)
65676                 gl_MODULES(error getopt etcetera)
65677                 gl_INIT
65678         you can import all you need by running:
65679                 ../gnulib/gnulib-tool --import
65680
65681         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65682         (Makefile.am): Rewrite, use logic from argz.
65683         (Include): Use <getopt.h> instead of "getopt.h".
65684
65685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * modules/argp (Files): Add m4/unlocked-io.m4.
65688         (Depends-on): Add extensions.
65689
65690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65693         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65694         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65695         Check for program_invocation_name, program_invocation_short_name,
65696         flockfile, funlockfile, features.h, _getopt_long_only_r.
65697
65698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65699
65700         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65701         its complicated substitute.
65702         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65703         and program_invocation_name.
65704         (__argp_basename) [!_LIBC]: Remove; the only use was
65705         replaced by its body.
65706         (__argp_short_program_name): Change condition from
65707         !defined __argp_short_program_name to
65708         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65709         to match argp-namefrob.h.
65710         (__argp_failure): Don't assume strerror_r returns char *.
65711         * lib/argp-parse.c (N_): Define unconditionally.
65712         (argp_default_options): Fill out initializers with 0 to avoid
65713         gcc warnings.
65714
65715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65718         getopt1.c.
65719
65720 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         Merge from coreutils.
65723
65724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65725
65726         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65727         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65728
65729 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         Merge from coreutils.
65732
65733         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65734         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65735         for Reliant Unix 5.43.
65736
65737         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65738         (union fooround): Use uintmax_t, not long int.
65739         The rest is a merge from libc:
65740         [defined _LIBC]: Include <shlib-compat.h>.
65741         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65742
65743         * lib/settime.c (settime): Recode to avoid warning with
65744         Sun Forte C 6U2.
65745
65746         * lib/strverscmp.c: Convert to UTF-8.
65747
65748 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65751         m4/uintmax_t.m4.
65752
65753 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * modules/xalloc-die: New file.
65756         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65757
65758         * modules/md5 (Files): Add m4/uint32_t.m4.
65759         * modules/sha1: Renamed from modules/sha.
65760         (Files):
65761         Rename lib/sha.h to lib/sha1.h.
65762         Rename lib/sha.c to lib/sha1.c.
65763         Rename m4/sha.m4 to m4/sha1.m4.
65764         (lib_SOURCES): Likewise.
65765         (configure.ac): Rename gl_SHA to gl_SHA1.
65766         (Include): sha.h -> sha1.h.
65767
65768 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65771         * m4/sha1.m4: Renamed from sha.m4.
65772         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65773
65774 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * lib/obstack.h (obstack_empty_p):
65777         Don't assume that chunk->contents is suitably aligned.
65778         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65779         Likewise. Problem reported by Benno in
65780         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65781
65782         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65783         readable.  This could be improved further but it'd take some work.
65784
65785 2004-08-08  Simon Josefsson  <jas@extundo.com>
65786
65787         * modules/xgethostname (Depends-on): Remove exit and error (not
65788         used).
65789
65790         * modules/getpass-gnu: Add getpass.h.
65791         (Depends-on): Add stdbool.
65792         * modules/getpass: Add getpass.h.
65793
65794 2004-08-08  Simon Josefsson  <jas@extundo.com>
65795
65796         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65797         Check getpass declaration.
65798
65799 2004-08-08  Simon Josefsson  <jas@extundo.com>
65800
65801         * lib/xgethostname.c: Don't include error.h (not used).
65802
65803         * lib/getpass.h: Add.
65804         * lib/getpass.c: Include getpass.h first.
65805
65806 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * lib/xalloc-die.c: New file.
65809         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65810         All uses removed.
65811         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65812         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65813         xalloc-die.c.
65814         (_, N_, xalloc_die): Move to xalloc-die.c.
65815         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65816         so that we needn't mess with xalloc_msg_memory_exhausted.
65817
65818         * lib/sha1.h: Renamed from sha.h.
65819         (SHA1_H): Renamed from _SHA_H.
65820         (sha1_ctx): Renamed from sha_ctx.
65821         (sha1_init_ctx): Renamed from sha_init_ctx.
65822         (sha1_process_block): Renamed from sha_process_block.
65823         (sha1_process_bytes): Renamed from sha_process_bytes.
65824         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65825         (sha1_read_ctx): Renamed from sha_read_ctx.
65826         (sha1_stream): Renamed from sha_stream.
65827         (sha1_buffer): Renamed from sha_buffer.
65828         * lib/sha1.c: Likewise; renamed from sha.c.
65829         Do not include <sys/types.h>.
65830         Include <stddef.h> rather than <stdlib.h>.
65831
65832 2004-08-08  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65835         FILESYSTEM_PREFIX_LEN.
65836         * lib/progreloc.c: Likewise.
65837         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65838
65839 2004-08-06  Simon Josefsson  <jas@extundo.com>
65840
65841         * modules/progname (Depends-on): Don't depend on stdbool.
65842
65843 2004-08-06  Simon Josefsson  <jas@extundo.com>
65844
65845         * modules/getsubopt: New file.
65846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65847         getsubopt.
65848
65849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         More merge from coreutils.
65852
65853         * m4/utimens.m4, m4/utimecmp.m4: New files.
65854         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65855         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65856         prereq.m4, sha.m4: Import changes from coreutils.
65857
65858 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         More merge from coreutils.
65861         * modules/raise, modules/readtokens0, modules/utimens:
65862         * modules/utimecmp, module/xnanosleep: New files.
65863         * modules/strftime: Add lib/strftime.h.
65864         Change include from <time.h> to "strftime.h".
65865         * modules/yesno: Add lib/yesno.h.
65866         * modules/backupfile: Remove lib/addext.c.
65867         * modules/euidaccess: Add stat-macros.h.
65868         * modules/canonicalize, modules/euidaccess,
65869         modules/filemode, modules/lchown, modules/makepath,
65870         modules/rmdir, modules/stat: Likewise.
65871
65872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         Merge from tar.
65875         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65876         SIZE_MAX is a valid preprocessor constant.
65877         (__argp_basename): Change from "#ifndef _LIBC"
65878         to "#ifndef __argp_short_program_name", so that
65879         we don't compile these functions for tar.
65880
65881         More merges from coreutils.
65882         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65883         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65884         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65885         * lib/addext.c: Remove; no longer needed.
65886         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65887         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65888         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65889         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65890         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65891         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65892         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65893         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65894         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65895         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65896         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65897         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65898         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65899         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65900         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65901         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65902         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65903         Import changes from coreutils.
65904
65905 2004-08-05  Simon Josefsson  <jas@extundo.com>
65906
65907         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65908
65909 2004-08-05  Simon Josefsson  <jas@extundo.com>
65910
65911         * m4/getsubopt.m4: New file.
65912
65913 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         Merge from coreutils.
65916
65917         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65918         * m4/getcwd-path-max.m4: New files.
65919
65920         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65921         FILESYSTEM_PREFIX_LEN ->
65922         FILE_SYSTEM_PREFIX_LEN.
65923         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65924         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65925         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65927
65928         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
65929         prerequisite modules now handle the DOS stuff.
65930         Don't check for unistd.h.
65931
65932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65933
65934         Merge from coreutils.
65935
65936         * lib/.gdb-history: Remove; this doesn't belong here.
65937
65938         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
65939         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
65940         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
65941         * lib/getcwd.c: New files.
65942
65943         * lib/dirname.h: Include <stdbool.h>.
65944         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
65945         for consistency with POSIX terminology.  All uses changed.
65946         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
65947         (strip_trailing_slashes): Use bool for booleans.
65948         * lib/stripslash.c (strip_trailing_slashes): Likewise.
65949
65950         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
65951         sometimes returns a positive errno value even when it succeeds.
65952         (print_errno_message) [!LIBC]: Fall back on strerror if
65953         __strerror_r fails.
65954
65955         * lib/path-concat.c (mempcpy): Don't define if a system header defines
65956         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
65957         (longest_relative_suffix): New function.
65958         (path_concat): Use it.  Assume first argument is not NULL.
65959         Port to DOS.  Omit redundant separators.
65960         Report an error instead of returning NULL.
65961         Use mempcpy instead of memcpy.
65962         (xpath_concat): Remove: not declared or used.
65963
65964         * lib/same.h: Include <stdbool.h>
65965         (same_name): Return bool, not int.
65966         * lib/same.c (same_name): Likewise.
65967         (errno): Don't declare; we assume C89 or better now.
65968
65969         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
65970         if not already defined.
65971
65972         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65973         * lib/dup-safer.c (errno): Likewise.
65974
65975 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         Merge from coreutils.
65978         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65979         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65980         * modules/path-concat: Don't depend on strdup.
65981
65982 2004-08-03  Simon Josefsson  <jas@extundo.com>
65983
65984         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65985         * lib/progname.h: Don't include stdbool.h.
65986
65987 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65990         * MODULES.html.sh (func_all_modules): Remove fatal.
65991
65992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65993
65994         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65995
65996 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65999         working.
66000
66001 2004-08-02  Simon Josefsson  <jas@extundo.com>
66002
66003         * lib/getsubopt.h: New file, with comments from Bruno Haible.
66004         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
66005         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
66006
66007 2004-08-01  Simon Josefsson  <jas@extundo.com>
66008
66009         * lib/xgetdomainname.c: Include stdlib.h, for free().
66010
66011 2004-07-19  Bruno Haible  <bruno@clisp.org>
66012
66013         * MODULES.html.sh (func_all_modules): Add dummy.
66014
66015 2004-07-16  Simon Josefsson  <jas@extundo.com>
66016
66017         * modules/dummy: New file.
66018
66019 2004-07-16  Simon Josefsson  <jas@extundo.com>
66020
66021         * lib/dummy.c: New file.
66022
66023 2004-07-16  Bruno Haible  <bruno@clisp.org>
66024
66025         * lib/backupfile.h: Add extern "C" for C++.
66026         * lib/closeout.h: Likewise.
66027         * lib/copy-file.h: Likewise.
66028         * lib/findprog.h: Likewise.
66029         * lib/full-write.h: Likewise.
66030         * lib/pathname.h: Likewise.
66031         * lib/progname.h: Likewise.
66032         * lib/stpcpy.h: Likewise.
66033         * lib/stpncpy.h: Likewise.
66034         * lib/strcase.h: Likewise.
66035         * lib/strstr.h: Likewise.
66036         * lib/xalloc.h: Likewise.
66037
66038         * lib/mbswidth.h: Add extern "C" for C++.
66039         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
66040
66041 2004-07-13  Robert Millan  <robertmh@gnu.org>
66042
66043         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
66044
66045 2004-07-09  Simon Josefsson  <jas@extundo.com>
66046
66047         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
66048         failed without this.)
66049
66050 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         * modules/chown (Files): Add lib/fchown-stub.c, since
66053         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
66054
66055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66056
66057         * lib/fchown-stub.c: New file.
66058
66059 2004-06-24  Jim Meyering  <jim@meyering.net>
66060
66061         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
66062
66063 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * modules/argz: Omit "#include".
66066
66067         * MODULES.html.sh (func_all_modules): Add calloc, to match
66068         2004-06-01 addition of calloc module.
66069
66070 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * m4/argz.m4: New file, which is autoupdated from libtool.
66073
66074 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
66077         libtool.
66078
66079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * config/srclist-update: Don't insist on "USA." before the
66082         close-comment, as libtool omits the period and puts the */ on a
66083         separate line.
66084         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
66085         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
66086
66087 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
66088
66089         * modules/argz: New file.
66090         * MODULES.html.sh (func_all_modules): Add argz.
66091
66092 2004-06-12  Jim Meyering  <jim@meyering.net>
66093         and  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * modules/hash (Files): Add lib/xalloc.h.
66096         * modules/pipe (Depends-on): Add wait-process.
66097         * modules/stat (Depends-on): Add xalloc.
66098         * modules/userspec (Files): Add lib/userspec.h.
66099         * modules/xstrto
66100
66101         Upgrade from gettext-0.13.
66102         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66103         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66104         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66105
66106 2004-06-10  Jim Meyering  <jim@meyering.net>
66107
66108         * lib/calloc.c: New file.
66109
66110 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * lib/getdate.y (yylex): Allow space between sign and number.
66113         Problem reported by Dan Jacobson.
66114
66115 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         Merge from coreutils CVS.
66118
66119         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66120         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66121         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66122         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66123         xstrtol.m4: Fix copyright date and/or serial number.
66124
66125         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66126         See if we need an fchown replacement.
66127         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66128         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66129         and use the replacement function if we detect either defect.
66130
66131         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66132         gl_UTIMECMP.
66133
66134 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66135         and  Jim Meyering  <jim@meyering.net>
66136
66137         Merge from coreutils CVS.
66138
66139         * lib/stat-macros.h: New file, with contents from file-type.h
66140         and coreutils' system.h.
66141         * lib/file-type.c: Include "stat-macros.h".
66142         * lib/file-type.h (file_type): Move all macro definitions to new file,
66143         stat-macros.h.
66144
66145         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66146         Wrap old code with this conditional.
66147         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66148         function that does not dereference symlinks.
66149         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66150
66151         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66152         dependency problems.
66153         (xreadlink): Accept new arg SIZE, for efficiency.
66154         All decls and uses changed.
66155         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66156
66157         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66158         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66159
66160         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66161         sysexits.h.
66162
66163 2004-06-01  Jim Meyering  <jim@meyering.net>
66164
66165         * m4/calloc.m4: New file.
66166
66167 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66170         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66171         Also, fix a typo in a diagnostic.
66172
66173 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66176         or AC_FUNC_REALLOC.
66177
66178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
66181         macros to be defined.
66182         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
66183         the allocator returns NULL because the requested size is zero.
66184
66185 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
66188         var.  Add comment explaining why libc still defines it.  This
66189         merges the following patch from glibc:
66190         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
66191
66192 2004-05-20  Andreas Schwab  <schwab@suse.de>
66193
66194         * m4/free.m4: Replace free if it not known to work, not the other
66195         way round.
66196
66197 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
66200         present in glibc since revision 1.1 of this file.
66201         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
66202         obstack_alignment_mask, obstack_alloc, obstack_base,
66203         obstack_blank, obstack_blank_fast, obstack_chunk_size,
66204         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
66205         obstack_grow0, obstack_init, obstack_int_grow,
66206         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
66207         obstack_next_free, obstack_object_size, obstack_ptr_grow,
66208         obstack_ptr_grow_fast, obstack_room): Remove declarations of
66209         nonexistent functions.
66210
66211 2004-05-18  Karl Berry  <karl@gnu.org>
66212
66213         * config/srclist.txt: break link for vasnprintf.c.
66214
66215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         Port obstack to the AS/400, where pointers are 16 bytes wide and
66218         you cannot cast an integer to a valid pointer.  This patch is
66219         currently waiting to be integrated into glibc; see
66220         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
66221
66222         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
66223         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
66224         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
66225         (struct obstack): temp member is now a union of a pointer and
66226         an integer, instead of an integer.  All integer uses changed.
66227         This does not affect the physical layout of struct obstack,
66228         except on hosts (like the AS/400) where the size or alignment of
66229         void * is greater than that of ptrdiff_t.
66230         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
66231         __STDC__)]: Store temporary in pointer member of union, not
66232         integer member.
66233         * lib/obstack.c: Include <stddef.h>, for offsetof.
66234         (struct fooalign): Remove; it doesn't need a name.
66235         (union fooround): Change double to long double, and add void *.
66236         (DEFAULT_ALIGNMENT): Use offsetof to compute.
66237         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
66238         not a macro.  Hence the values are always int; so remove all
66239         casts-to-int in uses.
66240
66241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
66244         we can get this patch merged into glibc.
66245
66246 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66247             Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * m4/argp: Depend on alloca.
66250
66251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66252             Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
66255         freecoding.
66256
66257 2004-05-17  Bruno Haible  <bruno@clisp.org>
66258
66259         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
66260         precision that consists of a '.' followed by an empty digit string.
66261         Patch by Tor Lillqvist <tml@iki.fi>.
66262
66263 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
66266         for backward compatibility with older code.  We need our own
66267         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
66268         it under some other name, and our alloca.h will define it.
66269
66270 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66271             Derek Price  <derek@ximbiot.com>
66272
66273         * lib/alloca.c: Include <alloca.h>, to get our interface.
66274         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
66275         include <alloca.h> first.  Use C89 prototype for alloca; this
66276         requires including <stddef.h> for size_t.  Use extern "C" if C++.
66277         Use #elif for simplicity, since we can assume C89 now.
66278         Don't try to source the system alloca.h since it will not be found
66279         and to prevent recursively including its replacement.
66280         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
66281         * lib/regex.c: Likewise.
66282
66283 2004-05-16  Derek Price  <derek@ximbiot.com>
66284             Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         getline cleanup.  This changes the getndelim2 API: both order of
66287         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
66288         no delimiter).
66289
66290         * lib/getline.c: Don't include stddef.h or stdio.h, since our
66291         interface does that.
66292         (getline): Always use getdelim, so that we don't have two
66293         copies of this code.
66294         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
66295         if available.
66296         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
66297         (GETNDELIM2_MAXIMUM): New macro.
66298         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
66299         instead of the old practice of delim2==0.  All callers changed.
66300         Return -1 on overflow, instead of returning junk.
66301         Do not set *linesize unless allocation succeeds.
66302         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
66303         that we include sys/types.h.
66304         * lib/getnline.h: Likewise.
66305         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
66306         (getndelim2): Reorder arguments.
66307         * lib/getnline.c (getnline, getndelim):
66308         Don't discard the NMAX argument.
66309         (getnline): Invoke getndelim, to avoid code duplication.
66310         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
66311         of (size_t) -1 by callers of the getnline family.
66312
66313 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
66316         Check for gettimeofday.
66317         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
66318         Check for settimeofday, stime.
66319
66320 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         * lib/nanosleep.c (suspended): Change its type from int to
66323         sig_atomic_t volatile.
66324         (first_call): Make it private to rpl_nanosleep, and have it
66325         be zero initially as that's a bit faster.
66326         (my_usleep): Round up fractional times instead of truncating them,
66327         as this is the usual meaning for 'sleep'.
66328
66329         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
66330         doesn't work.
66331         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
66332         (ENOSYS): Define if not defined.
66333         (settime): Fall back on stime if it exists and settimeofday fails.
66334         But don't bother with fallbacks if a method fails with errno == EPERM.
66335
66336 2004-05-11  Jim Meyering  <jim@meyering.net>
66337
66338         Prior to this change, the save_cwd caller required read access to the
66339         current directory on most systems (ones with the fchdir function).
66340
66341         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
66342         fails, try write-only, and finally, resort to using xgetcwd.
66343
66344 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * lib/obstack.c, obstack.h: Import changes from libc.
66347
66348 2004-04-28  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
66351         also implicitly appends .exe to executables.
66352         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
66353         accepts Windows pathnames.
66354         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66355         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66356         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66357         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66358         Reported by Derek Robert Price <derek@ximbiot.com>.
66359
66360 2004-04-21  Karl Berry  <karl@gnu.org>
66361
66362         * config/srclist.txt (localcharset.c): break sync.
66363
66364 2004-04-20  Paul Eggert  <eggert@twinsun.com>
66365
66366         * m4/host-os.m4: Add a copyright notice.
66367
66368 2004-04-20  Jim Meyering  <jim@meyering.net>
66369
66370         Change UTILS_ to gl_ in AC_DEFINE'd names.
66371         Change utils_- and jm_-prefixed variables, too.
66372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
66373         UTILS_FUNC_MKDIR_TRAILING_SLASH.
66374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
66375
66376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
66377         Don't emit trailing blanks.
66378         Also rename jm_-prefixed variables to have gl_ prefix.
66379
66380         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
66381         Also rename jm_-prefixed variables to have gl_ prefix.
66382
66383         * m4/jm-macros.m4: Reflect the renamings.
66384         * m4/prereq.m4: Likewise.
66385
66386 2004-04-20  Jim Meyering  <jim@meyering.net>
66387
66388         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
66389         memory.
66390
66391 2004-04-20  Jim Meyering  <jim@meyering.net>
66392             Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
66395         memory when realloc fails.
66396
66397 2004-04-19  Jim Meyering  <jim@meyering.net>
66398
66399         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
66400         now that readutmp.c may call `free (0)'.
66401
66402 2004-04-19  Bruno Haible  <bruno@clisp.org>
66403
66404         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
66405         * m4/inttypes_h.m4: Likewise.
66406         * m4/stdint_h.m4: Likewise.
66407         * m4/intmax_t.m4: Likewise.
66408         * m4/uintmax_t.m4: Likewise.
66409
66410 2004-04-18  Jim Meyering  <jim@meyering.net>
66411
66412         * m4/prereq.m4: Don't forbid jm_ prefix.
66413
66414         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
66415         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
66416         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
66417         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
66418         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
66419         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
66420         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
66421         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
66422         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
66423         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
66424         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
66425         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
66426         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
66427         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
66428         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
66429         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
66430         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
66431         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
66432         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
66433
66434 2004-04-18  Jim Meyering  <jim@meyering.net>
66435
66436         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
66437         failure, don't leak memory and do call END_UTMP_ENT.
66438
66439 2004-04-16  Jim Meyering  <jim@meyering.net>
66440
66441         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
66442         coreutils' stat program.
66443         (gl_PREREQ): Don't require jm_PREREQ_STAT.
66444
66445 2004-04-11  Paul Eggert  <eggert@twinsun.com>
66446
66447         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
66448         C89.
66449         (CHAR_BIT): Remove, since we assume C89.
66450         Include <stdint.h> if available, as per current Autoconf CVS advice.
66451
66452 2004-03-31  Jim Meyering  <jim@meyering.net>
66453
66454         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
66455         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
66456         * m4/xalloc.m4: Likewise.
66457
66458 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66459
66460         Merge from coreutils.
66461
66462         * m4/inttostr.m4: New file.
66463         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
66464         Require AM_STDBOOL_H and gl_TIMESPEC instead.
66465         Require gl_CLOCK_TIME.
66466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
66467
66468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66469
66470         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
66471         not bool, to be more consistent with Unix conventions.
66472         Suggested by Bruno Haible.
66473
66474         Merge from coreutils.
66475
66476         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
66477         * lib/umaxtostr.c: New files.
66478
66479         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
66480         the usual <time.h> dance.
66481         (get_date): Change signature to support fractional time stamps.
66482         All callers changed.
66483         * lib/getdate.y: Include "getdate.h" first, as we can now
66484         assume C89 and don't need to worry about 'const'.
66485         Similarly, include "unlocked-io.h" near start, not in middle.
66486         Include <limits.h>.
66487         (textint.value): Use long int rather than int.
66488         (textint.digits): Use size_t rather than int.
66489         (BILLION, LOG10_BILLION): New constants.
66490         (parser_control): New member rel_ns.  Members day_ordinal,
66491         time_zone, month, day, hour, minutes, rel_year, rel_month,
66492         rel_day, rel_hour, rel_minutes, rel_seconds
66493         are now long int, not int.  Member seconds is now struct timespec,
66494         not int.  New member timespec_seen.  Members dates_seen, days_seen,
66495         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
66496         not int.
66497         (%union.intval): Now long int, not int.
66498         New member timespec.
66499         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66500         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66501         (spec): Now is a timespec or an item list.
66502         (timespec, items): New nonterminals.
66503         (time, rel, relunit, number, get_date):
66504         Add support for fractional seconds.
66505         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66506         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66507         (to_hour): First arg is now long int, not int.
66508         (to_year): Returns long int, not int.
66509         Don't treat year -70 like 70.
66510         (tm_diff): Returns long int, not int.
66511         (lookup_word): Use bool instead of int when appropriate.
66512         (yylex): Use size_t for count, not int.
66513         Detect overflow when parsing large integer constants.
66514         Add support for fractions.
66515         (get_date): Make pointers 'const' if possible.
66516         Use more-portable code to detect integer overflow.
66517         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66518         Don't use ctime; it's not reliable if the year has >4 digits.
66519
66520         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66521         This is for compatibility with BSD.
66522
66523         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66524         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66525         From coreutils' system.h.
66526
66527         * lib/userspec.c: Don't include "posixver.h".
66528         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66529         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66530         compatible extension.  Simplify code by removing a boolean int
66531         that was always nonzero if a string was nonnull.
66532
66533 2004-03-30  Jim Meyering  <jim@meyering.net>
66534
66535         Merge from coreutils.
66536
66537         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66538         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66539         on some systems one must include <grp.h> before it.
66540         Reported by Christian Krackowizer.
66541
66542 2004-03-30  Jim Meyering  <jim@meyering.net>
66543
66544         Merge from coreutils.
66545
66546         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66547
66548         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66549         an empty input stream.
66550
66551         * lib/readtokens.c: Include <stdbool.h>.
66552         (readtoken): Use `size_t' rather than int/long.
66553         All callers adjusted.
66554         Use `bool' rather than `int' where appropriate.
66555         Use memset rather than an explicit loop.
66556         Use x2nrealloc rather than xrealloc.
66557         Allow the use of `\0' as a delimiter.
66558         (readtokens): Likewise.
66559         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66560
66561 2004-03-30  Jim Meyering  <jim@meyering.net>
66562
66563         * m4/realloc.m4: Remove file, since now it does no more than
66564         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66565         the `configure.ac' section of module/realloc.
66566         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66567
66568 2004-03-30  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66571         nonnull.
66572
66573 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66574
66575         Merge changes to getloadavg.c from coreutils and Emacs.
66576
66577         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66578         Define to an expression, not to the empty string.
66579         Include cloexec.h and xalloc.h.
66580         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66581         Use set_cloexec_flag rather than rolling our own.
66582         * lib/cloexec.c, lib/cloexec.h: New files.
66583
66584 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66585
66586         * m4/cloexec.m4: New file.
66587
66588 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66589
66590         * lib/getopt.h: Sync with libc CVS.
66591
66592 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66593             Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66596         mbswidth.
66597
66598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66599             Bruno Haible  <bruno@clisp.org>
66600
66601         * lib/mbswidth.h: Include <wchar.h> only if
66602         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66603         <wchar.h>.
66604         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66605
66606 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66607
66608         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66609         Sync with libc CVS.
66610         * lib/getopt_int.h: New file, also synced from libc.
66611
66612 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66613
66614         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66615         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66616         Bring back getopt.c, getopt.h, getopt1.c.
66617
66618 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66619
66620         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66621         All uses changed.  Check for sa_sigaction member; this fixes
66622         a bug first reported by Jason Andrade in
66623         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66624
66625 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66626
66627         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66628         '#if' expressions.  Unlike the code it replaces, it does not
66629         depend on (defined _SC_PAGESIZE).  However, it does depend on
66630         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66631         first reported by Jason Andrade in
66632         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66633
66634 2004-02-25  Simon Josefsson  <jas@extundo.com>
66635
66636         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66637
66638 2004-02-25  Simon Josefsson  <jas@extundo.com>
66639
66640         * lib/strdup.h: New file.
66641         * lib/strdup.c: Include it.
66642         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66643         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66644
66645 2004-02-23  Karl Berry  <karl@gnu.org>
66646
66647         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66648         (from fencepost.gnu.org:/gd/gnuorg).
66649
66650 2004-02-23  Karl Berry  <karl@gnu.org>
66651
66652         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66653         * config/srclist.txt: add maintain/standards documents.
66654
66655 2004-02-18  Bruno Haible  <bruno@clisp.org>
66656
66657         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66658         Reported by Derek Robert Price <derek@ximbiot.com>.
66659
66660 2004-02-16  Karl Berry  <karl@gnu.org>
66661
66662         * config/mkinstalldirs, install-sh: update from automake.
66663
66664 2004-02-06  Karl Berry  <karl@gnu.org>
66665
66666         * m4/po.m4: update from gettext 0.14.1.
66667
66668 2004-02-06  Karl Berry  <karl@gnu.org>
66669
66670         * lib/config.charset: update from gettext 0.14.1.
66671
66672 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66673
66674         Add comments and code, prompted by suggestions from Bruno Haible
66675         for sh-quote.
66676         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66677         describing the enum quoting_style values.
66678         * lib/quotearg.c (quotearg_alloc): New function.
66679         (quotearg_buffer_restyled): Treat lone { and } as special.
66680         Treat = as special.  Work around bug with older shells
66681         that "see" a '\' that is really the 2nd byte of a multibyte char.
66682         Quote empty string with shell_quoting_style.
66683
66684 2004-02-03  Bruno Haible  <bruno@clisp.org>
66685
66686         * m4/pipe.m4: New file, from GNU gettext.
66687
66688 2004-02-03  Bruno Haible  <bruno@clisp.org>
66689
66690         * lib/pipe.h: New file, from GNU gettext.
66691         * lib/pipe.c: New file, from GNU gettext.
66692
66693 2004-01-27  Bruno Haible  <bruno@clisp.org>
66694
66695         * m4/execute.m4: New file, from GNU gettext.
66696
66697 2004-01-27  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/execute.h: New file, from GNU gettext.
66700         * lib/execute.c: New file, from GNU gettext.
66701         * lib/w32spawn.h: New file, from GNU gettext.
66702
66703 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66704
66705         Merge from diffutils.
66706
66707         * lib/file-type.c (file_type): Add typed memory objects.
66708         * lib/file-type.h (S_TYPEISTMO): New macro.
66709
66710         * lib/c-stack.h (c_stack_action): Remove argv argument.
66711         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66712         (die): Don't calculate message unless segv_action returns.
66713         (get_stack_location, min_address_from_argv, max_address_from_argv,
66714         volatile stack_base, volatile_stack_size): Remove.
66715         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66716         that every segmentation violation is a stack overflow.  (Ouch!)
66717         See Debian bug 136249 (still outstanding) for more info about why
66718         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66719
66720 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66721
66722         Exit-status fix from coreutils.
66723
66724         Use exit_failure consistently in place of EXIT_FAILURE,
66725         so that program exit statuses are consistent on failure.
66726
66727         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66728         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66729         * lib/argmatch.h: Comment fix to match the above.
66730         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66731         Now a macro referring to exit_failure, instead of a separate
66732         variable.  Include "exitfail.h" to get it.
66733         * lib/xstrtol.h: Include "exitfail.h".
66734         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66735
66736         * lib/long-options.c (parse_long_options): Use prototype
66737         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66738         for clarity.
66739
66740 2004-01-21  Jim Meyering  <jim@meyering.net>
66741
66742         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66743         so as not to conflict with a different-sized __mktime_internal
66744         function in GNU libc.
66745         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66746         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66747
66748 2004-01-20  Karl Berry  <karl@gnu.org>
66749
66750         * config/config.guess: update from config.
66751
66752         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66753
66754 2004-01-20  Bruno Haible  <bruno@clisp.org>
66755
66756         Safer stack allocation.
66757         * lib/setenv.c: Include allocsa.h.
66758         (alloca): Remove fallback definition.
66759         (freea): Remove macro.
66760         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66761         instead of freea.
66762
66763 2004-01-20  Bruno Haible  <bruno@clisp.org>
66764
66765         * m4/eealloc.m4: New file, from GNU gettext.
66766
66767 2004-01-20  Bruno Haible  <bruno@clisp.org>
66768
66769         * m4/allocsa.m4: New file, from GNU gettext.
66770
66771 2004-01-20  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/xallocsa.h: New file, from GNU gettext.
66774         * lib/xallocsa.c: New file, from GNU gettext.
66775
66776 2004-01-20  Bruno Haible  <bruno@clisp.org>
66777
66778         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66779
66780 2004-01-20  Bruno Haible  <bruno@clisp.org>
66781
66782         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66783         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66784         specially.
66785
66786 2004-01-20  Bruno Haible  <bruno@clisp.org>
66787
66788         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66789         patch.
66790
66791 2004-01-20  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66794
66795 2004-01-20  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/eealloc.h: New file.
66798
66799 2004-01-20  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/binary-io.h: Avoid warnings on Cygwin.
66802
66803 2004-01-20  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/allocsa.h: New file, from GNU gettext.
66806         * lib/allocsa.c: New file, from GNU gettext.
66807
66808 2004-01-18  Karl Berry  <karl@gnu.org>
66809
66810         * doc/gpl.texi, doc/lgpl.texi: new files.
66811
66812 2004-01-18  Karl Berry  <karl@gnu.org>
66813
66814         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66815         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66816
66817 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66818
66819         Merge from coreutils.
66820
66821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66822         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66823         (gl_DEFAULT_POSIX2_VERSION): Move
66824         the documentation from 'configure' into 'config.hin',
66825         so that 'configure --help' isn't burdened by it and
66826         we don't have to worry about its formatting there.
66827         Reword the documentation so that it's more succinct
66828         and can be run together into a single paragraph.
66829         * m4/same.m4 (gl_SAME): Check for pathconf.
66830
66831 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66832
66833         Merge from coreutils.
66834
66835         * lib/posixver.c: Include posixver.h.
66836
66837         * lib/same.c: Include <stdbool.h>, <limits.h>.
66838         (_POSIX_NAME_MAX): Define if not defined.
66839         (MIN): New macro.
66840         (same_name): If file names are silently truncated, report
66841         that the file names are the same if they are the same after
66842         the silent truncation.
66843
66844         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66845         conversion function.
66846         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66847         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66848         longer needed.
66849
66850 2004-01-15  Jim Meyering  <jim@meyering.net>
66851
66852         Merge from coreutils.
66853
66854         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66855         if no library is required.
66856         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66857         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66858         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66859         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66860         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66861         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66862         value, $ac_cv_search_crypt, if it's "none required".
66863         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66864         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66865         not gl_FUNC_GETLOADAVG.
66866         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66867         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66868
66869 2004-01-15  Jim Meyering  <jim@meyering.net>
66870
66871         Merge from coreutils.
66872
66873         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66874         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66875         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66876
66877         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66878         optional configure-time default.
66879
66880         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66881
66882         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66883
66884 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66885
66886         Merge from coreutils.
66887
66888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66889         value, $ac_cv_search_nanosleep, if it's "none required".
66890
66891 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66892
66893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66894         with like-named macro in fnmatch.c.
66895         (EXT): Use an internal constant instead.
66896
66897         Merge fnmatch patches from glibc.
66898         * lib/fnmatch.c (mbsinit): Remove define.
66899         Add libc_hidden_ver (__fnmatch, fnmatch).
66900         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66901         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66902
66903 2004-01-14  Karl Berry  <karl@gnu.org>
66904
66905         * config/install-sh: update from automake.
66906
66907 2004-01-13  Karl Berry  <karl@gnu.org>
66908
66909         * config/install-sh: update from automake.
66910
66911 2004-01-09  Karl Berry  <karl@gnu.org>
66912
66913         * config/install-sh: update from automake.
66914
66915 2004-01-05  Karl Berry  <karl@gnu.org>
66916
66917         * config/config.{sub,guess}: update from config.
66918
66919 2003-12-31  Karl Berry  <karl@gnu.org>
66920
66921         * config/depcomp: update from automake.
66922
66923 2003-12-14  Karl Berry  <karl@gnu.org>
66924
66925         * lib/config.charset: update from gettext-runtime.
66926
66927 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66928
66929         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
66930         Bug reported by Alfred M. Szmidt.
66931
66932 2003-12-03  Bruno Haible  <bruno@clisp.org>
66933
66934         * m4/gettext.m4: Upgrade from gettext-0.13.
66935         * m4/po.m4: Upgrade from gettext-0.13.
66936         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
66937         * m4/intmax.m4: New file, from gettext-0.13.
66938         * m4/printf-posix.m4: New file, from gettext-0.13.
66939
66940 2003-11-29  Karl Berry  <karl@gnu.org>
66941
66942         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
66943
66944 2003-11-25  Paul Eggert  <eggert@twinsun.com>
66945             Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/printf-parse.h: Don't include sys/types.h.
66948         (ARG_NONE): New macro.
66949         (char_directive): Change type of *arg_index fields to size_t.
66950         * lib/printf-parse.c: Don't include sys/types.h.
66951         (SSIZE_MAX): Remove macro.
66952         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
66953         Remove unnecessary overflow check.
66954         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
66955         fields.
66956
66957 2003-11-25  Bruno Haible  <bruno@clisp.org>
66958
66959         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
66960
66961 2003-11-25  Bruno Haible  <bruno@clisp.org>
66962
66963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
66964         gt_TYPE_SSIZE_T.
66965
66966 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66967
66968         * modules/alloca: Remove dependency on xalloc.
66969
66970 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66971
66972         * lib/alloca.c: Remove dependency on xalloc module.
66973         (xalloc_die): Remove.
66974         (memory_full) [!defined emacs]: New macro.
66975         [!defined emacs]: Don't include xalloc.h.
66976         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66977         address arithmetic overflows.  Change datatypes a bit to avoid
66978         unnecessary casts.
66979
66980 2003-11-22  Jim Meyering  <jim@meyering.net>
66981
66982         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66983         s/size/size_t/.
66984
66985 2003-11-21  Karl Berry  <karl@gnu.org>
66986
66987         * config/config.{sub,guess}: update from config.
66988
66989 2003-11-18  Karl Berry  <karl@gnu.org>
66990
66991         * config/config.{sub,guess}: update from config.
66992
66993         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66994
66995 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66996
66997         * README: Mention that S+T cannot overflow if S is the size of
66998         an existing object and T is sufficiently small.
66999
67000 2003-11-17  Jim Meyering  <jim@meyering.net>
67001
67002         On systems without utime and without a utimes function capable of
67003         dealing with a NULL struct utimbuf* argument, this utime replacement
67004         could -- in unusual circumstances -- leak a file descriptor.
67005         * lib/utime.c: Include <unistd.h> and <errno.h>.
67006         (utime_null): Be sure to close `fd' and to preserve errno.
67007         Reported by Geoff Collyer via Arnold Robbins.
67008
67009 2003-11-17  Bruno Haible  <bruno@clisp.org>
67010
67011         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
67012         (Depends-on): Add xsize.
67013
67014 2003-11-17  Bruno Haible  <bruno@clisp.org>
67015
67016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
67017
67018 2003-11-17  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/vasnprintf.c (alloca): Remove fallback definition.
67021         (freea): Remove definition.
67022         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
67023         Reported by Paul Eggert.
67024
67025 2003-11-16  Paul Eggert  <eggert@twinsun.com>
67026             Bruno Haible  <bruno@clisp.org>
67027
67028         Protect against address arithmetic overflow.
67029         * lib/printf-args.h: Include stddef.h.
67030         (arguments): Change type of field 'count' to size_t.
67031         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
67032         'unsigned int' where appropriate.
67033         * lib/printf-parse.h: Include sys/types.h.
67034         (char_directive): Change type of *arg_index fields to ssize_t.
67035         (char_directives): Change type of fields 'count', max_*_length to
67036         size_t.
67037         * lib/printf-parse.c: Include sys/types.h and xsize.h.
67038         (SSIZE_MAX): Define fallback value.
67039         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
67040         instead of 'int' where appropriate. Check a_allocated, d_allocated
67041         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
67042         * lib/vasnprintf.c: Include xsize.h.
67043         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
67044         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
67045         overflow. Avoid wraparound when converting a width or precision from
67046         decimal to binary.
67047
67048 2003-11-16  Bruno Haible  <bruno@clisp.org>
67049
67050         Update from GNU gettext.
67051         * lib/printf-parse.c: Generalize to it can be compiled for wide
67052         strings.
67053         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
67054         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
67055         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
67056         SNPRINTF): New macros.
67057         Don't include <alloca.h> if the file is used inside libintl.
67058         (local_wcslen): New function, for Solaris 2.5.1.
67059         (VASNPRINTF): Use it instead of wcslen.
67060
67061 2003-11-16  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/xsize.h (xmax): New function.
67064         (xsum, xsum3, xsum4): Declare as "pure" functions.
67065
67066 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67067
67068         * modules/xalloc (Files): Undo latest change, since xalloc.h
67069         no longer needs SIZE_MAX or PTRDIFF_MAX.
67070
67071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67072
67073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
67074         gl_PTRDIFF_MAX.
67075
67076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67077
67078         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
67079         "return", to pacify some unknown compiler.  Problem reported
67080         by Joerg Schilling.
67081
67082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67083
67084         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
67085         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
67086         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
67087         heuristic is just as accurate as far as we know, and it removes a
67088         dependency on size_max.m4 and ptrdiff_max.m4.
67089
67090 2003-11-11  Bruno Haible  <bruno@clisp.org>
67091
67092         * modules/xsize (Files): Add m4/size_max.m4.
67093         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
67094
67095 2003-11-11  Bruno Haible  <bruno@clisp.org>
67096
67097         * m4/size_max.m4: New file.
67098         * m4/ptrdiff_max.m4: New file.
67099         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
67100         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
67101         (gl_XALLOC): Invoke it.
67102
67103 2003-11-11  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67106         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67107         defined.
67108
67109 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67110
67111         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67112         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67113         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67114         From Bruno Haible.
67115         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67116         not (size_t) -1, since it's defined here.
67117
67118 2003-11-09  Karl Berry  <karl@gnu.org>
67119
67120         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67121
67122 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67123
67124         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67125         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67126         Reject sizes of exactly SIZE_MAX bytes.
67127         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67128         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67129
67130 2003-11-05  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67133         SIZE_MAX defined in <limits.h> on Solaris.
67134
67135 2003-11-04  Jim Meyering  <jim@meyering.net>
67136
67137         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67138         variable names, rather than @VAR@.
67139         * modules/poll: Likewise.
67140
67141 2003-11-04  Bruno Haible  <bruno@clisp.org>
67142
67143         * modules/xsize: New file.
67144         * modules/linebreak: Depend on xsize.
67145         * MODULES.html.sh (func_all_modules): Add xsize.
67146
67147 2003-11-04  Bruno Haible  <bruno@clisp.org>
67148
67149         * m4/xsize.m4: New file.
67150
67151 2003-11-04  Bruno Haible  <bruno@clisp.org>
67152
67153         * lib/xsize.h: New file.
67154         * lib/linebreak.c: Include xsize.h.
67155         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67156         argument for overflow.
67157         Suggested by Paul Eggert.
67158
67159 2003-11-03  Karl Berry  <karl@gnu.org>
67160
67161         * config/config.{guess,sub}: update from config.
67162
67163 2003-11-03  Jim Meyering  <jim@meyering.net>
67164
67165         * modules/userspec (lib_SOURCES): Add userspec.h.
67166         (Include): Add "userspec.h".
67167         Improve description.
67168
67169 2003-11-03  Jim Meyering  <jim@meyering.net>
67170
67171         * lib/userspec.c: Include "userspec.h".
67172         * lib/userspec.h: New file.
67173
67174 2003-11-03  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
67177
67178 2003-11-03  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
67181         available, to avoid (extremely rare) race condition.
67182         Suggested by Paul Eggert.
67183
67184 2003-11-02  Karl Berry  <karl@gnu.org>
67185
67186         * config/srclist.txt (vasprintf.c): sync broken, sigh.
67187
67188 2003-10-31  Paul Eggert  <eggert@twinsun.com>
67189
67190         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
67191         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
67192         (read_filesystem_list): Set and use me_type_malloced.
67193         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
67194         whatever the type happens to be), for brevity and consistency.
67195         Check for size calculation overflow on Alphas running OSF/1.
67196
67197 2003-10-31  Jim Meyering  <jim@meyering.net>
67198
67199         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
67200
67201         * lib/linebuffer.c: Include <string.h> for declaration of memset.
67202
67203 2003-10-30  Paul Eggert  <eggert@twinsun.com>
67204             Bruno Haible  <bruno@clisp.org>
67205
67206         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
67207         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
67208
67209 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
67212         netbsd*-gnu*.  Suggested by Robert Millan.
67213
67214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67215
67216         * modules/group-member: Depend on stdbool.
67217
67218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67219
67220         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
67221
67222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67223
67224         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
67225         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
67226         after the 'gnu' in these cases.  This fixes some bugs in the
67227         previous change, and is based on suggestions by Robert Millan.
67228
67229 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67230
67231         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
67232         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
67233         no longer needed.
67234         * lib/quotearg.c (quotearg_n_options): Use it.
67235         * lib/group-member.c: Include <stdbool.h>.
67236         (free_group_info): Arg is now const *; don't free arg.
67237         (get_group_info): Now returns bool and accepts struct group_info *,
67238         rather than returning a malloc'ed struct group_info *.
67239         All uses changed.  Check for overflow in internal size calculation.
67240
67241         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
67242         rather than xmalloc/xrealloc.
67243         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
67244         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
67245         conformance bug: the old code used a pointer after freeing the
67246         storage that it addressed.
67247         * lib/hash.c (hash_initialize): Simplify the code by using
67248         xalloc_oversized rather than doing it by hand.
67249         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
67250         the buffer preserved.  Use free and xmalloc instead.
67251         * lib/quotearg.c (quotearg_n_options): Likewise.
67252         Use a simpler test for size overflow.  Don't use xalloc_oversized
67253         because unsigned int might be wider than size_t (!); this suggests
67254         that we should switch from unsigned int to size_t for slot numbers.
67255
67256 2003-10-28  Paul Eggert  <eggert@twinsun.com>
67257
67258         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
67259         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
67260         NetBSD kernels.  Requested by Richard Stallman.
67261
67262 2003-10-27  Paul Eggert  <eggert@twinsun.com>
67263
67264         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
67265         to allocate the returned structure.  Do not allocate a subarray,
67266         as x2nrealloc will do that.
67267         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
67268         instead of xnrealloc.
67269         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
67270
67271 2003-10-27  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/stdbool_.h: Better support for BeOS.
67274
67275 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67276
67277         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
67278         now uses inline.
67279
67280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67281
67282         * lib/xalloc.h (xalloc_oversized): New static inline function, for
67283         callers that want to do their own size-overflow checking.  Include
67284         <stdbool.h>, since xalloc_oversized returns bool.
67285         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
67286         to use xalloc_oversized.
67287
67288         Add two functions x2realloc, x2nrealloc, for programs that grow
67289         arrays dynamically by doubling their sizes.
67290         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
67291         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
67292         New functions.
67293
67294         Port to C99 semantics for 'inline' of external functions.
67295         Bug reported by Bruno Haible.
67296         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
67297         with the old contents of xnmalloc.
67298         (xnmalloc, xmalloc): Use it.
67299         (xnrealloc_inline): New static inline function,
67300         with the old contents of xnrealloc.
67301         (xnrealloc, xrealloc): Use it.
67302
67303         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
67304         that.
67305
67306 2003-10-26  Karl Berry  <karl@gnu.org>
67307
67308         * config/srclist.txt (COPYING.DOC): no longer available from
67309         /gd/gnuorg; don't know where the ultimate source is.
67310
67311 2003-10-25  Paul Eggert  <eggert@twinsun.com>
67312
67313         Fix several address-calculation bugs in the hash modules,
67314         plus some minor code cleanup.
67315
67316         * lib/hash.h: Include <stdbool.h>, for bool.
67317         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
67318         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
67319         hash_get_n_entries, hash_get_max_bucket_length,
67320         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
67321         hash_rehash): Use size_t rather than unsigned.
67322         * lib/hash.c (struct hash_table, hash_get_n_buckets,
67323         hash_get_n_buckets_used, hash_get_n_entries,
67324         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
67325         hash_get_entries, hash_do_for_each, hash_string, is_prime,
67326         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
67327         Likewise.
67328         (SIZE_MAX): Define if not defined.
67329         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
67330         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
67331         hash_print):
67332         Use const * when possible.
67333         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
67334         (check_tuning): Fix bug: if tuning parameters were very close to
67335         0 or 1, rounding errors could have caused subscript violations.
67336         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
67337         (hash_initialize): Add 'fail:' label
67338         to free table and return NULL, and use it to simplify code.
67339         Use calloc rather than clearing the storage ourself.
67340         (hash_initialize, hash_rehash): Check for arithmetic overflow in
67341         buffer size calculations.
67342         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
67343         Include <stddef.h>, for size_t.
67344         * lib/hash-pjw.c (hash_pjw): Likewise.
67345         Switch to method described by Bruno Haible.
67346         Include <limits.h>, for CHAR_BIT.
67347         (SIZE_BITS): New macro.
67348
67349 2003-10-23  Paul Eggert  <eggert@twinsun.com>
67350
67351         * m4/getline.m4 (AM_FUNC_GETLINE):
67352         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
67353         hosts.  Problem reported by Derek Robert Price in
67354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
67355         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
67356         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
67357
67358 2003-10-21  Paul Eggert  <eggert@twinsun.com>
67359
67360         * lib/getndelim2.c (getndelim2): When size calculation overflows,
67361         ceiling the allocation at NMAX bytes rather than silently
67362         discarding input bytes before NMAX is reached.  This makes
67363         a difference only if NMAX exceeds SIZE_MAX / 2.
67364
67365         * lib/obstack.c: Merge from glibc.
67366         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
67367         Add libc_hidden_def (_obstack_newchunk).
67368         (_obstack_free) [! defined _LIBC]: Remove.
67369         [defined _LIBC]: Make a strong alias from obstack_free, rather than
67370         a clone of the function body.
67371         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
67372         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
67373
67374         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
67375         glibc.
67376         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
67377         arg to memcpy.
67378
67379         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
67380         (obstack_ptr_grow_fast, obstack_int_grow_fast):
67381         Don't use lvalue casts, as GCC plans to remove support for them
67382         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
67383         was also present in the non-GCC version, indicating that this
67384         code had always been buggy and had never been widely used.
67385         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
67386         Use the fast variant of each macro, rather than copying the
67387         definiens of the fast variant; that way, we'll be more likely to
67388         catch future bugs in the fast variants.
67389
67390 2003-10-20  Bruno Haible  <bruno@clisp.org>
67391
67392         * modules/wait-process: New file.
67393         * MODULES.html.sh (func_all_modules): Add wait-process.
67394
67395 2003-10-20  Bruno Haible  <bruno@clisp.org>
67396
67397         * m4/wait-process.m4: New file.
67398
67399 2003-10-20  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/wait-process.h: New file, from GNU gettext.
67402         * lib/wait-process.c: New file, from GNU gettext.
67403
67404 2003-10-19  Jim Meyering  <jim@meyering.net>
67405
67406         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
67407         HPUX 10.20.
67408
67409 2003-10-18  Karl Berry  <karl@gnu.org>
67410
67411         * config/config.guess: update from config.
67412
67413 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67414
67415         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
67416         (getgroups): First arg is int, not size_t.
67417         Don't let 'free' mangle errno.
67418
67419 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67420
67421         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
67422
67423 2003-10-16  Karl Berry  <karl@gnu.org>
67424
67425         * config/config.{guess,sub}: update from config.
67426
67427 2003-10-16  Jim Meyering  <jim@meyering.net>
67428
67429         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
67430         memcpy.
67431
67432 2003-10-15  Paul Eggert  <eggert@twinsun.com>
67433
67434         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
67435         (SIZE_MAX): Remove.
67436         (new_exclude, add_exclude_file): Initial size no longer needs to
67437         be a power of 2.
67438         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
67439         our own address arithmetic overflow checking.
67440
67441         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
67442         (fnmatch): Do not alloca more than 2000 wide characters;
67443         instead, use malloc for large buffers.
67444         Check for address arithmetic overflow, and return -1
67445         with errno set to ENOMEM in that case.
67446         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
67447         (NEW_PATTERN): Do not alloca more than 8000 bytes;
67448         instead, return -1.  Check for address arithmetic overflow.
67449
67450 2003-10-14  Paul Eggert  <eggert@twinsun.com>
67451
67452         Handle invalid suffixes and overflow independently, so that
67453         callers can treat them independently as needed.  Fix some bugs in
67454         suffix handling, e.g., "100k@" was not diagnosed as an invalid
67455         suffix for a human-readable blocksize.  The major caller-visible
67456         change is the addition of a new
67457         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
67458         that both overflow and suffix chars were found.
67459
67460         * lib/human.c (humblock): Don't check separately for invalid suffix
67461         char; that is xstrtoumax's job (now that its bug is fixed).
67462         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
67463         INTMAX_MAX]: New macros.
67464         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
67465         TYPE_MAXIMUM): New macros.
67466         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
67467         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
67468         if overflow occurs, as it's what __strtol does and it's more useful
67469         in practice.
67470         (__xstrtol): If __strtol reports some error other than ERANGE,
67471         reflect it to the caller as LONGINT_INVALID.  If it reports
67472         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
67473         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
67474         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
67475         value.
67476         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
67477         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
67478         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
67479         [defined UINTMAX_MAX]: New macros.
67480
67481 2003-10-14  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
67484
67485 2003-10-14  Bruno Haible  <bruno@clisp.org>
67486
67487         * m4/sig_atomic_t: New file, from GNU gettext.
67488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
67489
67490 2003-10-14  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
67493         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
67494         Also use volatile where needed.
67495
67496 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67497
67498         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67499         Change maintainer from Bruno Haible to 'all'.
67500
67501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67502
67503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67504
67505 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67506
67507         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67508         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67509         and define in terms of the other primitives.
67510         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67511         (SIZE_MAX): Define if not already defined.
67512         (array_size_overflow): New function.
67513         (xalloc_die): Abort instead of exiting if 'error' returns.
67514         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67515         (xmalloc, xrealloc): Use them.
67516         (xcalloc): Check for address arithmetic overflow.
67517         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67518         a bit faster than strcpy.
67519
67520 2003-10-10  Simon Josefsson  <jas@extundo.com>
67521
67522         * modules/argp (Depends-on): Add restrict and strcase.
67523
67524 2003-10-10  Simon Josefsson  <jas@extundo.com>
67525
67526         * m4/argp.m4: Add AC_C_INLINE.
67527
67528 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67529
67530         Merge getpass from libc, plus a few fixes.
67531
67532         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67533         Include <stdbool.h>.
67534         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67535         __fsetlocking to empty.
67536         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67537         do include <bits/libc-lock.h>.
67538         Do not include <fcntl.h>; not needed.
67539         [_LIBC]: Include <wchar.h>.
67540         (NOTCANCEL_MODE): New macro.
67541         (flockfile, funlockfile) [_LIBC]: New macros.
67542         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67543         [!_LIBC]: New macros.
67544         (call_fclose): New function.
67545         (getpass): Use it.  Save tty stream separately; this simplifies the
67546         code and makes it more reliable if stdin happens to equal stdout.
67547         Invoke __fsetlocking on tty.
67548         Handle thread cancellation if needed.
67549         Namespace cleanup (use __tcgetattr, __getline).
67550         Use bool for Booleans.
67551         [USE_IN_LIBIO]: Handle wide streams.
67552         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67553         stream might go where.
67554
67555         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67556         doesn't have to include <stdio.h> before us.
67557         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67558         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67559         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67560         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67561         if not declared, so that we can use getpass.c code from libc without
67562         rewriting it.
67563         (flockfile, ftrylockfile, funlockfile): New macros.
67564
67565 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67566
67567         * modules/getpass: Depend on stdbool.
67568
67569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67570
67571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67572
67573 2003-10-07  Karl Berry  <karl@gnu.org>
67574
67575         * config/config.{guess,sub}: update from config.
67576
67577 2003-10-06  Jim Meyering  <jim@meyering.net>
67578             Bruno Haible  <bruno@clisp.org>
67579
67580         This lets translators provide better translations for the
67581         "Written by ..." part of --version output.
67582         * lib/version-etc.h: Include stdarg.h.
67583         (version_etc_copyright): Declare as readonly.
67584         (version_etc): Make this function variadic with a NULL-terminated list
67585         of author name strings.
67586         (version_etc_va): New declaration.
67587         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67588         (version_etc_copyright): Declare as readonly.
67589         (version_etc_va): New function. Provide a different translatable string
67590         for each possible number of authors < 10. Abbreviate when there are 10
67591         authors or more.
67592         (version_etc): Make this function variadic. Call version_etc_va.
67593         Suggestion from Gary V. Vaughan.
67594
67595         * lib/long-options.h (parse_long_options): Change prototype: the
67596         authors string is moved to the end and becomes variadic.
67597         * lib/long-options.c: Include stdarg.h.
67598         (parse_long_options): Make this function variadic, too.
67599         Call version_etc_va, not version_etc.
67600
67601 2003-10-06  Bruno Haible  <bruno@clisp.org>
67602
67603         * modules/version-etc-2: Remove file.
67604         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67605
67606 2003-10-06  Bruno Haible  <bruno@clisp.org>
67607
67608         * modules/fatal-signal: New file.
67609         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67610
67611 2003-10-06  Bruno Haible  <bruno@clisp.org>
67612
67613         * m4/fatal-signal.m4: New file.
67614         * m4/signalblocking.m4: New file, from GNU gettext.
67615
67616 2003-10-06  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/version-etc-2.h: Remove file.
67619         * lib/version-etc-2.c: Remove file.
67620
67621 2003-10-06  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/fatal-signal.h: New file, from GNU gettext.
67624         * lib/fatal-signal.c: New file, from GNU gettext.
67625
67626 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67627
67628         * README: Rework advice for preventing empty .o files.
67629         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67630         not <sys/types.h>.
67631
67632 2003-10-04  Karl Berry  <karl@gnu.org>
67633
67634         * lib/argp*: update from libc.
67635
67636 2003-10-04  Karl Berry  <karl@gnu.org>
67637
67638         * config/config.{guess,sub}: update from config.
67639
67640 2003-10-02  Bruno Haible  <bruno@clisp.org>
67641
67642         * modules/lchown (Include): Add lchown.h.
67643         * modules/time_r (Include): Use "..." syntax.
67644         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67645
67646 2003-10-01  Simon Josefsson  <jas@extundo.com>
67647
67648         * MODULES.html.sh (func_all_modules): Move gethostname from section
67649         'based on' to section 'lacking' POSIX:2001.
67650
67651 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67652
67653         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67654         to output mode on the same stream.
67655
67656 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67657
67658         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67659         Fix arg typo in previous patch.
67660
67661 2003-09-28  Jim Meyering  <jim@meyering.net>
67662
67663         * lib/error.c: Correct cpp indentation.
67664
67665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67666
67667         * modules/free: New file.
67668
67669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67670
67671         * m4/free.m4: New file.
67672
67673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67674
67675         * lib/minmax.h (MIN, MAX)
67676         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67677         Omit the special code that used __typeof__, since we worry that
67678         it could be more trouble than it's worth.  See:
67679         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67680         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67681
67682         * lib/free.c: New file.
67683
67684 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67685
67686         Trivial fixes to Makefile.am parts of module listings.
67687         * modules/strstr: Append strstr.h to lib_SOURCES.
67688         * modules/strcase: Likewise, for strcase.h.
67689
67690 2003-09-27  Karl Berry  <karl@gnu.org>
67691
67692         * config/mkinstalldirs: update from automake.
67693
67694 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67695
67696         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67697         (error_tail): Do not loop, reallocating temporary buffer, since
67698         the output cannot contain more wide characters than the input
67699         contains bytes, the size must be big enough already.  This avoids
67700         one potential size overflow calculation.  Check for size overflow
67701         when calculating temporary buffer size.  Free temporary buffer
67702         when done, if it was allocated with malloc; this plugs a memory
67703         leak.  Remove casts from void * to pointers, that are no longer
67704         needed now that we're assuming C89 or better.
67705
67706         Merge error changes from glibc.
67707
67708         * lib/error.c, error.h: Update copyright notice header to match glibc.
67709         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67710         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67711         Disable cancellation while printing error.
67712         * lib/error.h: Prepend __ to parameter names.
67713
67714 2003-09-26  Jim Meyering  <jim@meyering.net>
67715
67716         * lib/error.c (error_tail): Move some declarations
67717         into inner scope where the local variables are used.
67718
67719 2003-09-26  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67722         stpncpy().
67723         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67724
67725 2003-09-26  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67728         (stpncpy): Define as alias for gnu_stpncpy.
67729         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67730
67731 2003-09-25  Simon Josefsson  <jas@extundo.com>
67732
67733         * lib/xgetdomainname.h: New file.
67734         * lib/xgetdomainname.c: New file.
67735
67736 2003-09-25  Simon Josefsson  <jas@extundo.com>
67737             Bruno Haible  <bruno@clisp.org>
67738
67739         * modules/getdomainname: New file.
67740         * modules/xgetdomainname: New file.
67741         * MODULES.html.sh (func_all_modules): Add getdomainname,
67742         xgetdomainname.
67743
67744 2003-09-25  Simon Josefsson  <jas@extundo.com>
67745             Bruno Haible  <bruno@clisp.org>
67746
67747         * m4/getdomainname.m4: New file.
67748
67749 2003-09-25  Simon Josefsson  <jas@extundo.com>
67750             Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/getdomainname.h: New file.
67753         * lib/getdomainname.c: New file.
67754
67755 2003-09-25  Karl Berry  <karl@gnu.org>
67756
67757         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67758
67759 2003-09-25  Karl Berry  <karl@gnu.org>
67760
67761         * config/install-sh: update from automake.
67762
67763 2003-09-25  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/version-etc-2: New file, from modules/version-etc with
67766         modifications.
67767         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67768
67769 2003-09-25  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67772         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67773
67774 2003-09-24  Simon Josefsson  <jas@extundo.com>
67775
67776         * modules/xgethostname: Add xgethostname.h.
67777
67778 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67779
67780         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67781         the buffer associated with the argument.  Bug reported by
67782         Simon Josefsson.
67783
67784 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67785
67786         * README: Document assumptions that 'int' is at least 32 bits
67787         wide, that integer arithmetic is 2's complement without overflow,
67788         that there are no holes in integer values, that adding sizes of
67789         two nonoverlapping objects can't overflow, and that all-bits-zero
67790         yields scalar zero.  Fix spelling and capitalization typos.
67791
67792 2003-09-19  Karl Berry  <karl@gnu.org>
67793
67794         * lib/argp.h: update from libc.
67795
67796 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67797
67798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67799         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67800         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67801
67802 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67803
67804         * gnulib-tool: Use "test -h", not "test -L", for portability
67805         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67806         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67807         (sed_extract_prog): Issue s commands one-by-one, rather than
67808         using \| in one s command.
67809
67810 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67811
67812         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67813         input error, instead of returning NULL the next time we are called
67814         (and therefore losing track of errno).
67815
67816 2003-09-16  Bruno Haible  <bruno@clisp.org>
67817
67818         * gnulib-tool (func_create_testdir): Warn about duplicated
67819         dependencies.
67820
67821 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67822
67823         * modules/argmatch, modules/fatal, modules/obstack,
67824         modules/xalloc, modules/xgethostname: Sort dependencies by
67825         importance, not alphabetically.
67826
67827 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67828
67829         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67830         fails, so that the caller gets the proper errno.
67831
67832         * lib/readutmp.c (read_utmp): Likewise.
67833         Check for fstat error.  Close stream and free storage
67834         when failing.
67835
67836 2003-09-14  Karl Berry  <karl@gnu.org>
67837
67838         * config/srclist.txt (strdup.c): disable for c89 changes.
67839
67840 2003-09-14  Jim Meyering  <jim@meyering.net>
67841
67842         * lib/getloadavg.c: Correct cpp indentation.
67843         * lib/strdup.c: Likewise.
67844         * lib/vasnprintf.c: Likewise.
67845
67846 2003-09-14  Bruno Haible  <bruno@clisp.org>
67847
67848         * modules/fwriteerror: New file.
67849         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67850
67851 2003-09-14  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/fwriteerror.h: New file.
67854         * lib/fwriteerror.c: New file.
67855
67856 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67857
67858         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67859         modules/xgethostname, modules/xalloc: Depend on exit.
67860
67861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67862
67863         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67864
67865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67866         and AC_MINIX, too, so that their extensions are available.
67867
67868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67869         This macro has been superseded by gl_BACKUPFILE.
67870
67871         More patches to assume C89 or better.
67872
67873         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67874
67875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67876         unconditionally.
67877         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67878         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67879         Include <string.h>, <stdlib.h> unconditionally.
67880         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67881         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67882         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67883         headers or for string.h.
67884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67885         or strtoul.
67886
67887         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67888         headers.
67889         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67890         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67891         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67892         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67895         memcpy, memset.
67896         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67897         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67899         strtol.
67900         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67901         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67903         strtoul.
67904
67905 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67906
67907         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67908         * lib/obstack.c [!defined _LIBC]: Likewise.
67909         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67910         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67911         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67912
67913         More changes to assume C89 or better.
67914
67915         * lib/error.c (error_tail): Assume vprintf.
67916
67917         * lib/argmatch.c (getenv): Remove decl.
67918         * lib/progreloc.c (get_full_program_name): Define via prototype.
67919         * lib/setenv.c (clearenv): Likewise.
67920         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67921         needed.
67922         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67923         (malloc, memcpy): Remove decls.
67924         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67925         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67927         (memcpy): Remove macro.
67928         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
67929         (__P): Remove.  All uses removed.
67930         (PTR): Remove.  All uses changed to void *.
67931         (CHAR_BIT, NULL): Remove.
67932         (spaces, zeros, memset_space, memset_zero)
67933         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
67934         Remove.
67935         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
67936         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
67937         Define with prototype.
67938         Remove now-unnecessary prototype decl.
67939         (extra_args_spec): Assume ANSI C.  All uses changed.
67940         (extra_args_spec_iso): Remove.
67941         (my_strftime, emacs_strftimeu): Define via prototype.
67942         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
67943         unconditionally.
67944         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
67945         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
67946         (strtoul, strtol): Remove decls.
67947         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
67948         LONG_MAX): Remove.
67949         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67950         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
67951         (LOCALE_PARAM_PROTO): New macro.
67952         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
67953         (INTERNAL (strtol), strtol): Define with a prototype.
67954         (PARAMS): Remove.  All uses removed.
67955         * lib/tempname.c: Include <string.h> unconditionally.
67956         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
67957         * lib/xgethostname.c (main): Define with a prototype.
67958         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
67959         Include <stdlib.h> unconditionally.
67960         (calloc, malloc, realloc, free): Remove decls.
67961         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
67962         Include <stdlib.h> unconditionally.  Sort include file names.
67963         (strtod): Remove.
67964         (xstrtod): Define with a prototype.
67965         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
67966         (strtol, strtoul): Remove decls.
67967
67968 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67969
67970         More patches to assume C89 or better.
67971         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
67972         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67973         string.h, memchr, STDC_HEADERS.
67974
67975 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67976
67977         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67978         Include <stdlib.h>, <string.h> unconditionally.
67979         Remove now-unnecessary cast to char *.
67980         * lib/strnlen.c: Include <string.h> unconditionally.
67981         * lib/yesno.c (yesno): Define with a prototype.
67982
67983 2003-09-11  Bruno Haible  <bruno@clisp.org>
67984
67985         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67986
67987 2003-09-10  Jim Meyering  <jim@meyering.net>
67988
67989         * lib/error.c: Correct indentation of cpp directives.
67990
67991 2003-09-10  Bruno Haible  <bruno@clisp.org>
67992
67993         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67994         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67995         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67996         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67997         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67998         <stdlib.h> and <string.h> checks.
67999         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
68000         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
68001
68002 2003-09-10  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/strcspn.c: Include <string.h> unconditionally.
68005         * lib/strpbrk.c: Include <string.h> unconditionally.
68006         * lib/strstr.c: Include <string.h> unconditionally.
68007         * lib/unicodeio.c: Include <string.h> unconditionally.
68008         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
68009         * lib/unsetenv.c: Likewise.
68010         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
68011         * lib/yesno.c: Include <stdlib.h> unconditionally.
68012         (rpmatch): Add prototype.
68013
68014 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68015
68016         More patches to assume C89 or better.
68017         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
68018         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
68019         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
68020         or for string.h.
68021         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
68022         stdlib.h.
68023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
68024         C headers.
68025         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
68026         string.h.
68027         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
68028         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
68029         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
68030         or for string.h.
68031         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
68032         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
68033         C headers.
68034         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
68035         memcpy.
68036         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
68037         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
68038         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
68039         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
68040         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
68041         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
68042         string.h, free.
68043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
68044         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
68045         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
68046         C headers, or for string.h.
68047         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
68048         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
68049         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
68050         headers, memory.h, stdlib.h, string.h, strings.h.
68051         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
68052         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
68053         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
68054         strchr.
68055         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
68056         headers, memory.h, string.h.
68057         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
68058         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
68059         free.
68060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
68061         headers.
68062         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
68063         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
68064         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
68065         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
68066         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
68067
68068 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68069
68070         More K&R removal.
68071
68072         * lib/acosl.c (main): Use a prototype.
68073         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
68074         tanl.c: Likewise.
68075
68076         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
68077
68078         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
68079         (getopt, etopt_long, getopt_long_only, _getopt_internal)
68080         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
68081         with a prototype.
68082         * lib/getopt.c (const): Remove macro.
68083         Include <string.h> unconditionally.
68084         (my_index): Remove; all uses changed to strchr.
68085         (strlen): Remove decl.
68086         (exchange): Remove forward decl; no longer needed.
68087         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
68088         Define with prototype.
68089         * lib/getopt1.c (const): Remove macro.
68090         (getopt_long, getopt_long_only, main): Define with prototype.
68091
68092         * lib/getugroups.c: Include <string.h> unconditionally.
68093
68094         * lib/getusershell.c: Include <stdlib.h> unconditionally.
68095         (getusershell, setusershell, endusershell, readname, main):
68096         Define with prototypes.
68097
68098         * lib/group-member.c: Include group-member.h first.
68099         Include <stdlib.h> unconditionally.
68100
68101         * lib/hard-locale.c: Include hard-locale.h first.
68102         Include <stdlib.h>, <string.h> unconditionally.
68103
68104         * lib/hash.c (free, malloc): Remove decls.
68105         Include <stdlib.h> unconditionally.
68106
68107         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68108         (getenv): Do not declare.
68109
68110         * lib/idcache.c: Include <string.h> unconditionally.
68111
68112         * lib/long-options.c: Include long-options.h first, to test interface.
68113         Include <stdlib.h> unconditionally.
68114
68115         * lib/makepath.c: Include makepath.h first, to test interface.
68116         Include <stdlib.h> and <string.h> unconditionally.
68117
68118         * lib/linebuffer.c: Include <stdlib.h>.
68119         (free): Remove decl.
68120
68121         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68122         stddef.h. rpl_malloc returns void *, not char *.
68123         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68124         prototype.
68125
68126         * lib/md5.h: Include <limits.h> unconditionally.
68127         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68128         (__P): Remove; all uses removed.
68129         * lib/md5.c: Include "md5.h" first.
68130         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68131         md5_buffer, md5_process_bytes, md5_process_block):
68132         Define with prototypes.
68133         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68134         * lib/sha.c: Include "sha.h" first.
68135         Include <stdlib.h>, <string.h> unconditionally.
68136
68137         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68138         * lib/memcmp.c (__ptr_t): Likewise.
68139         * lib/memrchr.c (__ptr_t): Likewise.
68140         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68141         Include <string.h> unconditionally.
68142         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68143         * lib/memchr.c: Include <stdlib.h> unconditionally.
68144         * lib/memchr.c (LONG_MAX): Remove.
68145         * lib/memrchr.c (LONG_MAX): Likewise.
68146         * lib/memchr.c (__memchr): Define via a prototype.
68147         * lib/memrchr.c (__memrchr): Likewise.
68148         * lib/memcmp.c (__P): Remove, and remove all uses.
68149         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68150         Remove forward decls; no longer needed.
68151         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68152         Use types required by C89 in prototype.
68153
68154         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68155         * lib/savedir.c: Likewise.
68156         * lib/mkdir.c (free): Remove decl.
68157         * lib/rmdir.c (rmdir): Define with a prototype.
68158         * lib/savedir.c: Include savedir.h first, to test interface.
68159
68160         * lib/mktime.c (STDC_HEADERS): Remove.
68161         Include <stdlib.h>, <string.h> unconditionally.
68162
68163         * lib/modechange.c: Include <stdlib.h> unconditionally.
68164         (malloc): Remove decl.
68165
68166         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68167         (free): Remove decl.
68168
68169         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68170         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68171         (This type really should be intptr_t, but that's a C99ism.)
68172         (_obstack_memcpy): Remove: all uses changed to memcpy.
68173         Include <string.h> unconditionally.
68174         (struct obstack): Assume __STDC__ for types of members
68175         chunkfun, freefun, extra_arg.
68176         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
68177         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
68178         obstack_begin, obstack_specify_allocation,
68179         obstack_specify_allocation_with_arg, obstack_chunkfun,
68180         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
68181         Remove unprototyped decls and the macros that use them.
68182         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
68183         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
68184         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
68185         (defined __STDC__ && __STDC__)]:
68186         Remove nonprototyped code.
68187         Include <stdlib.h> unconditionally.
68188         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
68189         _obstack_allocated_p, _obstack_free, obstack_free,
68190         _obstack_memory_used, print_and_abort):
68191         Define using prototypes.
68192         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
68193         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
68194         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
68195         obstack_next_free, obstack_object_size, obstack_room) [0]:
68196         Remove unused, unprototyped code.
68197
68198         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
68199
68200         * lib/physmem.c (physmem_total, physmem_available, main): Define
68201         with prototypes.
68202
68203         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
68204         (main): Define with a prototype.
68205
68206         * lib/posixver.c (getenv): Remove decl.
68207
68208         * lib/putenv.c (malloc): Returns void *, not char *.
68209         Include <string.h> unconditionally.
68210         (strchr, memcpy, NULL): Do not define.
68211
68212         * lib/readtokens.c: Include readtokens.h first, to test interface.
68213         Include <stdlib.h>, <string.h> unconditionally.
68214         (init_tokenbuffer): Define with a prototype.
68215
68216         * lib/regex.c (PARAMS): Remove.  All uses removed.
68217         All uses of _RE_ARGS removed, too.
68218         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68219         unconditionally.
68220         (bzero): Assume memset exists.
68221         (memcmp, memcpy, NULL): Remove.
68222         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
68223         char, or assignments to local vars of type signed char.
68224         (init_syntax_once, PREFIX(extract_number_and_incr),
68225         PREFIX(print_partial_compiled_pattern),
68226         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
68227         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
68228         PREFIX(regex_grow_registers), PREFIX(regex_compile),
68229         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
68230         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
68231         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
68232         wcs_compile_range, byte_compile_range, truncate_wchar,
68233         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
68234         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
68235         count_mbs_length, wcs_re_match_2_internal,
68236         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
68237         PREFIX(alt_match_null_string_p),
68238         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
68239         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
68240         regfree, PREFIX(extract_number)): Define with prototype.  Remove
68241         now-unnecessary declaration, if any.
68242         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
68243         regcomp, regexec):
68244         Remove now-unnecessary casts among pointer types.
68245         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
68246
68247         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
68248         (free): Remove decl.
68249
68250         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
68251
68252         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
68253         (free): Remove decl.
68254
68255         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
68256         * lib/xgetcwd.c: Likewise.
68257
68258         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
68259         (free): Remove decl.
68260
68261         * lib/strchrnul.c (strchrnul): Define with a prototype.
68262         Fix bug: c_in was not converted to char before searching.
68263
68264         The following changes are not K&R related:
68265
68266         * lib/group-member.h: Include <sys/types.h>, so that this file is
68267         self-contained.
68268         * lib/makepath.h: Likewise.
68269
68270         * lib/getusershell.c (readname, default_index, line_size, readname):
68271         Use size_t, not int, for sizes.
68272         (readname): If the size overflows, report an error instead of
68273         looping forever.
68274
68275 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68276
68277         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
68278         libc.
68279
68280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68281
68282         * README: New section: portability guidelines.
68283
68284 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68285
68286         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
68287         C89 spec.
68288
68289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68290
68291         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
68292
68293 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68294
68295         Assume C89 or better; remove K&R cruft.
68296         A few of these changes were first proposed by Derek Robert Price
68297         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
68298
68299         * lib/addext.c: Include <string.h> unconditionally.
68300         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
68301         Don't declare getenv or malloc.
68302
68303         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
68304         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
68305         (NULL): Remove.
68306         (find_stack_direction, alloca): Use prototypes.
68307
68308         * lib/atexit.c (atexit): Define using a prototype.
68309
68310         * lib/basename.c, dirname.c, stripslash.c:
68311         Include <string.h> unconditionally.
68312
68313         * lib/bcopy.c: Include <stddef.h>.
68314         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
68315
68316         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
68317
68318         * lib/error.h (error, error_at_line, error_print_progname)
68319         [! (defined (__STDC__) && __STDC__)]: Remove decls.
68320         * lib/error.c: Include error.h first, to check interface.
68321         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68322         (VA_START): Remove; all uses changeed to va_start.
68323         (exit, strerror): Remove decls.
68324         (error_print_progname): Prototype uncondionally.
68325         Don't include <errno.h>; no longer needed.
68326         (private_strerror): Remove.
68327         (error_tail): Always define.
68328         (error, error_at_line): Assume C89 or better; always use prototypes.
68329         * lib/fatal.c: Include "fatal.h" first, to test interface.
68330         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68331         (VA_START): Remove; all uses changed to va_start.
68332         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
68333         this case.
68334         (exit): Remove decl.
68335         (fatal): Prototype unconditionally.  Assume va_start works.
68336         Abort at end, to pacify gcc.
68337
68338         * lib/euidaccess.c (main): Define with a prototype.
68339
68340         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
68341
68342         * lib/exitfail.c: Include <stdlib.h> unconditionally.
68343
68344         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
68345         prototypes.
68346         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
68347         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
68348         (getenv): Remove decl.
68349         (fnmatch): Define using a prototype.
68350         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
68351         (FCT): Define using a prototype.
68352
68353         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
68354
68355         * lib/gethostname.c: Include <stddef.h>.
68356         (gethostname): Define with prototype.  Length is size_t, not int.
68357
68358 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68359
68360         Assume C89 or better; remove K&R cruft.
68361         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
68362         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
68363         string.h, getenv, malloc.
68364         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
68365         headers.
68366         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
68367         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
68368         do not check for strerror.
68369         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
68370         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
68371         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
68372         do not check for doprnt or vprintf.
68373         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
68374         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
68375
68376 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68377
68378         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
68379         getversion.c should have been removed then, but was accidentally
68380         preserved.
68381
68382         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
68383         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
68384
68385 2003-09-08  Karl Berry  <karl@gnu.org>
68386
68387         * config/config.sub, config.guess, srclistvars.sh: update from savannah
68388                 config, forget about prep.
68389
68390         * config/depcomp, missing: update from automake.
68391
68392 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68393
68394         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
68395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68396
68397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68398
68399         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
68400         copy_tm_result.  Bug reported by Simon Josefsson in
68401         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68402
68403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68404
68405         * m4/time_r.m4: New file.
68406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
68407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
68408         is. Check for timegm declaration.
68409         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
68410         Do not check for gmtime_r.
68411         Replace mktime if __mktime_internal does not exist and if mktime
68412         hasn't been replaced already.
68413
68414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68415
68416         * lib/time_r.c, lib/time_r.h: New files.
68417
68418         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
68419         __localtime_r.
68420         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
68421         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
68422
68423         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
68424         __gmtime_r.
68425         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
68426         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
68427         Include <time_r.h>.
68428
68429         * lib/timegm.c: Switch to glibc implementation, with the following
68430         changes:
68431         [defined HAVE_CONFIG_H]: Include <config.h>.
68432         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
68433         (__mktime_internal) [!defined _LIBC]: New decl.
68434         (__gmtime_r) [!defined _LIBC]: New macro and function.
68435         (timegm): Use a prototype, since gnulib assumes C89.
68436         Do not bother declaring tmp to be const, as it's not really usefu.
68437         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
68438         (timegm): Declare only if HAVE_DECL_TIMEGM.
68439
68440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68441
68442         * MODULES.html.sh (func_all_modules): Add time_r.
68443         * modules/time_r: New file.
68444         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
68445         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
68446
68447 2003-09-03  Paul Eggert  <eggert@twinsun.com>
68448
68449         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
68450         Bug reported by Lute Kamstra in
68451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
68452
68453         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
68454         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
68455         course with correspondingly smaller numbers for tomorrow and
68456         yesterday.  From Tadayoshi Funaba.  Originally installed into
68457         sh-utils on 1999-08-07, but the patch got lost (I guess during the
68458         coreutils merge?).
68459
68460 2003-08-31  Simon Josefsson  <jas@extundo.com>
68461
68462         * modules/timegm: New file.
68463         * MODULES.html.sh (func_all_modules): Add timegm.
68464
68465 2003-08-31  Simon Josefsson  <jas@extundo.com>
68466
68467         * m4/timegm.m4: New file.
68468
68469 2003-08-31  Simon Josefsson  <jas@extundo.com>
68470
68471         * lib/timegm.h: New file.
68472         * lib/timegm.c: New file.  Based on
68473         wget-1.8.2/src/http.c:mktime_from_utc.
68474
68475 2003-08-31  Karl Berry  <karl@gnu.org>
68476
68477         * lib/argp.h: update from libc.
68478
68479 2003-08-28  Bruno Haible  <bruno@clisp.org>
68480
68481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
68482         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
68483         followed by '#define fnmatch fnmatch_posix' gives an error.
68484
68485 2003-08-28  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
68488         warning on QNX, which defines O_BINARY to 000000.
68489
68490 2003-08-27  Jim Meyering  <jim@meyering.net>
68491
68492         * m4/mkstemp.m4: Require that the system mkstemp be able to create
68493         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
68494         would fail after 32.  Reported by Danny Levinson.  Details here:
68495         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
68496
68497 2003-08-24  Bruno Haible  <bruno@clisp.org>
68498
68499         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68500         MSVC7 <stdio.h> is included later.
68501
68502 2003-08-22  Simon Josefsson  <jas@extundo.com>
68503
68504         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68505
68506 2003-08-20  Karl Berry  <karl@gnu.org>
68507
68508         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68509
68510 2003-08-20  Bruno Haible  <bruno@clisp.org>
68511
68512         * modules/progname: New file.
68513         * MODULES.html.sh (func_all_modules): Add progname.
68514
68515 2003-08-20  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/progname.h: New file, from GNU gettext.
68518         * lib/progname.c: New file, from GNU gettext.
68519         * lib/progreloc.c: New file, from GNU gettext.
68520
68521 2003-08-19  Jim Meyering  <jim@meyering.net>
68522
68523         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68524         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68525
68526 2003-08-19  Bruno Haible  <bruno@clisp.org>
68527
68528         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68529         more.
68530
68531 2003-08-19  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/xstrdup.c: Assume <string.h> exists.
68534
68535 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68536
68537         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68538         in makefile rules.
68539
68540 2003-08-18  Jim Meyering  <jim@meyering.net>
68541
68542         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68543         * m4/lib-ld.m4: Likewise.
68544
68545 2003-08-18  Jim Meyering  <jim@meyering.net>
68546
68547         * lib/setenv.h: Indent nested cpp directive.
68548         * lib/vasnprintf.c: Remove trailing blanks.
68549
68550 2003-08-17  Simon Josefsson  <jas@extundo.com>
68551
68552         * modules/xstrndup: New file.
68553         * MODULES.html.sh (func_all_modules): Add xstrndup.
68554
68555 2003-08-17  Simon Josefsson  <jas@extundo.com>
68556
68557         * modules/argp: Fix autoconf macro name. Add more dependencies.
68558
68559 2003-08-17  Simon Josefsson  <jas@extundo.com>
68560
68561         * m4/xstrndup.m4: New file.
68562
68563 2003-08-17  Simon Josefsson  <jas@extundo.com>
68564
68565         * m4/argp.m4: New file.
68566
68567 2003-08-17  Simon Josefsson  <jas@extundo.com>
68568             Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/xstrndup.h: New file.
68571         * lib/xstrndup.c: New file.
68572
68573 2003-08-17  Bruno Haible  <bruno@clisp.org>
68574
68575         * modules/strndup (Files, Include): Add lib/strndup.h.
68576
68577 2003-08-17  Bruno Haible  <bruno@clisp.org>
68578
68579         * modules/euidaccess (Files): Add lib/euidaccess.h.
68580
68581 2003-08-17  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/strndup.h: New file.
68584
68585 2003-08-17  Bruno Haible  <bruno@clisp.org>
68586
68587         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68588         like AC_GNU_SOURCE.
68589         * modules/extensions (configure.ac): Comment out the invocation of
68590         gl_USE_SYSTEM_EXTENSIONS.
68591
68592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68593
68594         Merges from coreutils, etc.
68595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68596         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68597         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68598         fixing a typo.
68599         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68600         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68601
68602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68603
68604         Document merge from coreutils.
68605         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68606         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68607         * modules/utime: Add m4/utimes-null.m4.
68608
68609 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68610
68611         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68612         space, undoing this 2003-08-12 change:
68613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68614
68615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68616
68617         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68618         strtoul.c from libc, undoing this 2003-08-12 change:
68619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68620
68621 2003-08-16  Jim Meyering  <jim@meyering.net>
68622
68623         Merges from coreutils.
68624         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68625         prefix.  Adjust cache variables similarly.  Create 500 rather than
68626         just 300 files, to exercise bug on Darwin6.5, too.
68627         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68628         $missing_dir.
68629         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68630         AM_SYS_POSIX_TERMIOS.
68631         Reported by mkc@mathdogs.com.
68632         Also change use of $am_cv_sys_posix_termios
68633         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68634         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68635         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68636         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68637         in /proc/mounts until it finds one with matching device number.  This
68638         is unnecessary when the FILE argument *is* a mount point.  No stat call
68639         is necessary in that case.  So, disable the statvfs-testing code on
68640         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68641         as RedHat bug# 84846.
68642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68643         to 1MB, so as not to render systems with no stack size limit (e.g.,
68644         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68645         Include <unistd.h>.  On some systems,
68646         it is required for the definition of _SC_PAGESIZE.
68647
68648 2003-08-16  Jim Meyering  <jim@meyering.net>
68649
68650         Merge from coreutils.
68651         * lib/xstrtoimax.c: #else #if -> #elif.
68652         * lib/xstrtoumax.c: Likewise.
68653
68654 2003-08-16  Jim Meyering  <jim@meyering.net>
68655
68656         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68657         * m4/utimes.m4: Removed.
68658         * m4/utimes-null.m4: Renamed from utimes.m4.
68659
68660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68661         to 1MB, so as not to render systems with no stack size limit (e.g.,
68662         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68663         Include <unistd.h>.  On some systems,
68664         it is required for the definition of _SC_PAGESIZE.
68665
68666 2003-08-16  Jim Meyering  <jim@meyering.net>
68667         and Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         Merges from coreutils, etc.
68670
68671         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68672         using the latest version from cvs.  This avoids problems with #line
68673         directives using a vendor (Sun) compiler.
68674         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68675         Don't set GETGROUPS_LIB here; now it's
68676         done via getgroups.m4's wrapper function.
68677         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68678         rather than just in sh-util/configure.in, so that the
68679         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68680         same.
68681         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68682         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68683         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68684         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68685         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68686         Remove code that is now done by the newly-required macros.
68687         Append $(EXEEXT) to DF_PROG.
68688         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68689         Do not invoke or require the following here,
68690         since prereq.m4 or some gnulib .m4 now does this for us:
68691         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68692         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68693         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68694         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68695         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68696         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68697         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68698         AC_FUNC_OBSTACK.
68699         Do not replace the following functions, as this is now the job
68700         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68701         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68702         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68703         atexit getpass, strdup, getpagesize.
68704         Replace 'raise'.
68705         Do not check for the following functions, as this is now the job
68706         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68707         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68708         setregid.
68709         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68710         Check for sys/sysctl.h.
68711         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68712         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68713         of checking for ssize_t ourselves.
68714
68715         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68716         Require every macro that gnulib/modules/* suggests for us.
68717         (jm_PREREQ_ADDEXT): New macro.
68718         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68719         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68720
68721         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68722         (gl_PHYSMEM): Use it.
68723         Also check for `table' function.
68724         Check for new headers and functions.
68725         Add check for sys/sysmp.h.
68726         With suggestions from Kaveh Ghazi.
68727         Ignore headers that are present but cannot be compiled.  This
68728         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68729         C 5.4.
68730
68731 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68732
68733         Document merge from coreutils.
68734         * modules/userspec: Depend on posixver.
68735         * modules/strftime: Depend on tzset.
68736
68737 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68738
68739         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68740         rather than tab, after '#' in shell-script copyright notices.
68741         Suggested by Bruno Haible.
68742
68743 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68744
68745         * config/srclist-update: Use three spaces, rather than tab, after '#'
68746         in shell-script copyright notices.  Suggested by Bruno Haible.
68747         Remove unnecessary parenthesization in regular expression.
68748
68749 2003-08-15  Jim Meyering  <jim@meyering.net>
68750
68751         Merge from coreutils.
68752         * lib/xgethostname.c: Include <stdlib.h>.
68753         (xghostname): Don't exit for anything other than memory-related
68754         failure; just return NULL.
68755         * lib/userspec.c: Include "posixver.h".
68756         (parse_user_spec): Accept `.' as a separator only
68757         in pre-POSIX-200112 mode.
68758         * lib/strtoimax.c: Use #elif rather than #else #if.
68759         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68760         Remove function, now that we can rely on a working tzset function.
68761         [!_LIBC]: Ensure that the required autoconf test has been run.
68762         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68763         Use underlying_strftime for %r.
68764         * lib/sha.c: Merge in some clean-up and optimization changes from
68765         glibc.
68766         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68767         Ensure that it is a multiple of 64.
68768         Rearrange loop exit tests so as to avoid performing an
68769         additional fread after encountering an error or EOF.
68770         * lib/realloc.c: Update copyright date.
68771
68772 2003-08-15  Jim Meyering  <jim@meyering.net>
68773         and Paul Eggert  <eggert@twinsun.com>
68774
68775         Merge from coreutils.
68776         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68777         member but strut utmpx does not.  Needed for AIX 4.3.3.
68778         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68779
68780 2003-08-15  Jim Meyering  <jim@meyering.net>
68781         and Paul Eggert  <eggert@cs.ucla.edu>
68782
68783         Merges from coreutils, etc.
68784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68785         Require gl_FUNC_TZSET_CLOBBER.
68786         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68787         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68788         members.
68789
68790 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68791
68792         Help the merge from coreutils.
68793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68794         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68795         * m4/tzset.m4: Use it too.
68796
68797 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68798
68799         * modules/tzset: New file.
68800
68801 2003-08-14  Jim Meyering  <jim@meyering.net>
68802
68803         Merges from coreutils.
68804         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68805         variable names, rather than @FNMATCH_H@.
68806         * modules/alloca: Likewise for $(ALLOCA_H).
68807
68808         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68809         the three copies of the literal target, `fnmatch.h'.
68810         * modules/alloca (alloca.h): Likewise.
68811
68812 2003-08-14  Jim Meyering  <jim@meyering.net>
68813
68814         Merge from coreutils.
68815         * m4/tzset.m4: New file.
68816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68817         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68818         otherwise, AIX 5.1 systems would end up using the latter.
68819         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68820         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68821         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68822         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68823
68824 2003-08-14  Jim Meyering  <jim@meyering.net>
68825
68826         Merge from coreutils.
68827         * lib/obstack.h: Whitespace changes.
68828         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68829         and xcalloc return values.
68830         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68831         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68832         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68833         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68834         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68835         error from mntctl.
68836         Use mntctl's return value to drive the entry-processing loop, since
68837         we can't rely on the value of the vmt_length member in the last
68838         entry.  On some systems doing so could result in exhausting
68839         virtual memory.  Based in part on a patch from Mike Jetzer.
68840
68841 2003-08-14  Jim Meyering  <jim@meyering.net>
68842         and Paul Eggert  <eggert@twinsun.com>
68843
68844         Merges from coreutils, plus other fixes.
68845         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68846         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68847         for credits and details.  Thanks to Kaveh Ghazi for helping
68848         to keep these files in sync.
68849         (ARRAY_SIZE): Define it.
68850         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68851         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68852         (memcasecmp): Don't assume size_t fits in unsigned int.
68853         Remove casts and duplicate code.
68854         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68855         (memcpy): Remove definition.
68856         Merge in some clean-up and optimization changes from glibc.
68857         [BLOCKSIZE]: Move definition to top of file.
68858         Ensure that it is a multiple of 64.
68859         Rearrange loop exit tests so as to avoid performing an
68860         additional fread after encountering an error or EOF.
68861         * lib/md5.h (md5_uintptr): Define.
68862         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68863         return to the initial working directory.  Preserve errno
68864         for caller.
68865         * lib/idcache.c: Include "xalloc.h".
68866         (xmalloc, xrealloc): Remove decls.
68867         (getuser): Remove casts no longer required in C89.
68868         * lib/human.c: Include stdio.h, for sprintf.
68869         * lib/group-member.c: Include "xalloc.h".
68870         (xmalloc, xrealloc): Remove decls.
68871         (get_group_info): Remove casts no longer required in C89.
68872         * lib/getusershell.c (readname): Remove casts no longer required in
68873         C89.
68874         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68875         * lib/getline.c: Whitespace fix, from coreutils.
68876
68877 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68878
68879         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68880         Check for isascii.
68881
68882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68884         Undo previous (whitespace-only) change.
68885
68886 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68887
68888         * lib/exclude.c: Include <ctype.h>
68889         (IN_CTYPE_DOMAIN): New macro.
68890         (is_space): New fn.
68891         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68892         and empty lines.
68893
68894         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68895         Undo previous (whitespace-only) change.
68896
68897 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68898
68899         * config/srclist-update: Change update back to the old behavior,
68900         leaving whitespace alone.  Use one 'sed' command rather than a
68901         pipeline.
68902         (fixlicense): Now a variable, not a function.
68903         (remove_trailing_blanks): Remove.
68904         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68905         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68906         Undo previous (whitespace-only) change.
68907
68908 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68909
68910         Merge from coreutils.
68911         * modules/euidaccess: Add lib_SOURCES, include for new
68912         file euidaccess.h
68913
68914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68915
68916         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68917         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68918         Normalize leading white space and remove trailing white space.
68919
68920         Merge from coreutils
68921         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68922
68923         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68924         0.12.1.  These files are now being upgraded automatically by
68925         ../config/srclist-update.
68926
68927 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68928
68929         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68930         Normalize leading white space and remove trailing white space.
68931         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
68932         notice, as per ../config/srclist-update.
68933
68934         Merge from coreutils.
68935         * lib/euidaccess.h: New file.
68936         * lib/euidaccess.c: Include it.
68937         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
68938         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
68939         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
68940
68941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68942
68943         * config/srclist-update: Add copyright notice.
68944         (remove_id_lines, remove_trailing_blanks): New constants.
68945         (fixfile): Use them to normalize spacing a bit in copied files.
68946         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68947         Normalize leading white space and remove trailing white space.
68948
68949         * config/texinfo.tex: Sync with texinfo.
68950
68951         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
68952         strtoul.c from libc, to merge coreutils whitespace changes.
68953
68954         * config/srclist.txt: Get the following m4 files from gettext:
68955         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
68956         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
68957         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
68958         wint_t.m4.
68959
68960 2003-08-12  Karl Berry  <karl@gnu.org>
68961
68962         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
68963         been made.
68964
68965 2003-08-11  Paul Eggert  <eggert@twinsun.com>
68966
68967         * modules/gnu-source, m4/gnu-source.m4:
68968         Remove; we're assuming Autoconf 2.54 or later now.
68969         Suggested by Bruno Haible.
68970         * MODULES.html.sh (func_all_modules): Remove gnu-source.
68971
68972 2003-08-11  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68975
68976 2003-08-11  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68979         (vasnprintf): Use it instead of wcslen.
68980
68981 2003-08-11  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68984         value to ensure that _Bool promotes to int. Use #define for _Bool when
68985         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68986
68987 2003-08-10  Karl Berry  <karl@gnu.org>
68988
68989         * lib/regex.h: update from libc (whitespace fix).
68990
68991 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68992
68993         Merge some files from coreutils.  These changes were
68994         originally made by Jim Meyering.
68995         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68996         many older Unixes require this.
68997         * lib/alloca.c (alloca): Remove cast to argument of free;
68998         no longer needed in C89.
68999         * lib/alloca_.h, regex.h: Fix white space to match
69000         what GNU indent does.
69001
69002 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69003
69004         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
69005         apparently Emacs's Unicode mode got confused before my 2003-08-05
69006         checkin.
69007
69008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69009
69010         * m4/extensions.m4: New file.
69011         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
69012         Require gl_USE_SYSTEM_EXTENSIONS.
69013         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
69014         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
69015
69016 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69017
69018         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
69019         * modules/extensions, modules/gnu-source: New files.
69020         * modules/timespec, modules/unlocked-io: Depend on extensions.
69021
69022 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69023
69024         * modules/restrict: New file.
69025         * MODULES.html.sh (func_all_modules): Add restrict.
69026         * modules/regex: Depend on restrict.
69027
69028 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69029
69030         * m4/restrict.m4: New file.
69031         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
69032
69033 2003-08-07  Bruno Haible  <bruno@clisp.org>
69034
69035         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
69036         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
69037
69038 2003-08-07  Bruno Haible  <bruno@clisp.org>
69039
69040         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
69041         makes the module 'getndelim2' compatible with the module 'getline'.
69042
69043 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69044
69045         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
69046         byte with "\201" to avoid glitches when editing that source file
69047         with multi-gnome-terminal.
69048
69049 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69050
69051         * lib/bumpalloc.h: Remove.
69052
69053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69054
69055         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
69056         * modules/bumpalloc: Remove.
69057
69058 2003-08-04  Paul Eggert  <eggert@twinsun.com>
69059
69060         * lib/getloadavg.c: Change copyright notice and spacing to conform to
69061         GNU coding style.
69062
69063         Merge from coreutils.
69064         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
69065         1. From glibc.
69066         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
69067         from Karl Berry, implemented by Jim Meyering.
69068         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
69069         from Dmitry V. Levin.
69070         Remove anachronistic cast of xrealloc.
69071         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
69072         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
69073         type. Otherwise, it wouldn't compile with at least /bin/cc on
69074         ymp-cray-unicos9.0.2.X.
69075         Combine two mostly-identical uses of alloca into one.
69076         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
69077
69078 2003-08-04  Dave Love  <d.love@dl.ac.uk>
69079
69080         [From Emacs.]
69081
69082         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
69083         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
69084         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
69085         obsolete NLIST_NAME_UNION.
69086         [__GNU__]: Undef BSD and FSCALE.
69087         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
69088
69089 2003-08-03  Paul Eggert  <eggert@twinsun.com>
69090
69091         * lib/stdbool_.h (_Bool): Make it signed char, instead of
69092         an enum type, so that it's guaranteed to promote to int.  See:
69093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
69094
69095 2003-08-03  Karl Berry  <karl@gnu.org>
69096
69097         * config/depcomp: update from automake.
69098
69099 2003-07-31  Paul Eggert  <eggert@twinsun.com>
69100
69101         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
69102         (strerror): Don't assume that a printable int fits in 14 bytes.
69103
69104 2003-07-31  Bruno Haible  <bruno@clisp.org>
69105
69106         * modules/getpass-gnu: New file.
69107         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69108
69109 2003-07-31  Bruno Haible  <bruno@clisp.org>
69110
69111         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69112
69113 2003-07-24  Karl Berry  <karl@gnu.org>
69114
69115         * config/missing: update from automake.
69116
69117 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69118             Bruno Haible  <bruno@clisp.org>
69119
69120         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69121         * lib/getline.c (getline, getdelim): Likewise.
69122         Remove _GNU_SOURCE define; now it's defined in config.h through
69123         m4/getline.m4.
69124
69125 2003-07-23  Karl Berry  <karl@gnu.org>
69126
69127         * config/config.sub: update from prep.
69128
69129 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69130
69131         * modules/xalloc (Depends-on): Add exitfail.
69132         * modules/xmemcoll: Likewise.
69133
69134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69135
69136         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69137         over-parenthesization in macros.
69138
69139         Sync with coreutils.
69140
69141         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69142         required by C99.
69143
69144         Use `exit_failure' for xalloc and xmemcoll instead of their own
69145         private exit-failure variables.
69146         * lib/xalloc.h (xalloc_exit_failure): Remove.
69147         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69148         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69149         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69150         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69151         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69152
69153 2003-07-20  Jim Meyering  <jim@meyering.net>
69154
69155         * modules/closeout (Depends-on): Add exitfail.
69156         Suggestion from Bruno Haible.
69157
69158 2003-07-19  Karl Berry  <karl@gnu.org>
69159
69160         * config/config.sub: update from prep.
69161
69162 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69163
69164         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69165         Remove.
69166         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69167         to test that it can stand by itself.  Include "exitfail.h".
69168         Clients should set exit_failure instead.
69169         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69170
69171 2003-07-18  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/getndelim2: New file.
69174         * modules/getline: Share files with module getndelim2.
69175         * modules/getnline: Depend on getndelim2 instead of sharing files with
69176         it. Add getnline.c to lib_SOURCES.
69177         * MODULES.html.sh (func_all_modules): Add getndelim2.
69178
69179 2003-07-18  Bruno Haible  <bruno@clisp.org>
69180
69181         * m4/getndelim2.m4: New file.
69182         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
69183         invoke gl_PREREQ_GETNDELIM2.
69184         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
69185         gl_PREREQ_GETNDELIM2.
69186         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
69187         gl_GETNDELIM2.
69188
69189 2003-07-18  Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/getndelim2.h: New file.
69192         * lib/getndelim2.c: Make into a module of its own. Include config.h,
69193         getndelim2.h.
69194         (getndelim2): Make non-static. Change return type to ssize_t.
69195         * lib/getline.h: Change argument names.
69196         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
69197         * lib/getnline.c: Include getndelim2.h.
69198
69199 2003-07-18  Andreas Schwab  <schwab@suse.de>
69200
69201         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
69202
69203 2003-07-17  Karl Berry  <karl@gnu.org>
69204
69205         * config/config.sub: update from prep.
69206
69207 2003-07-17  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/getnline: New file.
69210         * modules/getline: Add lib/getndelim2.c to source file list.
69211         * MODULES.html.sh (func_all_modules): Add getnline.
69212
69213 2003-07-17  Bruno Haible  <bruno@clisp.org>
69214
69215         * m4/getnline.m4: New file.
69216
69217 2003-07-17  Bruno Haible  <bruno@clisp.org>
69218
69219         * m4/Makefile.am.in: Remove file.
69220         * m4/Makefile.am: Remove file.
69221         * m4/Makefile.in: Remove file.
69222
69223 2003-07-17  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/getnline.h: New file.
69226         * lib/getnline.c: New file.
69227         * lib/getndelim2.c: New file, extracted from getline.c.
69228         (getndelim2): Renamed from getdelim2, with added nmax argument.
69229         * lib/getline.c: Include getndelim2.c.
69230         (getdelim2): Moved out to getndelim2.c.
69231         (getline, getdelim): Update.
69232
69233 2003-07-17  Bruno Haible  <bruno@clisp.org>
69234
69235         * lib/Makefile.am: Remove file.
69236         * lib/Makefile.in: Remove file.
69237
69238 2003-07-17  Bruno Haible  <bruno@clisp.org>
69239
69240         * configure.in: Remove file.
69241         * Makefile.in: Remove file.
69242
69243 2003-07-17  Bruno Haible  <bruno@clisp.org>
69244
69245         * MODULES.html.sh: Put the </BODY> right before </HTML>.
69246
69247 2003-07-16  Karl Berry  <karl@gnu.org>
69248
69249         * config/srclist-update: was running fixlicense twice, which caused
69250                 texinfo.tex to be nullified for some reason.  Simplify,
69251                 $gplsrc is no longer needed as far as I can see?
69252
69253 2003-07-16  Jim Meyering  <jim@meyering.net>
69254
69255         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
69256
69257 2003-07-15  Paul Eggert  <eggert@twinsun.com>
69258
69259         * config/srclist.txt: Get the following files from gettext-runtime/intl
69260         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
69261         ref-del.sin.  From Bruno Haible.
69262         * config/srclist-update (fixfile): Change grep pattern again, since the
69263         previous fix didn't work (there was another trailing $).  Use
69264         '[$]' to escape the $s.
69265
69266 2003-07-15  Karl Berry  <karl@gnu.org>
69267
69268         * lib/vasnprintf.c: update from gettext.
69269
69270 2003-07-15  Karl Berry  <karl@gnu.org>
69271
69272         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
69273         gets expanded when surrounded by '$'.
69274
69275 2003-07-15  Jim Meyering  <jim@meyering.net>
69276
69277         * modules/save-cwd: Don't depend on error.  From Derek Price.
69278
69279 2003-07-15  Jim Meyering  <jim@meyering.net>
69280
69281         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
69282
69283 2003-07-14  Simon Josefsson  <jas@extundo.com>
69284
69285         * modules/mempcpy: New file.
69286         * MODULES.html.sh (func_all_modules): Add mempcpy.
69287
69288 2003-07-14  Simon Josefsson  <jas@extundo.com>
69289
69290         * m4/mempcpy.m4: New file.
69291
69292 2003-07-14  Simon Josefsson  <jas@extundo.com>
69293
69294         * lib/mempcpy.h: New file.
69295         * lib/mempcpy.c: New file.
69296
69297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69298
69299         * modules/getdate, modules/posixtm: Depend on mktime.
69300
69301 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69302
69303         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
69304         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
69305         unicodeio.c, unicodeio.h, unlocked-io.h:
69306         Switch from LGPL to GPL.
69307
69308 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69309
69310         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
69311         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
69312         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
69313         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
69314         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
69315         updated automatically by ../config/srclist-update.  This changes
69316         their license from LPGL to GPL.
69317
69318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69319
69320         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
69321         assumed to refer to the root of the most recent stable gettext version.
69322         * config/srclistvars.sh: Add defaults for eggert.
69323         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
69324         Match "This program" as well as "The program".  This is needed
69325         for gettext.
69326
69327 2003-07-14  Jim Meyering  <jim@meyering.net>
69328
69329         Don't emit diagnostics.  Let callers do that.
69330         * lib/save-cwd.c: Don't include "error.h".
69331         (save_cwd): Don't call error.  Ensure that errno is valid
69332         when returning nonzero.
69333
69334         * lib/save-cwd.h (restore_cwd): Update prototype.
69335         * lib/save-cwd.c (restore_cwd): Remove two parameters.
69336         Simplify.  Don't call error upon failure.  Let callers do that.
69337         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
69338         when auditing is enabled.  But don't bother updating the #if.
69339
69340 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
69341
69342         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
69343         it breaks C++ compilation.
69344         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
69345
69346 2003-07-10  Simon Josefsson  <jas@extundo.com>
69347
69348         * modules/strchrnul (Makefile.am): Add strchrnul.h.
69349
69350 2003-07-10  Jim Meyering  <jim@meyering.net>
69351
69352         * m4/clock_time.m4: Remove trailing blank.
69353         * m4/intmax_t.m4: Likewise.
69354
69355 2003-07-10  Jim Meyering  <jim@meyering.net>
69356
69357         * lib/vasnprintf.c: Remove trailing blanks.
69358         Make cpp indentation consistent.
69359
69360 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69361
69362         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
69363         posixver.c, strftime.c, strnlen.c, strverscmp.c:
69364         Switch from LGPL to GPL.
69365
69366 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69367
69368         * config/srclist.txt: Sort sublists.  Add
69369         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
69370         that differ from gnulib for one reason or another; we'd like this list
69371         to be smaller but for now let's document what we have.
69372
69373 2003-07-08  Paul Eggert  <eggert@twinsun.com>
69374
69375         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
69376         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
69377         and sweeter "eval x=$x".
69378         * config/srclist.txt: Get lib/argp* from glibc.
69379
69380 2003-07-07  Paul Eggert  <eggert@twinsun.com>
69381
69382         * lib/mktime.c: Fix some boundary cases and remove need for floating
69383         point.
69384
69385         Issue a compile-time diagnostic if time_t is floating point, or if
69386         two's complement arithmetic is not in effect, or if arithmetic
69387         right shift does not propagate the sign.  These assumptions were
69388         all in the original code but they weren't checked.
69389
69390         (TIME_T_MIDPOINT, verify): New macros.
69391         (__isleap): Remove; it has integer overflow problems.
69392         (leapyear): New function, without those problems.
69393         (ydhms_tm_diff): Remove; splitting into two parts.
69394         (ydhms_diff): New function, containing the arithmetic part of
69395         the old ydhms_tm_diff function.  Issue a compile-time
69396         diagnostic if we are not using C99 integer division.
69397         Avoid casts when possible.
69398         (guess_time_tm): New function, containing the checking part of
69399         the old ydhms_tm_diff function.  Return the new value, rather than
69400         the difference between it and the old.  Accept a new argument T
69401         so that *T specifies the old value.  Check for overflow in the result.
69402
69403         (__mktime_internal): Use a time_t offset, not a long int offset.
69404         This undoes the 2003-06-04 change, which is no longer needed now
69405         that we have better overflow checking.
69406         (localtime_offset): Likewise.
69407
69408         (__mktime_internal): Avoid harmful overflow on hosts where time_t
69409         and long are 64-bit but int is only 32-bit.
69410         (ydhms_diff): Use long int to store year1 and yday1.
69411         Issue a compile-time diagnostic if long int is not wide enough.
69412
69413         (__mktime_internal): Use long int to store adjusted year and yday.
69414         Use plain C rather than preprocessor commands, if that doesn't
69415         affect efficiency.
69416         Check for overflow (and try to repair) after each probe
69417         rather than checking only at the very end.  This avoids some bugs
69418         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
69419         does not equal GMT offset at maximum time).
69420         Use integer to check for overflow rather than floating point; this
69421         is more portable to non-IEEE hosts, and is a tad faster.
69422         When we detect that we are oscillating between two values,
69423         don't check whether tm_isdst has the requested value, since
69424         we already know the answer.  When tm_isdst has the wrong value,
69425         use a different heuristic to find the right one, based on the
69426         extreme values actually observed in practice in tz2003a,
69427         rather than the (overly optimistic) "previous 3 calendar quarters".
69428
69429         (not_equal_tm, print_tm, check_result): Use "const T" rather than
69430         "T const" to accommodate glibc style.
69431         (check_result): Use less-confusing report format.  "long" -> "long int.
69432         (main): Likewise.
69433         Don't loop if the iteration overflows time_t.
69434         Allow a negative step in the iteration.
69435
69436 2003-07-06  Karl Berry  <karl@gnu.org>
69437
69438         * config/depcomp: update from automake.
69439         * config/config.sub: update from prep.
69440
69441 2003-07-03  Karl Berry  <karl@gnu.org>
69442
69443         * config/config.guess: update from prep.
69444
69445 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69446
69447         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
69448         xreadlink.c now includes it unconditionally.
69449
69450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69451
69452         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
69453         having it depend on HAVE_SYS_TYPES_H.
69454
69455 2003-07-01  Bruno Haible  <bruno@clisp.org>
69456
69457         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
69458         <sys/types.h> should be sufficient.
69459         Reported by Paul Eggert.
69460
69461 2003-06-26  Karl Berry  <karl@gnu.org>
69462
69463         * config/depcomp: update from automake.
69464
69465 2003-06-26  Bruno Haible  <bruno@clisp.org>
69466
69467         * modules/human: Depend on module stdbool.
69468
69469 2003-06-25  Bruno Haible  <bruno@clisp.org>
69470
69471         * modules/readlink: New file.
69472         * modules/xreadlink: Depend on it.
69473         * MODULES.html.sh (func_all_modules): Add readlink.
69474
69475 2003-06-25  Bruno Haible  <bruno@clisp.org>
69476
69477         * m4/readlink.m4: New file.
69478
69479 2003-06-25  Bruno Haible  <bruno@clisp.org>
69480
69481         * lib/readlink.c: New file.
69482
69483 2003-06-22  Karl Berry  <karl@gnu.org>
69484
69485         * config/srclist.txt: update mkinstalldirs from automake.
69486         * config/mkinstalldirs: update.
69487
69488 2003-06-22  Bruno Haible  <bruno@clisp.org>
69489
69490         Portability to mingw32.
69491         * m4/ssize_t.m4: New file, from GNU gettext.
69492         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
69493         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
69494
69495 2003-06-22  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/safe-read: Add m4/ssize_t.m4.
69498         * modules/xreadlink: Add m4/ssize_t.m4.
69499
69500 2003-06-20  Bruno Haible  <bruno@clisp.org>
69501
69502         Assume C89, so PARAMS isn't needed.
69503         * lib/unicodeio.h (PARAMS): Remove.
69504         * lib/unicodeio.c: Don't use PARAMS.
69505
69506 2003-06-18  Karl Berry  <karl@gnu.org>
69507
69508         * config/config.{guess,sub}: update from prep.
69509
69510 2003-06-18  Jim Meyering  <jim@meyering.net>
69511
69512         Merge changes from coreutils.
69513         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69514         Remove explicit declarations of xmalloc and realloc.
69515         Include xalloc.h.
69516         (read_utmp): Remove anachronistic cast of xmalloc.
69517
69518 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69519
69520         Assume C89, so PARAMS isn't needed.
69521         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69522         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69523         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69524         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69525         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69526         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69527         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69528         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69529         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69530         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69531         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69532         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69533         no longer needed. Anyway, config.h should always be included before any
69534         other file.
69535
69536 2003-06-11  Simon Josefsson  <jas@extundo.com>
69537
69538         * modules/sysexits: New file.
69539         * MODULES.html.sh (func_all_modules): Add sysexits.
69540
69541 2003-06-11  Simon Josefsson  <jas@extundo.com>
69542
69543         * lib/sysexit_.h: New file.
69544
69545 2003-06-11  Derek Price  <derek@ximbiot.com>
69546
69547         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69548         necessary.
69549
69550 2003-06-11  Bruno Haible  <bruno@clisp.org>
69551
69552         * m4/sysexits.m4: New file.
69553
69554 2003-06-10  Simon Josefsson  <jas@extundo.com>
69555
69556         * lib/argp.h: New file, from glibc.
69557         * lib/argp-ba.c: New file, from glibc.
69558         * lib/argp-eexst.c: New file, from glibc.
69559         * lib/argp-fmtstream.c: New file, from glibc.
69560         * lib/argp-fmtstream.h: New file, from glibc.
69561         * lib/argp-fs-xinl.c: New file, from glibc.
69562         * lib/argp-help.c: New file, from glibc.
69563         * lib/argp-namefrob.h: New file, from glibc.
69564         * lib/argp-parse.c: New file, from glibc.
69565         * lib/argp-pv.c: New file, from glibc.
69566         * lib/argp-pvh.c: New file, from glibc.
69567         * lib/argp-xinl.c: New file, from glibc.
69568
69569 2003-06-10  Simon Josefsson  <jas@extundo.com>
69570
69571         * modules/strchrnul: New file.
69572
69573 2003-06-10  Simon Josefsson  <jas@extundo.com>
69574
69575         * modules/argp: New file.
69576
69577 2003-06-10  Simon Josefsson  <jas@extundo.com>
69578
69579         * m4/strchrnul.m4: New file.
69580
69581 2003-06-10  Simon Josefsson  <jas@extundo.com>
69582
69583         * lib/strchrnul.h: New file.
69584         * lib/strchrnul.c: New file.
69585
69586 2003-06-10  Bruno Haible  <bruno@clisp.org>
69587
69588         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69589
69590 2003-06-07  Karl Berry  <karl@gnu.org>
69591
69592         * config/config.{guess,sub}: update from prep.
69593
69594 2003-06-07  Jim Meyering  <jim@meyering.net>
69595
69596         * modules/strtod: Use $(...) notation, not @...@ for
69597         AC_REPLACE'd variables.
69598         * modules/localcharset: Likewise.
69599
69600 2003-06-07  Jim Meyering  <jim@meyering.net>
69601
69602         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69603         in place of my name in the copyright comment.
69604         Remove definition and uses of __P.
69605
69606         From coreutils.
69607         * lib/stat.c: Don't declare xmalloc explicitly.
69608         Instead, include "xalloc.h".
69609         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69610         xrealloc, and xcalloc return values.
69611         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69612         Improve comment.
69613         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69614
69615 2003-06-07  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69618         avoid AC_CONFIG_LINKS.
69619         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69620         fnmatch.h, to avoid AC_CONFIG_LINKS.
69621         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69622
69623 2003-06-07  Bruno Haible  <bruno@clisp.org>
69624
69625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69626         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69627         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69628         directory.
69629         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69631         directory.
69632
69633 2003-06-06  Jim Meyering  <jim@meyering.net>
69634
69635         Merge from coreutils.
69636         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69637         Consolidate declarations and initializations of *_base* locals.
69638
69639         Merge from coreutils.
69640         This avoids a core dump on systems without GNU putenv,
69641         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69642         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69643         (unsetenv): New static function, from GNU libc.
69644         (rpl_putenv): Use it.
69645
69646         * lib/modechange.c: Remove trailing blanks.
69647
69648         Merge from coreutils.
69649         * lib/fsusage.c: Remove declaration of statfs.
69650         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69651
69652         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69653
69654 2003-06-06  Jim Meyering  <jim@meyering.net>
69655
69656         * lib/stdbool_.h: Renamed from stdbool.h.in.
69657
69658 2003-06-06  Jim Meyering  <jim@meyering.net>
69659             Bruno Haible  <bruno@clisp.org>
69660
69661         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69662         Adjust Makefile.am snippet not to redirect directly to target.
69663         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69664
69665 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69666
69667         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69668         mismatch, look in future quarters as well as past.  This fixes a
69669         bug when processing fall-backwards gaps immediately after a long
69670         period of daylight-saving time.
69671
69672         * lib/mktime.c: Assume freestanding C89 or better.
69673         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69674         (__P): Remove; not used.
69675         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69676         (mktime, not_equal_tm, print_tm, check_result,
69677         main): Use prototypes.  Use const * where appropriate.
69678         (main): Fix typo in testing code that uncovered by above changes.
69679         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69680
69681 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69682
69683         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69684         locale.h, localeconv.  This merges changes from coreutils.
69685
69686         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69687         It can be removed after the next Autoconf is released.
69688         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69689         needed.
69690
69691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69692
69693         * lib/mktime.c: Fix Debian bug 177940
69694         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69695         (localtime_offset): Now long int, not time_t, because we want it
69696         to be guaranteed to be signed.  All uses changed.
69697         (__mktime_internal): If overflow would occur when adding offset,
69698         don't add it.
69699
69700         Merge 'human' changes from coreutils.  Rewrite to support
69701         locale-specific notations like thousands separators.
69702         * lib/human.c: Simplify authorship notice.
69703         Include human.h immediately after config.h.
69704         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69705         <limits.h>: Do not include, since human.h does.
69706         (SIZE_MAX, UINTMAX_MAX): New macros.
69707         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69708         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69709         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69710         (power_letter): Renamed from suffixes.
69711         (generate_suffix_backwards): Remove.
69712         (adjust_value): Now takes int style (because of human.h changes)
69713         and long double value (for greater precision on some platforms).
69714         (group_number): New function.
69715         (human_readable): Use it.  Use integer options, not enum.
69716         Put the options before the sizes in the arg list.
69717         Support all the new options.
69718         The old human_readable function has been removed;
69719         use inttostr.h instead.
69720         (human_readable, default_block_size, humblock):
69721         Use uintmax_t, not int, for block sizes.
69722         (human_readable_inexact, block_size_types): Remove.
69723         (block_size_opts): New constant.
69724         (human_options): Renamed from human_block_size, with new signature
69725         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69726         * lib/human.h: Add copyright and authorship notice.
69727         Include <limits.h> and <stdbool.h> unconditionally.
69728         (PARAMS): Remove.  All uses removed.
69729         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69730         (enum human_inexact_style): Remove tag; now a nameless enum.
69731         (human_floor, human_ceiling, human_round_to_even): Now have
69732         values 2, 0, 1 rather than -1, 1, 0.
69733         (human_group_digits, human_suppress_point_zero, human_autoscale,
69734         human_base_1024, human_SI, human_B): New constants.
69735         (human_readable_inexact, human_block_size): Remove.
69736         (human_readable): Size args are now uintmax_t, not int.
69737         (human_options): New decl.
69738
69739         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69740         unnecessary now that we assume C89 or better.  This change
69741         imported from coreutils.
69742
69743         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69744         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69745         in the 2003-05-30 sync from glibc.
69746
69747         .h files should stand alone, but we shouldn't include <sys/types.h>
69748         if we can get away with just <stddef.h>.
69749
69750         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69751         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69752         rather than <sys/types.h>, as we merely need size_t.
69753         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69754         to get size_t.
69755         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69756         Include <stdio.h>, to get FILE.
69757         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69758         memcasecmp.h has included <stddef.h> and all we need is size_t.
69759         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69760         our interface, instead of including <sys/types.h>
69761
69762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69763
69764         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69765         now, as glibc mktime is buggy on non-glibc systems.
69766
69767 2003-06-03  Karl Berry  <karl@gnu.org>
69768
69769         * config/config.sub: update from prep.
69770
69771 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69772
69773         [from coreutils]
69774         Fix some minor time-related bugs with POSIX time arguments.
69775         Some valid time stamps were being rejected (notably -1, and
69776         time stamps before 1900 on 64-bit hosts).  And some invalid
69777         time stamps were being accepted, e.g. September 31.
69778
69779         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69780         that we can return (time_t) -1 successfully.
69781         * lib/posixtm.c: Likewise.
69782         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69783         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69784         (t): Remove static var.
69785         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69786         of static var.  All uses changed.
69787         (year): Do not reject years before 1900; they can occur with
69788         64-bit time_t.
69789         (posix_time_parse): Do not check for out-of-range components;
69790         that is now the caller's responsibility, since our checks were
69791         only approximations.
69792         (posixtime): Use mktime to check for out-of-range components,
69793         since it knows them exactly.
69794         If mktime returns (time_t) -1, check whether an error actually occurred
69795         by invoking localtime on -1.
69796         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69797         posixtime failures better.
69798         Improve the test data (in comments only).
69799
69800 2003-06-02  Karl Berry  <karl@gnu.org>
69801
69802         * config/mkinstalldirs (version): new variable.
69803         (--version): new option.
69804         (usage): improve message.
69805
69806 2003-05-30  Karl Berry  <karl@gnu.org>
69807
69808         * lib/mktime.c: update from libc.
69809
69810 2003-05-30  Bruno Haible  <bruno@clisp.org>
69811
69812         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69813         * config/config.rpath: Upgrade to gettext-0.12.1.
69814
69815 2003-05-30  Bruno Haible  <bruno@clisp.org>
69816
69817         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69818         * m4/nls.m4: New file, from gettext-0.12.1.
69819         * m4/po.m4: New file, from gettext-0.12.1.
69820         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69821
69822 2003-05-30  Bruno Haible  <bruno@clisp.org>
69823
69824         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69825         * lib/localcharset.h: Likewise.
69826         * lib/localcharset.c: Likewise.
69827
69828 2003-05-29  Karl Berry  <karl@gnu.org>
69829
69830         * config/config.rpath: update from gettext.
69831
69832 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69833
69834         Assume the headers required for C89 freestanding compilers.
69835         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69836         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69837         * m4/human.m4 (gl_HUMAN): Likewise.
69838         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69839         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69840         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69841         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69843         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69844
69845 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69846
69847         Assume the headers required for C89 freestanding compilers.
69848         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69849         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69850         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69851         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69852         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69853         define, since <limits.h> is guaranteed to do that.
69854         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69855         * lib/exclude.c: Include <stdbool.h> unconditionally.
69856         * lib/tempname.c: Include <stddef.h> unconditionally.
69857         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69858         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69859         <stddef.h> does that.
69860         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69861         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69862         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69863         needed.
69864         * lib/xstrtol.c: Likewise.
69865         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69866         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69867
69868         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69869         warnings on some platforms.
69870
69871         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69872         arbitrarily.
69873
69874 2003-05-26  Jim Meyering  <jim@meyering.net>
69875
69876         Merge in a change from coreutils:
69877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69878         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69879         that condition, rather than `-1' which is slightly misleading.
69880         Change the name of the cache variable to have the gl_ prefix.
69881         Prompted by a patch from Richard Dawe for DJGPP.
69882
69883 2003-05-24  Karl Berry  <karl@gnu.org>
69884
69885         * config/config.guess: update from prep.
69886
69887 2003-05-22  Karl Berry  <karl@gnu.org>
69888
69889         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69890
69891 2003-05-20  Karl Berry  <karl@gnu.org>
69892
69893         * config/config.guess: update from prep.
69894
69895 2003-05-18  Karl Berry  <karl@gnu.org>
69896
69897         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69898         might actually be set by the user.
69899
69900         * config/depcomp, install-sh, mdate-sh: update from automake.
69901
69902 2003-05-17  Bruno Haible  <bruno@clisp.org>
69903
69904         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69905         invalid expansion for AC_EGREP_CPP.
69906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69907         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69908         Suggested by Akim Demaille <akim@epita.fr> in
69909         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69910
69911 2003-05-12  Jim Meyering  <jim@meyering.net>
69912
69913         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69914         the space-padded-by-default conversion specifiers, %e, %k, %l.
69915
69916 2003-05-12  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69919         the string is longer than 4 KB.
69920
69921 2003-05-11  Karl Berry  <karl@gnu.org>
69922
69923         * config/config.{guess,sub}: update from prep.
69924
69925 2003-05-09  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/error: Add m4/strerror_r.m4 to file list.
69928
69929 2003-05-03  Bruno Haible  <bruno@clisp.org>
69930
69931         Upgrade to Unicode-4.0.
69932         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
69933         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
69934         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
69935         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
69936         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
69937         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
69938         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
69939         Change width of U+E0100..U+E01EF from 1 to 0.
69940
69941 2003-04-25  Jim Meyering  <jim@meyering.net>
69942
69943         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
69944         of type size_t, not int.
69945
69946 2003-04-25  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/copy-file.c: Include <stddef.h>, for size_t.
69949
69950 2003-04-21  Paul Eggert  <eggert@twinsun.com>
69951
69952         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
69953         code which expansion is under static control.  Patch imported from
69954         Akim Demaille's patch to Bison; see
69955         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
69956
69957 2003-04-14  Bruno Haible  <bruno@clisp.org>
69958
69959         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
69960
69961 2003-04-11  Jim Meyering  <jim@meyering.net>
69962
69963         Merge changes from Coreutils.
69964
69965         2003-03-22  Jim Meyering  <jim@meyering.net>
69966
69967         * lib/strftime.c (widen): Cast alloca return value to proper type.
69968
69969         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
69970
69971         From GNU libc.
69972         * lib/strftime.c (my_strftime): Handle very large width
69973         specifications for numeric values correctly.  Improve checks for
69974         overflow.
69975
69976         2003-01-19  Jim Meyering  <jim@meyering.net>
69977
69978         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69979         definitions.
69980         (nl_get_alt_digit) [! defined my_strftime]: Define.
69981         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69982         _nl_get_alt_digit and _nl_get_walt_digit.
69983
69984         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69985         libc. These changes have no effect outside of _LIBC.
69986
69987 2003-04-10  Bruno Haible  <bruno@clisp.org>
69988
69989         * modules/findprog: New file.
69990         * MODULES.html.sh (func_all_modules): Add it.
69991
69992 2003-04-10  Bruno Haible  <bruno@clisp.org>
69993
69994         * m4/findprog.m4: New file.
69995         * m4/eaccess.m4: New file.
69996
69997 2003-04-10  Bruno Haible  <bruno@clisp.org>
69998
69999         * lib/findprog.h: New file, from GNU gettext.
70000         * lib/findprog.c: New file, from GNU gettext.
70001
70002 2003-04-05  Jim Meyering  <jim@meyering.net>
70003
70004         Merge changes from Coreutils.
70005
70006         * lib/exclude.h (PARAMS): Remove definition and uses.
70007         * lib/exclude.c: Remove uses of `PARAMS'.
70008
70009         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
70010         Add test-cases for DOS filenames. Declare program_name.
70011         (main): Set up program_name.  Patch by Rich Dawe.
70012
70013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70014         error from mntctl.
70015         Use mntctl's return value to drive the entry-processing loop, since
70016         we can't rely on the value of the vmt_length member in the last
70017         entry.  On some systems doing so could result in exhausting
70018         virtual memory.  Based in part on a patch from Mike Jetzer.
70019
70020 2003-04-04  Bruno Haible  <bruno@clisp.org>
70021
70022         * modules/linebreak: New file.
70023         * MODULES.html.sh (func_all_modules): Add it.
70024
70025 2003-04-04  Bruno Haible  <bruno@clisp.org>
70026
70027         * m4/linebreak.m4: New file.
70028
70029 2003-04-04  Bruno Haible  <bruno@clisp.org>
70030
70031         * lib/linebreak.h: New file, from GNU gettext.
70032         * lib/linebreak.c: New file, from GNU gettext with slight
70033         modifications.
70034         * lib/lbrkprop.h: New file, from GNU gettext.
70035
70036 2003-04-03  Bruno Haible  <bruno@clisp.org>
70037
70038         * modules/utf8-ucs4: New file.
70039         * modules/utf16-ucs4: New file.
70040         * modules/ucs4-utf8: New file.
70041         * modules/ucs4-utf16: New file.
70042         * MODULES.html.sh (func_all_modules): Add them.
70043
70044 2003-04-03  Bruno Haible  <bruno@clisp.org>
70045
70046         * m4/utf-ucs4.m4: New file.
70047         * m4/ucs4-utf.m4: New file.
70048
70049 2003-04-03  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/utf8-ucs4.h: New file, from GNU gettext.
70052         * lib/utf16-ucs4.h: New file, from GNU gettext.
70053         * lib/ucs4-utf8.h: New file, from GNU gettext.
70054         * lib/ucs4-utf16.h: New file, from GNU gettext.
70055
70056 2003-04-02  Bruno Haible  <bruno@clisp.org>
70057
70058         * modules/binary-io: New file.
70059         * MODULES.html.sh (func_all_modules): Add it.
70060
70061 2003-04-02  Bruno Haible  <bruno@clisp.org>
70062
70063         * lib/binary-io.h: New file, from GNU gettext.
70064
70065 2003-04-01  Bruno Haible  <bruno@clisp.org>
70066
70067         * modules/pathname: New file.
70068         * MODULES.html.sh (func_all_modules): Add it.
70069
70070 2003-04-01  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/pathname.h: New file, from GNU gettext.
70073         * lib/concatpath.c: New file, from GNU gettext.
70074
70075 2003-03-30  Bruno Haible  <bruno@clisp.org>
70076
70077         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
70078
70079 2003-03-30  Bruno Haible  <bruno@clisp.org>
70080
70081         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
70082         function chown() doesn't exist.
70083
70084 2003-03-28  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/copy-file: New file.
70087         * MODULES.html.sh (func_all_modules): Add it.
70088
70089 2003-03-28  Bruno Haible  <bruno@clisp.org>
70090
70091         * m4/copy-file.m4: New file.
70092
70093 2003-03-28  Bruno Haible  <bruno@clisp.org>
70094
70095         * lib/copy-file.h: New file, from GNU gettext.
70096         * lib/copy-file.c: New file, from GNU gettext.
70097
70098 2003-03-18  Jim Meyering  <jim@meyering.net>
70099
70100         * lib/quote.c (quote_n): Fix typo in comment.
70101
70102 2003-03-18  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70105         checking.
70106         * m4/onceonly_2_57.m4: Likewise.
70107
70108 2003-03-17  Bruno Haible  <bruno@clisp.org>
70109
70110         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70111         (m4_quote): Remove macro.
70112         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70113
70114 2003-03-14  Jim Meyering  <jim@meyering.net>
70115
70116         Merge changes from Coreutils.
70117         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70118         to be const, in order to avoid warnings.
70119         (obstack_room): Likewise.
70120         (obstack_empty_p): Likewise.
70121
70122 2003-03-14  Bruno Haible  <bruno@clisp.org>
70123
70124         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70125         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70126
70127 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70128
70129         Merge changes from Bison.
70130         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70131         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70132         when compiling Bison 1.875's `bitset bset = obstack_alloc
70133         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70134         * lib/hash.c: Include <stdbool.h> unconditionally.
70135
70136 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70137
70138         * m4/onceonly.m4 (m4_quote): New macro.
70139         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70140         Quote AC_FOREACH variable-expansions properly.
70141
70142 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70143
70144         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70145
70146 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70147
70148         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70149         Reported by Bruce Becker; see:
70150         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70151
70152 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70153             Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70156         Reported by John Hughes, see
70157         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70158
70159 2003-02-20  Bruno Haible  <bruno@clisp.org>
70160
70161         * MODULES.html.sh (func_all_modules): Add poll.
70162
70163 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70164
70165         * modules/poll: New file.
70166
70167 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70168
70169         * lib/poll_.h: New file.
70170         * lib/poll.c: New file.
70171
70172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70173
70174         * m4/poll.m4: New file.
70175
70176 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70177
70178         * modules/mathl: New file.
70179
70180 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70181
70182         * lib/mathl.h: New file.
70183         * lib/acosl.c: New file.
70184         * lib/asinl.c: New file.
70185         * lib/atanl.c: New file.
70186         * lib/ceill.c: New file.
70187         * lib/cosl.c: New file.
70188         * lib/expl.c: New file.
70189         * lib/floorl.c: New file.
70190         * lib/frexpl.c: New file.
70191         * lib/ldexpl.c: New file.
70192         * lib/logl.c: New file.
70193         * lib/sincosl.c: New file.
70194         * lib/sinl.c: New file.
70195         * lib/sqrtl.c: New file.
70196         * lib/tanl.c: New file.
70197         * lib/trigl.c: New file.
70198         * lib/trigl.h: New file.
70199
70200 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70201
70202         * m4/mathl.m4: New file.
70203
70204 2003-02-18  Bruno Haible  <bruno@clisp.org>
70205
70206         * MODULES.html.sh (func_all_modules): Add mathl.
70207
70208 2003-02-17  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/mkdtemp: New module.
70211         * MODULES.html.sh (func_all_modules): Add it.
70212
70213 2003-02-17  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
70216
70217 2003-02-17  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/mkdtemp.h: New file, from GNU gettext.
70220         * lib/mkdtemp.c: New file, from GNU gettext.
70221
70222 2003-02-02  Jim Meyering  <jim@meyering.net>
70223
70224         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
70225         e.g. glibc-2.2.93.
70226
70227 2003-01-31  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
70230         'rpl_rename'.
70231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
70232         'rpl_strnlen'.
70233         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
70234         'rpl_strtod'.
70235         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
70236         'rpl_utime'.
70237
70238 2003-01-31  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/rename.c: #undef rename before defining rpl_rename.
70241         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
70242
70243 2003-01-30  Bruno Haible  <bruno@clisp.org>
70244
70245         * modules/vasnprintf, modules/vasprintf: New modules.
70246         * MODULES.html.sh (func_all_modules): Add them.
70247
70248 2003-01-30  Bruno Haible  <bruno@clisp.org>
70249
70250         * m4/signed.m4: New file, from GNU gettext.
70251         * m4/longdouble.m4: New file, from GNU gettext.
70252         * m4/wchar_t.m4: New file, from GNU gettext.
70253         * m4/wint_t.m4: New file, from GNU gettext.
70254         * m4/vasnprintf.m4: New file.
70255         * m4/vasprintf.m4: New file.
70256
70257 2003-01-30  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/printf-args.h: New file, from GNU gettext.
70260         * lib/printf-args.c: New file, from GNU gettext.
70261         * lib/printf-parse.h: New file, from GNU gettext.
70262         * lib/printf-parse.c: New file, from GNU gettext.
70263         * lib/vasnprintf.h: New file, from GNU gettext.
70264         * lib/vasnprintf.c: New file, from GNU gettext.
70265         * lib/asnprintf.c: New file, from GNU gettext.
70266         * lib/vasprintf.h: New file, from GNU gettext with modifications.
70267         * lib/vasprintf.c: New file, from GNU gettext.
70268         * lib/asprintf.c: New file, from GNU gettext.
70269
70270 2003-01-29  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/stpncpy: New module.
70273         * MODULES.html.sh (func_all_modules): Add it.
70274
70275 2003-01-29  Bruno Haible  <bruno@clisp.org>
70276
70277         * m4/stpncpy.m4: New file.
70278
70279 2003-01-29  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/stpncpy.h: New file, from GNU gettext with modifications.
70282         * lib/stpncpy.c: New file, from GNU gettext with modifications.
70283
70284 2003-01-28  Bruno Haible  <bruno@clisp.org>
70285
70286         * modules/c-ctype: New module.
70287         * MODULES.html.sh (func_all_modules): Add it.
70288
70289 2003-01-28  Bruno Haible  <bruno@clisp.org>
70290
70291         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
70292         Paul Eggert.
70293         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
70294         Paul Eggert.
70295
70296 2003-01-27  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/xsetenv: New module.
70299         * MODULES.html.sh (func_all_modules): Add it.
70300
70301 2003-01-27  Bruno Haible  <bruno@clisp.org>
70302
70303         * lib/xsetenv.h: New file, from GNU gettext.
70304         * lib/xsetenv.c: New file, from GNU gettext.
70305
70306 2003-01-23  Jim Meyering  <jim@meyering.net>
70307
70308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
70309         from working on systems without dirfd (at least Irix and OSF1/Tru64).
70310
70311 2003-01-23  Bruno Haible  <bruno@clisp.org>
70312
70313         * modules/minmax: New module.
70314         * MODULES.html.sh (func_all_modules): Add it.
70315
70316 2003-01-23  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
70319         Eggert.
70320
70321 2003-01-22  Bruno Haible  <bruno@clisp.org>
70322
70323         * modules/exit: New module.
70324         * MODULES.html.sh (func_all_modules): Add it.
70325
70326 2003-01-22  Bruno Haible  <bruno@clisp.org>
70327
70328         * lib/exit.h: New file, from GNU gettext.
70329
70330 2003-01-19  Bruno Haible  <bruno@clisp.org>
70331
70332         * gnulib-tool: Recognize option --extract-maintainer.
70333         (func_get_maintainer): New function.
70334         * modules/*: Add Maintainer entry.
70335
70336 2003-01-16  Jim Meyering  <jim@meyering.net>
70337
70338         * m4/regex.m4: The `regex' struct is both input and output.
70339         Initialize it before each use.  Patch by Tim Waugh.
70340
70341 2003-01-16  Bruno Haible  <bruno@clisp.org>
70342
70343         * MODULES.html.sh: Add a table of contents. Add the module name as
70344         leftmost column. Add hyperlinks.
70345
70346 2003-01-15  Bruno Haible  <bruno@clisp.org>
70347
70348         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
70349
70350 2003-01-15  Bruno Haible  <bruno@clisp.org>
70351
70352         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
70353         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
70354         suffix.
70355
70356 2003-01-15  Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
70359
70360 2003-01-15  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
70363         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
70364
70365 2003-01-14  Jim Meyering  <jim@meyering.net>
70366
70367         * lib/same.c (same_name): Tweak a comment.
70368
70369 2003-01-14  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
70372         when a string comparison is sufficient.
70373
70374 2003-01-14  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
70377         'unsigned int'.
70378
70379 2003-01-14  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/hash-pjw.c: Add comment about low quality of this function.
70382
70383 2003-01-13  Bruno Haible  <bruno@clisp.org>
70384
70385         * modules/stpcpy: Distribute lib/stpcpy.h.
70386         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
70387
70388 2003-01-13  Bruno Haible  <bruno@clisp.org>
70389
70390         * modules/*: Add a description.
70391         * modules/strpbrk: Fix Makefile.am snippet.
70392         * modules/strtoimax: Fix dependencies.
70393         * modules/strtoumax: Likewise.
70394
70395 2003-01-13  Bruno Haible  <bruno@clisp.org>
70396
70397         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
70398         * modules/alloca (Makefile.am): All object files depend on alloca.h.
70399         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
70400
70401 2003-01-13  Bruno Haible  <bruno@clisp.org>
70402
70403         * gnulib-tool (func_create_testdir): Store config/* files in the main
70404         directory.
70405         * config.rpath: Move to ...
70406         * config/config.rpath: ... here.
70407         * modules/gettext: Contains config/config.rpath, not config.rpath.
70408         * modules/iconv: Likewise.
70409
70410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70411
70412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70413         to avoid collisions with libcurses and libreadline.
70414
70415         * m4/getstr.m4: Remove.
70416         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
70417
70418 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70419
70420         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70421         to avoid collisions with libcurses and libreadline.
70422
70423         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
70424         * lib/getstr.h, getstr.c: Remove.
70425         * lib/getline.c: Include "getline.h", to check interface.
70426         Move body of old getstr.c here: this defines MIN_CHUNK and
70427         declares getdelim2, which is renamed from getstr.
70428         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
70429
70430         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
70431         All uses changed.
70432         * lib/linebuffer.h: Likewise.
70433         (readline): Remove backward-compatibility macro.
70434
70435 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70436
70437         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70438         to avoid collisions with libcurses and libreadline.
70439         * getstr: Remove.
70440         * MODULES.html.sh: Remove getstr.
70441         * modules/getline: Depend on unlocked-io, not getstr.
70442
70443 2003-01-12  Jim Meyering  <jim@meyering.net>
70444
70445         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
70446
70447 2003-01-10  Bruno Haible  <bruno@clisp.org>
70448
70449         * modules/alloca: Change Makefile.am requirements. Simplify Include
70450         requirements. Add lib/alloca_.h to file list.
70451
70452 2003-01-10  Bruno Haible  <bruno@clisp.org>
70453
70454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
70455
70456 2003-01-10  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/alloca_.h: New file.
70459         * lib/getdate.y: Unconditionally include alloca.h.
70460         * lib/makepath.c: Likewise.
70461         * lib/setenv.c: Likewise.
70462         * lib/userspec.c: Likewise.
70463
70464 2003-01-09  Karl Berry  <karl@gnu.org>
70465
70466         * MODULES.html.sh: include `dirname $0` in PATH, to find
70467         gnulib-tool.
70468
70469 2003-01-09  Bruno Haible  <bruno@clisp.org>
70470
70471         * modules/stdbool: Change configure.ac, Makefile.am requirements.
70472         Simplify Include requirements. Add lib/stdbool.h.in to file list.
70473
70474 2003-01-09  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
70477
70478 2003-01-09  Bruno Haible  <bruno@clisp.org>
70479
70480         * lib/stdbool.h.in: New file.
70481
70482 2003-01-09  Bruno Haible  <bruno@clisp.org>
70483
70484         * gnulib-tool (func_all_modules): Ignore files ending in ~.
70485         * MODULES.html.sh: Likewise.
70486
70487 2003-01-08  Jim Meyering  <jim@meyering.net>
70488
70489         * lib/full-write.c: Undefine and define-away `const' after inclusion
70490         of errno.h, not before.  Suggestion from Bruno Haible.
70491
70492 2003-01-08  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/full-read: Depend on full-write.
70495
70496 2003-01-08  Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/safe-read.c: Include specification header first, to ensure its
70499         selfcontainedness.
70500         * lib/full-write.c: Likewise.
70501
70502 2003-01-07  Jim Meyering  <jim@meyering.net>
70503
70504         * lib/full-write.c: Rework so that it may serve to define full_read,
70505         too.
70506         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70507
70508 2003-01-07  Bruno Haible  <bruno@clisp.org>
70509
70510         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70511         <inttypes.h>.
70512         * lib/xstrtol.h: Likewise.
70513         * lib/xstrtoimax.c: Likewise.
70514         * lib/xstrtoumax.c: Likewise.
70515         * lib/human.h: Likewise.
70516
70517         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70518         on systems that have <inttypes.h> but not <stdint.h>.
70519
70520 2003-01-07  Bruno Haible  <bruno@clisp.org>
70521
70522         * MODULES.html.sh: Add copyright notice.
70523         (missed_files): Omit CVS directory entries.
70524         (func_module): Make it work with sed-3.02.
70525         * MODULES.txt: Remove file.
70526
70527 2003-01-06  Jim Meyering  <jim@meyering.net>
70528
70529         * lib/version-etc.c: Update year in translatable copyright string.
70530
70531 2003-01-03  Karl Berry  <karl@gnu.org>
70532
70533         * config/config.{guess,sub}: update from prep.
70534
70535 2003-01-02  Karl Berry  <karl@gnu.org>
70536
70537         * doc/COPYING.DOC: belatedly updated to 1.2.
70538
70539 2003-01-01  Karl Berry  <karl@gnu.org>
70540
70541         * gnulib-tool (func_verify_module): report module name $module in
70542         error message, not $1.
70543         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70544         be created, only if it doesn't exist.
70545         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70546
70547 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70548
70549         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70550
70551 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70552
70553         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70554         memcmp if strcoll doesn't work.
70555
70556 2002-12-31  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70559         nonempty.
70560
70561 2002-12-31  Bruno Haible  <bruno@clisp.org>
70562
70563         * lib/memcoll.c (STRCOLL): New macro.
70564         (memcoll): Use it.
70565
70566 2002-12-31  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/localcharset.h: New file.
70569         * lib/localcharset.c: Include it.
70570         * lib/unicodeio.c: Likewise.
70571
70572 2002-12-31  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70575         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70576
70577 2002-12-31  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/getline.h: Include <stddef.h>, for size_t.
70580
70581         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70582         * lib/unicodeio.c: Don't include <stddef.h>.
70583
70584 2002-12-31  Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70587         HAVE_TM_ZONE.
70588
70589 2002-12-24  Karl Berry  <karl@gnu.org>
70590
70591         * config/config.guess: update from prep.
70592
70593 2002-12-24  Bruno Haible  <bruno@clisp.org>
70594
70595         General infrasructure.
70596         * m4/README: Rewritten.
70597         * m4/onceonly.m4: New file.
70598         * m4/onceonly_2_57.m4: New file.
70599
70600         Module atexit.
70601         * m4/atexit.m4: New file.
70602
70603         Module strtod.
70604         * m4/strtod.m4: New file.
70605
70606         Module strtol.
70607         * m4/strtol.m4: New file.
70608
70609         Module strtoul.
70610         * m4/strtoul.m4: New file.
70611
70612         Module memchr.
70613         * m4/memchr.m4: New file.
70614
70615         Module memcmp.
70616         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70617         (jm_FUNC_MEMCMP): Invoke it.
70618
70619         Module memcpy.
70620         * m4/memcpy.m4: New file.
70621
70622         Module memmove.
70623         * m4/memmove.m4: New file.
70624
70625         Module memset.
70626         * m4/memset.m4: New file.
70627
70628         Module strcspn.
70629         * m4/strcspn.m4: New file.
70630
70631         Module strpbrk.
70632         * m4/strpbrk.m4: New file.
70633
70634         Module strstr.
70635         * m4/strstr.m4: New file.
70636
70637         Module strerror.
70638         * m4/strerror.m4: New file.
70639
70640         Module mktime.
70641         * m4/mktime.m4: Renamed from jm-mktime.m4.
70642         (gl_PREREQ_MKTIME): New macro.
70643         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70644
70645         Module malloc.
70646         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70647         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70648         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70649
70650         Module realloc.
70651         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70652         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70653         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70654
70655         Module strftime.
70656         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70658         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70659         gl_TM_GMTOFF.
70660         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70661
70662         Module xalloc.
70663         * m4/xalloc.m4: New file.
70664
70665         Module alloca.
70666         * m4/alloca.m4: New file.
70667
70668         Module putenv.
70669         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70670         (jm_FUNC_PUTENV): Invoke it.
70671
70672         Module setenv.
70673         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70674         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70675         when invoked twice.
70676         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70677         gt_FUNC_SETENV.
70678
70679         Module memrchr.
70680         * m4/memrchr.m4: New file.
70681
70682         Module stpcpy.
70683         * m4/stpcpy.m4: New file.
70684
70685         Module strcase.
70686         * m4/strcase.m4: New file.
70687
70688         Module strdup.
70689         * m4/strdup.m4: New file.
70690
70691         Module strnlen.
70692         * m4/strnlen.m4: New file.
70693
70694         Module strndup.
70695         * m4/strndup.m4: New file.
70696
70697         Module xstrtod.
70698         * m4/xstrtod.m4: New file.
70699
70700         Module xstrtol.
70701         * m4/xstrtol.m4: New file.
70702
70703         Module getdate.
70704         * m4/getdate.m4: New file.
70705
70706         Module unlocked-io.
70707         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70708         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70709         * m4/jm-glibc-io.m4n: Remove file.
70710
70711         Module long-options.
70712         * m4/long-options.m4: New file.
70713
70714         Module md5.
70715         * m4/md5.m4: New file.
70716
70717         Module sha.
70718         * m4/sha.m4: New file.
70719
70720         Module getstr.
70721         * m4/getstr.m4: New file.
70722
70723         Module getline.
70724         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70725         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70726         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70727         simply getline. Infoke gl_PREREQ_GETLINE.
70728
70729         Module obstack.
70730         * m4/obstack.m4: New file.
70731
70732         Module hash.
70733         * m4/hash.m4: New file.
70734
70735         Module readtokens.
70736         * m4/readtokens.m4: New file.
70737
70738         Module strverscmp.
70739         * m4/strverscmp.m4: New file.
70740
70741         Module stdbool.
70742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70743         OSF/1.
70744
70745         Module strtoll.
70746         * m4/strtoll.m4: New file.
70747
70748         Module strtoull.
70749         * m4/strtoull.m4: New file.
70750
70751         Module strtoimax.
70752         * m4/strtoimax.m4: New file.
70753
70754         Module strtoumax.
70755         * m4/strtoumax.m4: New file.
70756
70757         Module xstrtoimax.
70758         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70759         jm_AC_PREREQ_XSTRTOIMAX.
70760         Moved the strtol prerequisites to strtol.m4.
70761         Moved the strtoll prerequisites to strtoll.m4.
70762         Moved the strtoimax prerequisites to strtoimax.m4.
70763
70764         Module xstrtoumax.
70765         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70766         jm_AC_PREREQ_XSTRTOUMAX.
70767         Moved the strtoul prerequisites to strtoul.m4.
70768         Moved the strtoull prerequisites to strtoull.m4.
70769         Moved the strtoumax prerequisites to strtoumax.m4.
70770
70771         Module chown.
70772         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70773         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70774
70775         Module dup2.
70776         * m4/dup2.m4: New file.
70777
70778         Module ftruncate.
70779         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70780         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70781
70782         Module getgroups.
70783         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70784         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70785
70786         Module gettimeofday.
70787         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70788         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70789         gl_PREREQ_GETTIMEOFDAY.
70790
70791         Module mkdir.
70792         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70793         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70794
70795         Module mkstemp.
70796         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70797         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70798         jm_AC_TYPE_UINTMAX_T.
70799         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70800
70801         Module stat.
70802         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70803         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70804
70805         Module lstat.
70806         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70807         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70808
70809         Module timespec.
70810         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70811         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70812         * m4/st_mtim.m4: Indentation.
70813
70814         Module nanosleep.
70815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70816         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70817         gl_PREREQ_NANOSLEEP.
70818
70819         Module regex.
70820         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70821         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70822         (gl_REGEX): New macro.
70823
70824         Module rename.
70825         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70826         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70827
70828         Module rmdir.
70829         * m4/rmdir.m4: New file.
70830
70831         Module utime.
70832         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70833         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70834         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70835
70836         Module dirname.
70837         * m4/dirname.m4: New file.
70838
70839         Module getopt.
70840         * m4/getopt.m4: New file.
70841
70842         Module unistd-safer.
70843         * m4/unistd-safer.m4: New file.
70844
70845         Module fnmatch.
70846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70847         declaration.
70848         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70849         (gl_FUNC_FNMATCH_POSIX): New macro.
70850         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70851         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70852         simply fnmatch.
70853
70854         Module exclude.
70855         * m4/exclude.m4: New file.
70856
70857         Module human.
70858         * m4/human.m4: New file.
70859
70860         Module acl.
70861         * m4/acl.m4: Nop.
70862
70863         Module backupfile.
70864         * m4/backupfile.m4: New file.
70865         * m4/d-ino.m4: Indentation.
70866
70867         Module fsusage.
70868         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70869         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70870         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70871
70872         Module dirfd.
70873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70874         requirements.
70875
70876         Module euidaccess.
70877         * m4/euidaccess.m4: New file.
70878
70879         Module file-type.
70880         * m4/file-type.m4: New file.
70881
70882         Module fileblocks.
70883         * m4/fileblocks.m4: New file.
70884
70885         Module filemode.
70886         * m4/filemode.m4: New file.
70887
70888         Module isdir.
70889         * m4/isdir.m4: New file.
70890
70891         Module lchown.
70892         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70893         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70894
70895         Module makepath.
70896         * m4/makepath.m4: New file.
70897
70898         Module modechange.
70899         * m4/modechange.m4: New file.
70900
70901         Module mountlist.
70902         * m4/mountlist.m4: New file.
70903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70904         Indentation.
70905
70906         Module path-concat.
70907         * m4/path-concat.m4: New file.
70908
70909         Module pathmax.
70910         * m4/pathmax.m4: New file.
70911
70912         Module same.
70913         * m4/same.m4: New file.
70914
70915         Module save-cwd.
70916         * m4/save-cwd.m4: New file.
70917
70918         Module savedir.
70919         * m4/savedir.m4: New file.
70920
70921         Module xgetcwd.
70922         * m4/xgetcwd.m4: New file.
70923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70924
70925         Module xreadlink.
70926         * m4/xreadlink.m4: New file.
70927
70928         Module safe-read.
70929         * m4/safe-read.m4: New file.
70930
70931         Module safe-write.
70932         * m4/safe-write.m4: New file.
70933
70934         Module closeout.
70935         * m4/closeout.m4: New file.
70936
70937         Module stdio-safer.
70938         * m4/stdio-safer.m4: New file.
70939
70940         Module getpass.
70941         * m4/getpass.m4: New file.
70942
70943         Module getugroups.
70944         * m4/getugroups.m4: New file.
70945
70946         Module group-member.
70947         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
70948         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
70949
70950         Module idcache.
70951         * m4/idcache.m4: New file.
70952
70953         Module userspec.
70954         * m4/userspec.m4: New file.
70955
70956         Module gettime.
70957         * m4/clock_time.m4: New file.
70958         * m4/gettime.m4: New file.
70959
70960         Module settime.
70961         * m4/settime.m4: New file.
70962
70963         Module posixtm.
70964         * m4/posixtm.m4: New file.
70965
70966         Module gethostname.
70967         * m4/gethostname.m4: New file.
70968
70969         Module canon-host.
70970         * m4/canon-host.m4: New file.
70971
70972         Module gettext.
70973         * m4/codeset.m4: New file, from gettext-0.11.5.
70974         * m4/gettext.m4: New file, from gettext-0.11.5.
70975         * m4/glibc21.m4: New file, from gettext-0.11.5.
70976         * m4/iconv.m4: New file, from gettext-0.11.5.
70977         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70978         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70979         * m4/inttypes.m4: New file, from gettext-0.11.5.
70980         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70981         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70982         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70983         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70984         * m4/lib-link.m4: New file, from gettext-0.11.5.
70985         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70986         * m4/progtest.m4: New file, from gettext-0.11.5.
70987         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70988         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70989         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70990
70991         Module localcharset.
70992         * m4/localcharset.m4: New file.
70993
70994         Module hard-locale.
70995         * m4/hard-locale.m4: New file.
70996
70997         Module mbswidth.
70998         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70999         onceonly macros.
71000         * m4/mbrtowc.m4: Add comment.
71001
71002         Module memcasecmp.
71003         * m4/memcasecmp.m4: New file.
71004
71005         Module memcoll.
71006         * m4/memcoll.m4: New file.
71007
71008         Module unicodeio.
71009         * m4/unicodeio.m4: New file.
71010
71011         Module rpmatch.
71012         * m4/rpmatch.m4: New file.
71013
71014         Module yesno.
71015         * m4/yesno.m4: New file.
71016
71017         Module exitfail.
71018         * m4/exitfail.m4: New file.
71019
71020         Module c-stack.
71021         * m4/c-stack.m4 (gl_C_STACK): New macro.
71022         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
71023
71024         Module error.
71025         * m4/error.m4 (gl_ERROR): New macro.
71026         (jm_PREREQ_ERROR): Use onceonly macros.
71027
71028         Module fatal.
71029         * m4/fatal.m4: New file.
71030
71031         Module getloadavg.
71032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
71033         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
71034
71035         Module getpagesize.
71036         * m4/getpagesize.m4: New file.
71037
71038         Module getusershell.
71039         * m4/getusershell.m4: New file.
71040
71041         Module physmem.
71042         * m4/physmem.m4: New file.
71043
71044         Module posixver.
71045         * m4/posixver.m4: New file.
71046
71047         Module quotearg.
71048         * m4/quotearg.m4: New file.
71049
71050         Module quote.
71051         * m4/quote.m4: New file.
71052
71053         Module readutmp.
71054         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
71055
71056         Module sig2str.
71057         * m4/sig2str.m4: New file.
71058
71059         Other.
71060         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
71061         ulonglong.m4.
71062         * m4/intmax_t.m4: New file.
71063         * m4/d-type.m4: Indentation.
71064         * m4/jm-macros.m4: Update.
71065         * m4/prereq.m4 (jm_PREREQ): Update.
71066         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
71067         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
71068         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
71069         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
71070         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
71071         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
71072         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
71073         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
71074         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
71075         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
71076         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
71077         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
71078         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
71079         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
71080         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
71081         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
71082         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
71083         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
71084         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
71085
71086 2002-12-24  Bruno Haible  <bruno@clisp.org>
71087
71088         * MODULES.txt: Update according to m4/ changes.
71089
71090         Module gettext.
71091         * config.rpath: New file, from gettext-0.11.5.
71092
71093         * modules/*: New module descriptions.
71094         * gnulib-tool: New file.
71095         * MODULES.html.sh: New file.
71096
71097 2002-12-21  Karl Berry  <karl@gnu.org>
71098
71099         * doc/fdl.texi: update to version 1.2.
71100
71101 2002-12-19  Karl Berry  <karl@gnu.org>
71102
71103         * config/config.guess: update from prep.
71104
71105 2002-12-18  Bruno Haible  <bruno@clisp.org>
71106
71107         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71108         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71109
71110 2002-12-17  Bruno Haible  <bruno@clisp.org>
71111
71112         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71113         stdlib.h, string.h.
71114
71115 2002-12-17  Bruno Haible  <bruno@clisp.org>
71116
71117         * lib/canon-host.c (strdup): Remove unused declaration.
71118
71119         * lib/fsusage.c: Include full_read.h.
71120         (get_fs_usage): Use full_read instead of safe_read.
71121
71122         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71123
71124 2002-12-12  Karl Berry  <karl@gnu.org>
71125
71126         * config/config.guess: update from prep.
71127
71128 2002-12-11  Bruno Haible  <bruno@clisp.org>
71129
71130         * m4/setenv.m4: New file, from gettext-0.11.5.
71131
71132 2002-12-11  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71135         not unsetenv().
71136         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71137         modifications:
71138
71139         2002-12-11  Bruno Haible  <bruno@clisp.org>
71140
71141                 * setenv.c (alloca): Fall back to malloc.
71142                 (freea): New macro.
71143                 (setenv): Use freea() to free memory allocated with alloca().
71144
71145         2002-11-13  Bruno Haible  <bruno@clisp.org>
71146
71147                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71148                 function declarations.
71149                 * unsetenv.c (unsetenv): Likewise.
71150
71151         2002-03-04  Bruno Haible  <bruno@clisp.org>
71152
71153                 Portability to AIX 4.3.3.
71154                 * unsetenv.c: New file, extracted from setenv.c.
71155                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71156
71157         2001-12-20  Bruno Haible  <bruno@clisp.org>
71158
71159                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71160                 use malloc instead. For SunOS 4.
71161
71162         2001-12-11  Bruno Haible  <bruno@clisp.org>
71163
71164                 * setenv.c: Declare alloca.
71165                 (compar_fn_t): New typedef.
71166                 (KNOWN_VALUE, STORE_VALUE): Use it.
71167
71168         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71169         setenv.h.
71170
71171 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71172
71173         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71174         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71175         Choose values that are less likely to collide with system fnmatch
71176         options.
71177         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
71178         defined (e.g., a pure POSIX system).
71179         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
71180         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
71181
71182 2002-12-06  Paul Eggert  <eggert@twinsun.com>
71183
71184         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
71185         a pain in practice to deal with generated m4 files.  This change
71186         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
71187
71188         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
71189         and jm-glibc-io.m4, as they are no longer a special case.
71190         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
71191         kludge and the auto-generation stuff.  Check only whether the
71192         functions are declared, not whether they exist, since older hosts
71193         that don't declare the functions can't use the optimization anyway.
71194
71195 2002-12-06  Jim Meyering  <jim@meyering.net>
71196
71197         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
71198
71199         Merge in changes from libc's misc/error.c, in preparation
71200         for the merge of gnulib's changes back into libc.
71201
71202         * lib/error.c (_): Define only if not already defined.
71203         Move definition to follow all #include directives.
71204         Include unlocked-io.h only if !_LIBC.
71205         [_LIBC]: Include <libio/libioP.h>.
71206         [USE_IN_LIBIO]: Include <libio/iolibio.h>
71207         (fflush): Tweak definition to use INTUSE.
71208         (putc): Define.
71209
71210 2002-12-05  Paul Eggert  <eggert@twinsun.com>
71211
71212         * lib/alloca.c [defined emacs]: Include "lisp.h".
71213         (xalloc_die) [defined emacs]: New macro.
71214         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
71215         [! defined emacs]: Include <xalloc.h>.
71216         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
71217         (pointer): Typedef to POINTER_TYPE *.
71218         (malloc): Remove decl; we now always use xmalloc.
71219         (alloca): Use old-style definition, since Emacs needs this.
71220         Check for arithmetic overflow when computing combined size.
71221
71222 2002-12-04  Paul Eggert  <eggert@twinsun.com>
71223
71224         Do not generate unlocked-io.h automatically, since it's easier to
71225         maintain it by hand.
71226
71227         * lib/unlocked-io.h: New file, from GNU diffutils,
71228         but with proper copyright notice and attribution.
71229         * lib/gen-uio: Remove.
71230         * lib/Makefile.am: Add copyright notice.
71231         (libfetish_a_SOURCES): Add unlocked-io.h.
71232         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
71233         (DISTCLEANFILES, io_functions): Remove macros.
71234         (EXTRA_DIST): Remove gen_uio.
71235         (unlocked-io.h): Remove rule.
71236
71237 2002-12-04  Jim Meyering  <jim@meyering.net>
71238
71239         Reflect the fact that stat.c and lstat.c are no longer generated.
71240         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
71241         (DISTCLEANFILES): Likewise.
71242         (EXTRA_DIST): Likewise.
71243         (all_local): Don't depend on stat.c or lstat.c.
71244         (stat.c, lstat.c): Remove rules.
71245         (EXTRA_DIST): Remove xstat.in.
71246
71247         * lib/xstat.in: Remove file.  Contents moved into stat.c.
71248         * lib/stat.c: New file.  Contents mostly from xstat.in.
71249         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
71250         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
71251
71252         * lib/safe-read.c: Rework so that it may serve to define safe_write,
71253         too.
71254         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
71255
71256 2002-12-03  Jim Meyering  <jim@meyering.net>
71257
71258         * lib/safe-read.c, safe-write.c: Change variable names and comments,
71259         but not semantics, to minimize the differences between these two files.
71260         (safe_read): Change comment to mention SAFE_READ_ERROR.
71261
71262         * lib/safe-read.c (IS_EINTR): Define.
71263         (safe_read): Use IS_EINTR in place of in-function cpp directives.
71264
71265 2002-12-02  Jim Meyering  <jim@meyering.net>
71266
71267         * lib/safe-read.c (EINTR): Define.
71268         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71269         (INT_MAX): Provide fallback.
71270         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
71271
71272         * lib/safe-read.h (SAFE_READ_ERROR): Define.
71273
71274 2002-12-02  Bruno Haible  <bruno@clisp.org>
71275
71276         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
71277         Define, taken from safe-read.c.
71278         (INT_MAX): Provide fallback.
71279         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
71280         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
71281
71282         * lib/safe-read.c (EINTR): Remove definition.
71283         (safe_read): Don't use EINTR if it is absent.
71284
71285 2002-12-01  Jim Meyering  <jim@meyering.net>
71286
71287         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
71288         zero.
71289         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
71290
71291 2002-11-27  Paul Eggert  <eggert@twinsun.com>
71292
71293         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
71294         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
71295         with `if (! (value < limit)) abort ();', for readability.
71296
71297 2002-11-26  Karl Berry  <karl@gnu.org>
71298
71299         * lib/strdup.c: copy from libc again, with jim's ok.
71300         * lib/.cppi-disable: re-add strdup.c
71301
71302 2002-11-25  Karl Berry  <karl@gnu.org>
71303
71304         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
71305         instead of "strtol.c".
71306
71307 2002-11-25  Karl Berry  <karl@gnu.org>
71308
71309         * config/install-sh: update from automake for variable quoting, $0 in
71310         error msgs, etc.
71311
71312         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
71313         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
71314         entry.
71315
71316 2002-11-25  Jim Meyering  <jim@meyering.net>
71317
71318         * lib/mktime.c: Sync from libc, now that it has the latest fix.
71319
71320 2002-11-24  Karl Berry  <karl@gnu.org>
71321
71322         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
71323         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
71324
71325 2002-11-24  Jim Meyering  <jim@meyering.net>
71326
71327         Update from coreutils:
71328
71329         * lib/mktime.c: Merge in changes from libc.
71330
71331         Avoid a link-time failure on some Linux systems.
71332         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
71333         (otherwise).
71334         (__mon_yday): Declare with the STATIC attribute.
71335         (__mktime_internal): Likewise.
71336         Based on a report from Greg Schafer.
71337
71338 2002-11-23  Jim Meyering  <jim@meyering.net>
71339
71340         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
71341         Use `unsigned', not `int', as type of index.
71342
71343         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
71344
71345         * lib/fsusage.c: Remove unneeded parentheses around operands of
71346         `defined'.
71347
71348 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71349
71350         * lib/quotearg.h: Allow multiple inclusion by surrounding with
71351         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
71352         so that we can be included first.
71353         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
71354         * lib/quotearg.c: Include quotearg.h immediately after config.h.
71355         No need to include stddef.h or sys/types.h any more.
71356         Surround local include files with "", not "<>".
71357         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
71358         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
71359         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
71360         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
71361         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
71362         (ISPRINT): Remove; no longer needed now that we assume C89.
71363
71364         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
71365         Preserve errno.
71366
71367         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
71368         quotearg_char): Use SIZE_MAX rather than
71369         (size_t) -1 when we are talking about "infinity".
71370
71371         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
71372
71373 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71374
71375         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
71376         hint that one should use `if (! x) abort ();' rather than `assert
71377         (x);', and anyway it's one less thing to worry about configuring.
71378         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
71379         hash_rehash, hash_insert): Use abort rather than assert.
71380
71381 2002-11-22  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/safe-read.h: Assume C89. Add comments.
71384         (safe_read): Change return type to size_t.
71385         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
71386         byte counts > SSIZE_MAX correctly.
71387         * lib/safe-write.h: New file.
71388         * lib/safe-write.c: New file.
71389         * lib/full-read.h: New file.
71390         * lib/full-read.c: New file.
71391         * lib/full-write.h: Assume C89. Add comments.
71392         * lib/full-write.c: Include safe-write.h.
71393         (full_write): Rewritten to use safe_write.
71394         Suggested by Jim Meyering and Paul Eggert.
71395
71396 2002-11-21  Jim Meyering  <jim@meyering.net>
71397
71398         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
71399
71400         Merge in changes from the coreutils.
71401
71402         2002-09-25  Paul Eggert  <eggert@twinsun.com>
71403         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
71404         <stdint.h>.
71405         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
71406         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
71407         int.  Work more efficiently if X is the same width as uintmax_t.
71408         Do not compare X to -1, to avoid bogus compiler warning.
71409         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
71410         Don't assume that f_frsize and f_bsize are the same type.
71411
71412         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
71413         warning on FreeBSD.
71414
71415         * lib/makepath.c (make_path): Restore umask *before* creating the final
71416         component.
71417         (make_path): Minor reformatting.
71418
71419         * lib/xmalloc.c: Adjust to work with new autoconf macros,
71420         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
71421         HAVE_MALLOC/HAVE_REALLOC.
71422
71423         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
71424         dummy ones.  At least on GNU/Linux systems, `auto' means something
71425         else.
71426         From Michael Stone.
71427
71428 2002-11-21  Bruno Haible  <bruno@clisp.org>
71429
71430         Remove case insensitive option matching.
71431         * lib/argmatch.h (argcasematch): Remove declaration.
71432         (ARGCASEMATCH): Remove macro.
71433         (__xargmatch_internal): Remove case_sensitive argument.
71434         (XARGMATCH): Update.
71435         (XARGCASEMATCH): Remove macro.
71436         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
71437         case_sensitive argument.
71438         (argcasematch): Remove function.
71439         (__xargmatch_internal): Remove case_sensitive argument.
71440         (main): Use XARGMATCH instead of XARGCASEMATCH.
71441
71442         * lib/xmalloc.c: Change compile-time error message. Add comment about
71443         required autoconf version.
71444
71445 2002-11-20  Paul Eggert  <eggert@twinsun.com>
71446
71447         Merge argmatch cleanups from Bison.  Assume C89.
71448
71449         * lib/argmatch.c: Include config.h here, not in argmatch.h.
71450         Include stdlib.h, for EXIT_FAILURE.
71451         Always include <string.h>, since we assume C89.
71452         (EXIT_FAILURE): Remove pre-C89 bug workaround.
71453         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
71454         Include <stddef.h> instead, since it's all we need for size_t.
71455         (PARAMS): Remove.  All uses removed.
71456         (ARRAY_CARDINALITY): Do not bother to #undef.
71457         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
71458         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71459         Remove unnecessary parentheses.
71460         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71461         Insert necessary parentheses.
71462         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
71463         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
71464
71465 2002-11-19  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
71468         * lib/mbswidth.h: Include <stddef.h>, for size_t.
71469
71470         * lib/mbswidth.h (PARAMS): Remove macro.
71471         (mbswidth, mbsnwidth): Use ANSI C function declarations.
71472         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
71473
71474         * lib/gcd.h (PARAMS): Remove macro.
71475         (gcd): Use ANSI C function declarations.
71476         * lib/gcd.c (gcd): Likewise.
71477
71478 2002-11-15  Bruno Haible  <bruno@clisp.org>
71479
71480         * lib/strcspn.c: Include <stddef.h>.
71481         (strcspn): Use ANSI C function declaration. Change return type to
71482         size_t. Use NULL.
71483         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
71484         (strpbrk): Use NULL.
71485         * lib/strpbrk.h (PARAMS): Remove macro.
71486         (strpbrk): Use ANSI C function declaration.
71487         * lib/strstr.c: Don't include <sys/types.h>.
71488         * lib/strstr.h (PARAMS): Remove macro.
71489         (strstr): Use ANSI C function declarations.
71490
71491 2002-11-14  Karl Berry  <karl@gnu.org>
71492
71493         * config/mkinstalldirs: `do' on separate line, instead of
71494         `for var; do'.
71495
71496 2002-11-06  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71499         * lib/gcd.c (gcd): Likewise.
71500
71501 2002-11-05  Bruno Haible  <bruno@clisp.org>
71502
71503         * lib/gcd.h: New file, from gettext-0.11.5.
71504         * lib/gcd.c: New file, from gettext-0.11.5.
71505
71506 2002-11-05  Bruno Haible  <bruno@clisp.org>
71507
71508         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71509         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71510         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71511         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71512
71513         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71514         <libintl.h>.
71515         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71516         <libintl.h>.
71517
71518         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71519         * lib/human.c: Include gettext.h instead of <libintl.h>.
71520         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71521         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71522         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71523         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71524         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71525         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71526         (textdomain): Remove definition.
71527         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71528
71529         * lib/long-options.c: Remove include of <libintl.h> and definition of
71530         _.
71531         * lib/same.c: Remove include of <libintl.h> and definition of _.
71532
71533 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71534
71535         * lib/config.charset: A few additions for Solaris.
71536
71537 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71538
71539         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71540         * lib/localcharset.c (locale_charset): Declare as extern "C".
71541
71542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71543
71544         * lib/config.charset: msdos in uk_UA uses CP1125.
71545
71546 2002-11-04  Bruno Haible  <bruno@clisp.org>
71547
71548         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71549         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71550         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71551         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71552         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71553
71554 2002-11-04  Bruno Haible  <bruno@clisp.org>
71555
71556         * lib/localcharset.c (locale_charset): Don't return an empty string.
71557
71558 2002-11-04  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71561         aliases.
71562
71563 2002-11-04  Bruno Haible  <bruno@clisp.org>
71564
71565         * lib/config.charset: Update for newest glibc. Add canonical names
71566         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71567
71568 2002-11-04  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/config.charset: Add support for NetBSD.
71571
71572 2002-11-04  Bruno Haible  <bruno@clisp.org>
71573
71574         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71575
71576 2002-11-01  Bruno Haible  <bruno@clisp.org>
71577
71578         * configure.in: Add AC_CONFIG_AUX_DIR call.
71579         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71580         test/Makefile.
71581         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71582
71583 2002-09-28  Karl Berry  <karl@gnu.org>
71584
71585         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71586         installed automake until the next release, since changes have been
71587         made.
71588
71589 2002-09-25  Karl Berry  <karl@gnu.org>
71590
71591         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71592         * lib/getopt*: copy from libc/posix.
71593         * lib/gettext.h: copy from gettext.
71594         * lib/.cppi-disable: add strdup.c, gettext.h.
71595
71596 2002-09-25  Karl Berry  <karl@gnu.org>
71597
71598         * config/srclist.txt: enable gettext.h check.
71599         * config/config.{guess,sub}: update from prep.
71600         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71601                 from automake 1.6.3.
71602         See srclist*.
71603
71604 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71605
71606         * regex.c (PATFETCH): Remove the translating fetch.
71607         (PATFETCH_RAW): Rename to PATFETCH.
71608         (set_image_of_range): New fun.
71609         (SET_RANGE_TABLE_WORK_AREA): Use it.
71610         (regex_compile): Don't translate the pattern chars so eagerly.
71611         Only do it when inserting an `exactn' bytecode or when handling
71612         a char-range.
71613         (mutually_exclusive_p): Avoid empty statement.
71614
71615 2002-07-06  Jim Meyering  <meyering@lucent.com>
71616
71617         * m4/README: Don't mention Makefile.am.in.
71618         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71619
71620 2002-07-01  Jim Meyering  <meyering@lucent.com>
71621
71622         * lib/c-stack.c: Include sys/time.h.
71623         From Volker Borchert.
71624
71625 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71626
71627         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71628
71629 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71630
71631         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71632         New macro.  Use it uniformly instead of
71633         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71634         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71635         reported by Vin Shelton.
71636
71637 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71638
71639         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71640         Do not assume SA_SIGINFO behavior.
71641         Bug reported by Jim Meyering on NetBSD 1.5.2.
71642
71643 2002-06-22  Jim Meyering  <meyering@lucent.com>
71644
71645         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71647
71648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71649         now that configure.ac uses AC_GNU_SOURCE.
71650         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71651         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71652
71653         Update to latest tools.  Suggestions from Paul Eggert.
71654         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71655         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71656         * m4/fnmatch.m4: Likewise.
71657         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71658         to AC_HEADER_STDBOOL
71659
71660 2002-06-22  Jim Meyering  <meyering@lucent.com>
71661
71662         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71663         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71664
71665 2002-06-22  Jim Meyering  <meyering@lucent.com>
71666
71667         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71668
71669         * lib/exitfail.c, exitfail.h: Likewise.
71670         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71671
71672         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71673         of fnmatch.h.
71674         (EXTRA_DIST): Add fnmatch_loop.c.
71675         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71676
71677         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71678         * lib/fnmatch.c: Update from diffutils-2.8.2.
71679         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71680         * lib/fnmatch.h: Remove file.
71681
71682 2002-06-21  Jim Meyering  <meyering@lucent.com>
71683
71684         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71685         * m4/mbrtowc.m4: Likewise.
71686
71687         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71688         * m4/mbswidth.m4: Reflect name change:
71689         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71691
71692         * m4/lib-link.m4: Update from gettext-0.11.2.
71693         * m4/gettext.m4: Likewise.
71694
71695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71696         From Alfred M. Szmidt.
71697
71698 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71699
71700         * lib/file-type.h: Report an error if neither S_ISREG nor
71701         S_IFREG is defined, instead of using a test specific to glibc
71702         2.2.  This should be safe, since POSIX requires S_ISREG and
71703         Unix Version 7 had S_IFREG.  We don't need to check for
71704         <sys/types.h> since we don't use any symbols that it defines.
71705
71706 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71707
71708         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71709         $@-t, so that each temporary file name is unique and valid in the first
71710         8 characters, for operation under DOS.
71711
71712 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71713
71714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71715
71716 2002-06-15  Jim Meyering  <meyering@lucent.com>
71717
71718         Work even with DJGPP 2.03, which lacks support for symlinks.
71719         From Richard Dawe.
71720         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71721         is defined.
71722         * lib/lchown.c (S_ISLNK): Likewise.
71723
71724 2002-06-15  Jim Meyering  <meyering@lucent.com>
71725
71726         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71727         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71728         have been included before this file.
71729
71730 2002-06-14  Jim Meyering  <meyering@lucent.com>
71731
71732         * lib/file-type.h: Use the version from diffutils-2.8.2.
71733         * lib/file-type.c: Likewise.
71734
71735 2002-06-07  Jim Meyering  <meyering@lucent.com>
71736
71737         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71738         They're needed at least for NetBSD 1.5.2.
71739         ($statxfs_includes): Include those same headers.
71740         ($statxfs_includes): Include sys/vfs.h if available.
71741         ($statxfs_includes): Likewise for sys/statvfs.h.
71742         Check for the following members in both structs statfs and statvfs:
71743         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71744
71745 2002-06-01  Jim Meyering  <meyering@lucent.com>
71746
71747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71748         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71749
71750 2002-05-28  Jim Meyering  <meyering@lucent.com>
71751
71752         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71753         Reported by Volker Borchert.
71754
71755 2002-05-27  Jim Meyering  <meyering@lucent.com>
71756
71757         Fix a problem seen only on nonconforming systems whereby ls.c's
71758         use of localtime, and then of gettimeofday would cause trouble:
71759         the localtime call used to initialize rpl_gettimeofday's save
71760         mechanism would clobber ls's current local time information so
71761         that in any long listing the first file would always be listed
71762         with date 1970-01-01.  Analysis by Volker Borchert.
71763
71764         * lib/gettimeofday.c (localtime): Undefine.
71765         (rpl_localtime): New function.
71766
71767 2002-05-27  Jim Meyering  <meyering@lucent.com>
71768
71769         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71770         localtime.
71771
71772         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71773         use the replacement function; it wouldn't resolve at link time.
71774         Reported by Volker Borchert.
71775
71776 2002-05-22  Jim Meyering  <meyering@lucent.com>
71777
71778         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71779         file-type.h.
71780         * lib/file-type.h: New file.
71781         * lib/file-type.c (file_type): New file/function.  Extracted from
71782         diffutils.
71783
71784 2002-04-30  Jim Meyering  <meyering@lucent.com>
71785
71786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71787
71788 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71789
71790         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71791
71792 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71793
71794         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71795         Do not check for alloca.h (no longer used) or stdbool.h (was never
71796         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71797
71798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71799
71800         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71801
71802 2002-04-29  Jim Meyering  <meyering@lucent.com>
71803
71804         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71805         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71806         Use AC_FUNC_STRNLEN here instead.
71807
71808         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71809         With autoconf-2.53a, it's part of AC_PROG_CC.
71810
71811 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71812
71813         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71815
71816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71817
71818         * lib/sig2str.h, lib/sig2str.c: New files.
71819         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71820
71821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71822
71823         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71824         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71825         of 127, since 64 is the largest conceivable number for ancient
71826         nonstandard hosts.
71827         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71828
71829 2002-04-28  Jim Meyering  <meyering@lucent.com>
71830
71831         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71832
71833 2002-04-24  Jim Meyering  <meyering@lucent.com>
71834
71835         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71836         (jm_PREREQ): Use it.
71837
71838         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71839         mach/mach.h fcntl.h.
71840         Check for this function: setlocale.
71841
71842 2002-04-24  Jim Meyering  <meyering@lucent.com>
71843
71844         * lib/gettext.h: New file, from Gettext.
71845         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71846         (libfetish_a_SOURCES): Add gettext.h.
71847
71848 2002-04-16  Jim Meyering  <meyering@lucent.com>
71849
71850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71851         ut_pid, ut_id, ut_exit.
71852
71853 2002-04-16  Jim Meyering  <meyering@lucent.com>
71854
71855         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71856         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71857         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71858
71859 2002-04-12  Jim Meyering  <meyering@lucent.com>
71860
71861         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71862         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71863         existence of the getmntinfo function.  Needed for Darwin 5.3.
71864
71865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71866         This is necessary at least on Darwin 5.3.
71867
71868         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71869         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71870         strnlen.o in the library, and that makes some versions of ranlib
71871         object.
71872
71873 2002-04-12  Jim Meyering  <meyering@lucent.com>
71874
71875         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71876
71877 2002-04-09  Jim Meyering  <meyering@lucent.com>
71878
71879         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71880         to be more precise.  Rather than saying we're checking whether the
71881         function `works', say what we're testing.
71882         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71883         Reported by Bruno Haible.
71884
71885 2002-03-10  Jim Meyering  <meyering@lucent.com>
71886
71887         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71888         Suggestion from Santiago Vila.
71889
71890 2002-03-08  Jim Meyering  <meyering@lucent.com>
71891
71892         * lib/rename.c: Mention that this wrapper is needed also on
71893         mips-dec-ultrix4.4 systems.
71894
71895 2002-03-02  Jim Meyering  <meyering@lucent.com>
71896
71897         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71898         not HAVE_CLOCK_SETTIME.
71899
71900 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71901
71902         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71903         Check for clock_settime.
71904
71905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71906
71907         * lib/nanosleep.h: Rename to....
71908         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71909
71910         * lib/gettime.c: New file.
71911         * lib/settime.c: New file.
71912         * lib/stime.c: Remove.
71913
71914         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71915         timespec.h.  Remove nanosleep.h.
71916
71917 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71918
71919         * m4/acl.m4: New file.
71920         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71921         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71922
71923 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71924
71925         * lib/acl.c, lib/acl.h: New files.
71926         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71927
71928 2002-02-24  Jim Meyering  <meyering@lucent.com>
71929
71930         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
71931         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
71932         cause trouble.  Reported by Nelson Beebe.
71933
71934 2002-02-23  Paul Eggert  <eggert@twinsun.com>
71935
71936         * lib/path-concat.c (xpath_concat): Reorder code to pacify
71937         compilers that don't know that xalloc_die never returns.
71938
71939 2002-02-20  Jim Meyering  <meyering@lucent.com>
71940
71941         * lib/getdate.c: Regenerate using bison-1.33.
71942
71943 2002-02-17  Jim Meyering  <meyering@lucent.com>
71944
71945         * config/config.guess (main): Don't use `head -1'; it's no longer
71946         portable. Use `sed 1q' instead.
71947
71948 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
71949
71950         * m4/codeset.m4: Upgrade to gettext-0.11.
71951         * m4/gettext.m4: Upgrade to gettext-0.11.
71952         * m4/glibc21.m4: Upgrade to gettext-0.11.
71953         * m4/iconv.m4: Upgrade to gettext-0.11.
71954         * m4/isc-posix.m4: Upgrade to gettext-0.11.
71955         * m4/lcmessage.m4: Upgrade to gettext-0.11.
71956         * m4/lib-ld.m4: New file, from gettext-0.11.
71957         * m4/lib-link.m4: New file, from gettext-0.11.
71958         * m4/lib-prefix.m4: New file, from gettext-0.11.
71959         * m4/progtest.m4: Upgrade to gettext-0.11.
71960
71961 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71962
71963         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
71964         (jm_PREREQ): Use it.
71965
71966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71967
71968         * lib/posixver.c, lib/posixver.h: New files.
71969         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71970
71971 2002-02-02  Paul Eggert  <eggert@twinsun.com>
71972             Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71975         (fwrite_success_callback): New declaration.
71976         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71977         print_unicode_char. Call failure callback instead of error.
71978         (fwrite_success_callback): New function.
71979         (exit_failure_callback): New function.
71980         (fallback_failure_callback): New function.
71981         (print_unicode_char): Call unicode_to_mb.
71982
71983 2002-01-26  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71986         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71987
71988 2002-01-26  Jim Meyering  <meyering@lucent.com>
71989
71990         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71991
71992 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71993
71994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71995
71996 2002-01-22  Jim Meyering  <meyering@lucent.com>
71997
71998         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71999         Otherwise, some versions of automake would omit the rule that makes
72000         Makefile from Makefile.in.
72001
72002 2002-01-21  Paul Eggert  <eggert@twinsun.com>
72003
72004         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
72005         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72006         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
72007         (memcoll): Set errno to zero if there is no error.
72008
72009         * lib/quotearg.c (quotearg_buffer_restyled):
72010         Fix bug with quoting buffers containing NUL when backslashing escapes.
72011         This bug was exposed by the other changes in this patch.
72012         (quotearg_n_options): New arg ARGSIZE.
72013         All callers changed.
72014         (quoting_options_from_style): New function.
72015         (quotearg_n_style): Use it.
72016         (quotearg_n_style_mem): New function.
72017
72018         * lib/quotearg.h (quotearg_n_style_mem): New function.
72019
72020 2002-01-19  Jim Meyering  <meyering@lucent.com>
72021
72022         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
72023         Remove useless quotes: DF_PROG="df".
72024         * m4/strnlen.m4: New file.
72025
72026 2002-01-16  Paul Eggert  <eggert@twinsun.com>
72027
72028         * lib/backupfile.c (ISDIGIT): Comment fix.
72029         * lib/getdate.y (ISDIGIT): Likewise.
72030         * lib/posixtm.c (ISDIGIT, year): Likewise.
72031         * lib/strverscmp.c (ISDIGIT): Likewise.
72032         * lib/userspec.c (ISDIGIT): Likewise.
72033
72034 2002-01-16  Jim Meyering  <meyering@lucent.com>
72035
72036         * lib/getdate.y: Add three semicolons, each just before a closing
72037         brace. Bison (as of version 1.31) no longer papers over that mistake.
72038
72039 2002-01-05  Jim Meyering  <meyering@lucent.com>
72040
72041         * lib/version-etc.c (version_etc_copyright): Update copyright year.
72042
72043 2001-12-19  Paul Eggert  <eggert@twinsun.com>
72044
72045         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
72046         not silently exit merely because the output buffer happens to
72047         have nothing pending.
72048
72049 2001-12-18  Paul Eggert  <eggert@twinsun.com>
72050
72051         See the big note in ../ChangeLog.
72052         * lib/human.c (suffixes): Prefer K to k for 1024.
72053         (generate_suffix_backwards): New function.
72054         (human_readable_inexact): Use it.
72055         * lib/xstrtol.c (__xstrtol): If there is no number but there
72056         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
72057         Accept 'K' as well as 'k'.
72058
72059 2001-12-15  Jim Meyering  <meyering@lucent.com>
72060
72061         * lib/regex.h (__restrict_arr): Update from libc.
72062
72063         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
72064         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
72065         (STREQ): Define.
72066
72067 2001-12-14  Jim Meyering  <meyering@lucent.com>
72068
72069         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
72070         Suggestion from Bruno Haible.
72071
72072 2001-12-10  Jim Meyering  <meyering@lucent.com>
72073
72074         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
72075         xrealloc, Instead, include "xalloc.h".
72076         (initbuffer): Don't cast xmalloc return value to char*.
72077         (readline): Reword comment.
72078         Don't cast xrealloc return value to char*
72079         Return NULL, not 0.
72080
72081 2001-12-09  Jim Meyering  <meyering@lucent.com>
72082
72083         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
72084         about `signed and unsigned type in conditional expression'.
72085         * lib/posixtm.c (posix_time_parse): Likewise.
72086
72087         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
72088
72089         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
72090         to avoid a pedantic warning.
72091
72092         * lib/getstr.c: Don't include assert.h.
72093         (getstr): Remove warning-evoking assertions.
72094         Return -1 if offset parameter is out of bounds.
72095         Change the type of a local from int to size_t.
72096
72097         * lib/strftime.c (my_strftime_localtime_r): Include this function
72098         definition in the `#if ! HAVE_TM_GMTOFF' block.
72099
72100         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
72101         Include xalloc.h instead.
72102
72103 2001-12-02  Jim Meyering  <meyering@lucent.com>
72104
72105         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72106         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72107         included.
72108
72109         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72110         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72111
72112 2001-11-30  Akim Demaille  <akim@epita.fr>
72113
72114         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72115         before being defined.
72116
72117 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72118
72119         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72120         First arg is int, not unsigned.
72121         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72122         (SIZE_MAX, UINT_MAX): New macros.
72123         (quotearg_n_options): Abort if N is negative.
72124         Avoid overflow check on hosts where size_t is 64 bits and int
72125         is 32 bits, as overflow is impossible there.
72126         Fix off-by-one typo that caused unnecessary reallocation.
72127
72128 2001-11-27  Jim Meyering  <meyering@lucent.com>
72129
72130         * lib/tempname.c: Merge with version from libc.
72131         * lib/regex.c: Likewise.
72132
72133         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72134         systems for which STDC_HEADERS is 0, it was not included, resulting in
72135         a warning about an integer-to-pointer conversion problem with getenv.
72136         Reported by Volker Borchert.
72137
72138 2001-11-26  Jim Meyering  <meyering@lucent.com>
72139
72140         * lib/gtod.h: Remove file.
72141         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72142         * lib/gettimeofday.c: Don't include gtod.h.
72143         (GTOD_init): Remove function.
72144         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72145         Suggestion from Volker Borchert.
72146
72147 2001-11-23  Jim Meyering  <meyering@lucent.com>
72148
72149         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72150         it.
72151         * lib/hash.c (struct hash_table): Define it here instead.
72152
72153 2001-11-22  Jim Meyering  <meyering@lucent.com>
72154
72155         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72156
72157 2001-11-20  Jim Meyering  <meyering@lucent.com>
72158
72159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72160         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72161
72162 2001-11-19  Jim Meyering  <meyering@lucent.com>
72163
72164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72165         directory.  Use "conftestXXXXXX" as the template.
72166         Suggestion from Paul Eggert.
72167
72168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72169         immediately, so the test doesn't mistakenly hit the max-open-files
72170         limit.
72171
72172 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72173
72174         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72175         (TEMPORARIES): New macro.
72176         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
72177         removes an artificial limitation (e.g. HP-UX 10.20, where
72178         TMP_MAX is 17576).
72179
72180 2001-11-18  Jim Meyering  <meyering@lucent.com>
72181
72182         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
72183
72184 2001-11-18  Jim Meyering  <meyering@lucent.com>
72185
72186         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
72187         on SunOS 4.
72188
72189         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
72190         files will be created before anything else.
72191
72192 2001-11-17  Paul Eggert  <eggert@twinsun.com>
72193
72194         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
72195         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
72196
72197 2001-11-17  Jim Meyering  <meyering@lucent.com>
72198
72199         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
72200         Prompted by a report from Bob Proulx.
72201
72202         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
72203         Instead, require UTILS_FUNC_MKSTEMP.
72204
72205 2001-11-17  Jim Meyering  <meyering@lucent.com>
72206
72207         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
72208         Now, that's done as part of AC_FUNC_STRTOD.
72209
72210 2001-11-17  Jim Meyering  <meyering@lucent.com>
72211
72212         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
72213         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
72214         rather than group writable.  Patch by Juan F. Codagnone.
72215
72216         * lib/readtokens.c: Remove explicit declarations of xmalloc and
72217         xrealloc, Instead, include "xalloc.h".
72218
72219         * lib/mountlist.c: Include unlocked-io.h after all system headers.
72220         Remove explicit declarations of xmalloc, xrealloc,
72221         and xstrdup.  Instead, include "xalloc.h".
72222
72223         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
72224         unlocked-io.h.
72225         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
72226         Likewise.
72227         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
72228
72229         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
72230         Reported by Padraig Brady.
72231
72232         * lib/mkstemp.c: #undef mkstemp.
72233         Include config.h.
72234         (rpl_mkstemp): Rename from mkstemp.
72235         Protoize.
72236
72237 2001-11-16  Jim Meyering  <meyering@lucent.com>
72238
72239         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
72240         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
72241         determine the amount of total physical memory, use pstat_getstatic.
72242         HPUX-11 doesn't define _SC_PHYS_PAGES.
72243         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
72244         If sysconf couldn't be used to determine the amount of available
72245         physical memory, use both pstat_getstatic and pstat_getdynamic.
72246         Based on a patch from Bob Proulx.
72247
72248 2001-11-10  Jim Meyering  <meyering@lucent.com>
72249
72250         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
72251         (jm_PREREQ): Use it.
72252
72253 2001-11-09  Jim Meyering  <meyering@lucent.com>
72254
72255         * m4/jm-macros.m4: Require autoconf-2.52f.
72256         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
72257         Use these AC_-prefixed names, not the AM_-prefixed ones.
72258
72259         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
72260
72261 2001-11-05  Jim Meyering  <meyering@lucent.com>
72262
72263         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
72264
72265 2001-11-04  Jim Meyering  <meyering@lucent.com>
72266
72267         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
72268         $DEFS.
72269
72270 2001-11-03  Jim Meyering  <meyering@lucent.com>
72271
72272         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
72273         of AC_DEFUN.
72274
72275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
72276         know the name of the variable in the macro definition.
72277
72278 2001-11-03  Jim Meyering  <meyering@lucent.com>
72279
72280         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
72281         in argmatch_to_argument call.
72282
72283         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
72284         argument.
72285
72286         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
72287         e.g., a fault due to an attempt to free a NULL pointer.
72288
72289 2001-11-01  Jim Meyering  <meyering@lucent.com>
72290
72291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
72292         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
72293
72294 2001-11-01  Jim Meyering  <meyering@lucent.com>
72295
72296         * lib/dirfd.c, lib/dirfd.h: New files.
72297         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
72298
72299         * lib/hash.c (hash_print) [TESTING]: Clean up.
72300
72301 2001-10-22  Paul Eggert  <eggert@twinsun.com>
72302
72303         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
72304         to avoid a warning if -Wall.
72305
72306 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
72307
72308         * README: New file
72309         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
72310         (per RMS's instructions, this is now the canonical source)
72311         * lgpl/, gpl/: New directories.
72312
72313 2001-10-21  Paul Eggert  <eggert@twinsun.com>
72314
72315         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
72316
72317 2001-10-21  Jim Meyering  <meyering@lucent.com>
72318
72319         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
72320         this code would end up calling gettext even in packages built
72321         with --disable-nls.
72322         * lib/getopt.c (_): Likewise.
72323         * lib/regex.c (_): Likewise.
72324
72325 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72326
72327         * m4/error.m4 (jm_PREREQ_ERROR):
72328         Do not invoke AC_CHECK_FUNCS with strerror_r, as
72329         AC_FUNC_STRERROR_R does that.
72330         Check for strerror declaration.
72331
72332         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
72333         are supposed to have them these days.
72334         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
72335         Merge changes from latest Autoconf CVS.
72336         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
72337         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
72338         POSIX decided to standardize on the int flavor of strerror_r.
72339
72340 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72341
72342         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
72343         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
72344         Use strerror_r that is only a macro, even if it is not a function.
72345         (strerror): Check for HAVE_DECL_STRERROR before declaring.
72346         (private_strerror): Use prototypes, not old-style function definition.
72347         (print_errno_message): New function.
72348         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
72349         char*-flavored one.
72350         (error_tail, error, error_at_line): Use it.
72351
72352 2001-10-11  Jim Meyering  <meyering@lucent.com>
72353
72354         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
72355         and quote_n (1, ... to avoid clobbering a buffer.
72356
72357 2001-10-05  Jim Meyering  <meyering@lucent.com>
72358
72359         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
72360         hash-pjw.h.
72361         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
72362         * lib/hash-pjw.h: New file.
72363
72364 2001-09-30  Jim Meyering  <meyering@lucent.com>
72365
72366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
72367         `struct fsstat' has the `f_fstypename' member.
72368         Use that to define FS_TYPE, which is now used to make
72369         the getfsstat link test tighter.
72370
72371 2001-09-30  Jim Meyering  <meyering@lucent.com>
72372
72373         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
72374         Include <sys/ucred.h>, for Apple Darwin.
72375         Include sys/mount.h and sys/fs_types.h only if available.
72376         (FS_TYPE): Define.
72377         (read_filesystem_list): Use FS_TYPE.
72378
72379 2001-09-29  Paul Eggert  <eggert@twinsun.com>
72380
72381         * lib/exclude.c (excluded_filename): 0 -> false, since it's
72382         a boolean context.
72383
72384 2001-09-29  Jim Meyering  <meyering@lucent.com>
72385
72386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72387         [one-argument getmntent function]): Include stdio.h before mntent.h.
72388         SunOS 4.1.x needs it for the declaration of `FILE'.
72389         Patch by Volker Borchert.
72390
72391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72392         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
72393         sys/fs_types.h, and make the link-test for getfsstat guard #include
72394         directives with appropriate #if HAVE_*_H tests so that we can
72395         detect getfsstat on Apple Darwin1.3.7 systems.
72396         Reported by Nelson Beebe.
72397         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
72398
72399 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72400
72401         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72402         #defines strtoimax.  Also treat the other strto* functions
72403         like strtoimax.
72404
72405         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72406         Check for strtoul and strtoumax,
72407         as those declarations are made even in the signed case.
72408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
72409         Likewise, for strtol and strtoimax.
72410
72411 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72412
72413         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72414         #defines strtoimax.  Also treat the other strto* functions
72415         like strtoimax.
72416
72417         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
72418         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
72419         (strtoimax, strtoumax): Do not declare if already defined as a macro.
72420
72421 2001-09-26  Jim Meyering  <meyering@lucent.com>
72422
72423         Most macros in unlocked-io.h had the wrong number of arguments.
72424         * lib/gen-uio: New script.
72425         (USE_UNLOCKED_IO): Define to 1 if not already defined.
72426         * lib/unlocked-io.hin: Remove file.
72427         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
72428         rather than trying to embed it here.
72429         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
72430         Reported by Padraig Brady.
72431
72432 2001-09-25  Volker Borchert  <bt@teknon.de>
72433
72434         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
72435         `result'.
72436
72437 2001-09-24  Jim Meyering  <meyering@lucent.com>
72438
72439         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
72440
72441 2001-09-23  Jim Meyering  <meyering@lucent.com>
72442
72443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
72444         instead of the mere test for existence of mntent.h.  The latter
72445         would get a false-positive on AIX 3.4 systems.
72446         In the outer getmntent if-block, don't die if neither of the getmntent
72447         tests succeeds.  Instead, just fall through and continue with the
72448         remaining tests.
72449
72450 2001-09-23  Jim Meyering  <meyering@lucent.com>
72451
72452         * lib/mountlist.c: Remove useless parentheses in #if directives.
72453         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
72454         the deprecated MOUNTED symbol is no longer defined in mntent.h.
72455
72456 2001-09-22  Jim Meyering  <meyering@lucent.com>
72457
72458         * m4/gettext.m4: New file.  From gettext.
72459         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
72460         * m4/progtest.m4: Likewise
72461         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
72462         * m4/glibc21.m4: Likewise.
72463
72464         * m4/libintl.m4: Remove.  No longer used.
72465
72466 2001-09-22  Jim Meyering  <meyering@lucent.com>
72467
72468         * lib/localcharset.c: Update from latest gettext.
72469         * lib/config.charset: Likewise.
72470
72471 2001-09-20  Jim Meyering  <meyering@lucent.com>
72472
72473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
72474         strtoimax.
72475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
72476         strtoumax.
72477
72478 2001-09-20  Jim Meyering  <meyering@lucent.com>
72479
72480         * lib/xstrtol.c (strtoimax): Guard declaration with
72481         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
72482         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
72483         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
72484         (strtoumax): Likewise, for completeness (it wasn't necessary).
72485
72486 2001-09-17  Paul Eggert  <eggert@twinsun.com>
72487
72488         * lib/strtoimax.c (HAVE_LONG_LONG):
72489         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
72490         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
72491         to work around bug in IBM C compiler.
72492
72493 2001-09-17  Jim Meyering  <meyering@lucent.com>
72494
72495         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
72496         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72497         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72498         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72499         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72500         whenever the right hand side need not be expanded by the shell.
72501
72502 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72503
72504         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72505         library.  It's not correct, as some older glibcs are buggy.
72506         fnmatch wasn't fixed until glibc 2.2.
72507
72508         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72509         special shell magic here.
72510
72511 2001-09-16  Jim Meyering  <meyering@lucent.com>
72512
72513         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72514         * m4/jm-macros.m4: Require it.
72515
72516 2001-09-16  Jim Meyering  <meyering@lucent.com>
72517
72518         * lib/mkdir.c: New file.
72519
72520 2001-09-15  Jim Meyering  <meyering@lucent.com>
72521
72522         * m4/jm-macros.m4: Check for help2man.
72523
72524 2001-09-11  Jim Meyering  <meyering@lucent.com>
72525
72526         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72527         The body, by Paul Eggert, was moved here from configure.in.
72528         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72529
72530 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72531
72532         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72533         (jm_PREREQ): Use it.
72534
72535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72536
72537         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72538         Use ssize_t, not int, to store result of readlink.
72539         Check for ssize_t overflow as well as size_t overflow,
72540         as POSIX says the result of readlink is implementation-defined
72541         when ssize_t overflows.
72542         Remove unnecessary cast to char*.
72543         Use free+malloc instead of realloc, as the storage doesn't need
72544         to be preserved and it's clearer and can be more efficient that way.
72545         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72546         * lib/xreadlink.h (xreadlink): Update prototype.
72547
72548 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72549
72550         * lib/xgetcwd.c: Revert some of the previous change; intead,
72551         fix the HAVE_GETCWD_NULL code to behave more like the
72552         !HAVE_GETCWD_NULL code used to.
72553
72554         Include "xalloc.h".
72555         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72556         invoke xalloc_die.
72557
72558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72559
72560         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72561         sys/param.h, as pathmax.h includes them.
72562
72563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72564
72565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72566         (jm_PREREQ_XGETCWD): New macro.
72567
72568         * m4/getcwd.m4: New file.
72569
72570 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72571
72572         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72573         like the HAVE_GETCWD_NULL code.
72574         Include pathmax.h if not HAVE_GETCWD.
72575         Do not include xalloc.h.
72576         (INITIAL_BUFFER_SIZE): New symbol.
72577         Do not use xmalloc / xrealloc, since the caller is responsible for
72578         handling errors.  Preserve errno around `free' during failure.
72579         Do not overrun buffer when using getwd.
72580
72581 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72582
72583         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72584         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72585         getcwd (NULL, 0).
72586
72587 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72588
72589         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72590         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72591         spotted by Jim Meyering.
72592
72593 2001-09-03  Jim Meyering  <meyering@lucent.com>
72594
72595         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72596         failure.
72597
72598 2001-09-02  Jim Meyering  <meyering@lucent.com>
72599
72600         * lib/error.c: Update from GNU libc.
72601
72602 2001-09-01  Jim Meyering  <meyering@lucent.com>
72603
72604         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72605         Used by df.
72606
72607 2001-09-01  Jim Meyering  <meyering@lucent.com>
72608
72609         * lib/xreadlink.c: New file.
72610         * lib/xreadlink.h: New file.
72611         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72612         xreadlink.h.
72613
72614         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72615         doesn't conflict with sparc Solaris 7's definition in
72616         /usr/include/sys/int_types.h.
72617
72618         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72619         files.
72620         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72621         and strncasecmp as r-values.  Unixware didn't have declarations.
72622
72623 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72624
72625         * lib/xstrtol.h: Add copyright notice.
72626         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72627         LONGINT_INVALID_SUFFIX_CHAR.
72628
72629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72630
72631         * lib/xstrtol.c (strtoimax): New decl.
72632
72633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72634
72635         * lib/xgetcwd.c: Don't include pathmax.h.
72636         Include stdlib.h and unistd.h if available.
72637         Include xalloc.h.
72638         (xmalloc, xstrdup, free): Remove decls.
72639         (xgetcwd): Don't assume sizes fit in unsigned.
72640         Check for overflow when computing sizes.
72641         Simplify reallocation code.
72642
72643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72644
72645         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72646         a directory's st_size can have an arbitrary value, so the old
72647         usage could waste an arbitrary amount of memory.  All uses
72648         changed.
72649         * lib/savedir.h: Update prototype.
72650
72651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72654
72655         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72656         old strtoimax.c.
72657
72658         Also, make the following further changes to make this file's
72659         configuration more similar to that of strtol.c:
72660         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72661         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72662         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72663         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72664         changed to signed values.
72665
72666         And make the following changes as well:
72667         Fix copyright notice, as 1999 was missing.
72668         (verify): New macro.
72669         (strtoimax): Check sizes at compile-time, not run-time.
72670         Prefer strtol to strtoll if both work.
72671         (main): Remove; it was not that useful and was a pain to maintain.
72672
72673         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72674
72675 2001-08-31  Jim Meyering  <meyering@lucent.com>
72676
72677         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72678         Use an initial, malloc'd, buffer of length 128 rather than
72679         a statically allocated one of length 1024.
72680
72681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72682
72683         Simplify code, partly by assuming autoconf 2.52 semantics.
72684
72685         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72686
72687         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72688         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72689         All uses removed.
72690         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72691         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72692         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72693         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72694         jm_AC_HEADER_INTTYPES_H.
72695         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72696
72697         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72698
72699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72700         Quote first arg of AC_DEFUN.
72701         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72702         since they are needed to parse the include file even if we need
72703         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72705         but with opposite signedness.
72706
72707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72708
72709         Merge 'exclude' changes from tar 1.13.22.
72710         This fixes one or two unlikely storage allocation overflow bugs,
72711         but doesn't change user-visible behavior otherwise.
72712
72713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72714
72715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72716         (jm_PREREQ_EXCLUDE): New macro.
72717
72718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72719
72720         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72721         tm to be declared.
72722
72723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72724
72725         * lib/hash.c: Remove '2001' from copyright notice.
72726
72727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72728
72729         * lib/full-write.h: New file.
72730         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72731         * lib/full-write.c: Correct credits, as cccp.c no longer
72732         exists and anyway it was so heavily changed from the old cccp
72733         code as to be unrecognizable.  Include full-write.h.
72734         (full_write) Return size_t, with short writes meaning failure.
72735         All callers changed.  This fixes a bug with large buffers
72736         on 64-bit hosts.
72737         * lib/utime.c: Include full-write.h.
72738
72739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72740
72741         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72742         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72743         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72744         Include if available.
72745         (<xalloc.h>): Include
72746         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72747         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72748         collide with FNM macros.
72749         (struct patopts): New struct.
72750         (struct exclude): Use it, as exclude patterns now come with options.
72751         (new_exclude): Support above changes.
72752         (new_exclude, add_exclude_file):
72753         Initial size must now be a power of two to simplify overflow checking.
72754         (free_exclude, fnmatch_no_wildcards): New function.
72755         (excluded_filename): No longer requires options arg, as the options
72756         are determined by add_exclude.  Now returns bool, not int.
72757         (excluded_filename, add_exclude):
72758         Add support for the fancy new exclusion options.
72759         (add_exclude, add_exclude_file): Now takes int options arg.
72760         Check for arithmetic overflow when computing sizes.
72761         (add_exclude_file): xrealloc might modify errno, so don't
72762         realloc until after errno might be used.
72763
72764         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72765         New macros.
72766         (free_exclude): New decl.
72767         (add_exclude, add_exclude_file): Now takes int options arg.
72768         (excluded_filename): No longer requires options arg, as the options
72769         are determined by add_exclude.  Now returns bool, not int.
72770
72771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72772
72773         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72774
72775 2001-08-27  Jim Meyering  <meyering@lucent.com>
72776
72777         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72778
72779         * lib/version-etc.c (N_): Remove definition.
72780         Revert most of last change.
72781         Instead, simply don't mark the `Copyright...' string for translation.
72782         Based on advice from Paul Eggert.
72783
72784         * lib/strtoxmax.c: Tweak comment.
72785
72786 2001-08-26  Jim Meyering  <meyering@lucent.com>
72787
72788         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72789
72790         * m4/xstrtoimax.m4: New file.
72791         * m4/xstrtoumax.m4: Add comments explaining why we
72792         AC_REPLACE_FUNCS(strtol).
72793
72794 2001-08-26  Jim Meyering  <meyering@lucent.com>
72795
72796         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72797         of copyright with `%s' so translators don't get an untranslated
72798         message in 2002.
72799         (COPYRIGHT_YEAR): Define.
72800         (version_etc): Use fprintf rather than fputs.
72801         Suggestion from Ulrich Drepper.
72802
72803         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72804
72805         * lib/strtoll.c: New file, from GNU libc.
72806         * lib/xstrtoimax.c: New file.
72807
72808         * lib/xstrtol.h: Add xstrtoimax.
72809         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72810         * lib/strtoimax.c: New file.  Likewise, but first define
72811         STRTOUXMAX_SIGNED.
72812
72813         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72814         ...
72815         * lib/strtoxmax.c: ... then renamed to this.
72816
72817 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72818
72819         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72820         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72821         (jm_AC_TYPE_INTMAX_T): New macro.
72822         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72823
72824         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72825
72826         * m4/longlong.m4: Renamed from ulonglong.m4.
72827         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72828         * m4/uintmax_t.m4: Removed.
72829
72830 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72831
72832         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72833         Port to Solaris 8, where 'sed' requires a space after the 'r'
72834         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72835         Redirect output to $tmp just once.
72836
72837 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72838
72839         * lib/addext.c (<errno.h>): Include.
72840         (errno): Declare if not defined.
72841         (addext): Work correctly when pathconf returns -1 and leaves
72842         errno alone because there is no limit.  Also, work even if
72843         pathconf returns a value greater than SIZE_MAX.
72844
72845 2001-08-12  Jim Meyering  <meyering@lucent.com>
72846
72847         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72848         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72849         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72850         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72851         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72852         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72853         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72854         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72855         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72856         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72857         utime.m4, utimes.m4, xstrtoumax.m4:
72858         Quote the first argument in each use of AC_DEFUN.
72859
72860 2001-08-12  Jim Meyering  <meyering@lucent.com>
72861
72862         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72863         Simply `return getcwd (NULL, 0);'.
72864         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72865         Use 1300 as initial value for length, not PATH_MAX.
72866
72867         * lib/pathmax.h: Clean up cpp syntax.
72868
72869 2001-08-12  Jim Meyering  <meyering@lucent.com>
72870
72871         * lib/gettimeofday.c: New file.
72872         * lib/gtod.h: New file.
72873         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72874
72875 2001-08-05  Jim Meyering  <meyering@lucent.com>
72876
72877         * m4/jm-macros.m4: Require autoconf-2.52.
72878
72879 2001-08-04  Jim Meyering  <meyering@lucent.com>
72880
72881         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72882         stmt, to get in sync with glibc.
72883
72884 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72885
72886         The following changes are from gettext 0.10.39 as maintained by
72887         Bruno Haible.
72888
72889         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72890         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72891         with inverted sense.  All uses changed.
72892
72893         * lib/mbswidth.c: Don't include <limits.h>.
72894         Include <stdlib.h> and <string.h> unconditionally.
72895         (iswcntrl, mbsinit, ISCNTRL): New macros.
72896         (mbsnwidth): Use K&R style function declarations.
72897         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72898         can optimize it when MB_CUR_MAX == 1.
72899         The width of control characters is zero, not 1.
72900
72901 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72902
72903         The following changes are from gettext 0.10.39 as maintained by
72904         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72905
72906         * m4/codeset.m4: Upgrade to serial AM1.
72907         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72908         all uses changed.  Quote first arg of AC_DEFUN.
72909         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72910
72911         * m4/iconv.m4: Upgrade to serial AM2.
72912         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72913         Add --with-libconv-prefix.
72914         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72915         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72916         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72917         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72918         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72919
72920         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72921         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72922         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72923         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72924         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72925         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72926         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72927         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72928         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72929
72930         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
72931         string.h any more.
72932
72933         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
72934         not the default value.
72935
72936         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
72937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
72938         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
72939         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
72940         Also check for iswcntrl, used for wcwidth fallback.
72941         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
72942         to Autoconf 2.13.
72943
72944 2001-08-03  Jim Meyering  <meyering@lucent.com>
72945
72946         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
72947         as it was in the original.  Reported by Paul Eggert.
72948
72949 2001-07-16  Jim Meyering  <meyering@lucent.com>
72950
72951         * m4/gettimeofday.m4: New file.
72952         Prompted by a report from Bernhard Baehr.
72953
72954 2001-07-15  Jim Meyering  <meyering@lucent.com>
72955
72956         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
72957         stuff. Now it's in ../Makefile.cfg.
72958
72959 2001-07-15  Jim Meyering  <meyering@lucent.com>
72960
72961         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
72962         (BUILT_SOURCES): Add unlocked-io.h.
72963         (io_functions): Define.
72964         (unlocked-io.h): New rule.
72965         (DISTCLEANFILES): Add unlocked-io.h.
72966         (all-local): Depend on unlocked-io.h, to ensure it is created.
72967
72968         * lib/unlocked-io.hin: New file
72969
72970         * lib/regex.c: Update from glibc.
72971
72972 2001-07-05  Jim Meyering  <meyering@lucent.com>
72973
72974         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72975         recommendation.
72976         (libfetish_a_SOURCES): Put all .h files here instead.
72977         Remove a thus-exposed (better checks in automake) duplicate and
72978         two unnecessary .h files.
72979
72980 2001-07-04  Jim Meyering  <meyering@lucent.com>
72981
72982         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72983         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72984         distcheck failure.
72985
72986 2001-07-02  Jim Meyering  <meyering@lucent.com>
72987
72988         The following changes were prompted by suggestions from Bruno Haible.
72989
72990         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72991         is now generated.
72992         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72993         definition of EXTRA_DIST.
72994         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72995         ensure that the generated file is created/updated whenever the list
72996         of $(unlocked_functions) is changed.
72997         (jm-glibc-io.m4): New rule.
72998         (unlocked-io.h): New rule -- currently unused.
72999
73000 2001-06-24  Jim Meyering  <meyering@lucent.com>
73001
73002         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
73003         unmatched right bracket, rather than kludging it with an extra,
73004         falsely-matching quote in a comment.  Patch by Akim Demaille.
73005
73006 2001-06-11  Jim Meyering  <meyering@lucent.com>
73007
73008         * lib/regex.c: Update from GNU libc.
73009
73010 2001-05-27  Jim Meyering  <meyering@lucent.com>
73011
73012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
73013         Check for ut_type in struct utmp.
73014
73015 2001-05-27  Jim Meyering  <meyering@lucent.com>
73016
73017         * lib/readutmp.h (UT_TYPE): Define.
73018
73019 2001-05-24  Jim Meyering  <meyering@lucent.com>
73020
73021         * lib/argmatch.c: Include "quote.h".
73022         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
73023         quote function.  Reported by Göran Uddeborg.
73024
73025 2001-05-22  Jim Meyering  <meyering@lucent.com>
73026
73027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
73028         now that we use the package-supplied version unconditionally.
73029         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
73030
73031 2001-05-21  Jim Meyering  <meyering@lucent.com>
73032
73033         * m4/regex.m4: Change a couple backticks to single quotes to avoid
73034         shell syntax errors.
73035
73036 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73037
73038         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
73039
73040 2001-05-20  Paul Eggert  <eggert@twinsun.com>
73041
73042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
73043         Don't bother to check library strftime, since
73044         we'll be using our own my_strftime function anyway.
73045         Define my_strftime instead of strftime.
73046
73047 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
73048
73049         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
73050         which is not yet declared.
73051
73052 2001-05-15  Jim Meyering  <meyering@lucent.com>
73053
73054         * m4/regex.m4: Use proper quoting so brackets appear in the test
73055         program.
73056         Reported by, and with help from, Bruno Haible.
73057
73058 2001-05-13  Jim Meyering  <meyering@lucent.com>
73059
73060         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
73061         undefined.
73062
73063 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73064
73065         dirname code cleanup.  base_name now behaves more compatibly
73066         with POSIX basename when given file names that have trailing
73067         slashes, and similarly for dir_name.  Add new primitives
73068         base_len and dir_len.  Put the directory-name-related decls
73069         into dirname.h.
73070
73071         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
73072         * lib/backupfile.c (base_name): Likewise.
73073         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
73074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
73075         * lib/makepath.c (strip_trailing_slashes): Likewise.
73076         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
73077         ISSLASH): Likewise.
73078         * lib/rename.c (strip_trailing_slashes): Likewise.
73079         * lib/same.c (base_name): Likewise.
73080         * lib/stripslash.c (ISSLASH): Likewise.
73081
73082         * lib/addext.c: Include <dirname.h> after size_t is defined.
73083         * lib/backupfile.c: Likewise.
73084
73085         * lib/addext.c (addext): Use base_len to trim redundant
73086         trailing slashes instead of doing it ourselves.
73087         But do not trim the last slash if it is not redundant.
73088
73089         * lib/backupfile.c (find_backup_file_name,
73090         max_backup_version): Use base_len instead of rolling it ourselves.
73091         Handle the case of "" and (on DOS) "C:" correctly.
73092
73093         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
73094         needed. Include <string.h>, <dirname.h>.
73095         (base_name): Allow file names ending in slashes, other than names
73096         that are all slashes.  In this case, return the basename followed
73097         by the slashes.  This is more general, and can be used in places
73098         where the original base_name purposely had an assertion failure.
73099         (base_len): New function.
73100
73101         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
73102         Do not include <assert.h>; no longer needed.
73103         Include xalloc.h.
73104         (memrchr): Remove decl.
73105         (dir_name_r): Remove.
73106         (dir_len): Renamed from dirlen.  All callers changed.
73107         Rewrite in terms of base_name, for simplicity and consistency.
73108         (dir_name): Never return NULL.  All callers changed.
73109         Do not include <stdlib.h> in test program; no longer needed.
73110         return 0; is fine for test program.
73111
73112         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73113         New macros.
73114         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73115
73116         * lib/path-concat.c (path_concat): Use base_len to compute
73117         base length, not strlen; this means we cannot rely on memcpy
73118         to null-terminate.
73119
73120         * lib/same.c (STREQ): Remove.
73121         (same_name): Handle the case where the basename ends in trailing '/'.
73122
73123         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73124         a slash was stripped.  Do not strip the last slash after a
73125         file system prefix.
73126
73127 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73128
73129         * lib/Makefile.am (libfetish_a_SOURCES):
73130         Add strftime.c, since we now compile it on all hosts.
73131
73132         * lib/strftime.c (my_strftime):
73133         Define to nstrftime if emacs, but only if my_strftime is not defined.
73134         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73135         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73136         Add one more extra argument: a nanoseconds value.
73137         All uses changed.
73138         (ns): New macro.
73139         (my_strftime function): Add %N format.
73140         (emacs_strftimeu): Renamed from emacs_strftime,
73141         with extra ut argument.
73142
73143 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73144
73145         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73146
73147 2001-04-21  Jim Meyering  <meyering@lucent.com>
73148
73149         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73150         doesn't interfere.
73151
73152 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73153
73154         * m4/ftruncate.m4: Check for chsize.
73155         Link with ftruncate.o unconditionally if ftruncate is missing.
73156         This was required when cross-compiling to i586-mingw32msvc.
73157
73158 2001-04-08  Jim Meyering  <meyering@lucent.com>
73159
73160         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73161         recomputed; that's necessary when the offset spans a DST transition.
73162         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73163
73164 2001-04-02  Jim Meyering  <meyering@lucent.com>
73165
73166         * lib/regex.h, regex.c: Update from GNU libc.
73167
73168 2001-03-24  Jim Meyering  <meyering@lucent.com>
73169
73170         * m4/jm-macros.m4: Require autoconf-2.49d.
73171
73172 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73173
73174         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73175
73176 2001-03-19  Paul Eggert  <eggert@twinsun.com>
73177
73178         * lib/version-etc.c (version_etc_copyright): Update to 2001.
73179
73180 2001-03-17  Jim Meyering  <meyering@lucent.com>
73181
73182         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
73183         now that the version in autoconf is equivalent.
73184         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
73185
73186         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
73187         Suggestion from Akim Demaille.
73188
73189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
73190         (jm_PREREQ_TEMPNAME): New function.
73191
73192 2001-03-16  Paul Eggert  <eggert@twinsun.com>
73193
73194         * lib/tempname.c (uint64_t): Define to uintmax_t if
73195         not defined, and if UINT64_MAX is not defined.
73196         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
73197         Reported by John David Anglin.
73198
73199 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
73200
73201         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
73202         resolve alias if codeset is empty.
73203         * lib/config.charset (BeOS): Use wildcard syntax.
73204
73205 2001-03-13  Jim Meyering  <meyering@lucent.com>
73206
73207         * lib/path-concat.c (path_concat)
73208         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
73209         concatenating e.g., `C:' and `foo'.
73210         From Bruno Haible.
73211
73212 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73213
73214         * lib/localcharset.c (locale_charset): Don't use
73215         setlocale(LC_CTYPE,NULL). Don't return NULL.
73216         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
73217
73218 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73219
73220         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
73221         support for DOS/DJGPP.
73222
73223 2001-03-01  Paul Eggert  <eggert@twinsun.com>
73224
73225         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
73226         lacks mkstemp.  Compile our own tempname.c if we compile our own
73227         mkstemp.c, as mkstemp relies on tempname.
73228
73229 2001-03-01  Jim Meyering  <meyering@lucent.com>
73230
73231         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
73232         AH_VERBATIM really does output its argument verbatim.
73233
73234 2001-02-28  Paul Eggert  <eggert@twinsun.com>
73235
73236         * lib/Makefile.am (libfetish_a_SOURCES):
73237         Add dup-safer.c, fopen-safer.c.
73238         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
73239
73240         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
73241         * lib/unistd-safer.h: New files.
73242
73243 2001-02-25  Paul Eggert  <eggert@twinsun.com>
73244
73245         The mkstemp replacement is taken from glibc 2.2.2, with some
73246         portability fixes for use outside glibc, as follows:
73247
73248         * lib/tempname.c (struct_stat64): New macro.
73249         (direxists, __gen_tempname): Use it.
73250         This avoids a portability problem with Solaris 8.
73251
73252         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
73253         (<stddef.h>, <stdint.h>, <string.h>):
73254         Include only if STDC_HEADERS || _LIBC.
73255         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
73256         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
73257         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
73258         (__set_errno): Define this macro if <errno.h> doesn't.
73259         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
73260         Define these macros if <stdio.h> doesn't.
73261         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73262         Define these macros if <sys/stat.h>
73263         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
73264         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
73265         __xstat64): Define if not _LIBC.
73266         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
73267         (__gen_tempname): Invoke gettimeofday only if
73268         HAVE_GETTIMEOFDAY || _LIBC;
73269         otherwise, fall back on plain "time".
73270         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
73271
73272         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
73273
73274         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
73275
73276 2001-02-18  Paul Eggert  <eggert@twinsun.com>
73277
73278         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
73279
73280 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73281
73282         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
73283         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
73284         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
73285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73286
73287 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73288
73289         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
73290         Remove workaround macros for hosts that have mbrtowc but not
73291         mbstate_t, as we now insist on proper declarations for both
73292         before using mbrtowc.
73293
73294 2001-02-17  Jim Meyering  <meyering@lucent.com>
73295
73296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
73297         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
73298         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
73299         UnixWare 7.1.1.
73300
73301         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
73302         rather than AC_CACHE_VAL.
73303
73304 2001-02-17  Jim Meyering  <meyering@lucent.com>
73305
73306         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
73307         around included file name.
73308
73309         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
73310
73311         * lib/strftime.c: Update from GNU libc (the only changes were to
73312         comments).
73313
73314 2001-02-17  Jim Meyering  <meyering@lucent.com>
73315
73316         * lib/regex.c: Update from libc.
73317
73318 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
73319
73320         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
73321         clash.
73322
73323 2001-02-16  Paul Eggert  <eggert@twinsun.com>
73324
73325         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
73326         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
73327         Reported by Mark Hounschell via Paul Eggert.
73328
73329 2001-02-07  Jim Meyering  <meyering@lucent.com>
73330
73331         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
73332
73333 2001-02-05  Jim Meyering  <meyering@lucent.com>
73334
73335         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
73336         it includes the patch required for `large file' support with at least
73337         HP-UX's 10.20 /bin/cc.
73338
73339 2001-02-03  Jim Meyering  <meyering@lucent.com>
73340
73341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
73342         AS_IF, now that it works once again (mysteriously).
73343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73344
73345 2001-01-30  Jim Meyering  <meyering@lucent.com>
73346
73347         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
73348         * m4/chown.m4: Rename conftestchown to conftest.chown.
73349         * m4/rename.m4: s/conftestdir/conftest.d1/ and
73350         s/conftestdir2/conftest.d2/.
73351         * m4/utimes.m4: s/conftestdata/conftest.data/
73352         Inspired by Pavel Roskin's change in autoconf.
73353
73354 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
73355
73356         * lib/config.charset: Update for FreeBSD 4.2.
73357
73358 2001-01-27  Jim Meyering  <meyering@lucent.com>
73359
73360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
73361         a use of AS_IF.
73362         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73363
73364 2001-01-26  Jim Meyering  <meyering@lucent.com>
73365
73366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
73367         quotearg.c includes it.
73368
73369 2001-01-26  Jim Meyering  <meyering@lucent.com>
73370
73371         * lib/quotearg.c: Include stddef.h.
73372         * lib/quote.c: Include stddef.h.
73373         Reported by Axel Kittenberger.
73374
73375         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
73376         line in double quotes so that it evokes a better diagnostic.
73377         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
73378         Reported by Axel Kittenberger.
73379
73380 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
73381
73382         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
73383         as if it was a `charset'.
73384
73385 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73386
73387         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
73388         has const.
73389
73390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73391
73392         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
73393         to avoid a warning.  Add back 'const' to inptr.
73394
73395 2001-01-20  Jim Meyering  <meyering@lucent.com>
73396
73397         Be sure that headers are checked before used in code compiled
73398         for the type checks.
73399         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
73400         In place of that, invoke jm_CHECK_ALL_TYPES.
73401         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
73402         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
73403         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
73404         The check for ssize_t was mistakenly run before the test for unistd.h.
73405
73406         The configure-time check for stdbool.h was missing.
73407         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
73408         (jm_PREREQ_HASH): New function.
73409
73410 2001-01-17  Jim Meyering  <meyering@lucent.com>
73411
73412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
73413         for autoconf-2.49c.
73414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
73415
73416 2001-01-16  Jim Meyering  <meyering@lucent.com>
73417
73418         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
73419         From Bruno Haible.
73420
73421 2001-01-14  Jim Meyering  <meyering@lucent.com>
73422
73423         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
73424         foo and bar.  Create conftestdir/ in the script, not in the C code.
73425         Remove directories in the script, not in the C code.
73426         Remove conftestdir{,2} before trying to create the directory.
73427         Make the entire configure script fail if the mkdir fails.
73428
73429 2001-01-14  Jim Meyering  <meyering@lucent.com>
73430
73431         * lib/rename.c: New file.  From Volker Borchert.
73432         Include stdlib.h, string.h or strings.h, and xalloc.h.
73433         Use strip_trailing_slashes rather than open-coding it.
73434
73435 2001-01-03  Paul Eggert  <eggert@twinsun.com>
73436
73437         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
73438
73439 2001-01-03  Jim Meyering  <meyering@lucent.com>
73440
73441         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
73442         of local `inptr' to avoid warning with some system declarations of
73443         iconv.
73444
73445 2001-01-02  Volker Borchert  <bt@teknon.de>
73446
73447         * m4/rename.m4: New file.
73448         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
73449
73450 2001-01-01  Jim Meyering  <meyering@lucent.com>
73451
73452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
73453         even on systems with utmpx.h.  It's necessary for the declaration of
73454         utmp's ut_user member.  Reported by Andreas Jaeger.
73455
73456         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
73457         available. They are required for the declarations of getgrgid and
73458         getpwuid resp.
73459         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
73460         Reported by Andreas Jaeger.
73461
73462 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
73463
73464         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
73465         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
73466         so `make install' also works in VPATH builds.
73467
73468 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
73469
73470         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
73471         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
73472         can be used in subdirectories.
73473
73474 2000-12-29  Paul Eggert  <eggert@twinsun.com>
73475
73476         * lib/modechange.c: Do not assume that mode_t uses the
73477         traditional octal encoding.  E.g. "chmod 1 FOO" should set
73478         the other-execute bit of FOO even if S_IXOTH != 1.
73479
73480         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
73481         WOTH, XOTH, ALLM): New macros.
73482         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
73483          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
73484         Use them.
73485         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
73486         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
73487         (mode_compile):
73488         No need to use uintmax_t; unsigned long is long enough.
73489         Don't bother to get suffix since we don't use it.
73490
73491 2000-12-26  Jim Meyering  <meyering@lucent.com>
73492
73493         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
73494         better with autoheader.
73495
73496 2000-12-24  Jim Meyering  <meyering@lucent.com>
73497
73498         * lib/hash.c (is_prime): Return explicit boolean values.
73499         (hash_get_first): Return NULL to appease Irix5.6's 89.
73500         Reported by Nelson Beebe.
73501
73502 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73503
73504         * lib/localcharset.c (locale_charset): Add support for Win32.
73505
73506 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73507
73508         * lib/physmem.h, lib/physmem.c: New files.
73509
73510         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73511         (noinst_HEADERS): Add physmem.h.
73512
73513         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73514         't' for compatibility with Solaris 8 sort.
73515
73516 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73517
73518         * lib/config.charset: Add support for BeOS.
73519
73520 2000-12-17  Jim Meyering  <meyering@lucent.com>
73521
73522         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73523         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73524
73525 2000-12-16  Jim Meyering  <meyering@lucent.com>
73526
73527         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73528         N and M) would have treated it like `chown N:N FILE'.
73529
73530         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73531
73532 2000-12-16  Jim Meyering  <meyering@lucent.com>
73533
73534         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73535         SHELLS_FILE to a file name that's useful on djgpp systems.
73536         Include stdlib.h.
73537         (ADDITIONAL_DEFAULT_SHELLS): Define.
73538         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73539         Based mostly on a patch from Prashant TR.
73540
73541 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73542
73543         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73544         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73545         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73546
73547 2000-12-08  Andreas Schwab  <schwab@suse.de>
73548
73549         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73550         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73551
73552 2000-12-07  Jim Meyering  <meyering@lucent.com>
73553
73554         * lib/stripslash.c (ISSLASH): Define.
73555         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73556         `/'.
73557         From Prashant TR.
73558
73559         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73560         (dir_name_r): Declare this function as static.
73561         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73562         manifest itself on a name containing a mix of slashes and
73563         backslashes.
73564         Make this function work with names starting with a DOS-style
73565         drive letter and colon prefix.
73566         (dir_name): Append `.' if necessary.
73567         Based mostly on patches from Prashant TR and Eli Zaretskii.
73568
73569         * lib/dirname.h (dir_name_r): Remove prototype.
73570
73571 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73572
73573         * m4/off_t-format.m4: Remove this file.
73574         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73575
73576 2000-12-06  Jim Meyering  <meyering@lucent.com>
73577
73578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73579         replacement strtoull, we may well need the replacement strtoul, too.
73580         Check for declarations of strtoul and strtoull.
73581         Check for strtol.  Mainly as a cue to cause automake to include
73582         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73583         Check for limits.h -- strtol.c needs it.
73584
73585 2000-12-05  Jim Meyering  <meyering@lucent.com>
73586
73587         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73588
73589 2000-12-04  Jim Meyering  <meyering@lucent.com>
73590
73591         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73592         Also include memory.h, stdlib.h, unistd.h if appropriate.
73593         Reported by Andreas Jaeger (conflicting declaration of malloc).
73594
73595 2000-12-02  Jim Meyering  <meyering@lucent.com>
73596
73597         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73598         * m4/jm-macros.m4 (jm_MACROS): require it.
73599
73600 2000-12-02  Jim Meyering  <meyering@lucent.com>
73601
73602         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73603
73604 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73605
73606         * lib/memrchr.c: Include <config.h> before any system include file.
73607
73608 2000-11-30  Jim Meyering  <meyering@lucent.com>
73609
73610         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73611
73612 2000-11-30  Jim Meyering  <meyering@lucent.com>
73613
73614         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73615
73616 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73617
73618         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73619
73620 2000-11-26  Jim Meyering  <meyering@lucent.com>
73621
73622         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73623
73624 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73625
73626         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73627         size of (size_t) -1; it's not portable.
73628
73629 2000-11-17  Jim Meyering  <meyering@lucent.com>
73630
73631         * lib/strstr.c: Update from GNU libc.
73632
73633 2000-11-17  Akim Demaille  <akim@epita.fr>
73634
73635         * lib/obstack.h: Formatting changes.
73636         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73637         prevent type checking.
73638         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73639         cast the value to (void *): assigning a `foo *' to a `void *'
73640         variable is valid.
73641         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73642
73643 2000-11-16  Jim Meyering  <meyering@lucent.com>
73644
73645         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73646
73647 2000-11-11  Jim Meyering  <meyering@lucent.com>
73648
73649         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73650
73651 2000-11-10  Jim Meyering  <meyering@lucent.com>
73652
73653         * lib/obstack.h: Update from GNU libc.
73654         * lib/obstack.c: Likewise.
73655
73656 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73657
73658         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73659
73660 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73661
73662         * lib/getusershell.c (setusershell): Use rewind rather than
73663         fseek/fseeko, to avoid configuration hassles with fseeko.
73664         Don't bother opening SHELLS_FILE if shellstream is NULL;
73665         it's not necessary.
73666
73667 2000-11-05  Jim Meyering  <meyering@lucent.com>
73668
73669         * lib/makepath.h (make_dir): Declare.
73670         * lib/makepath.c (make_dir): Remove `static' attribute.
73671         Tweak a comment.
73672
73673 2000-11-04  Jim Meyering  <meyering@lucent.com>
73674
73675         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73676
73677 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73678
73679         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73680         last one in a bucket, advance to the next bucket.
73681
73682 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73683
73684         * lib/fnmatch.c: Do not comment out all the code if we are using
73685         the GNU C library, because in some cases we are replacing buggy
73686         code in the GNU C library itself.
73687
73688 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73689
73690         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73691         (regex_compile): Catch bogus \(\1\).
73692
73693 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73694
73695         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73696         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73697         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73698
73699 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73700
73701         * lib/error.h, getline.h, modechange.h:
73702         Remove "2000" from Copyright line, as the file hasn't been
73703         changed this year other than in the copyright notice.
73704
73705         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73706         was changed this year.
73707
73708 2000-10-29  Jim Meyering  <meyering@lucent.com>
73709
73710         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73711         renaming.
73712         * m4/ls-mntd-fs.m4: Likewise
73713
73714 2000-10-29  Jim Meyering  <meyering@lucent.com>
73715
73716         * lib/xstat.in: Fix grammar in comment.
73717
73718 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73719
73720         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73721         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73722         doesn't define __restrict_arr.
73723
73724 2000-10-28  Jim Meyering  <meyering@lucent.com>
73725
73726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73727         (jm_PREREQ_MEMCHR): New function.
73728
73729 2000-10-28  Jim Meyering  <meyering@lucent.com>
73730
73731         * lib/memchr.c: Update from libc.
73732         Adjust for portability:
73733         [HAVE_STDLIB_H]: Include stdlib.h.
73734         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73735         Undef __memchr, too.
73736         [!weak_alias]: Define __memchr to memchr.
73737
73738         * lib/regex.c: Update from libc.
73739         * lib/regex.h: Likewise.
73740         * lib/getopt1.c: Likewise.
73741         * lib/memcmp.c: Likewise.
73742
73743         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73744         Avoid using fseek, when possible -- it's broken by design.
73745         Patch by Ulrich Drepper.
73746
73747 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73748
73749         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73750         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73751         Giving in to popular pressure to shut up the compiler with casts.
73752
73753 2000-10-26  Jim Meyering  <meyering@lucent.com>
73754
73755         * lib/strftime.c: Update from libc.
73756
73757 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73758
73759         * regex.c: More `unsigned char' -> `re_char' changes.
73760         Also change several `int' into `re_wchar_t'.
73761         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73762         (PUSH_FAILURE_POINTER): Don't cast any more.
73763         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73764         We want GCC to complain, since this piece of code makes
73765         re_match non-reentrant, which *should* be fixed.
73766         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73767         (EXTEND_BUFFER): Use RETALLOC.
73768         (SET_LIST_BIT): Don't cast.
73769         (re_wchar_t): New type.
73770         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73771         that those two functions will always properly return.
73772         (IMMEDIATE_QUIT_CHECK): Cast to void.
73773         (analyse_first): Use recursion rather than an explicit stack.
73774         (re_compile_fastmap): Can't fail anymore.
73775         (re_search_2): Don't check re_compile_fastmap for failure.
73776         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73777         Now also sets the new value (passed in a new argument).
73778         (re_match_2_internal): Use it.
73779         Also, use a new var `reg' of type size_t when looping through regs
73780         rather than reuse the inappropriate `mcnt'.
73781
73782 2000-10-25  Jim Meyering  <meyering@lucent.com>
73783
73784         * lib/obstack.c: Update from libc.
73785
73786 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73787
73788         * regex.c (regex_compile): Change the way of handling a range from
73789         a char less than 256 to a char not less than 256.
73790
73791 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73792
73793         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73794         NT-Emacs only.
73795         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73796         so that re_search functions only quit when callers expect them to.
73797
73798 2000-10-23  Jim Meyering  <meyering@lucent.com>
73799
73800         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73801         wrong.  That set_locale call must not have any side effects.
73802         From Paul Eggert.
73803
73804 2000-10-22  Jim Meyering  <meyering@lucent.com>
73805
73806         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73807         [CYCLIC]: Remove now-unused definition.
73808
73809         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73810         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73811         Suggestion from Ulrich Drepper.
73812
73813 2000-10-21  Jim Meyering  <meyering@lucent.com>
73814
73815         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73816         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73818
73819 2000-10-21  Jim Meyering  <meyering@lucent.com>
73820
73821         * lib/dirname.c (memrchr): Declare if necessary.
73822         (dir_name): Remove the restriction that there be no
73823         trailing slashes.  Now, this code skips past them, effectively
73824         ignoring them.
73825         [TEST_DIRNAME] (main): New unit tests.
73826
73827         * lib/memrchr.c: New file from GNU libc.
73828         Undef __memrchr, too.
73829         [!weak_alias]: Define __memrchr to memrchr.
73830         Guard weak_alias use with `#ifdef weak_alias'.
73831
73832 2000-10-21  Jim Meyering  <meyering@lucent.com>
73833
73834         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73835         (dir_name): Use dir_name_r.
73836         * lib/dirname.h (dir_name_r): Declare it.
73837
73838 2000-10-17  Jim Meyering  <meyering@lucent.com>
73839
73840         * lib/quote.h (PARAMS): Define and use.
73841         Reported by Akim Demaille.
73842
73843         * lib/getopt.c: Update from libc.
73844
73845 2000-10-16  Jim Meyering  <meyering@lucent.com>
73846
73847         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73848         setlocale.
73849         From Jan Fedak.
73850
73851 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73852
73853         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73854
73855 2000-09-25  Jim Meyering  <meyering@lucent.com>
73856
73857         * lib/md5.h (rol): Define (from GnuPG).
73858
73859         * lib/sha.c: Give credit (GnuPG) where due.
73860         (M): Use rol rather than open-coding it.
73861         Add a FIXME comment.
73862
73863 2000-09-21  Jim Meyering  <meyering@lucent.com>
73864
73865         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73866         Reported by Michael Stone.
73867
73868 2000-09-20  Jim Meyering  <meyering@lucent.com>
73869
73870         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73871         (noinst_HEADERS): Add sha.h.
73872         Based on code from Scott G. Miller and from GnuPG.
73873
73874 2000-09-18  Jim Meyering  <meyering@lucent.com>
73875
73876         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73877         LIBS. Otherwise, everyone ends up linking with -lelf for some
73878         configurations.
73879         Reported by Mike Stone.
73880
73881 2000-09-15  Jim Meyering  <meyering@lucent.com>
73882
73883         * lib/regex.c: Update from libc.
73884
73885 2000-09-10  Jim Meyering  <meyering@lucent.com>
73886
73887         * lib/getopt.c (_getopt_internal): Update from glibc.
73888
73889 2000-09-09  Jim Meyering  <meyering@lucent.com>
73890
73891         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73892         think it should be used as a general replacement for isascii.
73893         * lib/fnmatch.c: Likewise.
73894         * lib/mbswidth.c: Likewise
73895         * lib/regex.c: Likewise.
73896
73897         Don't use atoi.
73898         * lib/userspec.c: Include sys/param.h and limits.h.
73899         Include xstrtol.h.
73900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73901         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73902         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73903         UID, GID.  Check range.
73904
73905 2000-09-06  Jim Meyering  <meyering@lucent.com>
73906
73907         * lib/getopt.c (_getopt_internal): Update from glibc.
73908
73909 2000-08-30  Jim Meyering  <meyering@lucent.com>
73910
73911         * lib/strftime.c: Merge in changes from GNU libc.
73912
73913 2000-08-26  Jim Meyering  <meyering@lucent.com>
73914
73915         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73916         * m4/fpending.m4: New file.
73917
73918 2000-08-26  Jim Meyering  <meyering@lucent.com>
73919
73920         * lib/closeout.c: Include "__fpending.h".
73921         (close_stdout_status): Return right away if there's nothing to flush.
73922
73923         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73924         * lib/__fpending.c: New file.
73925         * lib/__fpending.h: New file.
73926
73927 2000-08-20  Jim Meyering  <meyering@lucent.com>
73928
73929         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
73930         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
73931         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
73932
73933 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
73934
73935         Improve fileutils installation on systems where running
73936         programs (like install) can't be unlinked.
73937         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
73938         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
73939
73940 2000-08-07  Paul Eggert  <eggert@twinsun.com>
73941
73942         Standardize on "memory exhausted" instead of "Memory exhausted"
73943         or "virtual memory exhausted".
73944         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
73945         "virtual memory exhausted".
73946         * lib/same.c (same_name): Invoke xalloc_die instead of printing
73947         our own message.
73948         * lib/userspec.c (parse_user_spec): Likewise.
73949         * lib/bumpalloc.h: comment fix
73950         * lib/same.c, userspec.c: Include xalloc.h.
73951
73952         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
73953         not char *const and pointing to a constant array.
73954         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
73955         (xrealloc): Comment fix.
73956
73957         * lib/userspec.c (parse_user_spec):
73958         Don't translate a message until just before returning,
73959         to avoid unnecessary translation.
73960
73961 2000-08-07  Jim Meyering  <meyering@lucent.com>
73962
73963         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
73964         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
73965         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
73966         getgroups.c, gethostname.c, getopt.h, group-member.c,
73967         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
73968         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
73969         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
73970         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
73971         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
73972         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73973         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73974         yesno.c: Back out Copyright date changes for each file with no change
73975         this year.  This eases coordination with other programs using the same
73976         source code modules.  From Paul Eggert.
73977
73978 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73979
73980         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73981         not char, for compatibility with glibc 2.1.3 strftime.c.
73982
73983 2000-08-03  Greg McGary  <greg@mcgary.org>
73984
73985         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73986         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73987         (EXTEND_BUFFER): Use them.
73988
73989 2000-08-01  Jim Meyering  <meyering@lucent.com>
73990
73991         * lib/dirname.c (ISSLASH): Define.
73992         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73993         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73994         both `\' and `/' may be use as path separators.
73995         Based on a patch from Prashant TR.
73996
73997 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73998
73999         * lib/quotearg.c (quotearg_n_options): Don't make the initial
74000         slot vector a constant, since it might get modified.
74001
74002 2000-07-31  Jim Meyering  <meyering@lucent.com>
74003
74004         * lib/xmalloc.c: Use `virtual memory exhausted', not
74005         `Memory exhausted'.
74006         * lib/obstack.c (print_and_abort): Likewise.
74007
74008 2000-07-30  Paul Eggert  <eggert@twinsun.com>
74009
74010         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
74011         buffer, so that the caller can always quote one small
74012         component of a "memory exhausted" message in slot 0.
74013         From a suggestion by Jim Meyering.
74014
74015 2000-07-30  Jim Meyering  <meyering@lucent.com>
74016
74017         * lib/makepath.c (make_path): Quote the other instance, too.
74018
74019         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
74020         (STATIC_BUF_SIZE): Define.
74021         (quotearg_n_options): Use only statically allocated storage when
74022         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
74023         than STATIC_BUF_SIZE.
74024
74025 2000-07-29  Jim Meyering  <meyering@lucent.com>
74026
74027         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
74028         * lib/dirname.c (dir_name): Likewise.
74029
74030         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
74031         `/'.
74032
74033         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
74034         (dir_name): Assert that there are no trailing slashes.
74035
74036 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
74037
74038         * lib/mbswidth.h (mbswidth): Add a flags argument.
74039         (mbswidth): New declaration.
74040         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
74041         * lib/mbswidth.c (mbswidth): Add a flags argument.
74042         (mbsnwidth): New function.
74043
74044 2000-07-24  Jim Meyering  <meyering@lucent.com>
74045
74046         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
74047
74048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74049
74050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
74051
74052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74053
74054         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
74055         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
74056         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
74057         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
74058         invoke multibyte primitives.
74059
74060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74061
74062         * lib/quotearg.c:
74063         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
74064         so that mbstate_t is always defined.
74065
74066         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
74067         be 1 in at least one GCC installation, and this configuration
74068         error is likely to be common.  Ignoring MB_LEN_MAX hurts
74069         performance on hosts that have mbrtowc but have only unibyte
74070         locales, but I assume these hosts are rare.
74071
74072 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74073
74074         * lib/mbswidth.c (_XOPEN_SOURCE):
74075         Don't define; this causes problems on Solaris 7.
74076         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
74077
74078 2000-07-23  Jim Meyering  <meyering@lucent.com>
74079
74080         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
74081         too: getgrgid, getpwuid, getuid.
74082
74083 2000-07-23  Jim Meyering  <meyering@lucent.com>
74084
74085         * lib/basename.c (base_name): Add an assertion.
74086
74087 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
74088
74089         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
74090         shadow its mbsinit function.
74091
74092 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74093
74094         * lib/mbswidth.h: New file.
74095         * lib/mbswidth.c: New file.
74096         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
74097         (noinst_HEADERS): Add mbswidth.h.
74098
74099 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74100
74101         * lib/config.charset: Add support for FreeBSD. Improve support for
74102         HP-UX and IRIX 6.
74103
74104 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74105
74106         * m4/mbswidth.m4: New file.
74107         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74108
74109 2000-07-15  Jim Meyering  <meyering@lucent.com>
74110
74111         * lib/makepath.c: Include quote.h.
74112         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74113         corresponding argument in a `quote (...)' call.
74114         Give better diagnostics.
74115
74116         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74117         (noinst_HEADERS): Add quote.h.
74118
74119         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74120         from tar's src/misc.c.
74121         * lib/quote.h: New file.  Prototypes for same.
74122
74123 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74124
74125         From a suggestion by Bruno Haible.
74126         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74127         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74128         to decide whether to define the BeOS workaround macro;
74129         this adjusts to the change to AC_MBSTATE_T.
74130
74131 2000-07-14  Jim Meyering  <meyering@lucent.com>
74132
74133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74134         jm_AC_TYPE_UINTMAX_T.
74135
74136 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74137
74138         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74139
74140         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74141         quotearg_buffer_restyled): Add support for
74142         clocale_quoting_style.  Undo previous change to
74143         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74144         and "{RIGHT QUOTATION MARK}" msgids.
74145
74146 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74147
74148         From a suggestion by Bruno Haible.
74149         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74150         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74151         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74152         and mbstate_t, to a single-part test that simply defines mbstate_t.
74153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74154         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74155
74156 2000-07-10  Jim Meyering  <meyering@lucent.com>
74157
74158         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74159
74160         * m4/gnu-source.m4: Output to confdefs.h directly.
74161         Suggestion from Akim Demaille.
74162
74163 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74164
74165         The old behavior of quoting `like this' doesn't look good with
74166         newer, ISO-style fonts.  See:
74167         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74168
74169         Instead, quote "like this" by default.  Let the translator
74170         tailor the locale-specific quoting behavior by providing
74171         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74172
74173         * lib/quotearg.c (N_): New macro.
74174         (gettext_default): New function.
74175         (quotearg_buffer_restyled): Use
74176         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
74177         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
74178
74179 2000-07-09  Jim Meyering  <meyering@lucent.com>
74180
74181         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
74182         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
74183
74184         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
74185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
74186
74187 2000-07-09  Jim Meyering  <meyering@lucent.com>
74188
74189         * lib/Most files: Update copyright dates to include 2000.
74190
74191 2000-07-08  Jim Meyering  <meyering@lucent.com>
74192
74193         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
74194         if not defined.
74195         (xgethostname): Remove now-unnecessary #ifdef.
74196         Move declaration of `err' into loop where it's used.
74197
74198 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74199         and Bruno Haible  <haible@clisp.cons.org>
74200
74201         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
74202         only if the test for an object-type mbstate_t fails.  This
74203         prevents us from mistakenly reporting that mbstate_t is a
74204         system object type after we "#define mbstate_t int" to work
74205         around its lack.
74206
74207 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74208         and Bruno Haible  <haible@clisp.cons.org>
74209
74210         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
74211
74212 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74213
74214         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
74215         to strerror_r.
74216         Include <ctype.h> for use of isalpha.
74217
74218 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74219
74220         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
74221         by allocating a larger buffer. Test the gethostname return value for
74222         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
74223         returns an error and ENAMETOOLONG isn't defined.
74224
74225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74226
74227         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
74228         dimension.
74229
74230 2000-07-04  Jim Meyering  <meyering@lucent.com>
74231
74232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
74233         of the deprecated AC_CHECKING.
74234
74235 2000-07-04  Jim Meyering  <meyering@lucent.com>
74236
74237         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
74238         Reported by Bruno Haible.
74239
74240 2000-07-04  Jim Meyering  <meyering@lucent.com>
74241
74242         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
74243         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
74244         lacks mbrtowc.
74245
74246 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74247
74248         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
74249         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
74250
74251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74252         and Bruno Haible  <haible@clisp.cons.org>
74253
74254         * lib/quotearg.c (mbrtowc):
74255         Assign to *pwc, and return 1 only if result is nonzero.
74256         (iswprint): Use ISPRINT when substituting our own mbrtowc.
74257
74258 2000-07-03  Jim Meyering  <meyering@lucent.com>
74259
74260         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
74261
74262 2000-07-03  Jim Meyering  <meyering@lucent.com>
74263
74264         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
74265         This is necessary to get a definition of e.g., UTMP_FILE on
74266         HP-UX 10.20.
74267         From Bob Proulx.
74268
74269 2000-07-02  Jim Meyering  <meyering@lucent.com>
74270
74271         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
74272
74273         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
74274         AC_LIBOBJ(function_name).
74275         * m4/chown.m4: Likewise.
74276         * m4/fnmatch.m4: Likewise.
74277         * m4/ftruncate.m4: Likewise.
74278         * m4/getgroups.m4: Likewise.
74279         * m4/getline.m4: Likewise.
74280         * m4/group-member.m4: Likewise.
74281         * m4/jm-macros.m4: Likewise.
74282         * m4/lstat.m4: Likewise.
74283         * m4/malloc.m4: Likewise.
74284         * m4/memcmp.m4: Likewise.
74285         * m4/nanosleep.m4: Likewise.
74286         * m4/putenv.m4: Likewise.
74287         * m4/realloc.m4: Likewise.
74288         * m4/regex.m4: Likewise.
74289         * m4/stat.m4: Likewise.
74290         * m4/strftime.m4: Likewise.
74291
74292 2000-07-02  Jim Meyering  <meyering@lucent.com>
74293
74294         * lib/quotearg.c (mbstate_t): Don't define here.
74295
74296 2000-07-02  Jim Meyering  <meyering@lucent.com>
74297
74298         * lib/nanosleep.c (SIGCONT): Define if not already defined.
74299
74300 2000-07-01  Jim Meyering  <meyering@lucent.com>
74301
74302         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
74303
74304 2000-07-01  Jim Meyering  <meyering@lucent.com>
74305
74306         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
74307         problem.
74308
74309 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74310
74311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
74312         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
74313
74314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74315
74316         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
74317         per change in ../m4/ls-mntd-fs.m4.
74318         (read_filesystem_list): Ignore symbolic links.
74319
74320 2000-06-29  Jim Meyering  <meyering@lucent.com>
74321
74322         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
74323         for declaration of strcmp.
74324
74325         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
74326
74327         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
74328         Avoid warning by casting result to `char *' to remove `const'.
74329
74330 2000-06-28  Jim Meyering  <meyering@lucent.com>
74331
74332         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
74333         included by quotearg.c, for which we perform this test.  From
74334         Bruno Haible.
74335
74336 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74337
74338         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
74339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
74340         <utmpx.h> exists, put readutmp.o into LIBOBJS.
74341
74342 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74343
74344         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
74345
74346 2000-06-26  Paul Eggert  <eggert@twinsun.com>
74347
74348         savedir now sets errno on failure and invokes xmalloc to get memory.
74349         Fix a couple of other minor bugs while we're at it.
74350
74351         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
74352         (NAMLEN): Remove macro.
74353         (malloc, realloc): Remove decls.
74354         (stpcpy): Likewise.
74355         ("xalloc.h"): Include.
74356         (NAME_SIZE_DEFAULT): New macro.
74357         (savedir): Use xmalloc / xrealloc to allocate memory.
74358         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
74359         Skip "" directory entries.
74360         Use strlen to calculate directory entry length, since the old method
74361         is rarely used these days and isn't worth supporting.
74362         Don't use a pointer after freeing it.
74363         Check for integer overflow when calculating allocation size.
74364         Use memcpy to copy entries, instead of stpcpy.
74365         Set errno properly when returning NULL.
74366         Check for readdir error.
74367
74368 2000-06-26  Jim Meyering  <meyering@lucent.com>
74369
74370         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
74371
74372 2000-06-25  Jim Meyering  <meyering@lucent.com>
74373
74374         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
74375         Linux header bug when _XOPEN_SOURCE is defined to 500.
74376
74377 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74378
74379         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
74380         deficiency.
74381
74382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74383
74384         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
74385         Include xalloc.h.
74386         Don't include <stdlib.h>.  Don't declare malloc, realloc.
74387
74388 2000-06-24  Jim Meyering  <meyering@lucent.com>
74389
74390         * m4/strerror_r.m4: Revive this file -- to try out an experimental
74391         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
74392         for which strerror does return char*, but which lacks a conveniently
74393         accessible declaration of the function.  If the compile-test says
74394         strerror_r doesn't work, then resort to a `run'-test that works on
74395         BeOS and segfaults on DEC Unix.
74396
74397 2000-06-24  Jim Meyering  <meyering@lucent.com>
74398
74399         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
74400
74401 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74402
74403         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
74404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
74405
74406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74407
74408         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
74409         (mbrtowc, mbstate_t): Define substitutes if
74410         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
74411         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
74412         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
74413
74414 2000-06-23  Jim Meyering  <meyering@lucent.com>
74415
74416         * m4/afs.m4: Add missing AC_MSG_RESULT.
74417         Reported by Bruno Haible.
74418
74419         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
74420         Suggestion from Bruno Haible.
74421
74422 2000-06-23  Jim Meyering  <meyering@lucent.com>
74423
74424         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
74425
74426 2000-06-21  Jim Meyering  <meyering@lucent.com>
74427
74428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
74429
74430 2000-06-21  Jim Meyering  <meyering@lucent.com>
74431
74432         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
74433         (noinst_HEADERS): Add getstr.h.
74434
74435         * lib/getline.c (getstr): Move into a separate file.
74436         * lib/getstr.c (getstr): New file, extracted from getline.c, with
74437         the following changes: new parameter, delim2; both delim[12]
74438         parameters have type `int', not `char'.  The latter would lose
74439         with 8-bit delimiters.
74440         * lib/getstr.h: New file.
74441
74442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74443
74444         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
74445         than 1024, return a memory chunk of least possible size, instead
74446         of size PATH_MAX + 2. In the loop, increment the size proportionally.
74447         Use free/xmalloc instead of xrealloc to avoid copying for very long
74448         paths.
74449
74450 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74451
74452         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
74453         the empty string.
74454
74455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74456
74457         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
74458         address, not strdup.  Include <stdlib.h> and don't declare free().
74459
74460 2000-06-19  Jim Meyering  <meyering@lucent.com>
74461
74462         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
74463
74464 2000-06-18  Jim Meyering  <meyering@lucent.com>
74465
74466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
74467
74468         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
74469         `checking whether...' message to be consistent with that of the
74470         lstat test.
74471
74472 2000-06-18  Jim Meyering  <meyering@lucent.com>
74473
74474         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
74475         Besides, these days every porting target provides a mkdir function.
74476
74477         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
74478         needed. (this snippet comes from src/system.h).
74479
74480 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
74481
74482         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
74483
74484 2000-06-15  Paul Eggert  <eggert@twinsun.com>
74485
74486         * lib/human.c (adjust_value): New function.
74487         (human_readable_inexact): Apply rounding style even when
74488         printing approximate values.
74489
74490 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74491
74492         * lib/human.c (human_readable_inexact): Allow an input block
74493         size that is not a multiple of the output block size, and vice versa.
74494         Reported by Piergiorgio Sartor.
74495
74496 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74497
74498         * lib/getdate.y (get_date): Apply relative times after time
74499         zone indicator, not before.  Reported by Todd A. Jacobs.
74500
74501 2000-06-13  Jim Meyering  <meyering@lucent.com>
74502
74503         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74504
74505         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74506
74507 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74508
74509         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74510
74511 2000-06-12  Jim Meyering  <meyering@lucent.com>
74512
74513         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74514         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74515         optional argument.
74516         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74517         the optional argument, `lib'.
74518
74519 2000-06-08  Jim Meyering  <meyering@lucent.com>
74520
74521         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74522
74523 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74524
74525         Rewrite largefile configuration so that we don't need to run
74526         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74527         AC_CANONICAL_HOST in configure.in -- jmm]
74528
74529         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74530         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74531         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74532         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74533         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74534         All uses changed.
74535         Instead of inspecting the output of getconf, try to compile the
74536         test program without and with the macro definition.
74537         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74538         for getconf.  Instead, check for the needed flags by compiling
74539         test programs.
74540
74541 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74542
74543         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74544
74545 2000-06-04  Jim Meyering  <meyering@lucent.com>
74546
74547         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74548         SunOS 4.1.4 for which gid_t is an unsigned type.
74549
74550 2000-06-03  Jim Meyering  <meyering@lucent.com>
74551
74552         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74553         now that autoconf requires that.
74554
74555         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74556         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74557         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74558
74559 2000-06-03  Jim Meyering  <meyering@lucent.com>
74560
74561         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74562
74563 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74564
74565         * m4/glibc21.m4: New file.
74566         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74567
74568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74569
74570         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74571         newer, don't install charset.alias.
74572         * lib/config.charset: Change the Linux/glibc rules so they become empty
74573         on glibc-2.1 or newer.
74574
74575 2000-06-02  Jim Meyering  <meyering@lucent.com>
74576
74577         * lib/mountlist.c: Back out last change.  Instead, do this...
74578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74579         me_dummy member using the same `ignore'-testing code.
74580         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74581         fs_type strings.
74582         From Mark D. Roth.
74583
74584 2000-05-29  Jim Meyering  <meyering@lucent.com>
74585
74586         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74587         mounts with the `ignore' attribute.  Based on a patch from
74588         Mark D. Roth.
74589
74590 2000-05-28  Jim Meyering  <meyering@lucent.com>
74591
74592         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74593         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74594         * m4/stat.m4: Likewise.
74595         * m4/lstat.m4: Likewise.
74596         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74597
74598         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74599         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74600
74601 2000-05-26  Jim Meyering  <meyering@lucent.com>
74602
74603         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74604
74605 2000-05-24  Jim Meyering  <meyering@lucent.com>
74606
74607         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74608         autoconf requires that.
74609         * m4/lib-check.m4: Likewise.
74610         * m4/jm-macros.m4: Likewise.
74611         * m4/strftime.m4: Likewise.
74612
74613         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74614         AC_CHECK_DECLS, now that autoconf requires that.
74615
74616 2000-05-22  Jim Meyering  <meyering@lucent.com>
74617
74618         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74619         * m4/lstat.m4: Likewise.
74620
74621 2000-05-22  Jim Meyering  <meyering@lucent.com>
74622
74623         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74624
74625 2000-05-20  Jim Meyering  <meyering@lucent.com>
74626
74627         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74628         (jm_PREREQ): Use it.
74629
74630 2000-05-18  Jim Meyering  <meyering@lucent.com>
74631
74632         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74633         back, too, since it may have been modified by allocate_entry.
74634         (hash_delete): Rewrite to use neither the assignment operator
74635         nor the comma operator in an if-expression.
74636
74637 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74638
74639         * lib/closeout.c:
74640         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74641         Remove; no longer needed.
74642         "quotearg.h": Add include.
74643         (file_name): Do not bother to explicitly initialize to NULL; it's less
74644         efficient on some hosts.
74645         (close_stdout_status): Remove test as to whether stdout was already
74646         closed; it breaks for the case "echo x | sort >&-".
74647         Quote file name colons.
74648         Do not assume that _("write error") lacks format strings.
74649
74650 2000-05-15  Jim Meyering  <meyering@lucent.com>
74651
74652         * lib/version-etc.c (version_etc_copyright): Update the copyright
74653         string used in all --version output.
74654
74655 2000-05-14  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/closeout.c (close_stdout_set_file_name): New function.
74658         (close_stdout_status): Use new file-scoped global.
74659         Return right away if fstat says the stdout file descriptor is invalid.
74660         * lib/closeout.h (close_stdout_set_file_name): Declare.
74661
74662 2000-05-10  Jim Meyering  <meyering@lucent.com>
74663
74664         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74665         (close_stdout_set_status): New function.
74666         * lib/closeout.h (close_stdout_set_status): Declare.
74667
74668 2000-05-09  Jim Meyering  <meyering@lucent.com>
74669
74670         * m4/gettext.m4: Rename this...
74671         * m4/libintl.m4: ...to this.
74672
74673 2000-05-08  Jim Meyering  <meyering@lucent.com>
74674
74675         * lib/long-options.c: Don't include closeout.h.
74676         (parse_long_options): Don't call close_stdout for --version.
74677
74678 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74679
74680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74681         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74682         2.1.3 bug.  This avoids a clash when files like regex.c define
74683         _GNU_SOURCE.
74684
74685 2000-05-06  Jim Meyering  <meyering@lucent.com>
74686
74687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74688         (AC_REPLACE_FUNCS): Add strnlen.
74689
74690         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74691         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74692
74693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74694         AC_SEARCH_LIBS call for nanosleep.
74695         (LIB_NANOSLEEP): Set and AC_SUBST.
74696
74697 2000-05-06  Jim Meyering  <meyering@lucent.com>
74698
74699         * lib/strnlen.c: Undefine __strnlen and strnlen.
74700         [!weak_alias]: Define __strnlen to strnlen.
74701
74702         * lib/atexit.c: New file, from libiberty.
74703
74704 2000-05-06  Jim Meyering  <meyering@lucent.com>
74705
74706         * lib/closeout.c (close_stdout_status): Also check for errors on the
74707         stderr stream.
74708
74709 2000-05-05  Jim Meyering  <meyering@lucent.com>
74710
74711         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74712         AC_SEARCH_LIBS call for clock_gettime.
74713         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74714
74715         * m4/search-libs.m4: Update from autoconf.
74716
74717         su doesn't work on Solaris 2.6.
74718         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74719         <shadow.h>.  Reported by Dragos Harabor.
74720
74721 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74722
74723         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74724         memcpy instead of xmalloc, xrealloc, path_concat.
74725         (locale_charset): Treat empty environment variables as absent.
74726         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74727
74728 2000-05-04  Jim Meyering  <meyering@lucent.com>
74729
74730         * lib/getopt.c: Update from glibc.
74731         * lib/obstack.c: Likewise.
74732         * lib/obstack.h: Likewise.
74733         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74734         file
74735
74736         * lib/regex.h: Likewise.
74737         * lib/strndup.c: Likewise.
74738         * lib/strnlen.c: New file, from glibc.
74739
74740 2000-05-03  Jim Meyering  <meyering@lucent.com>
74741
74742         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74743
74744 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74745
74746         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74747         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74748         compile-time test, rather than inspecting host and OS, to
74749         decide whether to define _LARGEFILE_SOURCE.
74750
74751 2000-05-01  Jim Meyering  <meyering@lucent.com>
74752
74753         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74754
74755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74756         Based on a patch from Bruno Haible.
74757
74758 2000-05-01  Jim Meyering  <meyering@lucent.com>
74759
74760         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74761
74762 2000-04-29  Jim Meyering  <meyering@lucent.com>
74763
74764         * lib/path-concat.c: Declare strdup only if it's not defined.
74765         * lib/canon-host.c: Likewise.
74766
74767 2000-04-28  Jim Meyering  <meyering@lucent.com>
74768
74769         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74770         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74771         is included first, then limits.h is included by locale.h by libintl.h.
74772         From John David Anglin.
74773
74774 2000-04-25  Jim Meyering  <meyering@lucent.com>
74775
74776         * lib/makepath.c (S_IRWXUGO): Define.
74777         (make_path): Always perform explicit chmod if MODE specifies any
74778         of the `special' permission bits.  Prompted by a bug report against
74779         install from Mate Wierdl and Joost van Baal.
74780
74781 2000-04-18  Jim Meyering  <meyering@lucent.com>
74782
74783         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74784         (jm_PREREQ): Use it.
74785
74786 2000-04-18  Jim Meyering  <meyering@lucent.com>
74787
74788         * lib/README: New file.
74789
74790         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74791         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74792
74793 2000-04-17  Jim Meyering  <meyering@lucent.com>
74794
74795         Get it right :-)
74796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74797         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74798         Suggestion from Akim Demaille.
74799
74800 2000-04-17  Jim Meyering  <meyering@lucent.com>
74801
74802         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74803         the definition of it to rpl_strftime also defined-away the system's
74804         declaration.
74805
74806 2000-04-15  Jim Meyering  <meyering@lucent.com>
74807
74808         Use `C' to denote so-called `contiguous' files, the same way
74809         that tar does.
74810         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74811         (ftypelet): Use S_ISCTG.
74812         From Michael Deutschmann.
74813
74814 2000-04-14  Jim Meyering  <meyering@lucent.com>
74815
74816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74817         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74818         clobbered.
74819
74820 2000-04-14  Jim Meyering  <meyering@lucent.com>
74821
74822         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74823
74824 2000-04-13  Jim Meyering  <meyering@lucent.com>
74825
74826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74827         AH_VERBATIM to insert required #ifndef into config.h.in.
74828         Suggestion from Akim Demaille.
74829
74830 2000-04-12  Jim Meyering  <meyering@lucent.com>
74831
74832         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74833         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74834         Christian Krackowizer.
74835
74836         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74837         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74838         (AC_SYS_LARGEFILE): Require.
74839         (AM_C_PROTOTYPES): Require.
74840
74841 2000-04-08  Jim Meyering  <meyering@lucent.com>
74842
74843         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74844         names don't conflict.  Reported by Eli Zaretskii.
74845
74846 2000-04-07  Jim Meyering  <meyering@lucent.com>
74847
74848         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74849         sys/types.h, to work around system header problems on AIX 3.2.5.
74850         From Bruno Haible.
74851
74852 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74853
74854         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74855         bug.  Deal with the different error behavior of Irix iconv.
74856
74857 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74858
74859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74860         IRIX if the installer said otherwise.
74861
74862 2000-04-05  Jim Meyering  <meyering@lucent.com>
74863
74864         Portability tweaks required for ultrix4.3.
74865         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74866         (jm_CHECK_DECLS): Add getutent to the list of functions.
74867         (_jm_DECL_HEADERS): Add utmpx.h.
74868         From John David Anglin.
74869
74870         * m4/strftime.m4: Back out the 2000-04-02 change.
74871         Instead of that change, simply undefine putenv in the test program.
74872
74873 2000-04-05  Jim Meyering  <meyering@lucent.com>
74874
74875         Portability tweaks required for ultrix4.3.
74876         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74877         getutent.
74878         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74879         * lib/canon-host.c: Declare strdup.
74880         * lib/path-concat.c: Likewise.
74881         From John David Anglin.
74882
74883 2000-04-04  Jim Meyering  <meyering@lucent.com>
74884
74885         Be more DOS 8.3-friendly.
74886         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74887         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74888         * lib/Makefile.am: Reflect renaming.
74889         Reported by Eli Zaretskii.
74890
74891         Use a temporary file name that won't clash with `charset.alias'
74892         in the DOS 8.3 name space.
74893         * lib/Makefile.am (charset_tmp): Define.
74894         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74895         (uninstall-local): Likewise.
74896         Reported by Eli Zaretskii.
74897
74898 2000-04-03  Jim Meyering  <meyering@lucent.com>
74899
74900         * m4/gettext.m4: Fix typo in comment.
74901
74902         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74903         textutils/configure.in).  Suggestion from Paul Eggert.
74904         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74905
74906 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74907
74908         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74909         variable in the shell rather than using putenv, which isn't
74910         portable.  This avoids the configure-time inter-test dependency
74911         on the potentially-renamed putenv function.
74912
74913 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74914
74915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74916         before checking struct stat.st_blksize, so that
74917         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74918
74919 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74920
74921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74922         since strftime.c uses HAVE_STRFTIME to decide whether to use
74923         the underlying strftime.
74924
74925 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74926
74927         * lib/time/strftime.c (my_strftime): Make sure we call the system
74928         strftime, not ourselves, when invoking the underlying strftime.
74929
74930 2000-03-24  Jim Meyering  <meyering@lucent.com>
74931
74932         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
74933         (charset_alias): Define.
74934         (install-exec-local): Factor out common code.
74935         (uninstall-local): Split lines longer than 80.
74936         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
74937         (SUFFIXES): Define.
74938         (.sed.in.sed): New rule.  Don't redirect directly to $@.
74939         (CLEANFILES): Add ref-add.sed and ref-del.sed.
74940
74941 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
74942
74943         * lib/config.charset: Output a line containing "Packages using this
74944         file".
74945         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
74946         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
74947         ref-del.sed): New rules.
74948
74949 2000-03-17  Jim Meyering  <meyering@lucent.com>
74950
74951         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
74952         Otherwise, include <strings.h>
74953
74954 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
74955
74956         * lib/unicodeio.c (utf8_wctomb): New function.
74957         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
74958         format instead of in UCS-4 with platform dependent endianness.
74959
74960 2000-03-10  Jim Meyering  <meyering@lucent.com>
74961
74962         * m4/lib-check.m4: Look for getspnam in -lgen, too.
74963         From Marco Franzen.
74964
74965 2000-03-07  Paul Eggert  <eggert@twinsun.com>
74966
74967         * lib/savedir.c (savedir): Work even if directory size is
74968         negative; this can happen with some screwy NFS configurations.
74969
74970 2000-03-06  Jim Meyering  <meyering@lucent.com>
74971
74972         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74973         if it's NULL (because we ran out of memory).  From Bruno Haible.
74974
74975 2000-03-05  Jim Meyering  <meyering@lucent.com>
74976
74977         * lib/localcharset.c ("path-concat.h"): Include.
74978         (get_charset_aliases): Use path_concat instead of ANSI string
74979         concatenation.
74980
74981         * lib/unicodeio.h (PARAMS): Define.
74982         Use it to guard prototype.
74983
74984 2000-03-04  Jim Meyering  <meyering@lucent.com>
74985
74986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74987         for lib/localcharset.c.
74988
74989 2000-03-04  Jim Meyering  <meyering@lucent.com>
74990
74991         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74992         installing into it.
74993         (uninstall-local): Uncomment this rule so `make distcheck' works
74994         once again.
74995
74996         * lib/unicodeio.c (<errno.h>): Include it.
74997         (errno): Declare if not defined.
74998
74999         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
75000
75001         * lib/config.charset: New version, incorporating remarks from a linux
75002         i18n mailing list.  From Bruno Haible.
75003
75004 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
75005
75006         * m4/codeset.m4: New file.
75007         * m4/iconv.m4: New file.
75008         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
75009
75010 2000-03-03  Jim Meyering  <meyering@lucent.com>
75011
75012         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
75013
75014 2000-03-02  Jim Meyering  <meyering@lucent.com>
75015
75016         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
75017         the messages come out on separate lines.
75018
75019         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
75020         rather than jm_CHECK_DECLARATIONS.
75021         * m4/decl.m4: Remove now-unused file.
75022
75023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
75024         geteuid.
75025
75026 2000-03-02  Jim Meyering  <meyering@lucent.com>
75027
75028         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
75029
75030 2000-03-01  Jim Meyering  <meyering@lucent.com>
75031
75032         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
75033         * lib/unicodeio.c: Likewise.
75034
75035 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
75036
75037         * lib/config.charset: New file.
75038         * lib/localcharset.c: New file.
75039         * lib/unicodeio.h, lib/unicodeio.c: New files.
75040         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
75041         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
75042         (noinst_HEADERS): Add unicodeio.h.
75043         (all-local, install-exec-local, charset.alias): New targets.
75044
75045 2000-02-28  Paul Eggert  <eggert@twinsun.com>
75046
75047         * lib/quotearg.c (ALERT_CHAR): New macro.
75048         (quotearg_buffer_restyled): Use it.
75049
75050 2000-02-27  Jim Meyering  <meyering@lucent.com>
75051
75052         * m4/check-decl.m4: Add getenv to the list.
75053
75054 2000-02-27  Jim Meyering  <meyering@lucent.com>
75055
75056         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
75057         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75058
75059         * lib/backupfile.c: Guard inclusion of stdlib.h with
75060         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
75061         Declare malloc if needed.
75062
75063         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
75064         `#ifndef HAVE_DECL..'
75065         now that autoconf always defines the HAVE_DECL_ symbols.
75066         * lib/human.c: Likewise.
75067         * lib/same.c: Likewise.
75068         * lib/strtoumax.c: Likewise.
75069
75070         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
75071         declaration check was not run.
75072         * lib/hash.c: Likewise.
75073         * lib/human.c: Likewise.
75074         * lib/same.c: Likewise.
75075         * lib/strtoumax.c: Likewise.
75076
75077         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
75078         `.', then first look up the entire `.'-containing string as a login
75079         name.
75080
75081 2000-02-23  Jim Meyering  <meyering@lucent.com>
75082
75083         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
75084         in place of my hack.
75085
75086 2000-02-18  Paul Eggert  <eggert@twinsun.com>
75087
75088         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
75089         (textint): New typedef.
75090         (parser_control): Member year changed from int to textint.
75091         All uses changed.
75092         (YYSTYPE): Removed; replaced by %union with int and textint members.
75093         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
75094         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
75095         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
75096         (tSNUMBER, tUNUMBER): Now of type <textintval>.
75097         (date, number, to_year): Use width of number in digits, not its value,
75098         to determine whether it's a 2-digit year, or a 2-digit time.
75099         (yylex): Store number of digits of numeric tokens.
75100         Reported by John Kendall.
75101
75102         (parser_control): Changed from struct parser_control to typedef (for
75103         consistency).  All uses changed.
75104
75105         (tID): Removed; not used.
75106         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75107
75108 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75109
75110         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75111         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75112
75113 2000-02-12  Jim Meyering  <meyering@lucent.com>
75114
75115         * lib/userspec.c (ISDIGIT): Define it.
75116         (isdigit): Remove definition.
75117         (is_number): Use ISDIGIT, not isdigit.
75118         <libintl.h>: Include.
75119         (_ and N_): Define.
75120         (parse_user_spec): Mark translatable strings.
75121
75122 2000-02-10  Jim Meyering  <meyering@lucent.com>
75123
75124         With these changes, nanosleep.[ch] are finally enough like the other
75125         lib/* replacement files to compile on a few more losing systems.
75126
75127         * lib/nanosleep.h: Don't include config.h.
75128         Remove prototype from declaration of nanosleep.
75129         (PARAMS): Remove now-unneeded definition.
75130         * lib/nanosleep.c: #undef nanosleep.
75131         (rpl_nanosleep): Rename from nanosleep.
75132
75133 2000-02-10  Jim Meyering  <meyering@lucent.com>
75134
75135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75136         gnu_nanosleep to rpl_nanosleep.
75137
75138 2000-02-09  Jim Meyering  <meyering@lucent.com>
75139
75140         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75141         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75142
75143 2000-02-08  Akim Demaille  <akim@epita.fr>
75144
75145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75146         `[' and `]' and remove uses of `changequote'.
75147         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75148         (AC_SYS_LARGEFILE): Likewise.
75149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75150         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75151         of changequote.
75152         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75153         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75154         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75155         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75156
75157 2000-02-05  Jim Meyering  <meyering@lucent.com>
75158
75159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75160         Remove explicit use of AC_HEADER_TIME.  It is required by
75161         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75162         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75163         in autoconf whereby the expansion of the latter ended up preceding
75164         the expansion of its prerequisite, AC_HEADER_TIME.
75165         Reported by Volker Borchert.
75166
75167 2000-02-03  Jim Meyering  <meyering@lucent.com>
75168
75169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75170
75171 2000-02-03  Jim Meyering  <meyering@lucent.com>
75172
75173         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75174         rather than with `#if HAVE_UTMPNAME'.
75175
75176 2000-02-02  Jim Meyering  <meyering@lucent.com>
75177
75178         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
75179         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
75180         Reported by Eli Zaretskii.
75181
75182 2000-02-01  Jim Meyering  <meyering@lucent.com>
75183
75184         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
75185
75186 2000-01-31  Jim Meyering  <meyering@lucent.com>
75187
75188         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
75189         functions.  Add the time.h and sys/time.h headers along with the
75190         AC_REQUIRE'ment of AC_HEADER_TIME.
75191
75192 2000-01-31  Jim Meyering  <meyering@lucent.com>
75193
75194         * lib/nanosleep.h (nanosleep): Guard declaration with
75195         `#if ! HAVE_DECL_NANOSLEEP'.
75196         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
75197         the declaration in that vendor's sys/timers.h.
75198         Reported by Christian Krackowizer.
75199
75200         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
75201         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
75202         (ISPRINT): Likewise.
75203         Reported by Tom Tromey.
75204
75205 2000-01-30  Jim Meyering  <meyering@lucent.com>
75206
75207         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
75208
75209         * m4/prereq.m4 (utmp_includes): Define.
75210         Check for ut_user and ut_name members in both struct utmpx
75211         and struct utmp.
75212
75213 2000-01-30  Jim Meyering  <meyering@lucent.com>
75214
75215         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
75216         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
75217         header files where only utmpx.ut_user is declared.
75218
75219         * lib/readutmp.h (UT_USER): Define.
75220
75221 2000-01-29  Jim Meyering  <meyering@lucent.com>
75222
75223         * m4/lib-check.m4: New file containing library-related checks from
75224         fileutils and sh-utils (textutils had none).
75225
75226 2000-01-28  Jim Meyering  <meyering@lucent.com>
75227
75228         * m4/perl.m4: Change format of warning message to look more like that
75229         from the missing script.  Suggestion from François Pinard.
75230
75231 2000-01-25  Jim Meyering  <meyering@lucent.com>
75232
75233         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
75234         well as time.h in the compile check.
75235         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
75236         Fix typo in cross-compiling case: s/yes/no/.
75237
75238 2000-01-23  Jim Meyering  <meyering@lucent.com>
75239
75240         * m4/jm-macros.m4: Move df-related tests here from
75241         fileutils/configure.in
75242
75243         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
75244         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
75245
75246         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
75247         s/space/ac_fsusage_space/.
75248         (jm_FILE_SYSTEM_USAGE): Take two parameters.
75249
75250         * m4/ftruncate.m4: New file (derived from part of
75251         fileutils/configure.in).
75252         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
75253         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
75254
75255         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
75256         AC_SUBST these here, rather than just in sh-util/configure.in, so
75257         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
75258         all the same.
75259         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
75260         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
75261         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
75262         (AC_SUBST(POW_LIBM)): Likewise.
75263         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
75264
75265 2000-01-23  Jim Meyering  <meyering@lucent.com>
75266
75267         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
75268         obstack.c.
75269
75270 2000-01-22  Jim Meyering  <meyering@lucent.com>
75271
75272         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
75273
75274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
75275
75276         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
75277         configure.in
75278         (AC_CHECK_HEADERS): Likewise for sh-utils.
75279         (AC_CHECK_HEADERS): Likewise for textutils.
75280         Merge the three lists of headers.
75281
75282         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
75283         from fileutils' configure.in.
75284
75285         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
75286         code. Moved tests into their own function (_jm_DECL_HEADERS) in
75287         check-decl.m4.
75288
75289         * m4/check-decl.m4: Use #if rather than #ifdef.
75290         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
75291         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
75292         (_jm_DECL_HEADERS): Define new function.
75293         (jm_CHECK_DECLARATIONS): Require it.
75294
75295 2000-01-22  Jim Meyering  <meyering@lucent.com>
75296
75297         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
75298         [! HAVE_DECL_STRTOULL]: Declare strtoull.
75299         Required for some AIX systems.  Reported by Christian Krackowizer.
75300         [TESTING] (main): New function.
75301
75302         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
75303         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
75304         letters.
75305
75306         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
75307         iswprint.
75308
75309         * lib/strverscmp.c (ISDIGIT): Define.
75310         (strverscmp): Use ISDIGIT, not isdigit.
75311
75312 2000-01-19  Jim Meyering  <meyering@lucent.com>
75313
75314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
75315         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
75316         defines `struct timespec' in <sys/time.h>
75317
75318         * m4/c-bs-a.m4: Remove uses of changequote altogether.
75319         Thanks to Akim for explaining.
75320
75321 2000-01-17  Paul Eggert  <eggert@twinsun.com>
75322
75323         * lib/nanosleep.c (nanosleep):
75324         Don't use SA_INTERRUPT to decide whether to call sigaction, as
75325         POSIX.1 doesn't require SA_INTERRUPT and some systems
75326         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
75327         it's been part of POSIX.1 since day 1 (in 1988).
75328
75329 2000-01-17  Jim Meyering  <meyering@lucent.com>
75330
75331         * lib/interlock: Remove unused file.  Reported by François Pinard.
75332
75333 2000-01-16  Paul Eggert  <eggert@twinsun.com>
75334
75335         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
75336         alert, backslash, formfeed, and vertical tab unnecessarily in
75337         shell quoting style.
75338
75339 2000-01-16  Jim Meyering  <meyering@lucent.com>
75340
75341         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
75342         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
75343         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
75344         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
75345
75346 2000-01-16  Jim Meyering  <meyering@lucent.com>
75347
75348         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
75349         because the latter didn't work.
75350
75351 2000-01-15  Jim Meyering  <meyering@lucent.com>
75352
75353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
75354         (AC_REPLACE_FUNCS): Add memcpy and memset.
75355         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
75356         Add strpbrk.
75357         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
75358
75359 2000-01-12  Jim Meyering  <meyering@lucent.com>
75360
75361         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
75362         (jm_PREREQ): Use it.
75363         (jm_PREREQ_READUTMP): New macro.
75364         (jm_PREREQ): Use it.
75365
75366 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75367
75368         Quote multibyte characters correctly.
75369         * m4/c-bs-a.m4: New file.
75370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
75371         (jm_PREREQ): Use it.
75372
75373 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75374
75375         * m4/uintmax_t.m4: Port to autoconf 2.13.
75376
75377 2000-01-08  Jim Meyering  <meyering@ascend.com>
75378
75379         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
75380         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
75381
75382 2000-01-04  Jim Meyering  <meyering@ascend.com>
75383
75384         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
75385         jm_STRUCT_DIRENT_D_TYPE.
75386         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
75387         jm_STRUCT_DIRENT_D_INO.
75388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
75389         jm_STRUCT_UTIMBUF.
75390         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
75391         renamings.
75392         * m4/utime.m4: Likewise.
75393
75394         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
75395         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
75396
75397 2000-01-03  Paul Eggert  <eggert@twinsun.com>
75398
75399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
75400         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
75401
75402 2000-01-02  Jim Meyering  <meyering@ascend.com>
75403
75404         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
75405         remember if this is necessary.
75406
75407 1999-12-26  Jim Meyering  <meyering@ascend.com>
75408
75409         * m4/jm-macros.m4: Use it here.
75410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
75411
75412 1999-12-23  Jim Meyering  <meyering@ascend.com>
75413
75414         * m4/jm-macros.m4: Check for clock_gettime (moved from
75415         fileutils/configure.in)
75416         Check for gettimeofday.
75417
75418 1999-12-20  Jim Meyering  <meyering@ascend.com>
75419
75420         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
75421         autoconf-2.14a-1999-12-20.
75422
75423 1999-12-19  Jim Meyering  <meyering@ascend.com>
75424
75425         * m4/lstat-slash.m4: New file.
75426         * m4/jm-macros.m4: Use the new macro:
75427         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75428
75429 1999-12-07  Jim Meyering  <meyering@ascend.com>
75430
75431         * m4/perl.m4: Require that File::Compare be available, too.
75432         Too many systems seem to lack it.
75433
75434         * m4/strftime.m4: Add checks for most of the cpp macros tested in
75435         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
75436
75437 1999-11-18  Paul Eggert  <eggert@twinsun.com>
75438
75439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
75440         problem with the QNX 4.25 shell, which doesn't propagate exit
75441         status of failed commands inside shell assignments.
75442
75443 1999-11-17  Jim Meyering  <meyering@ascend.com>
75444
75445         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
75446
75447 1999-11-07  Jim Meyering  <meyering@ascend.com>
75448
75449         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
75450
75451 1999-11-06  Jim Meyering  <meyering@ascend.com>
75452
75453         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
75454         * m4/jm-macros.m4 (jm_MACROS): Use it here.
75455
75456 1999-11-05  Jim Meyering  <meyering@ascend.com>
75457
75458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
75459         configure.in of textutils, fileutils, and sh-utils into this one
75460         (shared between those packages) file.
75461         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
75462         AC_STRUCT_ST_BLKSIZE.
75463
75464 1999-11-03  Jim Meyering  <meyering@ascend.com>
75465
75466         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
75467         of AC_CHECK_TYPE checks includes unistd.h.
75468         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
75469         Suggestion from Akim Demaille.
75470
75471 1999-10-30  Jim Meyering  <meyering@ascend.com>
75472
75473         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
75474         m4-quoted string.
75475         * m4/ls-mntd-fs.m4: Likewise.
75476         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
75477         * m4/jm-winsz1.m4: Likewise.
75478
75479         * m4/const.m4: Remove file, since the fix made it into the experimental
75480         version of autoconf.
75481         * m4/mktime.m4: Likewise.
75482
75483         * m4/check-type.m4: Remove file, now that the latest version of
75484         AC_CHECK_TYPE takes a third arg to specify additional #includes.
75485
75486         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
75487         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
75488         AC_CHECK_TYPE.
75489
75490 1999-10-04  Jim Meyering  <meyering@ascend.com>
75491
75492         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
75493
75494 1999-09-22  Paul Eggert  <eggert@twinsun.com>
75495
75496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75497         2.95.1 bug with HP-UX 10.20.
75498
75499 1999-09-17  Jim Meyering  <meyering@ascend.com>
75500
75501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75502         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75503         due to missing strdup (against sh-utils-2.0).
75504
75505 1999-08-29  Jim Meyering  <meyering@ascend.com>
75506
75507         * m4/jm-macros.m4: Require jm_BISON.
75508         * m4/bison.m4: New file.
75509
75510 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75511
75512         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75513         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75514
75515 1999-08-05  Jim Meyering  <meyering@ascend.com>
75516
75517         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75518         to avoid conflicts with `conftest' on 8+3 filesystems.
75519         Suggestion from Eli Zaretskii.
75520
75521 1999-08-04  Jim Meyering  <meyering@ascend.com>
75522
75523         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75524         fileutils and sh-utils (textutils's getline test was inadequate).
75525         (AM_FUNC_GETLINE): Run this test.
75526         (AC_CHECK_FUNCS): Check for getdelim.
75527         Reported by Bob Proulx.
75528
75529 1999-08-02  Jim Meyering  <meyering@ascend.com>
75530
75531         * m4/jm-macros.m4: Add a comment.
75532
75533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75534
75535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75536         <inttypes.h> defines strtoumax as a macro (and not as a
75537         function).
75538
75539 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75540
75541         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75542         that we can shift, multiply and divide unsigned long long
75543         values; Ultrix cc can't do it.
75544
75545 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75546
75547         * m4/mktime.m4: New file, which is a preview of what should appear
75548         in the next public autoconf release.
75549
75550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75551
75552         * m4/lfs.m4: Remove this file.
75553         * m4/largefile.m4: New file.  It contains the old contents of
75554         lfs.m4, except that all names with prefix AC_LFS have been
75555         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75556         compatible with future autoconf versions.  Also, some minor m4
75557         quoting problems have been fixed.
75558
75559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75560
75561         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75562         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75563         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75564         and simplify the shell code.
75565
75566 1999-08-01  Jim Meyering  <meyering@ascend.com>
75567
75568         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75569         m4.
75570
75571 1999-07-20  Jim Meyering  <meyering@ascend.com>
75572
75573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75574
75575 1999-07-15  Jim Meyering  <meyering@ascend.com>
75576
75577         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75578
75579 1999-05-22  Jim Meyering  <meyering@ascend.com>
75580
75581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75582
75583 1999-05-20  Jim Meyering  <meyering@ascend.com>
75584
75585         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75586         Add a colon after each `then' in case $4 is empty.
75587
75588 1999-05-16  Jim Meyering  <meyering@ascend.com>
75589
75590         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75591
75592 1999-05-10  Jim Meyering  <meyering@ascend.com>
75593
75594         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75595
75596         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75597         AC_FUNC_MKTIME.
75598
75599 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75600
75601         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75602
75603 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75604
75605         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75606         not CPPFLAGS, so that linking works correctly in IRIX.
75607
75608 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75609
75610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75611
75612 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75613
75614         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75615         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75617         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75618         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75619
75620         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75621
75622 1999-04-20  Jim Meyering  <meyering@ascend.com>
75623
75624         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75625         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75626         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75627
75628 1999-04-18  Jim Meyering  <meyering@ascend.com>
75629
75630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75631         * m4/jm-macros.m4: Use it.
75632
75633 1999-04-06  Jim Meyering  <meyering@ascend.com>
75634
75635         * m4/strftime.m4: Remove test for %f.
75636
75637 1999-03-29  Jim Meyering  <meyering@ascend.com>
75638
75639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75640         superset of the AC_TYPE_* checks in the textutils, fileutils,
75641         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75642         AC_TYPE_PID_T.
75643
75644 1999-03-28  Jim Meyering  <meyering@ascend.com>
75645
75646         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75647         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75648         replaced e.g., in the *.sh files of the sh-utils.
75649
75650 1999-03-20  Jim Meyering  <meyering@ascend.com>
75651
75652         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75653         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75654         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75655
75656 1999-03-19  Jim Meyering  <meyering@ascend.com>
75657
75658         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75659
75660 1999-03-12  Jim Meyering  <meyering@ascend.com>
75661
75662         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75663
75664 1999-03-07  Jim Meyering  <meyering@ascend.com>
75665
75666         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75667         declared.
75668
75669 1999-02-17  Jim Meyering  <meyering@ascend.com>
75670
75671         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75672         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75673
75674 1999-02-07  Jim Meyering  <meyering@ascend.com>
75675
75676         * m4/group-member.m4: New file -- extracted from sh-utils'
75677         configure.in.
75678
75679         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75680         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75681
75682 1999-02-06  Jim Meyering  <meyering@ascend.com>
75683
75684         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75685         * m4/fnmatch.m4: Likewise.
75686         * m4/getgroups.m4: Likewise.
75687         * m4/lstat.m4: Likewise.
75688         * m4/malloc.m4: Likewise.
75689         * m4/putenv.m4: Likewise.
75690         * m4/realloc.m4: Likewise.
75691         * m4/regex.m4: Likewise.
75692         * m4/stat.m4: Likewise.
75693         * m4/strftime.m4: Likewise.
75694         Suggestion from Alain Magloire.
75695
75696         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75697         * m4/fnmatch.m4: Likewise.
75698         * m4/getgroups.m4: Likewise.
75699         * m4/getline.m4: Likewise.
75700         * m4/lstat.m4: Likewise.
75701         * m4/malloc.m4: Likewise.
75702         * m4/memcmp.m4: Likewise.
75703         * m4/putenv.m4: Likewise.
75704         * m4/realloc.m4: Likewise.
75705         * m4/regex.m4: Likewise.
75706         * m4/stat.m4: Likewise.
75707         * m4/strftime.m4: Likewise.
75708         Suggestion from Alain Magloire.
75709
75710         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75711         an argument.
75712
75713         * m4/regex.m4: Add a run-time Test for proper operation of
75714         re_compile_pattern.
75715
75716 1999-01-31  Jim Meyering  <meyering@ascend.com>
75717
75718         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75719
75720 1999-01-30  Jim Meyering  <meyering@ascend.com>
75721
75722         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75723
75724         * m4/jm-mktime.m4: Make this a wrapper around the official
75725         AM_FUNC_MKTIME rather than my private copy, now that the official one
75726         is up to date.
75727         * m4/mktime.m4: Remove file.
75728
75729         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75730         * m4/uptime.m4: Likewise.
75731         * m4/uintmax_t.m4: Likewise.
75732
75733 1999-01-28  Jim Meyering  <meyering@ascend.com>
75734
75735         * m4/jm-macros.m4: Use jm_AFS.
75736         * m4/afs.m4: New file (from fileutils' configure.in).
75737
75738         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75739         * m4/chown.m4: Likewise.
75740         * m4/d-ino.m4: Likewise.
75741         * m4/d-type.m4: Likewise.
75742         * m4/fnmatch.m4: Likewise.
75743         * m4/getgroups.m4: Likewise.
75744         * m4/gettext.m4: Likewise.
75745         * m4/jm-mktime.m4: Likewise.
75746         * m4/jm-winsz2.m4: Likewise.
75747         * m4/lcmessage.m4: Likewise.
75748         * m4/ls-mntd-fs.m4: Likewise.
75749         * m4/malloc.m4: Likewise.
75750         * m4/memcmp.m4: Likewise.
75751         * m4/putenv.m4: Likewise.
75752         * m4/realloc.m4: Likewise.
75753         * m4/st_mtim.m4: Likewise.
75754         * m4/strftime.m4: Likewise.
75755
75756 1999-01-16  Jim Meyering  <meyering@ascend.com>
75757
75758         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75759         (ARGMATCH_DIE_DECL): Define.
75760
75761 1999-01-12  Jim Meyering  <meyering@ascend.com>
75762
75763         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75764         Reported by Lars Hecking.
75765
75766 1999-01-10  Jim Meyering  <meyering@ascend.com>
75767
75768         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75769         gross kludge.
75770         * m4/inttypes_h.m4: Likewise.
75771         * m4/lstat.m4: Likewise.
75772         * m4/malloc.m4: Likewise.
75773         * m4/readdir.m4: Likewise.
75774         * m4/realloc.m4: Likewise.
75775         * m4/st_dm_mode.m4: Likewise.
75776         * m4/stat.m4: Likewise.
75777         * m4/utimbuf.m4: Likewise.
75778         * m4/utimes.m4: Likewise.
75779
75780         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75781         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75782         comments in config.h.in are meaningful.
75783
75784         * m4/jm-macros.m4: Require autoconf-2.13 here.
75785
75786         * m4/regex.m4: By default, don't use the included regex.c on systems
75787         with glibc 2.  Suggestion from Uli Drepper.
75788
75789 1999-01-02  Jim Meyering  <meyering@ascend.com>
75790
75791         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75792
75793 1998-12-18  Jim Meyering  <meyering@ascend.com>
75794
75795         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75796         Based on a suggestion from Lars Hecking.
75797
75798 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75799
75800         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75801
75802 1998-11-16  Jim Meyering  <meyering@ascend.com>
75803
75804         * m4/lfs.m4: Double-quote the `uname...` expression.
75805
75806 1998-11-14  Jim Meyering  <meyering@ascend.com>
75807
75808         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75809         * m4/stat.m4: Likewise.
75810
75811 1998-11-03  Jim Meyering  <meyering@ascend.com>
75812
75813         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75814         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75815
75816 1998-10-18  Jim Meyering  <meyering@ascend.com>
75817
75818         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75819
75820 1998-10-17  Jim Meyering  <meyering@ascend.com>
75821
75822         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75823         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75824         calls for those previously hard-coded headers.  Instead, take a new
75825         parameter.
75826         (jm_CHECK_DECLARATIONS): Reflect interface change.
75827         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75828         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75829
75830         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75831
75832 1998-10-14  Jim Meyering  <meyering@ascend.com>
75833
75834         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75835         instead of "TZ=America/Vancouver".  From Paul Eggert.
75836
75837 1998-10-11  Jim Meyering  <meyering@ascend.com>
75838
75839         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75840         This adds a test for a recently added compatibility fix for mktime.c.
75841         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75842
75843 1998-09-27  Jim Meyering  <meyering@ascend.com>
75844
75845         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75846
75847         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75848         ../configure.in, including a change from Gordon Matzigkeit to allow
75849         cross-compiling for the Hurd.
75850
75851         * m4/glibc.m4: New file/macro to test for the GNU C Library
75852         versions 1 and 2.  From Gordon Matzigkeit.
75853         Indent.
75854
75855 1998-09-21  Jim Meyering  <meyering@ascend.com>
75856
75857         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75858
75859 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75860
75861         Port nanosecond-resolution times to UnixWare 2.1.2 and
75862         pedantic Solaris 2.6.
75863
75864         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75865         AC_STRUCT_ST_MTIM.
75866         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75867         Generate name of ns member, instead of just 1 or undef.
75868         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75869
75870 1998-08-15  Jim Meyering  <meyering@ascend.com>
75871
75872         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75873         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75874         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75875         instead of jm_TYPE_SSIZE_T.
75876
75877 1998-08-12  Jim Meyering  <meyering@ascend.com>
75878
75879         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75880
75881 1998-08-02  Jim Meyering  <meyering@ascend.com>
75882
75883         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75884         in acconfig.h manually.
75885
75886 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75887
75888         * m4/st_mtim.m4: New file.
75889
75890 1998-07-28  Jim Meyering  <meyering@ascend.com>
75891
75892         * m4/utimes.m4: Undef stat.
75893
75894 1998-07-25  Jim Meyering  <meyering@ascend.com>
75895
75896         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75897         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75898
75899 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75900
75901         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75902         uid and gid actually remain unchanged.
75903
75904 1998-07-07  Jim Meyering  <meyering@ascend.com>
75905
75906         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75907
75908 1998-07-04  Jim Meyering  <meyering@ascend.com>
75909
75910         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75911         to prove that this macro can be used in packages without regex.c.
75912
75913 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75914
75915         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75916         is to be used.
75917
75918 1998-07-03  Jim Meyering  <meyering@ascend.com>
75919
75920         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75921
75922         * m4/gettext.m4: New file -- from gettext-0.10.35.
75923         * m4/lcmessage.m4: Likewise.
75924         * m4/progtest.m4: Likewise.
75925
75926         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75927         * m4/jm-macros.m4: Require the new macro.
75928
75929 1998-06-29  Jim Meyering  <meyering@ascend.com>
75930
75931         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
75932         for the definition of NGROUPS (used in a system header included
75933         by sys/mount.h).
75934
75935 1998-06-28  Jim Meyering  <meyering@ascend.com>
75936
75937         * m4/ls-mntd-fs.m4: New file.
75938         * m4/fstypename.m4: New file.
75939
75940         * m4/jm-macros.m4: Require the new macro.
75941         * m4/jm-glibc-io.m4: New file.
75942
75943 1998-05-19  Jim Meyering  <meyering@ascend.com>
75944
75945         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
75946         * m4/lchown.m4: New file.
75947
75948         * m4/Makefile.am.in: New file.
75949         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
75950
75951 1998-05-14  Jim Meyering  <meyering@ascend.com>
75952
75953         * m4/Makefile.am (EXTRA_DIST): Add them.
75954         * m4/jm-macros.m4: New file.
75955         * m4/utimbuf.m4: New file.
75956
75957 1998-05-12  Jim Meyering  <meyering@ascend.com>
75958
75959         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
75960
75961 1998-05-11  Jim Meyering  <meyering@ascend.com>
75962
75963         * m4/isc-posix.m4: New file.
75964
75965 1998-05-10  Jim Meyering  <meyering@ascend.com>
75966
75967         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
75968
75969 1998-05-09  Jim Meyering  <meyering@ascend.com>
75970
75971         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
75972         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75973         with automake.
75974
75975         * m4/ssize_t.m4: New file.
75976         * m4/mktime.m4: Remove file -- the new automake has this now.
75977
75978 1998-04-26  Jim Meyering  <meyering@ascend.com>
75979
75980         * m4/assert.m4: New file.
75981         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75982
75983 1998-04-05  Jim Meyering  <meyering@ascend.com>
75984
75985         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75986         (jm_PREREQ): Use it here.
75987
75988 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75989
75990         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75991         in acconfig.h.
75992
75993 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75994
75995         * m4/prereq.m4: New file.
75996         * m4/error.m4: New file.
75997         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75998
75999 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
76000
76001         * m4/getline.m4: Don't set am_cv_func_working_getline before the
76002         cache-check for the same variable -- that defeated the purpose of
76003         the test; the test program was never run.  This was a problem only
76004         on systems with losing getline functions -- HP-UX 10.20 is one.
76005         Reported by Bjorn Helgaas.
76006
76007 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
76008
76009         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
76010
76011 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
76012
76013         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
76014
76015         * m4/const.m4: New file.  Use an initializer in this declaration
76016         typedef int charset[2]; const charset x;
76017         Reported by Bob Glickstein.
76018
76019 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
76020
76021         * m4/chown.m4: Fix reversed types on -1 args to chown.
76022         From Kaveh Ghazi.
76023
76024 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
76025
76026         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
76027         Add lseek and memchr.
76028
76029         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
76030         T.E.Dickey <dickey@clark.net> said that some older preprocessors
76031         have a 20-character limit on names.
76032
76033 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
76034
76035         * m4/inttypes_h.m4: New file.
76036         * m4/uintmax_t.m4: New file.
76037         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
76038
76039
76040         -----
76041
76042         Local Variables:
76043         coding: utf-8
76044         End:
76045
76046         Copyright (C) 1997-2011 Free Software Foundation, Inc.
76047
76048         Copying and distribution of this file, with or without
76049         modification, are permitted provided the copyright notice
76050         and this notice are preserved.